/* ============================================================
   yestercharts | beta landing page
   HubSpot-style design system, blended with our trading colour
   semantics (mint = up, coral = down).
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-cream:     #FFF8F1;   /* warm section */
  --bg-mist:     #F5F8FA;    /* HubSpot's signature pale-blue surface */
  --bg-mint:     #F0FAF7;    /* cool / fresh */
  --bg-orange:   #FF7A59;
  --bg-navy:     #213343;

  /* Brand */
  --brand:       #FF7A59;     /* HubSpot orange */
  --brand-d:     #E55A38;
  --brand-soft:  #FFE4DC;
  --mint:        #00BDA5;     /* trading "up" */
  --mint-soft:   #D6F3EE;
  --coral:       #F2545B;     /* trading "down" */
  --purple:      #6A78D1;
  --purple-soft: #E6E9F8;

  /* Text */
  --t-1:         #213343;     /* HubSpot navy: headlines */
  --t-2:         #33475B;     /* body */
  --t-3:         #516F90;     /* secondary */
  --t-4:         #7C98B6;     /* tertiary */
  --t-on-dark:   #F5F8FA;
  --t-on-orange: #FFFFFF;

  /* Lines & shadows */
  --line:        #E5EAF0;
  --line-2:      #DCE3EC;
  --shadow-sm:   0 1px 2px rgba(33,51,67,.06);
  --shadow-md:   0 4px 16px -4px rgba(33,51,67,.08), 0 2px 4px rgba(33,51,67,.04);
  --shadow-lg:   0 24px 48px -16px rgba(33,51,67,.16), 0 6px 12px rgba(33,51,67,.04);
  --shadow-orange: 0 14px 30px -10px rgba(255,122,89,.45);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --f-sans:    'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: 'Lexend', 'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--brand); color: #FFFFFF; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--t-2);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; }
body { min-height: 100dvh; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.skip {
  position: absolute;
  left: -1000px; top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 12px; }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  transition: transform .15s var(--ease), background .15s var(--ease),
              border-color .15s var(--ease), box-shadow .15s var(--ease),
              color .15s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--brand-d);
  box-shadow: 0 18px 36px -12px rgba(255,122,89,.55);
}
.btn--primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--t-1);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--bg-mist);
  border-color: var(--line-2);
}

.btn--inverse {
  background: #fff;
  color: var(--brand);
}
.btn--inverse:hover {
  background: #FFF1EC;
  color: var(--brand-d);
}

/* ----------------------------------------------------------------
   Top nav
   ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--t-1);
}
.brand--light { color: var(--t-on-dark); }
.brand__mark { width: 26px; height: 26px; }
.brand__word { font-size: 18px; }

.nav__links {
  display: none;
  gap: 28px;
  font-size: 14.5px;
  color: var(--t-3);
  font-weight: 500;
}
.nav__links a:hover { color: var(--brand); }
@media (min-width: 880px) { .nav__links { display: inline-flex; } }

.nav__cta { padding: 10px 18px; font-size: 14px; }

/* ----------------------------------------------------------------
   Section primitives
   ---------------------------------------------------------------- */
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section__head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--t-1);
  margin: 16px 0 16px;
}
.section__lede {
  color: var(--t-3);
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 0;
}

/* Eyebrow chips: HubSpot's inline coloured pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip--orange { background: var(--brand-soft); color: var(--brand-d); }
.chip--mint   { background: var(--mint-soft);  color: #007A6B; }
.chip--purple { background: var(--purple-soft); color: #4D5BB5; }

.chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0,189,165,.4);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,189,165,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(0,189,165,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,189,165,0); }
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-cream);
  padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero__blob--a {
  top: -200px; right: -120px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(255,122,89,.45), transparent 70%);
}
.hero__blob--b {
  bottom: -260px; left: -160px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,189,165,.30), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
}

.hero__copy { max-width: 620px; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--t-1);
  margin: 18px 0 22px;
}
.hero__hl {
  background: linear-gradient(110deg, var(--brand) 0%, #FFA180 60%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero__sub {
  color: var(--t-3);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero__perks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 560px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t-3);
  letter-spacing: -.005em;
}
.hero__perks li {
  position: relative;
  padding: 0 14px;
  white-space: nowrap;
}
.hero__perks li:first-child { padding-left: 0; }
.hero__perks li:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--t-4);
  opacity: .55;
}

.hero__fineprint {
  margin: 10px 0 0;
  color: var(--t-3);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 540px;
}

/* Countdown card */
.cd {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.cd__title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--t-4);
  font-weight: 600;
}
.cd__row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.cd__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: 0 6px;
  position: relative;
}
.cd__cell + .cd__cell::before {
  content: ':';
  position: absolute;
  left: -12px;
  top: -2px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 36px);
  color: var(--line-2);
}
.cd__num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1;
  color: var(--t-1);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.cd__lbl {
  margin-top: 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--t-4);
  font-weight: 600;
}

/* Signup form */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}
.signup__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .signup__row { grid-template-columns: 1fr 1fr; } }

.field { position: relative; display: block; }
.field input {
  width: 100%;
  padding: 18px 16px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--t-1);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  outline: none;
}
.field input:hover { border-color: var(--line-2); }
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,122,89,.15);
}
.field__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t-4);
  font-size: 14px;
  pointer-events: none;
  transition: top .15s var(--ease), font-size .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
  background: transparent;
  padding: 0 4px;
}
.field input:not(:placeholder-shown) + .field__label,
.field input:focus + .field__label {
  top: 9px;
  transform: translateY(0);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.field input.is-invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(242,84,91,.15);
}

/* Form on the orange CTA band */
.field--on-orange input {
  background: rgba(255,255,255,.95);
  border-color: rgba(255,255,255,.7);
}
.field--on-orange input:hover { border-color: #fff; }
.field--on-orange input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
}
.field--on-orange .field__label { color: rgba(33,51,67,.55); }
.field--on-orange input:not(:placeholder-shown) + .field__label,
.field--on-orange input:focus + .field__label {
  color: var(--brand-d);
}

.signup__btn {
  align-self: flex-start;
  padding: 16px 28px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  box-shadow: 0 16px 36px -10px rgba(255,122,89,.55);
}
.signup__btn:hover {
  box-shadow: 0 22px 48px -12px rgba(255,122,89,.65);
  transform: translateY(-1px);
}
.signup__btn[aria-busy="true"] .signup__btn-label::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.signup__msg {
  margin: 0;
  font-size: 13.5px;
  color: var(--t-4);
  min-height: 18px;
}
.signup__msg.is-ok    { color: #007A6B; font-weight: 600; }
.signup__msg.is-error { color: var(--coral); font-weight: 600; }
.signup__msg--on-orange { color: rgba(255,255,255,.85); }
.signup__msg--on-orange.is-ok    { color: #fff; }
.signup__msg--on-orange.is-error { color: #FFE6E8; }

/* Hero visual: chart card (light mode) */
.hero__visual { position: relative; isolation: isolate; }
.card-chart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transform-origin: center;
  transition: transform .6s var(--ease);
}
.card-chart:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.card-chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-chart__sym { display: flex; flex-direction: column; gap: 2px; }
.card-chart__tick {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--t-1);
}
.card-chart__date {
  font-size: 11.5px;
  color: var(--t-4);
}
.card-chart__price { display: flex; flex-direction: column; align-items: flex-end; }
.card-chart__last {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--t-1);
}
.card-chart__chg {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: #007A6B;
  font-weight: 600;
}

.card-chart__svg {
  display: block;
  width: 100%;
  height: 240px;
  border-radius: 14px;
  background: var(--bg-mist);
}
.card-chart__pricetick { animation: tick 3.6s var(--ease) infinite; }
@keyframes tick {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

.card-chart__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-chart__chip {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-mist);
  color: var(--t-3);
  font-weight: 500;
}
.card-chart__chip--ok {
  color: #007A6B;
  background: var(--mint-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--t-3);
  font-weight: 500;
  box-shadow: var(--shadow-md);
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}
.badge--float {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

/* ----------------------------------------------------------------
   Trust strip
   ---------------------------------------------------------------- */
.trust {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
@media (min-width: 760px) { .trust__inner { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; flex-direction: column; padding: 4px 0; }
.trust__item strong {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -.005em;
}
.trust__item span { font-size: 13.5px; color: var(--t-3); }

/* ----------------------------------------------------------------
   Why grid
   ---------------------------------------------------------------- */
.why {
  background: var(--bg-cream);
  padding: clamp(48px, 6.5vw, 80px) 0;
}
.grid--why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px)  { .grid--why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--why { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--orange { background: var(--brand-soft); color: var(--brand-d); }
.card__icon--mint   { background: var(--mint-soft); color: #007A6B; }
.card__icon--purple { background: var(--purple-soft); color: #4D5BB5; }

.card h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -.005em;
}
.card p {
  margin: 0;
  color: var(--t-3);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   How it works
   ---------------------------------------------------------------- */
.how {
  background: #fff;
  padding: clamp(48px, 6.5vw, 80px) 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: 36px 30px 30px;
  border-radius: var(--r-lg);
  background: var(--bg-mist);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .12em;
  display: inline-flex;
  padding: 4px 10px;
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -.01em;
}
.step p {
  margin: 0;
  color: var(--t-3);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   Pricing teaser
   ---------------------------------------------------------------- */
.pricing {
  background: var(--bg-mint);
  padding: clamp(48px, 7vw, 88px) 0;
}
.pricing__card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.pricing__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  color: var(--t-1);
  letter-spacing: -.02em;
  margin: 16px 0 12px;
}
.pricing__sub {
  color: var(--t-3);
  margin: 0 auto 28px;
  max-width: 540px;
}
.pricing__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 480px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pricing__list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--t-2);
  font-size: 14.5px;
  font-weight: 500;
}
.pricing__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mint);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3 3 7-7' stroke='black' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3 3 7-7' stroke='black' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px 12px no-repeat;
}
.pricing__cta { padding: 14px 26px; font-size: 15px; }

/* ----------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------- */
.faq {
  background: #fff;
  padding: clamp(48px, 6.5vw, 80px) 0;
}
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-md);
  padding: 4px 22px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.faq__item:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.faq__item[open] {
  background: var(--bg-cream);
  border-color: var(--brand-soft);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--t-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--brand);
  transition: transform .25s var(--ease);
  line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 0 0 18px;
  color: var(--t-3);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 700px;
}

/* ----------------------------------------------------------------
   Bottom CTA band (orange)
   ---------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, #FF7A59 0%, #FF9777 100%);
  padding: clamp(56px, 7.5vw, 92px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.15), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.10), transparent 50%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.cta__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  color: #fff;
}
.cta__sub {
  color: rgba(255,255,255,.92);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.signup--cta { margin: 0 auto; align-items: center; }
.signup--cta .signup__btn { align-self: center; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer {
  background: var(--bg-navy);
  color: var(--t-on-dark);
  position: relative;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad-x) 36px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1.2fr 2fr; align-items: start; }
}
.footer__tag {
  margin: 14px 0 0;
  color: rgba(245,248,250,.6);
  font-size: 13.5px;
  max-width: 280px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
@media (min-width: 600px) {
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
.footer__col h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,248,250,.55);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 14px;
  color: rgba(245,248,250,.78);
  padding: 5px 0;
}
.footer__col a:hover { color: #fff; }

.footer__base {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(245,248,250,.55);
  font-size: 12.5px;
}

/* ----------------------------------------------------------------
   Reveal-on-scroll utility
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   Mobile polish (iOS Safari + Android Chrome)
   ---------------------------------------------------------------- */

/* Stop iOS Safari from auto-zooming when an input gets focus.
   Inputs must be >= 16px font-size on iOS. */
@media (max-width: 640px) {
  .field input { font-size: 16px; }
}

/* Eliminate the long blue tap highlight on Android Chrome. */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Disable the 3D tilt and never let the chart card overflow on small screens. */
@media (max-width: 900px) {
  .card-chart { transform: none; }
}

/* Phone layout: tighten the hero, full-width CTA, full-width countdown. */
@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: clamp(36px, 11vw, 56px);
    line-height: 1.05;
    margin: 14px 0 16px;
  }
  .hero__sub {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
  }

  /* Countdown: full width, evenly spaced cells, no decorative ":" between */
  .cd { display: flex; width: 100%; box-sizing: border-box; padding: 14px 14px; }
  .cd__row { width: 100%; gap: 6px; justify-content: space-between; }
  .cd__cell { min-width: 0; flex: 1 1 0; padding: 0 4px; }
  .cd__num { font-size: 26px; }
  .cd__lbl { font-size: 9.5px; }
  .cd__cell + .cd__cell::before { display: none; }

  /* CTAs full-width on small screens for easier tapping */
  .signup__btn,
  .signup--cta .signup__btn { width: 100%; align-self: stretch; justify-content: center; }
  .signup__row { gap: 8px; }

  /* Cards / sections: tighter inner padding on mobile */
  .card { padding: 22px; }
  .step { padding: 26px 22px 22px; }
  .pricing__card { padding: 28px 22px; }
  .cta__inner { padding: 28px 22px; }

  .hero__perks { gap: 6px 14px; }

  /* Trust strip: 2-col stays, smaller numbers */
  .trust__item strong { font-size: 19px; }
  .trust__item span   { font-size: 12.5px; }

  /* Section heads: less bottom margin */
  .section__head { margin-bottom: 28px; }

  /* Footer: roomier padding adjust */
  .footer__inner { padding: 44px var(--pad-x) 28px; gap: 28px; }
}

/* Very small phones (Galaxy A series, iPhone SE): keep nav from wrapping */
@media (max-width: 480px) {
  .nav__inner { gap: 10px; }
  .nav__cta {
    padding: 9px 14px;
    font-size: 13px;
  }
  .nav__cta svg { display: none; }
  .brand__word { font-size: 16px; }

  /* Card-chart svg shorter on small phones to free up vertical room */
  .card-chart__svg { height: 200px; }
  .card-chart__head { flex-wrap: wrap; }
  .card-chart__price { align-items: flex-start; margin-top: 4px; }
}

/* iOS notch / home-bar safe area for any sticky element near the bottom */
@supports (padding: max(0px)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ----------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card-chart { transform: none; }
}
