/*
 * Tilt Frame: components
 * Needs tokens.css first. Every class starts with "tf-" so it can sit next to any other CSS.
 */

/* Base */
.tf { margin: 0; background: var(--tf-paper); color: var(--tf-ink); font-family: var(--tf-serif); font-size: var(--tf-text-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf img, .tf svg { max-width: 100%; display: block; }
.tf a { color: var(--tf-tomato); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tf a:hover { color: var(--tf-tomato-dark); }
.tf-container { width: min(100% - 2 * var(--tf-gutter), var(--tf-container)); margin-inline: auto; }
.tf-narrow { width: min(100% - 2 * var(--tf-gutter), var(--tf-narrow)); margin-inline: auto; }
.tf-center { text-align: center; }
.tf-center .tf-lead { margin-inline: auto; }
.tf-section { padding-block: var(--tf-section); }
.tf-section--sky { background: var(--tf-sky); }
.tf-section--blush { background: var(--tf-blush); }
.tf-section--tomato { background: var(--tf-tomato); color: var(--tf-paper); }
.tf-section--tomato .tf-lead { color: rgba(255, 255, 255, .88); }

/* Type: chunky grotesk for headlines and UI, book serif for reading */
.tf-hero-title, .tf-h2, .tf-h3 { margin: 0; font-family: var(--tf-display); font-weight: 800; letter-spacing: var(--tf-tracking-tight); color: inherit; text-wrap: balance; }
.tf-hero-title { font-size: var(--tf-text-hero); line-height: 1.06; }
.tf-h2 { font-size: var(--tf-text-h2); line-height: 1.1; }
.tf-h3 { font-size: var(--tf-text-h3); line-height: 1.2; }
.tf-h3 a, .tf-h2 a { color: inherit; text-decoration: none; }
.tf-h3 a:hover, .tf-h2 a:hover { color: var(--tf-tomato); }
.tf-lead { max-width: 620px; margin: 18px 0 0; color: var(--tf-soft); font-size: var(--tf-text-lead); line-height: 1.6; }
.tf-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--tf-tomato); font-family: var(--tf-display); font-size: var(--tf-text-small); font-weight: 600; }
.tf-caps { font-family: var(--tf-serif); font-size: var(--tf-text-micro); letter-spacing: var(--tf-tracking-caps); text-transform: uppercase; color: var(--tf-faint); }
.tf-byline { font-family: var(--tf-serif); font-size: var(--tf-text-small); color: var(--tf-soft); }
.tf-byline b { color: var(--tf-tomato); font-family: var(--tf-display); font-weight: 600; }
.tf-byline i { color: var(--tf-faint); }

/* Header band: solid tomato, white grotesk links, a darker pill for "More" and a white search field */
.tf-band { background: var(--tf-tomato); color: var(--tf-paper); }
.tf-band__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.tf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--tf-paper) !important; font-family: var(--tf-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.tf-logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tf-paper); color: var(--tf-tomato); transform: rotate(var(--tf-tilt)); }
.tf-band__links { display: flex; gap: 26px; flex: 1; font-family: var(--tf-display); font-size: 17px; font-weight: 600; }
.tf-band__links a { color: var(--tf-paper); text-decoration: none; white-space: nowrap; }
.tf-band__links a:hover { color: var(--tf-blush); }
.tf-band__more { padding: 6px 14px; border-radius: var(--tf-radius-sm); background: var(--tf-tomato-dark); }
.tf-search { display: flex; align-items: center; gap: 8px; width: 240px; padding: 9px 14px; border-radius: var(--tf-radius-sm); background: var(--tf-paper); color: var(--tf-faint); font-family: var(--tf-display); font-size: 15px; }
.tf-search svg { flex: none; color: var(--tf-tomato); }

/* Tag rail: a row of pale pink pills under the band. Clipped and scrollable on phones */
.tf-rail { overflow-x: auto; border-bottom: 1px solid var(--tf-line); background: var(--tf-paper); box-shadow: 0 4px 14px rgba(34, 28, 27, .05); scrollbar-width: none; }
.tf-rail::-webkit-scrollbar { display: none; }
.tf-rail__inner { display: flex; gap: 8px; padding-block: 12px; }
.tf-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--tf-radius-sm); background: var(--tf-blush); color: var(--tf-tomato) !important; font-family: var(--tf-display); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s; }
.tf-tag:hover { background: var(--tf-blush-2); }
.tf-tag--on { background: var(--tf-tomato); color: var(--tf-paper) !important; }

/* Buttons: grotesk, radius 8, never pills. Tomato for the main action */
.tf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 2px solid transparent; border-radius: 8px; font-family: var(--tf-display); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: transform .25s var(--tf-ease), background .2s; }
.tf-btn:hover { transform: rotate(-1.5deg) scale(1.03); }
.tf-btn--primary { background: var(--tf-tomato); color: var(--tf-paper) !important; }
.tf-btn--primary:hover { background: var(--tf-tomato-dark); }
.tf-btn--sky { background: var(--tf-sky-deep); color: var(--tf-paper) !important; }
.tf-btn--leaf { background: var(--tf-leaf); color: var(--tf-paper) !important; }
.tf-btn--outline { border-color: var(--tf-line); background: var(--tf-paper); color: var(--tf-sky-deep) !important; }
.tf-btn--white { background: var(--tf-paper); color: var(--tf-tomato) !important; }
.tf-btn--block { width: 100%; }
.tf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tf-center .tf-actions { justify-content: center; }
.tf-more { font-family: var(--tf-display); font-weight: 600; }

/* The signature: a tipped rounded-square frame with a thick tomato border and a long soft shadow */
.tf-frame { position: relative; flex: none; width: 150px; aspect-ratio: 1; overflow: hidden; border: var(--tf-frame-border); border-radius: var(--tf-radius-frame); background: var(--tf-blush); box-shadow: var(--tf-shadow-frame); transform: rotate(var(--tf-tilt)); transition: transform .35s var(--tf-ease); }
.tf-frame:hover { transform: rotate(0deg) scale(1.03); }
.tf-frame--alt { transform: rotate(var(--tf-tilt-alt)); }
.tf-frame--sm { width: 96px; border-width: 4px; border-radius: 14px; }
.tf-frame--lg { width: min(100%, 360px); border-width: 7px; border-radius: var(--tf-radius-lg); }
.tf-frame--wide { width: 100%; aspect-ratio: 16 / 10; transform: rotate(-1.5deg); }
.tf-frame svg { width: 100%; height: 100%; }

/* Post: frame on the left, title and blurb on the right */
.tf-post { display: grid; grid-template-columns: 150px 1fr; gap: 36px; align-items: start; padding-block: 34px; }
.tf-post + .tf-post { border-top: 1px solid var(--tf-line); }
.tf-post__body > * + * { margin-top: 10px; }
.tf-post__body p { margin: 0; color: var(--tf-soft); }
.tf-post--sm { grid-template-columns: 96px 1fr; gap: 24px; }

/* Layout: a main column and a narrow aside */
.tf-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }

/* Side card: sky blue, rounded, with the mascot sitting on its top edge */
.tf-side { position: relative; margin-top: 96px; padding: 112px 28px 28px; border-radius: var(--tf-radius-lg); background: var(--tf-sky); text-align: center; }
.tf-side__mascot { position: absolute; top: -84px; left: 50%; width: 180px; transform: translateX(-50%); }
.tf-side__label { display: inline-block; margin-bottom: 14px; padding: 8px 16px; border-radius: 8px; background: var(--tf-paper); box-shadow: var(--tf-shadow); color: var(--tf-tomato); font-family: var(--tf-display); font-weight: 600; }
.tf-side .tf-h3 { font-family: var(--tf-serif); font-weight: 600; letter-spacing: 0; }
.tf-side p { margin: 12px 0 18px; color: var(--tf-soft); font-size: var(--tf-text-small); }
.tf-inline-form { display: flex; overflow: hidden; border: 2px solid var(--tf-sky-2); border-radius: 8px; background: var(--tf-paper); }
.tf-inline-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 0; background: transparent; font: italic 15px var(--tf-serif); color: var(--tf-ink); }
.tf-inline-form button { padding: 0 16px; border: 0; background: var(--tf-sky-deep); color: var(--tf-paper); font: 600 15px var(--tf-display); cursor: pointer; white-space: nowrap; }

/* Cards */
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tf-card { padding: 28px; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); background: var(--tf-paper); box-shadow: var(--tf-shadow); }
.tf-card p { margin: 10px 0 0; color: var(--tf-soft); font-size: var(--tf-text-small); }
.tf-card--sky { border-color: transparent; background: var(--tf-sky); box-shadow: none; }
.tf-card--blush { border-color: transparent; background: var(--tf-blush); box-shadow: none; }
.tf-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: var(--tf-tomato); color: var(--tf-paper); transform: rotate(var(--tf-tilt)); }

/* Badges */
.tf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--tf-radius-pill); background: var(--tf-blush); color: var(--tf-tomato); font-family: var(--tf-display); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tf-badge--sky { background: var(--tf-sky); color: var(--tf-sky-deep); }
.tf-badge--leaf { background: #e3f4e7; color: var(--tf-leaf); }
.tf-badge--solid { background: var(--tf-tomato); color: var(--tf-paper); }

/* Hero: words left, a big tipped frame right */
.tf-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.tf-hero__art { display: grid; place-items: center; padding: 24px; }

/* Stack of frames: two or three tipped frames overlapping */
.tf-stack { position: relative; width: 340px; max-width: 100%; height: 340px; }
.tf-stack .tf-frame { position: absolute; }
.tf-stack .tf-frame:nth-child(1) { top: 0; left: 0; width: 64%; }
.tf-stack .tf-frame:nth-child(2) { right: 0; bottom: 0; width: 56%; transform: rotate(var(--tf-tilt-alt)); }
.tf-stack .tf-frame:nth-child(3) { right: 6%; top: 4%; width: 30%; transform: rotate(8deg); border-color: var(--tf-sky-deep); }

/* Forms */
.tf-form { display: grid; gap: 18px; }
.tf-field { display: grid; gap: 6px; }
.tf-label { font-family: var(--tf-display); font-size: 15px; font-weight: 600; }
.tf-hint { color: var(--tf-faint); font-size: 14px; }
.tf-input, .tf-select { width: 100%; padding: 12px 14px; border: 2px solid var(--tf-line); border-radius: 8px; background: var(--tf-paper); color: var(--tf-ink); font: 16px var(--tf-serif); transition: border-color .2s; }
.tf-input::placeholder { color: var(--tf-faint); font-style: italic; }
.tf-input:focus, .tf-select:focus { outline: none; border-color: var(--tf-tomato); }
.tf-check { display: flex; gap: 10px; align-items: flex-start; color: var(--tf-soft); font-size: 15px; }
.tf-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--tf-tomato); }
.tf-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf-choice label { display: grid; gap: 2px; padding: 12px; border: 2px solid var(--tf-line); border-radius: 10px; font-family: var(--tf-display); font-weight: 600; font-size: 15px; cursor: pointer; }
.tf-choice label span { color: var(--tf-faint); font-family: var(--tf-serif); font-weight: 400; font-size: 13px; }
.tf-choice input { position: absolute; opacity: 0; }
.tf-choice label:has(input:checked) { border-color: var(--tf-tomato); background: var(--tf-blush); }

/* Pricing */
.tf-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.tf-plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 2px solid var(--tf-line); border-radius: var(--tf-radius-lg); background: var(--tf-paper); }
.tf-plan--pick { border: var(--tf-frame-border); box-shadow: var(--tf-shadow-frame); transform: rotate(-1.2deg); }
.tf-plan__flag { position: absolute; top: -16px; right: 20px; transform: rotate(4deg); }
.tf-plan__price { margin: 18px 0 4px; font-family: var(--tf-display); font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tf-plan__price small { color: var(--tf-faint); font-family: var(--tf-serif); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.tf-plan ul { display: grid; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; font-size: 15px; }
.tf-plan li { display: flex; gap: 10px; }
.tf-plan li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--tf-tomato); transform: rotate(-8deg); }
.tf-plan .tf-btn { margin-top: auto; }
.tf-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--tf-blush); }
.tf-toggle button { padding: 8px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--tf-tomato); font: 600 15px var(--tf-display); cursor: pointer; white-space: nowrap; }
.tf-toggle button[aria-pressed="true"] { background: var(--tf-tomato); color: var(--tf-paper); }

/* FAQ */
.tf-faq details { padding: 18px 0; border-bottom: 1px solid var(--tf-line); }
.tf-faq summary { display: flex; justify-content: space-between; gap: 16px; font-family: var(--tf-display); font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.tf-faq summary::after { content: "+"; color: var(--tf-tomato); font-size: 24px; line-height: 1; }
.tf-faq details[open] summary::after { content: "\2013"; }
.tf-faq p { margin: 10px 0 0; color: var(--tf-soft); }

/* Article */
.tf-article { font-size: 18px; line-height: 1.75; }
.tf-article > * + * { margin-top: 1.1em; }
.tf-article h2 { margin-top: 1.8em; font-family: var(--tf-display); font-size: 30px; font-weight: 800; letter-spacing: var(--tf-tracking-tight); line-height: 1.15; }
.tf-article p { margin-bottom: 0; }
.tf-article ul, .tf-article ol { padding-left: 1.3em; }
.tf-article li + li { margin-top: .4em; }
.tf-article li::marker { color: var(--tf-tomato); font-family: var(--tf-display); font-weight: 800; }
.tf-article blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--tf-tomato); font-family: var(--tf-display); font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.tf-note { padding: 20px 22px; border-radius: var(--tf-radius); background: var(--tf-sky); font-size: 16px; }
.tf-note strong { color: var(--tf-sky-deep); font-family: var(--tf-display); }
.tf-figure { margin: 2em 0; }
.tf-figure figcaption { margin-top: 18px; color: var(--tf-faint); font-size: 14px; font-style: italic; text-align: center; }
.tf-author { display: flex; gap: 22px; align-items: center; }

/* Toast: the small rounded box with a plain and a leaf button */
.tf-toast { max-width: 360px; padding: 18px; border-radius: var(--tf-radius); background: var(--tf-paper); box-shadow: 0 6px 30px rgba(34, 28, 27, .18); font-size: 15px; }
.tf-toast .tf-actions { margin-top: 14px; }
.tf-toast .tf-btn { flex: 1; padding: 9px 14px; font-size: 15px; }

/* Footer */
.tf-footer { padding-block: 56px 40px; background: var(--tf-ink); color: rgba(255, 255, 255, .72); font-size: var(--tf-text-small); }
.tf-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.tf-footer h4 { margin: 0 0 12px; color: var(--tf-paper); font-family: var(--tf-display); font-size: 16px; font-weight: 600; }
.tf-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tf-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.tf-footer a:hover { color: var(--tf-paper); }
.tf-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }

/* Phones */
@media (max-width: 900px) {
  .tf-band__links, .tf-search { display: none; }
  .tf-band__inner { justify-content: space-between; min-height: 64px; }
  .tf-split, .tf-hero { grid-template-columns: 1fr; gap: 40px; }
  .tf-grid, .tf-plans { grid-template-columns: 1fr; }
  .tf-footer__grid { grid-template-columns: 1fr 1fr; }
  .tf-plan--pick { transform: none; }
}
@media (max-width: 560px) {
  :root { --tf-gutter: 18px; }
  .tf-post { grid-template-columns: 84px 1fr; gap: 20px; }
  .tf-post .tf-frame { width: 84px; border-width: 4px; border-radius: 14px; }
  .tf-stack { width: 280px; height: 280px; }
  .tf-choice { grid-template-columns: 1fr; }
  .tf-footer__grid { grid-template-columns: 1fr; }
}
