/* ==========================================================================
   CommentFlow — landing page (bright)
   Light, spacious, product-forward. Heavy geometric headings, gradient
   keywords, pill controls, soft rounded cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:          #ffffff;
  --bg-soft:     #f7f8fc;
  --bg-tint:     #f2f3ff;
  --card:        #ffffff;

  /* Text */
  --ink:         #0d1017;
  --body:        #4d566b;
  --muted:       #7b8598;

  /* Lines */
  --line:        #e7eaf1;
  --line-strong: #d7dbe6;

  /* Brand */
  --primary:     #4f46e5;
  --primary-700: #4338ca;
  --primary-050: #eef0ff;
  --cyan:        #06b6d4;
  --emerald:     #10b981;
  --emerald-050: #ecfdf5;
  --amber:       #f59e0b;
  --amber-050:   #fffbeb;
  --rose:        #f43f5e;

  --grad: linear-gradient(100deg, #4f46e5 0%, #6366f1 42%, #0891b2 100%);

  /* Type */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Metrics */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max:    75rem;
  --r-sm:   .625rem;
  --r:      1rem;
  --r-lg:   1.5rem;
  --r-xl:   2rem;

  --sh-xs: 0 1px 2px rgba(13, 16, 23, .05);
  --sh-sm: 0 2px 8px -2px rgba(13, 16, 23, .07);
  --sh-md: 0 12px 28px -12px rgba(13, 16, 23, .14);
  --sh-lg: 0 32px 64px -28px rgba(13, 16, 23, .28);

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: #dcdcff; color: var(--ink); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Type primitives
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 3rem); }
h3 { font-size: 1.125rem; letter-spacing: -.018em; line-height: 1.3; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  color: var(--body);
  line-height: 1.62;
  text-wrap: pretty;
}

.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.02em; }

/* Centred eyebrow with flanking rules — "— HOW IT WORKS —" */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--line-strong);
}

/* Pill badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4375rem .875rem .4375rem .6875rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh-xs);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 52rem; }

.band { padding-block: clamp(4rem, 8vw, 7rem); }
.band--soft { background: var(--bg-soft); }
.band--line { border-top: 1px solid var(--line); }

.head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.head .eyebrow { margin-bottom: 1.125rem; }
.head .lede { margin-top: 1.125rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background .2s, border-color .2s, color .2s;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6);
}

.btn--primary:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(79, 70, 229, .65);
}

.btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-xs);
}

.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--sh-sm); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--sm { padding: .625rem 1.125rem; font-size: .875rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform .3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.nav[data-stuck="true"] { border-bottom-color: var(--line); box-shadow: var(--sh-xs); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .5625rem;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -.032em;
  color: var(--ink);
}

.logo__mark {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: .5625rem;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -3px rgba(79, 70, 229, .55);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: 1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--body);
}

.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--primary); }

.nav__end { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.nav__end .plain { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.nav__end .plain:hover { color: var(--primary); }

@media (max-width: 940px) {
  .nav__links, .nav__end .plain { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

/* Soft colour wash behind the fold */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 90rem;
  height: 60rem;
  translate: -50% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 26rem at 30% 22%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(34rem 24rem at 72% 12%, rgba(6, 182, 212, .14), transparent 70%),
    radial-gradient(30rem 22rem at 52% 46%, rgba(244, 63, 94, .06), transparent 70%);
}

.hero h1 { margin: 1.5rem auto 1.25rem; max-width: 24ch; }
.hero .lede { max-width: 40rem; margin-inline: auto; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.125rem;
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Live demo window
   -------------------------------------------------------------------------- */
.window {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  text-align: left;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.125rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.window__dots { display: flex; gap: .375rem; }
.window__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }

.window__title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.window__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .1875rem .5625rem;
  border-radius: 999px;
  background: #fff1f3;
  color: var(--rose);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.window__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse 1.4s var(--ease) infinite;
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

@media (max-width: 760px) { .demo { grid-template-columns: 1fr; } }

.demo__col { padding: 1rem; min-width: 0; }
.demo__col + .demo__col { border-left: 1px solid var(--line); background: #fcfcfe; }

@media (max-width: 760px) {
  .demo__col + .demo__col { border-left: none; border-top: 1px solid var(--line); }
}

.demo__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .25rem .375rem .875rem;
}

/* Fixed height, newest pinned to the bottom: the columns behave like a live
   feed and can never reflow the fold while the demo plays. */
.stream, .rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  overflow: hidden;
}

.stream { height: 13.5rem; }
.rows   { height: 13.5rem; }

@media (max-width: 760px) {
  .stream { height: 11rem; }
  .rows   { height: 14rem; }
}

/* A Facebook comment */
.comment {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  animation: rise-in .5s var(--ease-out) both;
}

.avatar {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: .6875rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.comment__bubble {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: .875rem;
  border-top-left-radius: .25rem;
  padding: .5rem .75rem;
  min-width: 0;
}

.comment__who { display: block; font-size: .6875rem; font-weight: 700; color: var(--muted); }

.comment__text {
  display: block;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink);
  word-break: break-word;
  margin-top: .0625rem;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* A parsed order row */
.row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .875rem;
  padding: .625rem .75rem;
  box-shadow: var(--sh-xs);
  animation: rise-in .5s var(--ease-out) both;
}

.row__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.row__code {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-050);
  border-radius: .3125rem;
  padding: .0625rem .375rem;
}

.row__name { font-size: .8125rem; font-weight: 700; color: var(--ink); }

.chip {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--body);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: .3125rem;
  padding: .0625rem .375rem;
}

.chip--color { color: #8a5a12; background: var(--amber-050); border-color: #f6e4bb; }

.row__sum {
  margin-left: auto;
  font-size: .8125rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.row__state {
  margin-top: .4375rem;
  display: inline-flex;
  align-items: center;
  gap: .3125rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .125rem .4375rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  transition: background .3s, color .3s;
}

.row__state[data-state="parsed"]        { background: var(--amber-050);   color: #a86b09; }
.row__state[data-state="checkout sent"] { background: var(--primary-050); color: var(--primary-700); }
.row__state[data-state="paid"]          { background: var(--emerald-050); color: #067a55; }
.row__state[data-state="queued"]        { background: #fff1f3;            color: #b81f39; }

.window__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: .875rem 1.125rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

.window__foot b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   9. Channel chips + value row
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .625rem;
  margin-top: 2.5rem;
}

.chips__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: .875rem;
  font-weight: 600;
  color: var(--body);
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease-out), border-color .2s;
}

.chips__item:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.chips__item svg { color: var(--primary); flex-shrink: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2rem;
}

.value { display: flex; gap: .875rem; align-items: flex-start; }

.icon-chip {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .8125rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--primary-050);
  color: var(--primary);
  border: 1px solid #e0e2ff;
}

.value p { font-size: .9375rem; line-height: 1.5; }
.value b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   10. Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--sh-xs);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.step__no {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: .875rem;
  font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .6);
  margin-bottom: 1.125rem;
}

.step h3 { margin-bottom: .5rem; }
.step p { font-size: .9375rem; }

.step__list {
  list-style: none;
  margin-top: 1.125rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .625rem;
  font-size: .875rem;
}

.step__list li { position: relative; padding-left: 1.375rem; line-height: 1.45; }

.step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4375rem;
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  border: 2px solid var(--emerald);
}

.step__list b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   11. Feature cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.625rem 1.5rem;
  box-shadow: var(--sh-xs);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #dcdfea; }

.card .icon-chip { margin-bottom: 1.125rem; }
.card h3 { margin-bottom: .4375rem; }
.card p { font-size: .9375rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   12. Compare (before / after)
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

.panel {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2.125rem);
  border: 1px solid var(--line);
  background: var(--card);
}

.panel--after {
  border-color: #dcdfff;
  background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 60%);
  box-shadow: var(--sh-sm);
}

.panel__tag {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.375rem;
}

.panel--after .panel__tag { color: var(--primary); }

.tally { list-style: none; display: flex; flex-direction: column; gap: .875rem; }

.tally li {
  position: relative;
  padding-left: 1.875rem;
  font-size: .9375rem;
  line-height: 1.5;
}

.tally li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--bg-soft) center / .625rem no-repeat;
  border: 1px solid var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237b8598' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 3l6 6M9 3l-6 6'/%3E%3C/svg%3E");
}

.panel--after .tally li::before {
  background-color: var(--emerald-050);
  border-color: #bbf0d8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23067a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5.5'/%3E%3C/svg%3E");
}

.tally .mono { color: var(--ink); }

/* --------------------------------------------------------------------------
   13. Marquee — spelling gauntlet
   -------------------------------------------------------------------------- */
.gauntlet {
  overflow: hidden;
  display: flex;
  padding-block: .25rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gauntlet__track {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding-right: .625rem;
  flex-shrink: 0;
  animation: marquee 52s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.gauntlet:hover .gauntlet__track { animation-play-state: paused; }

.spell {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4375rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--body);
  white-space: nowrap;
  box-shadow: var(--sh-xs);
}

.spell b {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--emerald);
}

/* --------------------------------------------------------------------------
   14. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.stat {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat b {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. Pricing
   -------------------------------------------------------------------------- */
/* stretch, not start: equal-height cards so the three CTA buttons line up */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
}

.plan--feature {
  border-color: var(--primary);
  box-shadow: 0 24px 48px -24px rgba(79, 70, 229, .4);
}

@media (min-width: 921px) {
  .plan--feature { transform: scale(1.03); }
}

.plan__flag {
  position: absolute;
  top: -.75rem;
  left: 50%;
  translate: -50% 0;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan__name { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  margin-top: 1rem;
  font-size: clamp(2.25rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
  line-height: 1;
}

.plan__price small { font-size: .875rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.plan__note { font-size: .875rem; margin-top: .875rem; min-height: 3.5rem; }

.plan__list {
  list-style: none;
  margin: 1.5rem 0;
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .9125rem;
  flex: 1;
}

.plan__list li { position: relative; padding-left: 1.625rem; line-height: 1.45; }

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--emerald-050) center / .625rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23067a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5.5'/%3E%3C/svg%3E");
}

.plan__list b { color: var(--ink); font-weight: 700; }

.fineprint {
  margin-top: 1.75rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: .75rem; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 1.25rem;
  transition: border-color .3s, box-shadow .3s;
}

.faq details[open] { border-color: #dcdfff; box-shadow: var(--sh-sm); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.125rem;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  margin-left: auto;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg-soft) center / .75rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease-out), background-color .2s;
}

.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--primary-050); }

.faq details > p {
  padding-bottom: 1.25rem;
  font-size: .9375rem;
  max-width: 60ch;
}

.faq details > p + p { padding-top: .875rem; margin-top: -.875rem; }

/* --------------------------------------------------------------------------
   17. Closing CTA
   -------------------------------------------------------------------------- */
.close {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 42%, #0891b2 100%);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  box-shadow: 0 40px 80px -40px rgba(67, 56, 202, .7);
}

.close::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(24rem 16rem at 88% 8%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(20rem 14rem at 8% 92%, rgba(255, 255, 255, .14), transparent 70%);
}

.close__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) { .close__grid { grid-template-columns: 1fr; } }

.close h2 { color: #fff; }
.close .lede { color: rgba(255, 255, 255, .88); margin-top: 1rem; }

.close__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .8125rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
  font-size: .8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.close__mail { margin-top: 1.5rem; font-size: .875rem; color: rgba(255, 255, 255, .88); }
.close__mail a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Form */
.form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--sh-lg);
}

.field label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}

.field input, .field select {
  width: 100%;
  padding: .75rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: .9375rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: #aab2c0; }

.field input:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-050);
}

.form__msg {
  font-size: .8125rem;
  font-weight: 600;
  color: #067a55;
  background: var(--emerald-050);
  border-radius: var(--r-sm);
  padding: .625rem .75rem;
}

.form__msg[data-state="error"] { color: #b81f39; background: #fff1f3; }

.form__fine { font-size: .75rem; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-block: 3.5rem 2.5rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

.foot__blurb { font-size: .875rem; margin-top: 1rem; max-width: 28ch; }

.foot h4 {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.foot nav { display: flex; flex-direction: column; gap: .625rem; font-size: .9125rem; }
.foot nav a:hover { color: var(--primary); }

.foot__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   19. Reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

[data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-enter] { opacity: 0; animation: rise .8s var(--ease-out) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero [data-enter="1"] { animation-delay: .04s; }
.hero [data-enter="2"] { animation-delay: .12s; }
.hero [data-enter="3"] { animation-delay: .2s; }
.hero [data-enter="4"] { animation-delay: .28s; }
.hero [data-enter="5"] { animation-delay: .36s; }
.hero [data-enter="6"] { animation-delay: .44s; }
.hero [data-enter="7"] { animation-delay: .52s; }

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-enter] { opacity: 1; }
}
