/* Home page. Builds on /site.css.
   Photos: Unsplash (assets/dest). App UI: real screenshots of the Snagfly app (assets/app).
   Motion: transform/opacity only; everything settles to a still frame under reduced motion. */

/* ── Hero: full-bleed destination crossfade + live deal card ─────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, min(100svh, 980px));
  display: flex; flex-direction: column; justify-content: flex-end;
  margin-top: -60px; padding: 128px 0 28px;
  background: #06100e; color: #fff;
}
.hero-media, .hero-media figure, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; }
.hero-media figure { opacity: 0; transition: opacity 1400ms ease; }
.hero-media figure.is-on { opacity: 1; }
.hero-media figure.is-on img { animation: kenburns 16s linear both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
.hero::before { /* legibility scrim: strong at left + bottom, clear in the middle of the photo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 12, 11, .78) 0%, rgba(4, 12, 11, .42) 42%, rgba(4, 12, 11, 0) 70%),
    linear-gradient(0deg, rgba(4, 12, 11, .9) 0%, rgba(4, 12, 11, .2) 38%, rgba(4, 12, 11, 0) 60%),
    linear-gradient(180deg, rgba(4, 12, 11, .55) 0%, rgba(4, 12, 11, 0) 22%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero .eyebrow .dot { background: #2dd4bf; box-shadow: 0 0 0 4px rgba(45, 212, 191, .2); }
.hero h1 { margin-top: 18px; color: #fff; font-size: clamp(3rem, 1.6rem + 6.4vw, 7rem); line-height: .94; letter-spacing: -.055em; font-weight: 600; max-width: 10ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .lead { margin-top: 22px; max-width: 34ch; color: rgba(255, 255, 255, .84); font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 14px; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.hero-meta b { color: #fff; font-weight: 600; }
.btn-light { background: #fff; color: #09090b; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #e9fbf8; }
  .btn-glass:hover { background: rgba(255, 255, 255, .2); }
}

/* Deal card (one per slide, crossfaded) */
.hero-cards { position: relative; display: grid; justify-items: end; }
.hcard {
  grid-area: 1 / 1; width: min(100%, 380px); padding: 20px; border-radius: 22px;
  background: rgba(10, 18, 17, .5); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  font-size: .875rem; color: #fff;
  opacity: 0; transform: translateY(14px) scale(.98); filter: blur(4px);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-spring), filter 500ms var(--ease-out);
  visibility: hidden;
}
.hcard.is-on { opacity: 1; transform: none; filter: none; visibility: visible; }
.hcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255, 255, 255, .72); font-size: .8125rem; }
.hcard-route { margin-top: 12px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.022em; }
.hcard-code { color: rgba(255, 255, 255, .62); font-size: .8125rem; }
.hcard-price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.hcard-price b { font-size: 3rem; line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.hcard-price s { color: rgba(255, 255, 255, .6); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill-money { background: rgba(45, 212, 191, .18); color: #5eead4; }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.below { margin-top: 16px; }
.below-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.below-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #5eead4); transform-origin: left; transform: scaleX(var(--p)); transition: transform 1100ms var(--ease-out) 200ms; }
.hcard:not(.is-on) .below-bar i { transform: scaleX(0); }
.below-lbl { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: rgba(255, 255, 255, .62); }

/* Slide picker */
.hero-dots { display: flex; align-items: center; gap: 8px; margin-top: clamp(32px, 6vh, 64px); }
.hero-dots ol { display: flex; flex: 1; min-width: 0; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-dots li { flex: 1; min-width: 0; }
.hero-dots li button {
  width: 100%; padding: 10px 0 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: rgba(255, 255, 255, .55); font-size: .8125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 200ms ease;
}
.hero-dots li button[aria-current="true"] { color: #fff; }
.hero-dots .bar { display: block; height: 2px; margin-bottom: 10px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero-dots .bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero-dots button[aria-current="true"] .bar i { animation: fill 7s linear forwards; }
.hero-dots .done .bar i { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero.paused .hero-dots .bar i, .hero.paused .hero-media img, .hero.offscreen .hero-dots .bar i, .hero.offscreen .hero-media img { animation-play-state: paused; }
.hero-pause { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.hero-pause svg { width: 14px; height: 14px; }
.hero-pause .i-play, .hero.paused .hero-pause .i-pause { display: none; }
.hero.paused .hero-pause .i-play { display: block; }

/* ── Numbers band ────────────────────────────────────────────────────── */
.facts { background: #06100e; color: #fff; padding: 8px 0 56px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .12); }
.fact { padding: 28px 20px 0 0; }
.fact b { display: block; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff 30%, #99f6e4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { display: block; margin-top: 10px; max-width: 24ch; color: rgba(255, 255, 255, .66); font-size: .9375rem; line-height: 1.45; }
.facts-note { margin-top: 28px; color: rgba(255, 255, 255, .45); font-size: .8125rem; max-width: 90ch; }

/* ── Deals marquee ───────────────────────────────────────────────────── */
.deals-sec { padding-bottom: clamp(56px, 7vw, 96px); }
.marquee { --gap: 16px; display: flex; gap: var(--gap); overflow: hidden; padding: 8px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: var(--gap); flex: none; margin: 0; padding: 0; list-style: none; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.offscreen .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.pc {
  position: relative; flex: none; width: 248px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: #0b1513; color: #fff; box-shadow: 0 18px 40px -22px rgba(9, 9, 11, .5);
  transition: transform 500ms var(--ease-spring), box-shadow 300ms ease;
}
.pc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 900ms var(--ease-out); }
.pc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .82) 100%); }
.pc-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.pc-body { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.pc-route { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1.2; }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pc-price b { font-size: 1.875rem; letter-spacing: -.04em; line-height: 1; font-weight: 600; }
.pc-price s { color: rgba(255, 255, 255, .65); font-size: .875rem; }
.pc-meta { margin-top: 4px; color: rgba(255, 255, 255, .7); font-size: .75rem; }
.pc .pill-money { background: rgba(6, 16, 14, .55); color: #5eead4; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pc .pill-date { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .pc:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(9, 9, 11, .6); }
  .pc:hover img { transform: scale(1.06); }
}
.rail-note { margin-top: 4px; }

/* ── Product demo (dark, immersive) ──────────────────────────────────── */
.demo { position: relative; isolation: isolate; overflow: hidden; background: #06100e; color: #fff; }
.demo-bg { position: absolute; inset: 0; z-index: -1; }
.demo-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.9); }
.demo-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 75% 40%, rgba(6, 16, 14, .2), rgba(6, 16, 14, .92) 70%), linear-gradient(180deg, #06100e 0%, rgba(6, 16, 14, .4) 25%, rgba(6, 16, 14, .4) 75%, #06100e 100%); }
.demo h2, .demo h3 { color: #fff; }
.demo .eyebrow { color: rgba(255, 255, 255, .6); }
.demo .lead { color: rgba(255, 255, 255, .72); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.phases { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.phases li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); opacity: .45; transition: opacity 400ms ease; }
.phases li.on { opacity: 1; }
.phases .n { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); font-size: .8125rem; font-variant-numeric: tabular-nums; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
.phases li.on .n { background: #2dd4bf; border-color: #2dd4bf; color: #04201c; font-weight: 600; }
.phases h3 { font-size: 1.125rem; letter-spacing: -.02em; }
.phases p { color: rgba(255, 255, 255, .66); font-size: .9375rem; }

.stage { position: relative; display: grid; gap: 12px; max-width: 420px; margin-left: auto; width: 100%; }
.st { /* each event in the demo sequence */
  padding: 16px; border-radius: 20px; font-size: .875rem; line-height: 1.4;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity 450ms var(--ease-out), transform 750ms var(--ease-spring);
}
.st.on { opacity: 1; transform: none; }
.st-notif { display: flex; gap: 12px; align-items: flex-start; }
.st-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; }
.st-ic img { width: 24px; height: 24px; border-radius: 6px; }
.st-ic.money { background: rgba(45, 212, 191, .18); color: #5eead4; }
.st-ic.warn { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.st-ic svg { width: 18px; height: 18px; }
.st-h { display: flex; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, .6); font-size: .75rem; }
.st strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.st .sub { color: rgba(255, 255, 255, .7); }
.st-chart .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st-chart .big { font-size: 2rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.st-chart svg { width: 100%; height: 86px; margin-top: 12px; overflow: visible; }
.st-chart .typ { stroke: rgba(255, 255, 255, .3); stroke-dasharray: 3 4; }
.st-chart .ln { fill: none; stroke: #2dd4bf; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms cubic-bezier(.65, 0, .35, 1) 250ms; }
.st-chart .ar { fill: url(#demo-fill); opacity: 0; transition: opacity 800ms ease 1300ms; }
.st-chart .dot { fill: #2dd4bf; opacity: 0; transition: opacity 300ms ease 1700ms; }
.st-chart.on .ln { stroke-dashoffset: 0; }
.st-chart.on .ar, .st-chart.on .dot { opacity: 1; }
.verdict { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(45, 212, 191, .12); opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 600ms var(--ease-spring); }
.verdict.on { opacity: 1; transform: none; }
.verdict .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2dd4bf; color: #04201c; }
.verdict .tick svg { width: 14px; height: 14px; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 500ms var(--ease-out) 250ms; }
.verdict.on .tick svg { stroke-dashoffset: 0; }
.verdict b { color: #5eead4; }
.demo-note { margin-top: 18px; color: rgba(255, 255, 255, .45); font-size: .75rem; text-align: right; }

/* ── Value math ─────────────────────────────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vcard { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
.vcard::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, var(--money-wash), transparent); pointer-events: none; }
.vcard > b { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--money); }
.vcard p { margin-top: 14px; color: var(--fg-2); }
.vx { align-self: flex-start; margin-top: auto; padding-top: 22px; font-size: .875rem; font-weight: 600; color: var(--fg); }
.vx::before { content: "= "; color: var(--fg-3); font-weight: 400; }

/* ── Feature bento ───────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 300px; padding: 26px; border-radius: 26px; border: 1px solid var(--line); background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 500ms var(--ease-spring), box-shadow 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); } }
.tile .tag { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--money); }
.tile h3 { margin-top: 8px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.15; letter-spacing: -.03em; max-width: 22ch; }
.tile p { margin-top: 8px; color: var(--fg-2); font-size: .9375rem; max-width: 46ch; }
.tile p b { color: var(--fg); font-weight: 600; }
.t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
.tile-shot { margin: 24px -26px -26px 26px; border-radius: 14px 0 0 0; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: 0 -10px 40px -20px rgba(9, 9, 11, .3); background: var(--bg-2); flex: 1; min-height: 200px; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 900ms var(--ease-out); }
.tile-shot.full { margin-left: -26px; border-radius: 0; border-left: 0; }
.tile-shot.center img { object-position: center top; }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-shot img { transform: scale(1.025); } }
.tile.photo { color: #fff; border: 0; justify-content: flex-end; min-height: 340px; background: #0b1513; }
.tile.photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-out); }
.tile.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .85) 100%); }
.tile.photo h3 { color: #fff; }
.tile.photo p { color: rgba(255, 255, 255, .8); }
.tile.photo p b { color: #fff; }
.tile.photo .tag { color: #5eead4; }
@media (hover: hover) and (pointer: fine) { .tile.photo:hover picture img { transform: scale(1.05); } }
.big-num { margin-top: auto; padding-top: 18px; font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.tile.photo .big-num { color: #fff; }

/* mini mocks inside tiles */
.mini { margin-top: auto; padding-top: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: .6875rem; text-align: center; font-variant-numeric: tabular-nums; }
.cal span { padding: 7px 0; border-radius: 8px; background: var(--well); color: var(--fg-2); }
.cal span.h { background: none; color: var(--fg-3); padding: 0 0 2px; }
.cal span.lo { background: var(--money-wash); color: var(--money); font-weight: 600; }
.cal span.best { background: var(--money-fill); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -6px var(--money-fill); }
.status { padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); font-size: .8125rem; }
.status .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status .warn { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--warn-wash); color: var(--warn); font-size: .75rem; font-weight: 600; }
.track { position: relative; height: 4px; margin: 18px 0 10px; border-radius: 4px; background: var(--line); }
.track::before { content: ""; position: absolute; inset: 0 40% 0 0; border-radius: inherit; background: var(--warn); }
.track::after { content: ""; position: absolute; left: 60%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--card); border: 3px solid var(--warn); }
.status .m { color: var(--fg-3); }

/* ── Showcase: app in device frames ─────────────────────────────────── */
.showcase { position: relative; overflow: hidden; padding-bottom: 0; }
.showcase::before { content: ""; position: absolute; left: 50%; top: 32%; width: min(1400px, 140vw); height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--money-wash), transparent 70%); pointer-events: none; z-index: -1; }
.devices { position: relative; max-width: 1080px; margin: 0 auto; padding-bottom: clamp(48px, 8vw, 120px); }
.browser { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 50px 100px -40px rgba(9, 9, 11, .35), 0 0 0 1px rgba(9, 9, 11, .02); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: var(--well); color: var(--fg-3); font-size: .75rem; }
.browser img { width: 100%; height: auto; }
.phone { position: absolute; right: -2%; bottom: 0; width: clamp(150px, 24%, 260px); padding: 8px; border-radius: 40px; background: #0b0b0d; box-shadow: 0 40px 80px -30px rgba(9, 9, 11, .55), inset 0 0 0 1.5px #3f3f46; }
.phone img { border-radius: 32px; width: 100%; height: auto; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); border-radius: 12px; background: #0b0b0d; z-index: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .devices .browser { animation: rise-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .devices .phone { animation: phone-par linear both; animation-timeline: view(); animation-range: entry 0% exit 30%; }
  }
}
@keyframes rise-tilt { from { transform: perspective(1600px) rotateX(14deg) translateY(40px) scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes phone-par { from { transform: translateY(120px); } to { transform: translateY(-40px); } }

/* ── Calculator ─────────────────────────────────────────────────────── */
.calc-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-pop); }
.calc-in { padding: 28px; display: grid; gap: 22px; align-content: start; }
.calc-row { display: grid; gap: 10px; font-size: .9375rem; font-weight: 500; }
.calc-row span { display: flex; justify-content: space-between; }
.calc-row output { font-variant-numeric: tabular-nums; color: var(--money); font-weight: 600; }
.calc input[type=range] { width: 100%; accent-color: var(--money-fill); height: 28px; }
.calc-check { display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.calc-check input { width: 18px; height: 18px; accent-color: var(--money-fill); }
.calc-out { position: relative; isolation: isolate; padding: 28px; color: #fff; background: #06100e; overflow: hidden; display: flex; flex-direction: column; }
.calc-out::before { content: ""; position: absolute; inset: auto -30% -50% -30%; height: 90%; z-index: -1; background: radial-gradient(closest-side, rgba(20, 184, 166, .45), transparent); }
.calc-out .lbl { color: rgba(255, 255, 255, .65); font-size: .8125rem; }
.calc-total { margin-top: 6px; font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.calc-break { margin: 22px 0 0; display: grid; gap: 8px; font-size: .875rem; }
.calc-break div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc-break dt { color: rgba(255, 255, 255, .7); }
.calc-break dd { margin: 0; font-weight: 600; }
.calc-vs { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.calc-vs b { color: #5eead4; font-size: 1rem; }
.calc-out .btn { margin-top: auto; width: 100%; }
.calc-notes { grid-column: 1 / -1; padding: 18px 28px 22px; border-top: 1px solid var(--line); }

/* ── Personas ───────────────────────────────────────────────────────── */
.persona-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.persona { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 22px; border-radius: 24px; color: #fff; background: #0b1513; transition: transform 500ms var(--ease-spring); }
.persona img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-out); }
.persona::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .9) 100%); }
.persona h3, .persona p { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.persona h3 { color: #fff; font-size: 1.25rem; letter-spacing: -.02em; }
.persona p { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.5; }
.plan-tag { align-self: flex-start; margin-top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .8125rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .persona:hover { transform: translateY(-4px); } .persona:hover img { transform: scale(1.05); } }

/* ── Compare ─────────────────────────────────────────────────────────── */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9375rem; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: .875rem; font-weight: 600; vertical-align: bottom; }
.cmp thead small { display: block; margin-top: 2px; color: var(--fg-3); font-weight: 400; font-size: .75rem; }
.cmp tbody th { font-weight: 500; }
.cmp td { color: var(--fg-2); }
.cmp .us { background: var(--money-wash); color: var(--fg); }
.cmp thead .us { color: var(--money); font-size: 1rem; }
.cmp .y, .cmp .n, .cmp .p { display: inline-flex; gap: 8px; align-items: flex-start; }
.cmp .y::before, .cmp .n::before, .cmp .p::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; }
.cmp .y::before { background: var(--money-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cmp .n::before { border: 1.5px solid var(--line-2); }
.cmp .p::before { background: linear-gradient(90deg, var(--money-fill) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--money-fill); }
.cmp-note { margin-top: 14px; }
.cmp-note a { color: var(--fg-2); }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.billing-wrap { text-align: center; }
.billing { position: relative; display: inline-flex; margin: 0 auto 40px; padding: 4px; border: 0; border-radius: 999px; background: var(--well); }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: .9375rem; font-weight: 500; color: var(--fg-2); transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.billing input:checked + label { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(9, 9, 11, .12); }
.billing input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 2px; }
.billing .save { padding: 2px 8px; border-radius: 999px; background: var(--money-wash); color: var(--money); font-size: .75rem; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow-card); }
.plan.featured { isolation: isolate; overflow: hidden; color: #fff; border-color: transparent; background: #06100e; box-shadow: 0 40px 80px -30px rgba(6, 16, 14, .6); }
.plan.featured::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 520px; height: 520px; z-index: -1; background: radial-gradient(closest-side, rgba(20, 184, 166, .42), transparent); }
.plan.featured h3, .plan.featured .plan-price b { color: #fff; }
.plan.featured .plan-for, .plan.featured .plan-sub, .plan.featured .plan-price span { color: rgba(255, 255, 255, .68); }
.plan.featured .ticks li { color: rgba(255, 255, 255, .85); }
.plan.featured .chip { background: rgba(45, 212, 191, .18); color: #5eead4; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.plan-for { margin-top: 4px; color: var(--fg-3); font-size: .9375rem; }
.plan-price { margin-top: 26px; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 3.5rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--fg-3); }
.plan-sub { margin-top: 10px; min-height: 1.4em; color: var(--fg-3); font-size: .875rem; }
.plan .btn { margin-top: 26px; }
.mo { display: none; }
.yr { display: inline; }
.pricing:has(#bill-m:checked) .mo { display: inline; }
.pricing:has(#bill-m:checked) .yr { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--well); color: var(--fg-2); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.chip.soon { height: 20px; padding: 0 7px; font-size: .6875rem; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); font-size: .9375rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--money-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 40px 0 0; padding: 0; color: var(--fg-3); font-size: .875rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 16px; height: 16px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 100px; }

/* ── Final CTA ──────────────────────────────────────────────────────── */
.final { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(120px, 16vw, 220px) 0; background: #06100e; }
.final picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(4, 12, 11, .55), rgba(4, 12, 11, .85)); }
.final h2 { color: #fff; font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem); line-height: .98; letter-spacing: -.05em; max-width: 14ch; margin: 0 auto; }
.final .lead { color: rgba(255, 255, 255, .8); margin: 20px auto 0; max-width: 40ch; }
.final .hero-cta { justify-content: center; }

.sec-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.row > div { max-width: 640px; }

/* ── Sticky mobile CTA ──────────────────────────────────────────────── */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
    border-radius: 999px; background: var(--material); border: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow-pop); font-size: .8125rem;
    transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none;
    transition: transform 400ms var(--ease-spring), opacity 200ms ease;
  }
  .sticky-cta.show { transform: none; opacity: 1; pointer-events: auto; }
  .sticky-cta b { display: block; font-size: .9375rem; }
  .sticky-cta span { color: var(--fg-3); }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-4, .t-3 { grid-column: span 2; } .t-2 { grid-column: span 1; }
  .persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero::before { background: linear-gradient(0deg, rgba(4, 12, 11, .92) 0%, rgba(4, 12, 11, .55) 45%, rgba(4, 12, 11, .45) 70%, rgba(4, 12, 11, .6) 100%); }
  .hero { min-height: max(680px, 100svh); padding-top: 104px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-cards { justify-items: stretch; }
  .hcard { width: 100%; }
  .demo-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .stage { margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.875rem, 13vw, 3.75rem); }
  .hero .lead { font-size: 1.0625rem; }
  .hero-cta .btn { flex: 1; }
  .hcard { padding: 16px; }
  .hcard-price b { font-size: 2.5rem; }
  .hero-dots li button { font-size: .75rem; }
  .hero-dots .nm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .t-4, .t-3, .t-2 { grid-column: auto; }
  .tile { min-height: 0; padding: 22px; }
  .tile-shot { margin: 20px -22px -22px 22px; min-height: 180px; }
  .tile-shot.full { margin-left: -22px; }
  .persona-grid { grid-template-columns: 1fr; }
  .persona { min-height: 300px; }
  .calc { grid-template-columns: 1fr; }
  .pc { width: 210px; }
  .phone { right: -4px; width: 34%; padding: 5px; border-radius: 26px; }
  .phone img { border-radius: 21px; }
  .phone::before { top: 10px; height: 12px; }
  .plan { padding: 24px; }
  .plan-price b { font-size: 3rem; }
}

/* ── Reduced motion: stills and cross-fades only ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-media figure.is-on img { animation: none; }
  .hcard { transform: none !important; filter: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden] { display: none; }
  .st, .verdict { transform: none !important; }
  .st-chart .ln { transition: none; }
  .tile, .pc, .persona, .tile img, .pc img, .persona img { transition: none; transform: none !important; }
}
