/* =========================================================
   TraderJoe — Design System
   Archetype: Confident Consumer Fintech
   ========================================================= */

/* -------- Tokens ----------------------------------------- */
:root {
  /* Color: neutrals (warm, not stark) */
  --bg:        #FBF7EF;   /* page background, cream */
  --surface:   #FFFFFF;   /* cards, panels */
  --surface-2: #F3EEE1;   /* subtle secondary surface */
  --ink:       #0D1614;   /* primary text, green-tinted near-black */
  --ink-2:     #3A4A44;   /* secondary text */
  --ink-3:     #6B7A72;   /* tertiary text, metadata */
  --border:    #E3DFD2;   /* hairlines */
  --border-2:  #D5CEB8;   /* stronger borders */

  /* Color: brand */
  --brand:       #14482E; /* deep forest green — primary */
  --brand-hover: #0E3522;
  --brand-soft:  #E4EEE6; /* tint for badges/pills */
  --brand-ink:   #0B2D1C; /* text on brand-soft backgrounds */

  /* Color: accents & semantic */
  --accent:   #D98A2B;    /* warm amber for callouts */
  --accent-soft: #FBEBD0;
  --positive: #15803D;    /* profit/approved */
  --positive-soft: #DFF5E5;
  --negative: #B91C1C;    /* loss/rejected */
  --negative-soft: #FBEAEA;
  --info:     #1E4F82;    /* Claude advisor blue */
  --info-soft: #E3ECF5;

  /* Typography */
  --font-display: "Fraunces", "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale */
  --fs-display: clamp(44px, 6.2vw, 72px);
  --fs-h1:      clamp(36px, 4.4vw, 52px);
  --fs-h2:      clamp(28px, 3.2vw, 40px);
  --fs-h3:      22px;
  --fs-h4:      18px;
  --fs-lead:    20px;
  --fs-body:    17px;
  --fs-small:   15px;
  --fs-label:   13px;

  /* Spacing */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13,22,20,.04);
  --shadow-md: 0 1px 2px rgba(13,22,20,.04), 0 8px 24px rgba(20,72,46,.06);
  --shadow-lg: 0 2px 4px rgba(13,22,20,.06), 0 20px 48px rgba(20,72,46,.10);

  /* Layout */
  --container: 1200px;
  --rail: 960px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t-mid:  220ms;
}

/* -------- Reset ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-7) 0; }

/* Focus ring — visible, brand-aware */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  z-index: 1000;
  font-weight: 500;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* -------- Typography ------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.35; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; color: var(--brand); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.muted { color: var(--ink-3); }
.overline {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* -------- Layout ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.rail { max-width: var(--rail); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }

.section-header { max-width: 760px; margin-bottom: var(--s-7); }
.section-header .overline { display: block; margin-bottom: var(--s-3); }
.section-header h2 + .lead { margin-top: var(--s-4); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------- Buttons ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--surface-2); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--brand); }

.btn-arrow::after { content: "→"; margin-left: 4px; transition: transform var(--t-fast) var(--ease); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* -------- Badge / chip ----------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  line-height: 1;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; }
.chip-positive { background: var(--positive-soft); color: #0f5b29; }
.chip-positive .chip-dot { background: var(--positive); }
.chip-negative { background: var(--negative-soft); color: #8a1515; }
.chip-negative .chip-dot { background: var(--negative); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-info .chip-dot { background: var(--info); }
.chip-accent { background: var(--accent-soft); color: #8a5416; }
.chip-accent .chip-dot { background: var(--accent); }

/* -------- Cards ------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.card-flush { padding: 0; overflow: hidden; }
.card-elevated { box-shadow: var(--shadow-md); border-color: transparent; }
.card-outline { background: transparent; }
.card-dark { background: var(--ink); color: #E8EFE9; border-color: transparent; }
.card-dark h3, .card-dark h2 { color: #fff; }
.card-dark .muted { color: #9AB0A5; }

/* -------- Top nav ---------------------------------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.nav-wrap.is-scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 68px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.nav-brand-mark {
  width: 30px;
  height: 30px;
  color: var(--brand);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-brand-mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: none;
  gap: var(--s-5);
  font-size: 15px;
  color: var(--ink-2);
}
.nav-links a { padding: 6px 2px; border-bottom: 1px solid transparent; transition: color var(--t-fast) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-signin { font-size: 15px; color: var(--ink-2); display: none; }
.nav-signin:hover { color: var(--ink); }
@media (min-width: 820px) {
  .nav-links { display: inline-flex; }
  .nav-signin { display: inline-flex; }
}

/* -------- Footer ----------------------------------------- */
.footer {
  background: var(--ink);
  color: #C8D4CE;
  margin-top: var(--s-10);
}
.footer a { color: #C8D4CE; }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-block: var(--s-9);
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col ul li { padding: 6px 0; font-size: 15px; }
.footer .nav-brand { color: #fff; font-size: 20px; }
.footer .nav-brand-mark { color: #fff; width: 34px; height: 34px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: flex-start;
  justify-content: space-between;
  font-size: 13px;
  color: #9AB0A5;
}
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}
.risk-line {
  font-size: 13px;
  line-height: 1.55;
  color: #9AB0A5;
  max-width: 880px;
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* -------- Top strip (risk disclosure) -------------------- */
.topstrip {
  background: var(--ink);
  color: #C8D4CE;
  font-size: 13px;
  padding: 9px 16px;
  text-align: center;
  letter-spacing: 0.01em;
}
.topstrip strong { color: #fff; font-weight: 500; }
.topstrip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* -------- Hero ------------------------------------------- */
.hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-9); }
}
.hero .display { margin-bottom: var(--s-5); }
.hero .lead { margin-bottom: var(--s-6); max-width: 520px; }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.hero-trust {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--ink-3); font-size: 14px;
}
.hero-trust svg { flex-shrink: 0; }

/* Broker logos row */
.logos {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  margin-top: var(--s-7);
  color: var(--ink-3);
  font-size: 13px;
}
.logos-label { font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--ink-3); }
.logos-items { display: flex; gap: var(--s-6); flex-wrap: wrap; align-items: center; color: var(--ink-2); font-weight: 500; }
.logos-items span {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  opacity: 0.72;
}

/* -------- Telegram chat mockup --------------------------- */
.chat {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}
.chat-head {
  background: #FAFAF7;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2b7a52);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
}
.chat-head-meta { line-height: 1.2; }
.chat-head-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.chat-head-sub { font-size: 12px; color: var(--ink-3); }
.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FDFBF5;
}
.bubble {
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.bubble-bot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  align-self: flex-start;
  color: var(--ink);
}
.bubble-user {
  background: var(--brand);
  color: #fff;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
.bubble-user a { color: #fff; text-decoration: underline; }
.bubble-system {
  background: var(--brand-soft);
  color: var(--brand-ink);
  align-self: center;
  font-size: 13px;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  max-width: 100%;
}
.bubble .meta {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
.bubble-user .meta { color: rgba(255,255,255,.7); }
.bubble-decision {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--positive);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  align-self: stretch;
  max-width: 100%;
}
.bubble-decision.reject { border-left-color: var(--negative); }
.bubble-decision-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.bubble-decision-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.bubble-decision-conf { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.bubble-decision-reason { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* Typing indicator */
.typing {
  display: inline-flex; gap: 4px; align-items: center;
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* -------- Stat block ------------------------------------- */
.stat {
  padding: var(--s-5);
  border-radius: var(--r-md);
}
.stat-num { font-family: var(--font-display); font-size: 48px; line-height: 1; letter-spacing: -0.02em; color: var(--brand); font-weight: 400; }
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: var(--s-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* -------- Problem / solution tiles ----------------------- */
.tile {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.tile-problem h3 { margin-bottom: 8px; color: var(--ink); }
.tile-problem p { color: var(--ink-2); font-size: 15.5px; }
.tile-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: var(--s-4);
  font-size: 20px;
}
.tile-icon-accent { background: var(--accent-soft); color: #8a5416; }
.tile-icon-info { background: var(--info-soft); color: var(--info); }
.tile-icon-negative { background: var(--negative-soft); color: var(--negative); }

/* -------- Section: cheap filter / expensive judge -------- */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 800px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 0; }
}
.flow-step {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
@media (min-width: 800px) {
  .flow-step { border-radius: 0; border-right-width: 0; }
  .flow-step:first-child { border-top-left-radius: var(--r-lg); border-bottom-left-radius: var(--r-lg); }
  .flow-step:last-child  { border-top-right-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); border-right-width: 1px; }
}
.flow-step .overline { color: var(--ink-3); font-size: 11px; }
.flow-step h4 { margin-top: 6px; margin-bottom: 8px; font-weight: 600; }
.flow-step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.flow-step .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
}
.flow-step.is-ai { background: var(--ink); color: #E8EFE9; border-color: transparent; }
.flow-step.is-ai .overline { color: #9AB0A5; }
.flow-step.is-ai h4 { color: #fff; }
.flow-step.is-ai p { color: #C8D4CE; }
.flow-step.is-ai .tag { color: #9AB0A5; }

/* -------- Transparency table ----------------------------- */
.trades {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trade-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-5);
  border-top: 1px solid var(--border);
}
.trade-row:first-child { border-top: 0; }
@media (min-width: 820px) {
  .trade-row {
    grid-template-columns: 140px 120px 1fr 140px;
    align-items: center;
    gap: var(--s-5);
  }
}
.trade-pair { font-family: var(--font-mono); font-size: 15px; color: var(--ink); font-weight: 500; }
.trade-signal { font-size: 14px; color: var(--ink-2); }
.trade-reasoning { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.trade-reasoning strong { color: var(--ink); font-weight: 500; }
.trade-outcome { font-family: var(--font-mono); font-size: 14px; text-align: left; }
@media (min-width: 820px) {
  .trade-outcome { text-align: right; }
}
.trade-outcome.pos { color: var(--positive); }
.trade-outcome.neg { color: var(--negative); }
.trade-outcome.neutral { color: var(--ink-3); }

/* -------- Safety rails list ------------------------------ */
.rail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 720px) { .rail-list { grid-template-columns: 1fr 1fr; } }
.rail-item {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.rail-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--positive-soft); color: var(--positive);
  display: grid; place-items: center;
  flex-shrink: 0; margin-top: 2px;
}
.rail-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.rail-item p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* -------- Pricing ---------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 820px) { .pricing { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.plan {
  position: relative;
  padding: var(--s-7);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.plan-featured { background: var(--ink); color: #E8EFE9; border-color: transparent; }
.plan-featured h3, .plan-featured .price { color: #fff; }
.plan-featured .plan-period, .plan-featured li { color: #C8D4CE; }
.plan-featured .plan-div { border-color: rgba(255,255,255,.1); }
.plan-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: #8a5416;
}
.plan-featured .plan-tag { background: rgba(217,138,43,.25); color: #FBEBD0; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .price { font-family: var(--font-display); font-size: 54px; line-height: 1; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); margin-top: var(--s-3); }
.plan-period { font-size: 13px; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.plan-div { border-top: 1px solid var(--border); margin-block: var(--s-5); }
.plan ul li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0; font-size: 15px; color: var(--ink-2);
}
.plan ul li::before {
  content: "";
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314482E' stroke-width='2'><path d='M3 8l3.5 3.5L13 5'/></svg>") center/contain no-repeat;
}
.plan-featured ul li::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23D98A2B' stroke-width='2'><path d='M3 8l3.5 3.5L13 5'/></svg>") center/contain no-repeat;
}
.plan .btn { margin-top: var(--s-5); width: 100%; justify-content: center; }

/* -------- FAQ -------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230D1614' stroke-width='1.6'><path d='M3 5l4 4 4-4'/></svg>") center/contain no-repeat;
  transition: transform var(--t-mid) var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { margin-top: var(--s-3); color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 720px; }

/* -------- CTA panel -------------------------------------- */
.cta-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 7vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta-panel .lead { color: #C8D4CE; max-width: 560px; margin: var(--s-4) auto var(--s-6); }
.cta-panel .btn-primary { background: var(--accent); color: #231408; }
.cta-panel .btn-primary:hover { background: #C87A1E; }
.cta-panel small { display: block; margin-top: var(--s-4); color: #9AB0A5; font-size: 13px; }

/* -------- Feature row (alternating) ---------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  padding-block: var(--s-8);
  border-top: 1px solid var(--border);
}
.feature-row:first-child { border-top: 0; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .feature-row.reverse .feature-text { order: 2; }
  .feature-row.reverse .feature-media { order: 1; }
}
.feature-text h3 { font-size: 28px; line-height: 1.2; margin-bottom: var(--s-3); }
.feature-text .overline { margin-bottom: var(--s-3); }
.feature-text p { color: var(--ink-2); font-size: 17px; margin-bottom: var(--s-4); }
.feature-text ul li {
  padding: 8px 0; font-size: 15px; color: var(--ink-2);
  display: flex; gap: 10px; align-items: flex-start;
}
.feature-text ul li::before {
  content: ""; width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314482E' stroke-width='2'><path d='M3 8l3.5 3.5L13 5'/></svg>") center/contain no-repeat;
}

/* -------- Onboarding step block -------------------------- */
.step-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding-block: var(--s-7);
  border-top: 1px solid var(--border);
  position: relative;
}
.step-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
  .step-block { grid-template-columns: 80px 1fr 1.1fr; gap: var(--s-7); align-items: start; }
}
.step-num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--brand);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.step-text h3 { font-size: 22px; margin-bottom: var(--s-3); }
.step-text p { color: var(--ink-2); margin-bottom: var(--s-3); font-size: 15.5px; }
.step-note {
  display: inline-flex; gap: 8px;
  font-size: 13.5px; color: var(--ink-3);
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
}

/* -------- Styleguide swatches ---------------------------- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--s-4);
}
.swatch {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.swatch-chip { height: 80px; }
.swatch-meta { padding: 10px 12px; font-size: 13px; }
.swatch-meta strong { display: block; color: var(--ink); font-weight: 500; }
.swatch-meta code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

.type-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
.type-row:last-child { border-bottom: 0; }
.type-row code { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* -------- Utilities -------------------------------------- */
.text-center { text-align: center; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.flex { display: flex; gap: var(--s-3); align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
