/* Focus Arena — simple beige home page. One stylesheet, no tokens dependency. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2"); }

:root {
  --bg: #F4EDE0;
  --bg-deep: #EBE2D1;
  --card: #FAF6EC;
  --ink: #2B2620;
  --ink-2: #6B6256;
  --line: rgba(43, 38, 32, .12);
  --accent: #2B2620;
  --accent-ink: #FAF6EC;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: clamp(10px, 2.6vh, 20px) var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--font); letter-spacing: -.01em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 38, 32, .2); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(12px, 3.5vh, 40px) 0 clamp(24px, 4vh, 44px); }
.hero h1 {
  margin: 0 auto; max-width: 14ch;
  font-size: clamp(2.6rem, min(1.3rem + 5.6vw, 11vh), 5.25rem); font-weight: 650;
  line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}
.hero p { margin: clamp(12px, 2vh, 20px) auto clamp(18px, 3vh, 28px); max-width: 34ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); text-wrap: balance; }
.hero .btn { padding: clamp(12px, 2.2vh, 16px) 30px; font-size: 17px; }
.hero small { display: block; margin-top: clamp(6px, 1.2vh, 10px); font-size: 14px; color: var(--ink-2); }

/* ---------- demo video ---------- */
.demo {
  width: min(960px, 100% - 2 * var(--pad)); margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(43, 38, 32, .25);
  overflow: hidden;
}
.demo { position: relative; }
.demo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.demo-toggle { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 38, 32, .62); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .25s ease, transform .2s ease; }
.demo-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.demo-toggle .i-play, .demo-toggle.is-paused .i-pause { display: none; }
.demo-toggle.is-paused .i-play { display: block; }
.demo-toggle:active { transform: scale(.94); }
.demo-toggle.is-paused { width: 64px; height: 64px; right: calc(50% - 32px); bottom: calc(50% - 32px); background: rgba(43, 38, 32, .78); }
.demo-toggle.is-paused svg { width: 30px; height: 30px; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* hero entrance */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1, .hero p, .hero .btn, .hero small { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero p { animation-delay: .12s; }
.hero .btn { animation-delay: .24s; }
.hero small { animation-delay: .34s; }

/* ---------- how it works: a walkthrough that follows the scroll (phones and desktop) ---------- */
.eyebrow { margin: 0 0 clamp(14px, 3vh, 36px); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.walk { margin-top: clamp(72px, 11vw, 140px); }
.walk-in { width: min(1180px, 100% - 2 * var(--pad)); margin-inline: auto; }
.walk-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.walk-steps .n { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.walk-steps h3 { margin: 6px 0 10px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.4rem); font-weight: 650; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.walk-steps p { margin: 0; max-width: 30ch; font-size: clamp(1rem, .96rem + .3vw, 1.2rem); color: var(--ink-2); }
.walk-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 40px 80px -40px rgba(43, 38, 32, .45), 0 0 0 1px var(--line); }
.walk-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.walk-stage img.is-on { opacity: 1; transform: none; }
.walk-bar { display: none; }

/* no script: a plain stack with a picture under each step */
.walk:not(.walk-js) .walk-stage { display: none; }
.walk:not(.walk-js) .walk-steps li { padding-bottom: clamp(48px, 10vw, 72px); }
.walk:not(.walk-js) .m-img { display: block; width: 100%; height: auto; margin-top: 22px; border-radius: 16px; box-shadow: 0 24px 50px -30px rgba(43, 38, 32, .45), 0 0 0 1px var(--line); }
.walk-js .m-img { display: none; }

/* with script: the page holds still while the steps change */
.walk.walk-js { height: 300vh; height: 300svh; }
.walk-js .walk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.walk-js .walk-in { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(14px, 2.4svh, 22px); }
.walk-js .walk-copy { display: contents; }
.walk-js .eyebrow { order: 0; margin: 0; }
.walk-js .walk-stage { order: 1; border-radius: 16px; box-shadow: 0 24px 50px -30px rgba(43, 38, 32, .45), 0 0 0 1px var(--line); }
.walk-js .walk-steps { order: 2; display: grid; }
.walk-js .walk-steps li { grid-area: 1 / 1; padding: 0; opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.walk-js .walk-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.walk-js .walk-steps p { max-width: 36ch; }
.walk-js .walk-bar { order: 3; display: block; width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.walk-js .walk-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.33); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

@media (min-width: 860px) {
  .walk.walk-js { height: 320vh; }
  .walk-js .walk-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 72px); row-gap: 0; align-items: center; }
  .walk-js .walk-copy { display: block; order: 0; }
  .walk-js .eyebrow { margin: 0 0 clamp(20px, 3vh, 36px); }
  .walk-js .walk-stage { order: 0; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(43, 38, 32, .45), 0 0 0 1px var(--line); }
  .walk-js .walk-steps li { transform: translateY(26px); }
  .walk-js .walk-steps li.is-on { transform: none; }
  .walk-js .walk-bar { margin-top: clamp(28px, 5vh, 48px); }
}

/* ---------- Peep grows ---------- */
.evo { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 11vw, 140px); }
.evo-head { max-width: 460px; margin-bottom: clamp(8px, 2vw, 24px); }
.evo-head h2 { margin: 0 0 10px; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); font-weight: 650; line-height: 1; letter-spacing: -.045em; }
.evo-head p { margin: 0; color: var(--ink-2); font-size: 1.15rem; }
.peeps { list-style: none; margin: 0; padding: 0 0 18px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(0px, 2vw, 28px); border-bottom: 2px solid var(--ink); position: relative; }
.peeps li { flex: none; text-align: center; position: relative; }
.peeps img { width: 100%; height: auto; }
.peeps span { position: absolute; left: 50%; bottom: -46px; translate: -50% 0; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.peeps .p1 { width: clamp(120px, 20vw, 240px); }
.peeps .p2 { width: clamp(150px, 27vw, 330px); }
.peeps .p3 { width: clamp(190px, 38vw, 470px); }
.peeps { margin-bottom: 56px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js .peeps li.is-in img { animation: bob 4.2s ease-in-out infinite; animation-delay: calc(var(--d, 0ms) + .9s); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(72px, 11vw, 140px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.faq h2 { margin: 0; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); font-weight: 650; line-height: 1; letter-spacing: -.045em; position: sticky; top: 32px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; transition: color .2s ease; }
.qa summary:hover { color: var(--ink-2); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: 45deg; transition: rotate .3s ease, margin-top .3s ease; }
.qa details[open] summary::after { rotate: 225deg; margin-top: -2px; }
.qa p { margin: 0 0 24px; max-width: 58ch; color: var(--ink-2); }
.qa a { text-underline-offset: 3px; }
.qa details { interpolate-size: allow-keywords; }
.qa details::details-content { block-size: 0; overflow: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }

/* ---------- final call ---------- */
.end { text-align: center; padding: 0 0 clamp(72px, 10vw, 128px); }
.end h2 { margin: 0 0 28px; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
}
@media (max-width: 640px) {
  .nav .btn { display: none; }
  .demo { border-radius: 18px; }
  .peeps span { bottom: -40px; font-size: .95rem; }
  .peeps .p1 { width: 22vw; } .peeps .p2 { width: 29vw; } .peeps .p3 { width: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .hero h1, .hero p, .hero .btn, .hero small { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .walk-stage img, .walk-js .walk-steps li, .walk-js .walk-bar i, .qa details::details-content { transition: none; }
  .js .peeps li.is-in img { animation: none; }
}
