/* ============================================================
   FINSURI — Pricing + Waitlist pages
   Extends the Style A token system (assets/styles.css)
   ============================================================ */

/* ---- Shared page hero (no bezel) ---- */
.page-hero { padding: 150px 0 8px; }
.page-hero .wrap { max-width: 880px; }
.page-hero.center { text-align: center; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700; letter-spacing: -0.035em; line-height: .98;
  color: var(--ink); text-wrap: balance;
}
.page-hero h1 .serif { font-weight: 400; color: var(--navy); }
.page-hero .lede {
  margin: 22px auto 0; font-size: 18px; line-height: 1.55;
  color: var(--ink-body); max-width: 52ch;
}
.page-hero.center .lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   BILLING TOGGLE
   ============================================================ */
.bill-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 5px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  margin-top: 34px;
}
.bill-toggle button {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-body);
  padding: 9px 18px; border-radius: var(--r-pill); border: none; background: transparent;
  cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease); white-space: nowrap;
}
.bill-toggle button.on { background: var(--ink); color: #fff; }
.bill-toggle .save { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .06em; color: var(--succ-fg); margin-left: 4px; }

/* ============================================================
   TIER CARDS
   ============================================================ */
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--maxw); margin: 56px auto 0; padding: 0 32px;
  align-items: stretch;
}
.tier {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 30px 28px;
  display: flex; flex-direction: column; position: relative;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tier:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tier.featured {
  border-color: var(--navy); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--ai-tint) 0%, var(--surface) 120px);
}
.tier .tier-badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--navy); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap;
}
.tier .tier-head { display: flex; flex-direction: column; min-height: 256px; }
.tier .tier-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.tier .tier-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-body); min-height: 40px; }

.tier .reg { margin-top: 9px; font-size: 12.5px; color: var(--ink-muted); }
.tier .reg .was { text-decoration: line-through; color: var(--ink-muted); font-weight: 600; }

.tier .price { margin-top: 22px; display: flex; align-items: flex-end; gap: 6px; }
.tier .price .cur { font-size: 20px; font-weight: 600; color: var(--ink); padding-bottom: 7px; }
.tier .price .amt { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tier .price .per { font-size: 13px; color: var(--ink-muted); padding-bottom: 6px; line-height: 1.3; max-width: 9ch; }
.tier .price.custom .amt { font-size: 36px; letter-spacing: -0.03em; }
.tier .price-note { margin-top: 9px; font-size: 12px; color: var(--ink-muted); }

.tier .tier-cta { margin-top: 24px; width: 100%; justify-content: center; }

.tier .tier-feats {
  list-style: none; margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 13px;
}
.tier .tier-feats .lead { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.tier .tier-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-body); }
.tier .tier-feats li .tk { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--ai-tint); color: var(--navy); display: grid; place-items: center; margin-top: 1px; }
.tier .tier-feats li .tk svg { width: 11px; height: 11px; }
.tier .tier-feats li b { color: var(--ink); font-weight: 700; }

/* early-access price label */
.tier .ea-pill {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--succ-fg); background: var(--succ-bg);
  padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.tier .ea-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--succ-fg); }
.tier .ea-pill + .price { margin-top: 14px; }

/* "coming soon" badge (cards + table) */
.soon {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--adv-fg); background: var(--adv-bg);
  padding: 3px 8px; border-radius: var(--r-pill); margin-left: 8px;
}
.cmp td .soon { margin-left: 0; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.cmp-section { padding: 96px 0 0; }
.cmp-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.cmp-head .section-title { font-size: clamp(28px, 3.2vw, 40px); }

.cmp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.cmp {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-size: 14px;
}
.cmp col.col-feat { width: 34%; }
.cmp col.col-plan { width: 22%; }

.cmp thead th { position: sticky; top: 0; z-index: 5; }
.cmp thead .plan-th {
  background: var(--canvas); padding: 16px 18px 18px; text-align: left; vertical-align: bottom;
  border-bottom: 1px solid var(--ink);
}
.cmp thead .plan-th .pn { font-size: 15px; font-weight: 700; color: var(--ink); }
.cmp thead .plan-th .pp { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.cmp thead .plan-th.feat { background: var(--ai-tint); border-bottom-color: var(--navy); }
.cmp thead .plan-th.feat .pn { color: var(--navy); }

.cmp .grp td {
  padding: 26px 18px 10px; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline);
}
.cmp tbody td { padding: 13px 18px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.cmp tbody td.feat-cell { color: var(--ink); font-weight: 500; }
.cmp tbody td.val { color: var(--ink-body); font-size: 13.5px; }
.cmp tbody td.val.col-feat-on { background: rgba(27,43,92,.035); }
.cmp tbody td .yes { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--ai-tint); color: var(--navy); }
.cmp tbody td .yes svg { width: 12px; height: 12px; }
.cmp tbody td .no { color: var(--hairline); font-size: 16px; }
.cmp tbody td .mono { font-size: 12.5px; }
.cmp tbody tr:hover td { background: var(--warm-hover); }
.cmp tbody tr:hover td.val.col-feat-on { background: rgba(27,43,92,.06); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 96px 0 0; }
.faq-grid { max-width: 880px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--hairline); }
.faq-item h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.faq-item p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--ink-body); }

/* ============================================================
   WAITLIST PAGE
   ============================================================ */
.wl-section { padding: 132px 0 40px; }
.wl-grid {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.wl-copy .eyebrow { margin-bottom: 22px; }
.wl-copy h1 {
  font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.035em;
  line-height: .98; color: var(--ink); text-wrap: balance;
}
.wl-copy h1 .serif { font-weight: 400; color: var(--navy); }
.wl-copy .lede { margin-top: 22px; font-size: 17.5px; line-height: 1.55; color: var(--ink-body); max-width: 46ch; }

.wl-points { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.wl-points .wp { display: flex; gap: 14px; }
.wl-points .wp .wk { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--ai-tint); color: var(--navy); display: grid; place-items: center; margin-top: 1px; }
.wl-points .wp .wk svg { width: 14px; height: 14px; }
.wl-points .wp h4 { font-size: 15px; font-weight: 600; color: var(--ink); }
.wl-points .wp p { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--ink-body); }

/* form card */
.wl-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  padding: 34px 32px; position: relative; overflow: hidden;
}
.wl-card .wl-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.wl-card .wl-card-head .ttl { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.wl-card .seats { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--succ-fg); display: inline-flex; align-items: center; gap: 7px; }
.wl-card .seats .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--succ-fg); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-body); margin-bottom: 7px; letter-spacing: .01em; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-btn);
  padding: 12px 14px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8F9C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; cursor: pointer;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,43,92,.12); }
.field input::placeholder { color: var(--ink-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.wl-submit { width: 100%; justify-content: center; margin-top: 6px; }
.wl-fine { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--ink-muted); text-align: center; }
.wl-fine a { color: var(--ink-body); text-decoration: underline; text-underline-offset: 2px; }

/* success state */
.wl-success { display: none; text-align: center; padding: 16px 4px 8px; }
.wl-card.done .wl-form-body { display: none; }
.wl-card.done .wl-success { display: block; }
.wl-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--succ-bg); color: var(--succ-fg); display: grid; place-items: center; margin: 0 auto 20px; }
.wl-success .check svg { width: 28px; height: 28px; }
.wl-success h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.wl-success p { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-body); max-width: 34ch; margin-left: auto; margin-right: auto; }
.wl-success .qpos { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.wl-success .qpos b { color: var(--navy); font-size: 15px; }

.wl-trust { max-width: 1120px; margin: 64px auto 0; padding: 30px 32px 0; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; gap: 14px 30px; flex-wrap: wrap;
  color: var(--ink-muted); font-size: 12.5px; }
.wl-trust b { color: var(--ink-body); font-weight: 600; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; }
  .tier.featured { order: -1; }
  .wl-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq-grid { grid-template-columns: 1fr; }
  /* collapse comparison table into the featured column only could be complex; allow horizontal scroll */
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp { min-width: 720px; }
}
@media (max-width: 720px) {
  .page-hero { padding-top: 110px; }
  .wl-section { padding-top: 104px; }
  .field-row { grid-template-columns: 1fr; }
  .tiers, .wl-grid, .cmp-wrap, .wl-trust { padding-left: 20px; padding-right: 20px; }
}
