/* StockUp consumer plans page (/plans). Standalone: same tokens and type as
   /developer-marketing.css and /pricing.css, without their decorative layers. */

:root {
  color-scheme: dark;
  --ink: #f7f4ed;
  --muted: #b8bdb8;
  --subtle: #959b96;
  --bg: #080a0a;
  --surface: #101312;
  --surface-2: #151918;
  --line: #292e2c;
  --line-strong: #445249;
  --green: #9bea75;
  --blue: #7eb6ff;
  --gold: #f3c96b;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #a9cdff; }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; text-wrap: balance; letter-spacing: -.02em; }
.mono { font-family: var(--mono); }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 99; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #050606; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---- header ---- */
.plans-header { border-bottom: 1px solid var(--line); }
.plans-nav { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: 26px; }
.plans-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.plans-nav ul a { color: #c6c7c2; font-size: .9rem; font-weight: 600; text-decoration: none; }
.plans-nav ul a:hover,
.plans-nav ul a[aria-current="page"] { color: var(--ink); }
.plans-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.button:hover { color: var(--ink); border-color: #6f7c74; }
.button.primary { color: #0b1108; background: var(--green); border-color: var(--green); }
.button.primary:hover { color: #0b1108; background: #b2f191; border-color: #b2f191; }
.nav-cta { min-height: 40px; padding: 8px 14px; font-size: .9rem; }

/* ---- hero ---- */
.plans-hero { padding: 76px 0 56px; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.plans-hero h1 { max-width: 900px; margin: 0 0 22px; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.04; font-weight: 800; }
.plans-hero h1 em { color: var(--green); font-style: normal; }
.lede { max-width: 700px; margin: 0 0 30px; color: #c3c4bf; font-size: clamp(1.03rem, 1.6vw, 1.18rem); }
.hero-note { margin: 18px 0 0; color: var(--subtle); font-size: .85rem; }

/* ---- sections ---- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); }

/* ---- plan cards ---- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { min-width: 0; display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-card.is-featured { border-color: #4f6b4a; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-card h3 { margin: 0; font-size: 1.5rem; }
.plan-tag { flex: none; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan-card.is-featured .plan-tag { border-color: #4f6b4a; color: var(--green); }
.plan-desc { margin: 6px 0 20px; color: var(--muted); font-size: .93rem; }
.plan-price { margin: 0; font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-price span { margin-left: 3px; color: var(--subtle); font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.plan-alt { min-height: 3em; margin: 8px 0 20px; color: var(--muted); font-size: .88rem; }
.plan-card .button { width: 100%; }
.plan-features { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; }
.plan-features li { position: relative; padding-left: 20px; color: #cfd2cc; font-size: .92rem; line-height: 1.5; }
.plan-features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.plan-features strong { color: var(--ink); font-weight: 650; }

.launch-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; margin-top: 14px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.launch-callout h3 { margin: 0 0 6px; font-size: 1.25rem; }
.launch-callout p { margin: 0; color: var(--muted); font-size: .93rem; }
.plans-footnote { margin: 18px 0 0; color: var(--subtle); font-size: .85rem; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table caption { padding: 16px 18px 0; color: var(--subtle); font-size: .8rem; text-align: left; caption-side: bottom; padding-bottom: 16px; }
.data-table th,
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
.data-table thead th { white-space: nowrap; color: var(--subtle); font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody th { color: var(--ink); font-weight: 650; }
.data-table td { color: #cfd2cc; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table small { display: block; margin-top: 2px; color: var(--subtle); font-size: .8rem; }
.compare-table th:not(:first-child),
.compare-table td { width: 24%; }

/* ---- credits ---- */
.credits-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.fact-list { margin: 0 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: #cfd2cc; font-size: .95rem; }
.fact-list strong { color: var(--ink); font-weight: 650; }
.pack-table td:not(:first-child),
.pack-table th:not(:first-child) { text-align: right; }

/* ---- guidance ---- */
.choose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.choose-item { padding: 26px; background: var(--surface); border-right: 1px solid var(--line); }
.choose-item:last-child { border-right: 0; }
.choose-item h3 { margin: 0 0 8px; font-size: 1.2rem; }
.choose-item p { margin: 0; color: var(--muted); font-size: .93rem; }
.other-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.other-paths div { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.other-paths h3 { margin: 0 0 6px; font-size: 1.1rem; }
.other-paths p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---- FAQ (always open so it reads without JS) ---- */
.faq-list { max-width: 860px; margin: 0; border-top: 1px solid var(--line); }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.faq-item p { margin: 0; color: var(--muted); }

/* ---- closing ---- */
.closing { padding: 56px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.closing h2 { max-width: 720px; margin: 0 auto 12px; font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.1; }
.closing p { max-width: 600px; margin: 0 auto 26px; color: var(--muted); }
.closing .actions { justify-content: center; }
.related { margin-top: 40px; }
.related h2 { margin: 0 0 12px; font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.related ul { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }

.plans-footer { margin-top: 64px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--subtle); font-size: .82rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.footer-row p { margin: 0; max-width: 560px; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-row a { color: #c6c7c2; text-decoration: none; }
.footer-row a:hover { color: var(--ink); text-decoration: underline; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 560px; }
  .plan-alt { min-height: 0; }
  .credits-layout { grid-template-columns: 1fr; gap: 28px; }
  .choose-grid { grid-template-columns: 1fr; }
  .choose-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .choose-item:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .plans-nav { min-height: 0; }
  .plans-nav ul { order: 3; width: 100%; gap: 4px 18px; }
  .plans-nav ul a { display: inline-block; padding: 6px 0; }
  .plans-hero { padding: 48px 0 40px; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .nav-cta { width: auto; }
  .section { padding: 48px 0; }
  .plan-card { padding: 22px; }
  .launch-callout { grid-template-columns: 1fr; padding: 20px; }
  .other-paths { grid-template-columns: 1fr; }
  .other-paths div { padding: 20px; }
  .closing { padding: 40px 20px; }

  /* Comparison table becomes one block per row: label on top, three plan values below. */
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table, .compare-table tbody, .compare-table tr { display: block; width: 100%; }
  .compare-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .compare-table tbody tr:last-child { border-bottom: 0; }
  .compare-table tbody th { grid-column: 1 / -1; padding: 14px 14px 6px; border-bottom: 0; }
  .compare-table td { width: auto; padding: 4px 14px 14px; border-bottom: 0; font-size: .86rem; }
  .compare-table td::before { content: attr(data-label); display: block; color: var(--subtle); font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .compare-table caption { display: block; }

  .data-table th, .data-table td { padding: 12px 14px; }
}

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

/* ---- breadcrumb ---- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--subtle); font-size: .82rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #5d635f; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
