/* Flavio Fontes — Direção de Reels · component styles.
   Every value is a token from tokens.css. Responsiveness is by CONTAINER width
   (.ff-page is the container), so a 390 frame and a desktop frame render side by side. */

/* ---------- base ---------- */
html, body { margin: 0; background: var(--background); color: var(--text-primary); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.ff-page { container: ff / inline-size; background: var(--background); color: var(--text-primary); font-family: var(--font-body); font-size: 17px; line-height: 1.55; position: relative; }
.ff-page *, .ff-page *::before, .ff-page *::after { box-sizing: border-box; }
.ff-page img { max-width: 100%; display: block; }
.ff-page :focus { outline: none; }
.ff-page :focus-visible, .ff-page .is-focus { outline: none; box-shadow: var(--focus-ring); }

/* ---------- fluid type: 360 → 1280 container width (tokens hold the 360 values) ---------- */
.ff-page .display, .ff-page .h1, .ff-page .h2, .ff-page .h3 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--text-primary); text-wrap: balance; }
.ff-page .display { font-size: clamp(44px, calc(44px + 44 * ((100cqi - 360px) / 920)), 88px); line-height: 1.0; letter-spacing: -0.01em; }
.ff-page .h1 { font-size: clamp(36px, calc(36px + 28 * ((100cqi - 360px) / 920)), 64px); line-height: 1.06; letter-spacing: -0.01em; }
.ff-page .h2 { font-size: clamp(28px, calc(28px + 16 * ((100cqi - 360px) / 920)), 44px); line-height: 1.12; letter-spacing: -0.005em; }
.ff-page .h3 { font-size: clamp(22px, calc(22px + 6 * ((100cqi - 360px) / 920)), 28px); line-height: 1.2; }
.ff-page .body-lg { margin: 0; font-size: clamp(19px, calc(19px + 2 * ((100cqi - 360px) / 920)), 21px); line-height: 1.5; color: var(--text-secondary); }
.ff-page .body { margin: 0; font-size: clamp(17px, calc(17px + 1 * ((100cqi - 360px) / 920)), 18px); line-height: 1.55; }
.ff-page .small { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.ff-page .label { font-family: var(--font-hud); font-size: clamp(12px, calc(12px + 1 * ((100cqi - 360px) / 920)), 13px); line-height: 1.3; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.ff-page .timecode { font-family: var(--font-hud); font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.ff-page .step-number { font-family: var(--font-hud); font-size: clamp(28px, calc(28px + 8 * ((100cqi - 360px) / 920)), 36px); line-height: 1; font-weight: 500; letter-spacing: 0.04em; color: var(--text-secondary); }
.ff-page .signature { font-family: var(--font-signature); font-size: clamp(36px, calc(36px + 8 * ((100cqi - 360px) / 920)), 44px); line-height: 1.1; color: var(--text-primary); font-weight: 400; }

/* ---------- layout ---------- */
.ff-wrap { width: 100%; max-width: calc(var(--measure-wide) + 2 * var(--space-4)); margin: 0 auto; padding: 0 var(--space-4); }
.ff-wrap--read { max-width: calc(var(--measure-reading) + 2 * var(--space-4)); }
.ff-section { padding: var(--space-16) 0; }
.ff-section--surface { background: var(--surface); }
.ff-stack { display: flex; flex-direction: column; gap: var(--space-4); }
@container ff (min-width: 1000px) {
  .ff-wrap { padding: 0 var(--space-8); max-width: calc(var(--measure-wide) + 2 * var(--space-8)); }
  .ff-wrap--read { max-width: calc(var(--measure-reading) + 2 * var(--space-8)); }
  .ff-section { padding: var(--space-30) 0; }
}

/* ---------- icons ---------- */
.ff-icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ff-icon path, .ff-icon circle, .ff-icon rect, .ff-icon polyline, .ff-icon line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- motion ---------- */
@keyframes ff-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ff-rise { animation: ff-rise var(--dur-slow) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  .ff-page *, .ff-page *::before, .ff-page *::after { animation-duration: 0ms !important; animation-delay: 0ms !important; transition-duration: 0ms !important; scroll-behavior: auto !important; }
  .ff-rise { animation: none; }
}

/* ---------- buttons ---------- */
.ff-btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; min-width: var(--tap-min); padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; text-decoration: none; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; user-select: none; }
.ff-btn--block { display: flex; width: 100%; }
.ff-btn--sm { min-height: var(--tap-min); padding: 0 var(--space-4); font-size: 16px; border-radius: var(--radius-sm); }
.ff-btn .ff-icon { transition: transform var(--dur-fast) var(--ease-out); }
/* primary: green fill, carbon text */
.ff-btn--primary { background: var(--accent-positive); color: var(--on-accent); border-color: var(--accent-positive); }
.ff-btn--primary:hover, .ff-btn--primary.is-hover { box-shadow: inset 0 0 0 2px var(--on-accent); }
.ff-btn--primary:hover .ff-icon--arrow, .ff-btn--primary.is-hover .ff-icon--arrow { transform: translateX(3px); }
.ff-btn--primary:focus-visible, .ff-btn--primary.is-focus { box-shadow: var(--focus-ring); }
.ff-btn--primary:active, .ff-btn--primary.is-active { transform: translateY(1px); box-shadow: inset 0 2px 0 var(--on-accent); }
/* secondary: gray outline */
.ff-btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.ff-btn--secondary:hover, .ff-btn--secondary.is-hover { background: var(--surface-raised); }
.ff-btn--secondary:focus-visible, .ff-btn--secondary.is-focus { box-shadow: var(--focus-ring); }
.ff-btn--secondary:active, .ff-btn--secondary.is-active { transform: translateY(1px); background: var(--surface); }
/* text link */
.ff-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap-min); color: var(--text-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--text-secondary); text-decoration-thickness: 1px; text-underline-offset: 5px; border-radius: var(--radius-sm); transition: text-decoration-color var(--dur-fast) var(--ease-out), text-decoration-thickness var(--dur-fast) var(--ease-out); cursor: pointer; background: none; border: 0; padding: 0 2px; font-family: inherit; font-size: inherit; }
.ff-link:hover, .ff-link.is-hover { text-decoration-color: var(--text-primary); text-decoration-thickness: 2px; }
.ff-link:active, .ff-link.is-active { color: var(--text-secondary); }
/* disabled — every variant */
.ff-btn:disabled, .ff-btn[aria-disabled="true"], .ff-link[aria-disabled="true"] { background: var(--surface-raised); border-color: var(--surface-raised); color: var(--text-secondary); box-shadow: none; transform: none; cursor: not-allowed; }
.ff-link[aria-disabled="true"] { background: none; text-decoration-color: var(--surface-raised); }

/* ---------- HUD label / eyebrow ---------- */
.ff-hud { display: inline-flex; align-items: center; gap: var(--space-2); }
.ff-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); flex: none; background: var(--text-primary); }
.ff-dot--positive { background: var(--accent-positive); }
.ff-dot--negative { background: var(--accent-negative); }
.ff-dot--sm { width: 6px; height: 6px; }

/* ---------- pills & tags ---------- */
.ff-pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-family: var(--font-hud); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; white-space: nowrap; background: var(--surface-raised); color: var(--text-primary); border: 1px solid transparent; }
.ff-pill--outline { background: transparent; border-color: var(--border-strong); color: var(--text-secondary); }
.ff-pill--positive { background: linear-gradient(90deg, var(--green), var(--green-tone-b)); color: var(--on-accent); }
.ff-pill--negative { background: var(--accent-negative); color: var(--on-accent); }
.ff-glass { background: var(--glass-veil); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(0.85); backdrop-filter: blur(var(--blur-glass)) saturate(0.85); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass); color: var(--text-primary); }
.ff-pill.ff-glass { background: var(--glass-veil); }
button.ff-pill { cursor: pointer; font-family: var(--font-hud); min-height: var(--tap-min); transition: background-color var(--dur-fast) var(--ease-out); }
button.ff-pill:hover, button.ff-pill.is-hover { background: var(--border-strong); color: var(--on-accent); }
button.ff-pill[aria-pressed="true"] { background: var(--text-primary); color: var(--on-accent); }
button.ff-pill:disabled { opacity: 1; background: transparent; color: var(--text-secondary); border: 1px dashed var(--surface-raised); cursor: not-allowed; }

/* ---------- highlighter ---------- */
.ff-hl { background: var(--accent-positive); color: var(--on-accent); padding: 0 0.14em; margin: 0 -0.02em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ff-hl--negative { background: var(--accent-negative); }

/* ---------- signature: progress mark ---------- */
.ff-prog { display: flex; align-items: center; gap: var(--space-3); width: 100%; }
.ff-prog__track { position: relative; flex: 1; height: 1px; background: var(--border); }
.ff-prog__played { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text-secondary); }
.ff-prog__dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: var(--radius-pill); background: var(--accent-positive); }
.ff-prog--quiet .ff-prog__dot { background: var(--text-primary); }
.ff-prog__tc { flex: none; }
.ff-prog--divider { padding: var(--space-6) 0; }
.ff-prog--card { gap: var(--space-2); }
.ff-prog--card .ff-prog__track { height: 2px; background: var(--glass-edge); }
.ff-prog--card .ff-prog__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.ff-prog--mark { width: auto; gap: var(--space-2); }
.ff-prog--mark .ff-prog__track { flex: none; width: 36px; height: 2px; }
.ff-prog--mark .ff-prog__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

/* ---------- top bar ---------- */
.ff-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--border); background: var(--background); }
.ff-namemark { display: inline-flex; flex-direction: column; gap: 6px; color: var(--text-primary); text-decoration: none; min-height: var(--tap-min); justify-content: center; border-radius: var(--radius-sm); }
.ff-namemark__name { font-family: var(--font-display); font-size: 19px; line-height: 1; letter-spacing: 0; }
@container ff (min-width: 1000px) { .ff-topbar { padding: var(--space-3) var(--space-8); min-height: 76px; } .ff-namemark__name { font-size: 22px; } }

/* ---------- sticky bottom CTA ---------- */
.ff-sticky { position: sticky; bottom: 0; z-index: 20; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: var(--glass-veil); -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass)); border-top: 1px solid var(--glass-edge); display: flex; align-items: center; gap: var(--space-3); transition: transform var(--dur-base) var(--ease-in-out), opacity var(--dur-base) var(--ease-in-out); }
.ff-sticky__note { flex: 1; min-width: 0; }
.ff-sticky__note .label { display: block; }
.ff-sticky .ff-btn { flex: none; }
.ff-sticky.is-yielding { transform: translateY(110%); opacity: 0; pointer-events: none; }
@container ff (min-width: 1000px) { .ff-sticky { display: none; } }

/* ---------- section header ---------- */
.ff-sh { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); max-width: var(--measure-reading); }
.ff-sh--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.ff-sh .body-lg { max-width: 60ch; }
@container ff (min-width: 1000px) { .ff-sh { margin-bottom: var(--space-10); gap: var(--space-4); } }

/* ---------- placeholders (imagery) ---------- */
.ff-ph { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius-lg); color: var(--text-secondary); }
.ff-ph--photo { background: radial-gradient(120% 80% at 50% 22%, var(--surface-raised) 0%, var(--surface) 62%); }
.ff-ph--photo svg.ff-ph__fig { position: absolute; left: 50%; bottom: 0; width: 70%; transform: translateX(-50%); }
.ff-ph__fig .fig { fill: var(--background); }
.ff-ph__fig .rim { fill: none; stroke: var(--border); stroke-width: 1.2; }
.ff-ph--poster { background: var(--surface); }
.ff-ph--poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 55% at 50% 38%, var(--surface-raised) 0%, transparent 70%); }
.ff-ph--illus { background: var(--surface); }
.ff-ph--illus svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ff-ph--illus .l { fill: none; stroke: var(--text-secondary); stroke-width: 1.4; }
.ff-ph--illus .f { fill: var(--surface-raised); }
.ff-ph__tag { position: absolute; left: var(--space-3); bottom: var(--space-3); }
.ff-grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: screen; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .95  0 0 0 0 .95  0 0 0 0 .94  0 0 0 .9 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }

/* ---------- video frame 9:16 ---------- */
.ff-video { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.ff-video__frame { position: relative; aspect-ratio: 9 / 16; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.ff-video__frame > .ff-ph, .ff-video__frame > img, .ff-video__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ff-video__top { position: absolute; top: var(--space-3); left: var(--space-3); right: var(--space-3); display: flex; justify-content: space-between; gap: var(--space-2); z-index: 2; }
.ff-video__bottom { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 2; }
.ff-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: var(--radius-pill); display: grid; place-items: center; cursor: pointer; z-index: 2; padding: 0; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.ff-play .ff-icon { width: 24px; height: 24px; margin-left: 3px; }
.ff-play:hover, .ff-play.is-hover { transform: scale(1.06); }
.ff-play:active, .ff-play.is-active { transform: scale(.97); }
.ff-play:disabled { cursor: not-allowed; color: var(--text-secondary); }
.ff-video__cap { display: flex; flex-direction: column; gap: var(--space-1); padding: 0 var(--space-1); }
.ff-video__title { font-family: var(--font-body); font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--text-primary); margin: 0; }

/* ---------- portfolio grid ---------- */
.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-3); }
.ff-grid .ff-video__title { font-size: 16px; }
.ff-grid .ff-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
@container ff (min-width: 640px) { .ff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); } }
@container ff (min-width: 1000px) { .ff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- hero (portfolio) ---------- */
.ff-hero { position: relative; overflow: hidden; padding: var(--space-6) 0 var(--space-16); background: var(--background); }
.ff-hero__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 45% at 50% 0%, #33333399 0%, transparent 70%); }
.ff-hero__in { position: relative; display: grid; gap: var(--space-5); }
.ff-hero__photo { aspect-ratio: 4 / 5; max-height: 280px; width: 100%; object-position: 50% 20%; }
.ff-hero__text { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.ff-hero__cta { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
@container ff (min-width: 1000px) {
  .ff-hero { padding: var(--space-24) 0 var(--space-30); }
  .ff-hero__in { grid-template-columns: 5fr 6fr; align-items: center; gap: var(--space-16); }
  .ff-hero__photo { max-height: 620px; order: 2; }
  .ff-hero__cta { flex-direction: row; width: auto; align-items: center; }
}

/* ---------- before / after ---------- */
.ff-ba { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--space-2); }
.ff-ba::-webkit-scrollbar { display: none; }
.ff-ba__item { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.ff-ba__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ff-ba__frame > .ff-ph, .ff-ba__frame > img, .ff-ba__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ff-ba__item--before .ff-ba__frame > * { filter: grayscale(1) contrast(1.15) brightness(.82); }
.ff-ba__item--before .ff-ba__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 80px 10px var(--surface); }
.ff-ba__stamp { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 3; }
.ff-ba__hint { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
@container ff (min-width: 640px) { .ff-ba { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; gap: var(--space-6); } .ff-ba__hint { display: none; } }

/* ---------- steps ---------- */
.ff-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.ff-step { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--border); }
.ff-step:last-child { border-bottom: 1px solid var(--border); }
.ff-step__body { display: flex; flex-direction: column; gap: var(--space-2); }
@container ff (min-width: 1000px) {
  .ff-steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-6); }
  .ff-step { grid-template-columns: 1fr; border-bottom: 0 !important; padding: var(--space-6) 0 0; }
}

/* ---------- staircase ---------- */
.ff-stair { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ff-stair__step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.ff-stair__step:nth-child(1) { margin-right: 24%; }
.ff-stair__step:nth-child(2) { margin-left: 8%; margin-right: 16%; }
.ff-stair__step:nth-child(3) { margin-left: 16%; margin-right: 8%; }
.ff-stair__step:nth-child(4) { margin-left: 24%; }
.ff-stair__step:nth-child(5) { margin-left: 24%; }
.ff-stair__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.ff-stair__step--goal { border-color: var(--border-strong); }
@container ff (min-width: 1000px) {
  .ff-stair { flex-direction: row; align-items: flex-end; gap: var(--space-3); }
  .ff-stair__step { flex: 1; margin: 0 !important; min-height: 180px; }
  .ff-stair__step:nth-child(2) { min-height: 230px; }
  .ff-stair__step:nth-child(3) { min-height: 280px; }
  .ff-stair__step:nth-child(4) { min-height: 330px; }
  .ff-stair__step:nth-child(5) { min-height: 380px; }
}

/* ---------- bio ---------- */
.ff-bio { display: grid; gap: var(--space-6); }
.ff-bio__photo { aspect-ratio: 1 / 1; width: 100%; max-width: 320px; }
.ff-bio__text { display: flex; flex-direction: column; gap: var(--space-4); }
@container ff (min-width: 640px) { .ff-bio { grid-template-columns: 280px 1fr; align-items: start; gap: var(--space-10); } }

/* ---------- contact & final CTA ---------- */
.ff-contact { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.ff-contact--center { align-items: center; text-align: center; margin: 0 auto; }
.ff-contact .ff-btn { margin-top: var(--space-2); }
@container ff (max-width: 639px) { .ff-contact .ff-btn { width: 100%; } }

/* ---------- footer ---------- */
.ff-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-12) 0; }
.ff-footer__grid { display: grid; gap: var(--space-8); }
.ff-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ff-footer__legal { border-top: 1px solid var(--border); padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
@container ff (min-width: 1000px) { .ff-footer { padding: var(--space-16) 0; } .ff-footer__grid { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- sales hero ---------- */
.ff-shero { position: relative; overflow: hidden; padding: var(--space-12) 0 var(--space-16); }
.ff-shero__in { position: relative; display: grid; gap: var(--space-8); }
.ff-shero__text { display: flex; flex-direction: column; gap: var(--space-4); }
.ff-shero__video { width: 100%; max-width: 340px; margin: 0 auto; }
.ff-shero__cta { display: flex; flex-direction: column; gap: var(--space-3); }
@container ff (min-width: 1000px) {
  .ff-shero { padding: var(--space-24) 0 var(--space-30); }
  .ff-shero__in { grid-template-columns: 7fr 4fr; align-items: center; gap: var(--space-16); }
  .ff-shero__video { max-width: 380px; }
  .ff-shero__cta { flex-direction: row; align-items: center; }
}

/* ---------- problem ---------- */
.ff-problem__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ff-problem__item { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.ff-problem__item:last-child { border-bottom: 1px solid var(--border); }
.ff-problem__item .h3 { font-size: 20px; }

/* ---------- episode list ---------- */
.ff-eps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ff-ep { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--space-3); min-height: 76px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
a.ff-ep:hover, a.ff-ep.is-hover { background: var(--surface-raised); }
a.ff-ep:active, a.ff-ep.is-active { background: var(--background); }
.ff-ep__icon { width: 44px; height: 44px; border-radius: var(--radius-pill); display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text-primary); }
.ff-ep__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ff-ep__title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.ff-ep__meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.ff-ep--locked { background: transparent; border-style: dashed; color: var(--text-secondary); cursor: not-allowed; }
.ff-ep--locked .ff-ep__icon { border-color: var(--surface-raised); color: var(--text-secondary); }
.ff-ep--locked .ff-ep__title { color: var(--text-secondary); font-weight: 500; }
.ff-ep--current { border-color: var(--border-strong); background: var(--surface-raised); }
.ff-ep--current .ff-ep__icon { background: var(--text-primary); color: var(--on-accent); border-color: var(--text-primary); }
.ff-ep--watched .ff-ep__icon { background: var(--surface-raised); border-color: var(--surface-raised); color: var(--text-secondary); }
.ff-ep--watched .ff-ep__title { color: var(--text-secondary); }
.ff-ep .ff-prog { grid-column: 2 / 4; }

/* ---------- offer & pricing ---------- */
.ff-offer { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-5); box-shadow: var(--shadow-raised); max-width: 560px; }
.ff-offer__head { display: flex; flex-direction: column; gap: var(--space-2); }
.ff-offer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ff-offer__list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; }
.ff-offer__list li .ff-icon { margin-top: 3px; }
.ff-offer__list--out li { color: var(--text-secondary); }
.ff-offer__price { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.ff-offer__amount { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--text-primary); }
.ff-offer__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@container ff (min-width: 640px) { .ff-offer { padding: var(--space-8); } .ff-offer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.ff-offer__cols { display: flex; flex-direction: column; gap: var(--space-5); }

.ff-pricing { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.ff-plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.ff-plan--featured { border-color: var(--border-strong); box-shadow: var(--shadow-raised); }
.ff-plan__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ff-plan__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border); font-size: 16px; }
.ff-plan__row span:last-child { text-align: right; color: var(--text-primary); font-weight: 600; }
.ff-plan__row span:first-child { color: var(--text-secondary); }
@container ff (min-width: 640px) { .ff-pricing { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); } .ff-plan { padding: var(--space-6); } }

/* ---------- no-promise & guarantee ---------- */
.ff-nopromise { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.ff-nopromise ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.ff-nopromise li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); font-size: 17px; }
.ff-nopromise li::before { content: "—"; color: var(--text-secondary); font-family: var(--font-hud); }
@container ff (min-width: 640px) { .ff-nopromise { padding: var(--space-8); } }
.ff-guarantee { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ff-guarantee li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); }
.ff-guarantee__icon { width: 44px; height: 44px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--surface-raised); color: var(--text-primary); }
.ff-guarantee li > div { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
@container ff (min-width: 640px) { .ff-guarantee { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.ff-faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.ff-faq details { border-bottom: 1px solid var(--border); }
.ff-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding: var(--space-3) var(--space-1); cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.35; border-radius: var(--radius-sm); transition: background-color var(--dur-fast) var(--ease-out); }
.ff-faq summary::-webkit-details-marker { display: none; }
.ff-faq summary:hover, .ff-faq summary.is-hover { background: var(--surface); }
.ff-faq summary .ff-icon { transition: transform var(--dur-base) var(--ease-in-out); color: var(--text-secondary); }
.ff-faq details[open] summary .ff-icon { transform: rotate(180deg); }
.ff-faq__a { padding: 0 var(--space-1) var(--space-5); color: var(--text-secondary); animation: ff-rise var(--dur-base) var(--ease-out) both; }
.ff-faq__a p { margin: 0 0 var(--space-3); }

/* ---------- testimonial ---------- */
.ff-quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-5); }
.ff-quote blockquote { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.ff-quote figcaption { display: flex; align-items: center; gap: var(--space-3); }
.ff-quote__photo { width: 48px; height: 48px; border-radius: var(--radius-pill); flex: none; }
.ff-quote__who { display: flex; flex-direction: column; gap: 2px; }

/* ---------- legal ---------- */
.ff-legal { font-size: 15px; line-height: 1.5; color: var(--text-secondary); margin: 0; }
.ff-legal strong { font-family: var(--font-hud); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin-right: var(--space-1); }

/* ---------- preview frames (documentation only) ---------- */
.ff-frames { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6); background: var(--surface); }
.ff-frames__row { display: flex; flex-direction: column; gap: var(--space-2); }
.ff-frames .ff-page { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ff-frames__tag { font-family: var(--font-hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.ff-pad { padding: var(--space-6) var(--space-4); }
.ff-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.ff-statecol { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.ff-phone { width: 390px; height: 844px; overflow-y: auto; overflow-x: hidden; border-radius: 28px; border: 1px solid var(--border-strong); background: var(--background); scrollbar-width: thin; }
.ff-desk { width: 1280px; height: 800px; overflow-y: auto; overflow-x: hidden; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--background); }
