/* ============================================================
   Residente Online — Landing
   Hand-crafted design system. Light theme locked.
   Accent: emerald (brand). Neutrals: slate.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --brand: #0e9f76;
  --brand-600: #0d916c;
  --brand-700: #0a7a5b;
  --cta: #0b8463;          /* white text passes AA (4.67:1) */
  --cta-hover: #097253;
  --wa: #17914a;           /* WhatsApp-style green, AA-safe (4.05:1) */
  --wa-hover: #14803f;
  --brand-ink: #064236;
  --brand-tint: #e7f6f0;
  --brand-tint-2: #d4efe5;

  /* neutrals (cool slate) */
  --ink: #0c1c2b;          /* near-black, warm-cool */
  --ink-2: #2b3b4a;
  --muted: #516474;
  --muted-2: #5f7384;
  --line: #e4eaef;
  --line-2: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --surface-3: #eef4f7;
  --bg: #f4f8fa;

  /* deep section (the one dark band, within the light theme) */
  --deep: #07221c;
  --deep-2: #0a2c24;

  /* support */
  --amber: #f0a500;
  --rose: #e2574c;
  --shadow-color: 210 30% 25%;

  /* radius scale (locked) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);

  /* easing */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.32, .72, 0, 1);

  /* soft diffused ambient shadows (Soft Structuralism) */
  --amb-sm: 0 1px 2px hsl(var(--shadow-color)/.06), 0 8px 20px -12px hsl(var(--shadow-color)/.28);
  --amb-md: 0 1px 2px hsl(var(--shadow-color)/.05), 0 22px 50px -30px hsl(var(--shadow-color)/.4);
  --amb-lg: 0 2px 4px hsl(var(--shadow-color)/.05), 0 40px 90px -44px hsl(190 40% 22% / .42);
  --hi: inset 0 1px 0 hsl(0 0% 100% / .7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- Type scale ---------- */
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.028em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.h-display { font-size: clamp(2.1rem, 4vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -0.02em; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--muted); line-height: 1.55; max-width: 38ch; text-wrap: pretty; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-700); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
section[id], [id="top"] { scroll-margin-top: 86px; }
.section-head { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { max-width: 54ch; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary {
  background: var(--cta); color: #fff;
  box-shadow: 0 1px 1px hsl(var(--shadow-color) / .12), 0 10px 26px -8px hsl(160 60% 24% / .55);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 18px 36px -10px hsl(160 60% 24% / .6); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-tint-2); transform: translateY(-2px); background: var(--surface-2); }
.btn-ghost:active { transform: translateY(0) scale(.985); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px hsl(140 60% 30% / .6); }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Button-in-button: trailing arrow nested in its own circle, magnetic on hover */
.btn-arrow { padding-right: 10px; gap: 14px; }
.btn-circ {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: hsl(0 0% 100% / .18); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .14);
  transition: transform .55s var(--ease-soft), background .3s ease;
}
.btn-circ svg { width: 16px; height: 16px; }
.btn-arrow:hover .btn-circ { transform: translate(3px, -1px) scale(1.06); background: hsl(0 0% 100% / .28); }
.btn-block.btn-arrow { justify-content: space-between; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  background: var(--cta); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: var(--r-pill);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-top: 12px;
  transition: padding .35s var(--ease-soft);
}
.site-header.scrolled { padding-top: 6px; }
.nav {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 18px 8px 16px;
  border-radius: var(--r-pill);
  background: hsl(200 40% 99% / .72); backdrop-filter: saturate(170%) blur(16px);
  box-shadow: var(--amb-sm), inset 0 0 0 1px hsl(0 0% 100% / .55);
  transition: box-shadow .35s var(--ease-soft), background .35s var(--ease-soft);
}
.site-header.scrolled .nav { background: hsl(200 40% 99% / .85); box-shadow: var(--amb-md), inset 0 0 0 1px var(--line-2); }
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.035em; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--brand-700); font-weight: 800; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: 2px; min-width: 0; }
.nav-links a {
  font-size: .88rem; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  padding: 7px 9px; border-radius: var(--r-pill); transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--surface-3); color: var(--brand-700); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-cta .btn { min-height: 46px; padding: 0 18px; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; padding: 0 8px 0 14px; height: 58px; }
  .brand { font-size: 1.05rem; letter-spacing: -0.035em; }
  .brand img { width: 26px; height: 26px; }
  .nav-cta .btn-primary { padding: 11px 16px; font-size: .9rem; }
  /* landing pages have long header CTAs that overflow a phone; hero CTA carries it on mobile */
  body.lp .nav-cta .btn-primary { display: none; }
  /* Root cause of the mobile clipping: nowrap content (long CTA labels, the
     inline-flex proof pill) sets a min-content wider than the phone, and grid/
     flex items (min-width:auto) refuse to shrink below it -> whole column
     overflows and gets clipped. Let them wrap and let the column shrink. */
  .btn { white-space: normal; }
  .hero-actions .btn { width: 100%; }
  .hero-copy, .hero-grid { min-width: 0; }
  .hero-proof { max-width: 100%; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: none; }
.hero-copy .lead { max-width: 40ch; }
.hero h1 { letter-spacing: -0.035em; }
.hero h1 { margin-top: 22px; }
.hero h1 .accent { color: var(--brand-700); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em;
  background: var(--brand-tint-2); z-index: -1; border-radius: 4px;
}
/* Mobile: the hero accent must wrap (long accents like "sem planilha e sem dor de
   cabeça." overflow a phone). Placed AFTER the base .accent rule above so it wins
   the source-order tie — media queries don't add specificity. */
@media (max-width: 600px) {
  .hero h1 .accent {
    white-space: normal;
    background: linear-gradient(transparent 60%, var(--brand-tint-2) 60%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    border-radius: 3px;
  }
  .hero h1 .accent::after { display: none; }
}
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--muted); font-size: .94rem; font-weight: 600; }
.hero-assure span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assure svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* hero media: app demo video in a device-ish frame */
.hero-media { position: relative; }
.hero-stage {
  position: relative; border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--brand-tint), var(--surface-3) 70%);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 1px 1px hsl(var(--shadow-color)/.1), 0 40px 80px -40px hsl(190 40% 22% / .42);
}
.hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, hsl(168 60% 70% / .35), transparent 55%);
}
.device {
  position: relative; z-index: 1; width: min(290px, 70%); margin-inline: auto;
  border-radius: 38px; background: #0b1a16; padding: 9px;
  box-shadow: 0 2px 6px hsl(var(--shadow-color)/.2), 0 30px 60px -24px hsl(180 40% 14% / .55);
}
.device-screen { border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 19.5; background: #000; position: relative; }
.device-screen video, .device-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 38%; height: 22px; background: #0b1a16; border-radius: 12px; z-index: 2; }

/* floating stat chips on hero stage */
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  background: var(--surface); border-radius: var(--r-md); padding: 12px 16px;
  box-shadow: 0 1px 1px hsl(var(--shadow-color)/.08), 0 22px 40px -22px hsl(var(--shadow-color)/.5);
  border: 1px solid var(--line-2);
}
.chip .chip-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--brand-tint); color: var(--brand-700); }
.chip .chip-ic svg { width: 21px; height: 21px; }
.chip b { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.chip small { color: var(--muted); font-size: .82rem; font-weight: 600; }
/* hero video sound toggle */
.sound-btn {
  position: absolute; z-index: 4; left: 14px; bottom: 14px;
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  background: hsl(184 50% 8% / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; box-shadow: 0 8px 20px -8px hsl(184 50% 8% / .6);
  transition: background .2s ease, transform .25s var(--ease-soft);
}
.sound-btn:hover { background: hsl(184 50% 8% / .72); transform: scale(1.06); }
.sound-btn:active { transform: scale(.96); }
.sound-btn svg { width: 21px; height: 21px; }
.sound-btn .ic-on { display: none; }
.sound-btn.on { background: var(--cta); }
.sound-btn.on .ic-muted { display: none; }
.sound-btn.on .ic-on { display: block; }
/* sound button on the dark app cell needs a lighter glass to be visible */
.cell-app .sound-btn { left: auto; right: 14px; bottom: 14px; background: hsl(0 0% 100% / .16); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .22), 0 8px 20px -8px hsl(184 50% 4% / .6); }
.cell-app .sound-btn:hover { background: hsl(0 0% 100% / .26); }
.cell-app .sound-btn.on { background: var(--cta); box-shadow: 0 8px 20px -8px hsl(160 60% 20% / .6); }

.chip-1 { top: 8%; left: -4%; animation: float-a 6s ease-in-out infinite; }
.chip-2 { bottom: 9%; right: -5%; animation: float-b 7s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .chip-1, .chip-2 { animation: none; } }
@media (max-width: 560px) { .chip-1 { left: 2%; } .chip-2 { right: 2%; } }

/* ---------- Logo wall ---------- */
.logowall { padding-block: clamp(40px, 5vw, 64px); }
.logowall .label { text-align: center; color: var(--muted); font-weight: 700; font-size: .92rem; letter-spacing: .01em; margin-bottom: 30px; }
.logowall .label b { color: var(--brand-700); }
.logo-track-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); overflow: hidden; }
.logo-track { display: flex; align-items: center; gap: clamp(38px, 6vw, 76px); width: max-content; animation: marquee 42s linear infinite; }
.logo-track img { height: 46px; width: auto; opacity: .62; filter: grayscale(1); transition: opacity .25s, filter .25s; flex: none; }
.logo-track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-track-mask { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Generic surfaces ---------- */
.band-tint { background: var(--surface-2); }
.band-soft { background: linear-gradient(180deg, var(--bg), var(--surface-2)); }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.pain-list { display: grid; gap: 16px; }
.pain {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pain:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px hsl(var(--shadow-color)/.45); border-color: var(--line-2); }
.pain-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: hsl(8 70% 96%); color: var(--rose); }
.pain-ic svg { width: 23px; height: 23px; }
.pain h3 { font-size: 1.12rem; margin-bottom: 4px; }
.pain p { color: var(--muted); font-size: .98rem; }
.problem-aside { position: sticky; top: 100px; }
.stat-card {
  background: var(--deep); color: #eafaf4; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 40px);
  background-image: radial-gradient(120% 90% at 110% -10%, hsl(168 60% 40% / .3), transparent 55%);
}
.stat-card .big { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1; overflow-wrap: anywhere; }
.stat-card .big span { color: #5fe0bb; }
.stat-card p { color: #9fc7bb; margin-top: 12px; font-size: 1.02rem; }
.stat-card hr { border: none; border-top: 1px solid hsl(168 30% 40% / .3); margin: 26px 0; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-row div b { font-size: 1.7rem; font-weight: 800; color: #fff; display: block; letter-spacing: -0.03em; }
.stat-row div small { color: #9fc7bb; font-size: .86rem; font-weight: 600; }

/* ---------- Features / Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cell:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -32px hsl(var(--shadow-color)/.5); border-color: var(--brand-tint-2); }
.cell .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-700); margin-bottom: 18px; }
.cell .ic svg { width: 26px; height: 26px; }
.cell h3 { margin-bottom: 10px; }
.cell p { color: var(--muted); font-size: 1rem; }
.cell .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-700); font-size: .96rem; }
.cell ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 9px; }
.cell ul li { display: flex; align-items: center; gap: 9px; font-size: .98rem; font-weight: 600; color: var(--ink-2); }
.cell ul li svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.cell-access { grid-column: span 3; background: linear-gradient(158deg, #ffffff 42%, var(--brand-tint)); }
.cell-finance { grid-column: span 3; background: linear-gradient(158deg, #ffffff 42%, var(--brand-tint)); }
.cell-wm { position: absolute; right: -14px; bottom: -22px; width: 168px; height: 168px; color: var(--brand); opacity: .07; pointer-events: none; z-index: 0; }
.cell-access > *, .cell-finance > * { position: relative; z-index: 1; }
.cell-feature { grid-column: span 2; }
.cell-app {
  grid-column: span 6; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: center;
  color: #eafaf4; border-color: transparent;
  background-color: var(--deep);
  background-image: radial-gradient(90% 120% at 100% 0%, hsl(168 60% 40% / .28), transparent 55%), linear-gradient(135deg, var(--deep), var(--deep-2));
}
.cell-app:hover { box-shadow: 0 36px 70px -36px hsl(180 50% 14% / .7); }
.cell-app h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cell-app p { color: #a9cfc4; font-size: 1.06rem; }
.cell-app .ic { background: hsl(168 50% 40% / .18); color: #6fe3c0; }
.cell-app ul li { color: #d6ebe4; }
.cell-app ul li svg { color: #5fe0bb; }
.cell-app .app-media { position: relative; display: flex; justify-content: center; }
.cell-app .device { width: min(220px, 64%); }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: var(--r-pill); background: hsl(0 0% 100% / .08); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .16); font-weight: 700; font-size: .95rem; color: #eafaf4; transition: background .2s; }
.store-badge:hover { background: hsl(0 0% 100% / .15); }
.store-badge svg { width: 22px; height: 22px; }

/* ---------- Video testimonials ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.vcard {
  position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4; background: #0b1a16; isolation: isolate; padding: 0; width: 100%;
  box-shadow: 0 1px 1px hsl(var(--shadow-color)/.1), 0 24px 50px -30px hsl(var(--shadow-color)/.5);
}
.vcard img.poster { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .6s var(--ease); }
.vcard:hover img.poster { transform: scale(1.05); }
.vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: #000; }
.vcard .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, hsl(180 40% 8% / 0) 38%, hsl(184 50% 5% / .9)); }
.vcard .play {
  position: absolute; z-index: 3; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; background: hsl(0 0% 100% / .94); color: var(--brand-700);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .2s;
  box-shadow: 0 14px 30px -10px hsl(180 40% 10% / .6);
}
.vcard:hover .play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.vcard .play svg { width: 24px; height: 24px; margin-left: 3px; }
.vcard .meta { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; color: #fff; pointer-events: none; text-align: left; }
.vcard .meta b { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.2; }
.vcard .meta small { color: hsl(160 30% 88%); font-size: .82rem; font-weight: 600; display: block; margin-top: 2px; }
.vcard .meta .dur { position: absolute; right: 0; bottom: 1px; background: hsl(0 0% 0% / .42); padding: 3px 8px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; backdrop-filter: blur(4px); }
.vcard.playing .play, .vcard.playing .scrim, .vcard.playing .meta, .vcard.playing img.poster { opacity: 0; pointer-events: none; transition: opacity .3s; }

/* big quote block */
.quote-feature { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 66ch; margin: 0 auto clamp(40px,5vw,56px); text-align: center; }
.quote-feature .qmark { color: var(--brand-tint-2); font-size: 3.4rem; line-height: .6; font-weight: 800; }
.quote-feature blockquote { font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); margin: 8px 0 20px; }
.quote-feature cite { font-style: normal; color: var(--muted); font-weight: 600; }
.quote-feature cite b { color: var(--ink); display: block; font-size: 1.04rem; }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--brand-700);
  font-weight: 800; font-size: 1.3rem; margin-bottom: 20px;
}
.step h3 { font-size: 1.22rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step::after {
  content: ""; position: absolute; top: 34px; left: 64px; right: -22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-tint-2) 0 8px, transparent 8px 16px);
}
.step:last-child::after { display: none; }
@media (max-width: 760px) { .step::after { display: none; } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 1px hsl(var(--shadow-color)/.08), 0 30px 60px -40px hsl(var(--shadow-color)/.5); border: 1px solid var(--line); }
.compare-col { padding: 0; }
.compare-col h3 { padding: 24px clamp(22px,3vw,32px); font-size: 1.18rem; display: flex; align-items: center; gap: 10px; }
.compare-col h3 svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 8px; }
.compare-old h3 svg { background: hsl(210 16% 90%); }
.compare-new h3 svg { background: var(--brand-tint); }
.compare-old { background: var(--surface-2); }
.compare-old h3 { color: var(--muted); }
.compare-new { background: var(--surface); position: relative; }
.compare-new::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 4px 0 var(--brand); }
.compare-new h3 { color: var(--brand-700); }
.compare-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px clamp(22px,3vw,32px); border-top: 1px solid var(--line); font-size: 1.01rem; }
.compare-old .compare-row { color: var(--muted-2); }
.compare-old .compare-row svg { color: var(--muted-2); }
.compare-new .compare-row { color: var(--ink-2); font-weight: 600; }
.compare-new .compare-row svg { color: var(--brand); }
.compare-row svg { width: 21px; height: 21px; flex: none; margin-top: 1px; }
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
  .compare-new { border-top: 2px solid var(--brand); }
}

/* ---------- Founder / story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.story-media { position: relative; }
.story-portrait {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--brand-tint), var(--surface-3));
  display: grid; place-items: center; box-shadow: 0 30px 60px -36px hsl(var(--shadow-color)/.5);
}
.story-portrait .mono { font-size: clamp(5rem, 12vw, 8rem); font-weight: 800; color: var(--brand-700); opacity: .9; letter-spacing: -0.05em; }
.story-badge {
  position: absolute; right: -10px; bottom: 24px; background: var(--surface); border-radius: var(--r-md);
  padding: 16px 20px; box-shadow: 0 22px 44px -24px hsl(var(--shadow-color)/.5); border: 1px solid var(--line-2);
}
.story-badge b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-700); }
.story-badge small { color: var(--muted); font-weight: 600; font-size: .85rem; }
.story-body p { color: var(--ink-2); font-size: 1.08rem; margin-top: 16px; }
.story-body p.first { font-size: 1.18rem; color: var(--ink); font-weight: 600; }
.story-sign { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.story-sign .who b { font-weight: 800; }
.story-sign .who small { color: var(--muted); display: block; font-size: .9rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.01em;
}
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; flex: none; transition: background .2s, transform .3s var(--ease); }
.faq-q .pm svg { width: 17px; height: 17px; color: var(--brand-700); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .pm { background: var(--brand); }
.faq-item.open .faq-q .pm svg { color: #fff; transform: rotate(45deg); }
.faq-a { overflow: hidden; height: 0; transition: height .32s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--muted); font-size: 1.04rem; max-width: 70ch; }

/* ---------- Blog / content ---------- */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px,4vw,48px); }
.blog-head .lead { margin-top: 14px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(24px,2.6vw,30px);
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--amb-sm);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--amb-md), var(--hi); }
.post-tag { align-self: flex-start; font-size: .76rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-tint); padding: 5px 12px; border-radius: var(--r-pill); }
.post h3 { font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.post p { color: var(--muted); font-size: .98rem; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--brand-700); font-size: .96rem; margin-top: 2px; transition: gap .3s var(--ease-soft); }
.post:hover .post-more { gap: 11px; }
.post-more svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Final CTA / form ---------- */
.cta-final { background: var(--deep); color: #eafaf4; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 12% -10%, hsl(168 60% 40% / .22), transparent 55%), radial-gradient(70% 100% at 100% 110%, hsl(190 60% 40% / .16), transparent 55%); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.cta-final h2 { color: #fff; }
.cta-final .lead { color: #a9cfc4; max-width: 44ch; }
.cta-bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.cta-bullets li { display: flex; align-items: flex-start; gap: 12px; color: #d6ebe4; font-weight: 600; font-size: 1.04rem; }
.cta-bullets li svg { width: 22px; height: 22px; color: #5fe0bb; flex: none; margin-top: 1px; }
.cta-wa-row { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #a9cfc4; font-size: .96rem; }

.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 40px); box-shadow: 0 40px 80px -40px hsl(180 50% 10% / .7); }
.lead-form h3 { font-size: 1.4rem; }
.lead-form .sub { color: var(--muted); font-size: .98rem; margin-top: 6px; margin-bottom: 24px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.field input, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm); font: inherit; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-tint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.form-foot a { color: var(--brand-700); font-weight: 600; }
.form-msg { display: none; padding: 16px; border-radius: var(--r-sm); font-weight: 600; font-size: .96rem; margin-bottom: 16px; }
.form-msg.ok { display: block; background: var(--brand-tint); color: var(--brand-ink); }
.form-msg.err { display: block; background: hsl(8 70% 96%); color: #a3372d; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 32ch; font-size: .98rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 16px; font-weight: 800; }
.footer-col a { display: block; color: var(--ink-2); font-weight: 600; padding: 6px 0; font-size: .98rem; transition: color .18s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--brand-700); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; padding: 0; list-style: none; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); transition: color .18s, border-color .18s, background .18s, transform .18s; }
.footer-social a:hover { color: var(--brand-700); border-color: var(--brand-700); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft), filter .85s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Soft Structuralism polish ---------- */
/* lighter, more precise icon lines on decorative glyphs */
.cell .ic svg, .cell-app .ic svg, .pain-ic svg, .chip-ic svg { stroke-width: 1.6; }

/* diffused ambient shadows + machined inner highlight on floating surfaces */
.chip { box-shadow: var(--amb-sm), var(--hi); }
.cell { box-shadow: var(--amb-sm); }
.cell:hover { box-shadow: var(--amb-md), var(--hi); }
.lead-form { box-shadow: var(--amb-lg), var(--hi); }
.hero-stage { box-shadow: var(--amb-lg), var(--hi); }
.vcard { box-shadow: var(--amb-md); }
.story-badge { box-shadow: var(--amb-md), var(--hi); }
.stat-card { box-shadow: 0 30px 70px -40px hsl(180 50% 8% / .7); }

/* gentler transitions on interactive surfaces */
.cell, .pain, .vcard, .btn { transition-timing-function: var(--ease-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy, .hero .lead { max-width: 100%; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-aside { position: static; }
  .story { grid-template-columns: 1fr; }
  .story-media { max-width: 380px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cell-app { grid-template-columns: 1fr; }
  .cell-app .app-media { order: -1; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .cell-access, .cell-finance, .cell-feature, .cell-app { grid-column: 1 / -1; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Store badge text (two-line) ---------- */
.store-badge .sb-txt { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-badge .sb-txt small { font-size: .64rem; font-weight: 600; letter-spacing: .01em; opacity: .82; }
.store-badge .sb-txt b { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- App download section ---------- */
.app-dl { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.app-dl-copy h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.app-dl-copy .lead { margin-top: 16px; max-width: 47ch; }
.app-dl .store-row { margin-top: 26px; }
/* dark filled store pills on the light section */
.app-dl .store-badge { background: var(--ink); color: #fff; box-shadow: var(--amb-sm), inset 0 0 0 1px hsl(0 0% 100% / .08); padding: 10px 20px; transition: transform .2s var(--ease), box-shadow .2s; }
.app-dl .store-badge:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--amb-md); }
.app-dl-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.app-dl-note svg { width: 17px; height: 17px; color: var(--amber); flex: none; }

/* right-side store-card mock */
.app-dl-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; width: 100%; max-width: 300px; margin-inline: auto; padding: clamp(28px, 4vw, 38px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--amb-lg), inset 0 0 0 1px var(--line-2); }
.app-dl-icon { width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-tint), var(--brand-tint-2)); box-shadow: var(--amb-sm), inset 0 0 0 1px hsl(0 0% 100% / .6); }
.app-dl-icon img { width: 62px; height: 62px; }
.app-dl-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-top: 4px; }
.app-dl-pub { font-size: .88rem; color: var(--muted); margin-top: -6px; }
.app-dl-stars { display: inline-flex; gap: 3px; color: var(--amber); margin-top: 2px; }
.app-dl-stars svg { width: 19px; height: 19px; }
.app-dl-free { margin-top: 4px; font-size: .82rem; font-weight: 700; color: var(--brand-700); background: var(--brand-tint); padding: 5px 14px; border-radius: var(--r-pill); }

@media (max-width: 860px) {
  .app-dl { grid-template-columns: 1fr; gap: 36px; }
}
