/* Shared styles for Text2Store content pages (pricing + legal).
   Design tokens mirror index.html so the whole site reads as one piece;
   this file adds the prose + pricing-card styles the homepage doesn't need. */

:root {
  --royal: #2E7FF7;
  --sky: #5EAFF7;
  --peri: #B8D0F8;
  --ink: #132743;
  --ground: #F4F7FF;
  --white: #FFFFFF;

  --bg: var(--ground);
  --surface: #FFFFFF;
  --surface-2: #FDFEFF;
  --text: var(--ink);
  --muted: #5B6B84;
  --hairline: #E2EAF8;
  --hairline-strong: #CFDDF6;
  --accent: var(--royal);
  --accent-ink: #1C5FCC;
  --shadow: 0 1px 2px rgba(19, 39, 67, .06), 0 18px 40px -20px rgba(19, 39, 67, .28);
  --shadow-soft: 0 1px 2px rgba(19, 39, 67, .05), 0 12px 30px -22px rgba(19, 39, 67, .22);

  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Menlo", "Cascadia Mono", "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1080px;
  --readw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1220; --surface: #101E33; --surface-2: #0E1A2C; --text: #EAF1FE;
    --muted: #9DB2D4; --hairline: #1E3050; --hairline-strong: #294169;
    --accent: #5EAFF7; --accent-ink: #8FC6FB;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 22px 48px -24px rgba(0,0,0,.7);
    --shadow-soft: 0 1px 2px rgba(0,0,0,.35), 0 16px 34px -24px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1220; --surface: #101E33; --surface-2: #0E1A2C; --text: #EAF1FE;
  --muted: #9DB2D4; --hairline: #1E3050; --hairline-strong: #294169;
  --accent: #5EAFF7; --accent-ink: #8FC6FB;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 22px 48px -24px rgba(0,0,0,.7);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.35), 0 16px 34px -24px rgba(0,0,0,.6);
}
:root[data-theme="light"] {
  --bg: #F4F7FF; --surface: #FFFFFF; --surface-2: #FDFEFF; --text: #132743;
  --muted: #5B6B84; --hairline: #E2EAF8; --hairline-strong: #CFDDF6;
  --accent: #2E7FF7; --accent-ink: #1C5FCC;
  --shadow: 0 1px 2px rgba(19,39,67,.06), 0 18px 40px -20px rgba(19,39,67,.28);
  --shadow-soft: 0 1px 2px rgba(19,39,67,.05), 0 12px 30px -22px rgba(19,39,67,.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient wash — same quiet gesture as the homepage */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90ch 60ch at 82% -10%, color-mix(in srgb, var(--sky) 22%, transparent), transparent 60%),
    radial-gradient(70ch 50ch at -5% 8%, color-mix(in srgb, var(--peri) 26%, transparent), transparent 62%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(90ch 60ch at 82% -10%, color-mix(in srgb, var(--royal) 20%, transparent), transparent 60%),
      radial-gradient(70ch 50ch at -5% 8%, color-mix(in srgb, #24406b 40%, transparent), transparent 62%);
  }
}

a { color: var(--accent-ink); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 10px;
}

/* ---------- Top bar ---------- */
header.bar { position: relative; z-index: 2; padding-top: 26px; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; display: block; }
.brand .word { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .word b { font-weight: 800; }
.nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(46,127,247,.85);
  transition: transform .12s ease, background .12s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-ink); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: var(--surface); color: var(--accent-ink);
  border-color: var(--hairline-strong); box-shadow: var(--shadow-soft);
}
.btn.ghost:hover { background: var(--surface-2); }

/* ---------- Page head ---------- */
.page-head { padding: 54px 0 8px; }
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 12px; max-width: 20ch;
}
.page-head .lead { font-size: clamp(1.04rem, 1.8vw, 1.18rem); color: var(--muted); margin: 0; max-width: 52ch; }
.updated { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* ---------- Prose (legal pages) ---------- */
.doc { max-width: var(--readw); margin: 0 auto; padding: 14px 0 10px; }
.doc h2 {
  font-size: 1.32rem; letter-spacing: -.012em; margin: 40px 0 12px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 26px; }
.doc h3 { font-size: 1.04rem; margin: 26px 0 8px; }
.doc p { margin: 0 0 15px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 0 0 9px; }
.doc li::marker { color: var(--accent); }
.doc strong { font-weight: 700; color: var(--text); }
.doc a { color: var(--accent-ink); }
.doc hr { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }
.doc dl { margin: 0 0 16px; }
.doc dt { font-weight: 700; margin-top: 14px; }
.doc dd { margin: 4px 0 0; color: var(--muted); }

/* Callout — the merchant-of-record / key notices */
.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { margin-bottom: 6px; }

.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 18px 22px;
  margin: 22px 0 6px;
}
.toc p { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 7px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- Pricing ---------- */
.pricing-wrap { padding: 20px 0 6px; }
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 8px auto 0;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
}
.tier.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--hairline)); box-shadow: var(--shadow); }
.tier .tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
  border: 1px solid var(--hairline-strong); background: var(--surface-2);
  padding: 5px 10px; border-radius: 999px;
}
.tier h2 { font-size: 1.15rem; margin: 0 0 4px; letter-spacing: -.01em; }
.tier .who { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .cur { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.price-note { color: var(--muted); font-size: .84rem; margin: 0 0 22px; }
.tier ul.feats { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.tier ul.feats li { position: relative; padding-left: 28px; margin: 0 0 11px; font-size: .94rem; }
.tier ul.feats li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.tier ul.feats li::after {
  content: ""; position: absolute; left: 5px; top: 7px;
  width: 8px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.tier ul.feats li.muted { color: var(--muted); }
.tier ul.feats li.muted::before { background: color-mix(in srgb, var(--muted) 14%, transparent); }
.tier ul.feats li.muted::after { border-color: var(--muted); }
.tier .btn { width: 100%; }
.tier .cta-note { text-align: center; color: var(--muted); font-size: .78rem; margin: 10px 0 0; }

.pricing-fine { max-width: 860px; margin: 26px auto 0; color: var(--muted); font-size: .88rem; }
.pricing-fine p { margin: 0 0 10px; }

/* ---------- Footer ---------- */
footer.foot {
  margin-top: 54px;
  border-top: 1px solid var(--hairline);
  padding: 28px 0 52px;
}
.foot-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.foot-brand img { width: 22px; height: 22px; }
.foot-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; }
.foot-nav a:hover { color: var(--accent-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .tiers { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .nav { gap: 14px; }
}
@media (max-width: 560px) {
  /* Nav drops to its own full-width row under the brand — one clean line
     instead of wrapping beside the wordmark. */
  .bar-inner { flex-wrap: wrap; row-gap: 12px; }
  .nav { width: 100%; gap: 16px; }
  .nav a { font-size: .72rem; }
}
@media (max-width: 520px) {
  .page-head { padding: 40px 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
