/* =========================================================
   Sharemarket IPO – IPO GURU · Landing page styles
   Built on the ShareMarketIPO design system (sharemarketipo.in).
   All brand colours live in :root — change them there.
   ========================================================= */

:root {
  /* Brand palette (from design system) */
  --orange: #FFA31A;          /* primary: panels, fills, badges */
  --orange-70: #FFB84D;
  --orange-40: #FFD9A3;
  --orange-deep: #E56F00;     /* decorative accents only (3.2:1 on white) */
  --orange-ink: #B34F00;      /* orange TEXT on white — 5.2:1, AA */
  --amber: #A15D18;           /* labels, small status text */
  --cream: #FFF7EE;           /* page background */
  --peach: #FFF2E1;           /* overlay, chips, soft bands */
  --white: #FFFFFF;
  --ink: #1C1C1E;             /* primary text; also text on orange (8.5:1) */
  --muted: #646A73;
  --green: #16794A;           /* market “up” accent, AA on white */
  --line: rgba(161, 93, 24, .14);
  --line-strong: rgba(161, 93, 24, .26);
  --glass-border: rgba(255, 255, 255, .45);

  --shadow-sm: 0 1px 2px rgba(91, 52, 16, .05), 0 6px 18px -10px rgba(91, 52, 16, .18);
  --shadow-md: 0 2px 4px rgba(91, 52, 16, .05), 0 22px 44px -22px rgba(91, 52, 16, .32);
  --shadow-phone: 0 2px 6px rgba(60, 30, 0, .10), 0 40px 70px -30px rgba(60, 30, 0, .55);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 32px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(18px, 4vw, 28px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 22px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, transform .2s var(--ease), color .2s;
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
.btn--sm .i { width: 18px; height: 18px; }
.btn--orange { background: var(--orange); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.btn--orange:hover { background: #FF9A00; }
.btn--ghost {
  background: var(--white); color: var(--orange-ink);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--orange); }
.btn--ghost .i { width: 16px; height: 16px; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--orange); background: var(--peach); }
.icon-btn:disabled { opacity: .38; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  background: var(--peach); color: var(--amber);
}
.chip--glass {
  background: rgba(255, 255, 255, .38);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 247, 238, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(91, 52, 16, .35);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto; min-width: 0;
}
.brand__icon {
  width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none;
  background: var(--orange); box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  position: relative;
}
.brand__icon img { width: 100%; height: 100%; object-fit: cover; }
.brand__icon.img-failed img { display: none; }
.brand__icon.img-failed::after {
  content: "IPO"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--ink);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand__sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--amber); }

.nav { display: flex; align-items: center; }
.nav__toggle {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.6);
}
.nav__toggle .i { width: 22px; height: 22px; }

/* Mobile menu panel */
.nav__menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255, 247, 238, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(91, 52, 16, .4);
  padding: 8px var(--gutter) 24px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.nav__menu.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.nav__list li + li { border-top: 1px solid var(--line); }
.nav__link {
  display: flex; align-items: center; min-height: 54px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
}
.nav__stores { display: grid; gap: 10px; margin-top: 14px; }
.nav__store {
  display: flex; align-items: center; justify-content: center; min-height: 50px;
  border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--orange-ink);
}
.site-header__cta { display: none; }

@media (min-width: 560px) {
  .site-header__cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav__list { display: flex; gap: 4px; }
  .nav__list li + li { border: 0; }
  .nav__link {
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    font-size: 15px; font-weight: 600; color: #3A3A3C;
    transition: background-color .2s, color .2s;
  }
  .nav__link:hover { background: rgba(255, 163, 26, .16); color: var(--ink); }
  .nav__stores { display: none; }
  .site-header__inner { gap: 24px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 0%, #FFC461 0%, rgba(255, 196, 97, 0) 55%),
    radial-gradient(70% 90% at 0% 100%, #FF9A0A 0%, rgba(255, 154, 10, 0) 60%),
    var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
}
.hero__chart {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  pointer-events: none;
}
.hero__grid path { stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 2 8; vector-effect: non-scaling-stroke; }
.hero__line {
  fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 0;
}

.hero__copy { padding: clamp(28px, 6vw, 64px); padding-bottom: 8px; position: relative; }
.hero__chip { margin-bottom: 22px; }
.hero__title {
  font-size: clamp(34px, 9.8vw, 56px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.045em;
  max-width: 13ch;
}
.hero__brand {
  display: block; margin-bottom: 14px;
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 700; letter-spacing: 0; line-height: 1.3;
  color: #5B3410;
}
.hl {
  background: var(--white);
  padding: 0 .16em .04em;
  margin-left: -.06em;
  border-radius: .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  box-shadow: 0 10px 30px -14px rgba(91, 52, 16, .5);
  white-space: nowrap;
}
.hero__sub {
  margin-top: 24px; max-width: 34ch; text-wrap: balance;
  font-size: clamp(19px, 2.1vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
}
.hero__text { margin-top: 12px; font-size: 17px; line-height: 1.65; max-width: 46ch; color: #2C2416; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 28px; }
.store {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 12px; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.store:hover { transform: translateY(-2px); }
.store img { height: 52px; width: auto; max-width: none; }
.store--apple img { height: 52px; }
/* Google's generic badge PNG carries transparent padding; trim it so both badges align */
.store--play img { height: 77px; margin: -12.5px -12px; }
.store__fallback { display: none; }
@media (max-width: 420px) {
  .stores { gap: 10px; }
  .store, .store img, .store--apple img, .store.img-failed .store__fallback { height: 44px; }
  .store--play img { height: 65.5px; margin: -10.75px -10.5px; }
  .store.img-failed .store__fallback { padding: 0 14px; }
}
.store.img-failed img { display: none; }
.store.img-failed .store__fallback {
  display: inline-flex; flex-direction: column; justify-content: center;
  height: 52px; padding: 0 18px; border-radius: 12px;
  background: var(--ink); color: var(--white);
  font-size: 11px; line-height: 1.15; letter-spacing: .02em;
}
.store.img-failed .store__fallback b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
html.is-ios .stores .store--apple,
html.is-android .stores .store--play { order: -1; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px;
  font-size: 14px; color: #2C2416;
}
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof b { font-weight: 800; color: var(--ink); }
.hero__proof .i { width: 16px; height: 16px; color: var(--ink); }

/* IPO lifecycle strip */
.lifecycle {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 34px; max-width: 460px;
  font-size: 13px; font-weight: 700; color: #3A2A12;
}
.lifecycle::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 19px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(28,28,30,.45) 0 6px, transparent 6px 12px);
}
.lifecycle li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lifecycle__dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--orange-ink);
  box-shadow: 0 6px 16px -8px rgba(91, 52, 16, .6);
}
.lifecycle__dot .i { width: 18px; height: 18px; }
.lifecycle li:last-child .lifecycle__dot { background: var(--ink); color: var(--white); }

/* Hero phones */
.hero__visual {
  position: relative;
  height: clamp(340px, 100vw, 460px);
  margin-top: 30px;
}
.phone.hero__phone { position: absolute; left: 50%; }
.hero__phone--back  { top: 34px; width: min(44%, 196px); transform: translateX(-98%) rotate(-7deg); }
.hero__phone--front { top: 64px; width: min(52%, 226px); transform: translateX(-10%) rotate(4deg); z-index: 2; }

@media (min-width: 900px) {
  .hero__title { font-size: clamp(52px, 5.4vw, 70px); }
  .hero__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 660px; }
  .hero__copy { padding-bottom: clamp(40px, 5vw, 60px); align-self: center; }
  .hero__visual { height: auto; margin-top: 0; }
  .hero__phone--back  { top: 110px; width: min(46%, 240px); transform: translateX(-92%) rotate(-7deg); }
  .hero__phone--front { top: 196px; width: min(54%, 282px); transform: translateX(-22%) rotate(4deg); }
}

/* Phone frame (shared) */
.phone {
  position: relative;
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF4E6 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.phone::after { /* hairline outer edge for definition on light backgrounds */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(161, 93, 24, .16);
}
.phone img {
  width: 100%; height: auto;
  border-radius: 30px;
  background: var(--peach);
}
.phone__fallback { display: none; }
.phone.img-failed img { display: none; }
.phone.img-failed .phone__fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 9 / 16; border-radius: 30px;
  background: linear-gradient(180deg, var(--peach), var(--orange-40));
  color: var(--amber); font-size: 13px; font-weight: 700;
  text-align: center; padding: 0 14px;
}
.phone.img-failed .phone__fallback .i { width: 28px; height: 28px; }

/* ---------- Trust stats ---------- */
.trust { padding-top: clamp(28px, 4vw, 40px); }
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.stat:nth-child(-n+2) { border-top: 0; }
.stat:nth-child(odd) { border-left: 0; }
.stat:last-child { grid-column: 1 / -1; }
.stat__value {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
}
.stat__value .i { width: .62em; height: .62em; color: var(--orange); }
.stat__value--text { font-size: clamp(21px, 1.9vw, 24px); letter-spacing: -0.03em; line-height: 1.25; display: block; }
.stat__value--text span { color: var(--orange-ink); }
.stat__label { font-size: 15px; font-weight: 700; }
.stat__source { font-size: 13px; color: var(--muted); }
a.stat__source { color: var(--orange-ink); font-weight: 600; text-underline-offset: 3px; text-decoration-color: rgba(179, 79, 0, .35); }
a.stat__source:hover { text-decoration-color: currentColor; }
.trust__note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat { border-top: 0 !important; border-left: 1px solid var(--line) !important; padding: 28px 24px; }
  .stat:first-child { border-left: 0 !important; }
  .stat:last-child { grid-column: auto; }
  .stat__value--text { font-size: 20px; line-height: 1.3; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(76px, 10vw, 128px); }
.band--white { background: var(--white); }
.band--peach { background: var(--peach); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.section-head--split > div { max-width: 640px; }
.section-title {
  font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06;
}
.section-lede { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--muted); max-width: 60ch; }
.section-head--center .section-lede { margin-inline: auto; }
.section-lede a { color: var(--orange-ink); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s;
}
.feature:hover { border-color: rgba(255, 163, 26, .7); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--peach); color: var(--orange-ink);
  margin-bottom: 18px;
  transition: background-color .25s, color .25s;
}
.feature:hover .feature__icon { background: var(--orange); color: var(--ink); }
.feature__icon .i { width: 22px; height: 22px; }
.feature__icon--solid { background: var(--orange); color: var(--ink); }
.feature__title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.feature--wide .feature__title { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.03em; }
.feature--wide p { font-size: 16px; max-width: 48ch; }
.feature--accent { background: linear-gradient(135deg, #FFFFFF 40%, var(--peach)); }
.platform-tag {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  padding: 7px 14px; border-radius: 999px; background: var(--peach); color: var(--amber);
  font-size: 13px; font-weight: 700;
}
.tag:nth-child(2) { background: rgba(22, 121, 74, .1); color: var(--green); }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--wide { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .feature { padding: 28px; }
}

.market {
  display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: start;
  margin-top: 18px; padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--peach);
  border: 1px dashed var(--line-strong);
}
.market .feature__icon { margin: 0; }
.market__title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.market p { color: #4A4F57; font-size: 15px; max-width: 80ch; }
.market__note { margin-top: 10px; font-size: 13px !important; color: var(--muted) !important; }
@media (max-width: 520px) { .market { grid-template-columns: 1fr; } }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - 1200px) / 2);
  padding: 8px max(var(--gutter), (100% - 1200px) / 2) 48px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -4px; border-radius: 12px; }
.carousel__slide {
  flex: 0 0 clamp(220px, 64vw, 270px);
  scroll-snap-align: start;
}
.carousel__slide .phone { box-shadow: 0 2px 6px rgba(60,30,0,.08), 0 30px 50px -30px rgba(60,30,0,.45); }
.carousel__controls {
  display: flex; align-items: center; gap: 20px; margin-top: 4px;
}
.carousel__progress {
  flex: 1; height: 4px; border-radius: 4px; background: var(--peach); overflow: hidden;
}
.carousel__progress span {
  display: block; height: 100%; width: 12.5%; border-radius: inherit; background: var(--orange);
  transform-origin: left; transition: width .3s var(--ease);
}
.carousel__count { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carousel__buttons { display: flex; gap: 10px; }
@media (max-width: 640px) {
  .carousel__buttons { display: none; }
}

/* ---------- Steps ---------- */
.steps {
  position: relative; display: grid; gap: 28px;
  counter-reset: step;
}
.step {
  position: relative; display: grid; align-content: start; grid-template-columns: 56px 1fr; column-gap: 18px; row-gap: 6px;
  align-items: start;
}
.step__num {
  grid-row: span 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--orange-ink);
  border: 2px solid var(--orange);
  font-size: 22px; font-weight: 800;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.step:last-child .step__num { background: var(--orange); color: var(--ink); }
.step__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; padding-top: 4px; }
.step p { color: var(--muted); font-size: 15px; max-width: 36ch; }
/* vertical connector (mobile): one segment between each pair of numbers */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: -28px; width: 2px;
  background: linear-gradient(var(--orange-40), var(--orange));
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
  .step { grid-template-columns: 1fr; justify-items: center; row-gap: 10px; }
  .step__num { grid-row: auto; width: 72px; height: 72px; font-size: 26px; margin-bottom: 10px; }
  .step p { margin-inline: auto; }
  .step:not(:last-child)::after { display: none; }
  .steps::before { content: ""; position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 36px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--orange-40), var(--orange)); }
}

/* ---------- Why choose ---------- */
.why { display: grid; gap: clamp(56px, 8vw, 96px); }
.why__row { display: grid; gap: 32px; align-items: center; }
.why__media {
  position: relative; display: grid; place-items: center;
  padding: clamp(24px, 4vw, 44px) 0;
}
.why__media::before {
  content: ""; position: absolute; inset: 15% 4%;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--orange-70), var(--orange));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.why__phone { width: min(62%, 260px); }
.why__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.035em; }
.why__copy p { margin-top: 14px; font-size: 17px; line-height: 1.65; color: #4A4F57; max-width: 44ch; }
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 600; }
.checks .i {
  width: 24px; height: 24px; padding: 4px; flex: none; margin-top: -1px;
  border-radius: 50%; background: var(--white); color: var(--green); stroke-width: 3;
  box-shadow: 0 0 0 1px var(--line);
}
@media (min-width: 860px) {
  .why__row { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); }
  .why__row--flip .why__media { order: 2; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq-layout__head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq {
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 6px clamp(18px, 3vw, 28px);
}
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__h { font-size: inherit; letter-spacing: 0; }
.faq__q {
  width: 100%; min-height: 64px; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35;
}
.faq__q .i {
  width: 32px; height: 32px; padding: 6px; flex: none; border-radius: 50%;
  background: var(--peach); color: var(--orange-ink);
  transition: transform .3s var(--ease), background-color .2s;
}
.faq__q:hover .i { background: var(--orange-40); }
.faq__q[aria-expanded="true"] .i { transform: rotate(180deg); background: var(--orange); color: var(--ink); }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s var(--ease); }
.js .faq__a { grid-template-rows: 0fr; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__inner { overflow: hidden; }
.faq__inner p { padding: 0 48px 22px 0; color: #4A4F57; font-size: 16px; line-height: 1.65; }
.faq__inner a { color: var(--orange-ink); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 520px) { .faq__inner p { padding-right: 0; } }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: clamp(56px, 8vw, 96px); }
.cta__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 100% at 0% 0%, #FFC461 0%, rgba(255,196,97,0) 60%),
    radial-gradient(70% 90% at 100% 100%, #FF9300 0%, rgba(255,147,0,0) 60%),
    var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), var(--shadow-md);
  display: grid;
}
.cta__panel::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.35);
}
.cta__copy { padding: clamp(32px, 6vw, 64px); padding-bottom: 12px; }
.cta__icon {
  display: block; width: 72px; height: 72px; border-radius: 18px; overflow: hidden;
  background: var(--white); box-shadow: 0 12px 28px -12px rgba(91,52,16,.6), 0 0 0 4px rgba(255,255,255,.45);
  margin-bottom: 26px;
}
.cta__icon img { width: 100%; height: 100%; object-fit: cover; }
.cta__icon.img-failed { display: none; }
.cta__title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; max-width: 14ch; }
.cta__text { margin-top: 16px; font-size: 18px; line-height: 1.6; max-width: 42ch; color: #2C2416; }

.qr { display: none; gap: 14px; margin-top: 28px; }
.qr__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: var(--r-md);
  background: rgba(255,255,255,.5); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.qr__item img { width: 84px; height: 84px; border-radius: 8px; }
.qr__item figcaption { font-size: 14px; font-weight: 700; max-width: 9ch; line-height: 1.3; }

.cta__visual { position: relative; height: clamp(300px, 80vw, 380px); }
.phone.cta__phone {
  position: absolute; left: 50%; top: 28px;
  width: min(60%, 250px); transform: translateX(-50%) rotate(-4deg);
}
@media (min-width: 900px) {
  .cta__panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .cta__copy { padding-bottom: clamp(40px, 6vw, 64px); }
  .cta__visual { height: auto; }
  .phone.cta__phone { top: 72px; width: min(74%, 276px); }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .qr { display: flex; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
}
.footer__grid { display: grid; gap: 36px; }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.footer__h {
  font-size: 14px; font-weight: 800; letter-spacing: 0; margin-bottom: 14px; color: var(--ink);
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px;
  color: #3A3A3C; text-decoration: none; overflow-wrap: anywhere;
}
.footer__col a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__col .i { width: 16px; height: 16px; color: var(--amber); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer__brand { grid-column: auto; } }

.disclaimer {
  margin-top: 44px; padding: 22px 24px;
  border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line);
}
.disclaimer .footer__h { margin-bottom: 8px; }
.disclaimer p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer__bottom {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.footer__tm { max-width: 70ch; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top[hidden] { display: none; }

/* ---------- Trailer dialog ---------- */
.trailer {
  width: min(960px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  overflow: hidden;
}
.trailer::backdrop { background: rgba(28, 20, 10, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.trailer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; }
.trailer__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.trailer__frame { aspect-ratio: 16 / 9; background: var(--ink); }
.trailer__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer__alt { padding: 12px 22px 16px; font-size: 14px; }
.trailer__alt a { display: inline-flex; gap: 6px; align-items: center; color: var(--orange-ink); font-weight: 700; }
.trailer__alt .i { width: 16px; height: 16px; }

/* ---------- Motion ---------- */
/* One orchestrated hero entrance, plus quiet reveals for later blocks. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .16s; }
  .hero__copy > :nth-child(5) { animation-delay: .22s; }
  .hero__copy > :nth-child(6) { animation-delay: .26s; }
  .hero__copy > :nth-child(7) { animation-delay: .32s; }
  .hero__phone--front { animation: phone-in-front 1s .18s var(--ease) both; }
  .hero__phone--back  { animation: phone-in-back 1s .3s var(--ease) both; }
  .hero__line { stroke-dashoffset: 1400; animation: draw 2.2s .2s var(--ease) forwards; }

  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes phone-in-front { from { opacity: 0; translate: 0 80px; } }
@keyframes phone-in-back  { from { opacity: 0; translate: 0 120px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
