/* ============================================================
   cstoken.net landing — "How much did you spend in tokens?"
   Minimal, narrow, short-scroll. Loads after site.css.
   Tone: warm ivory paper + clay-coral accent + warm ink.
   Value = spend expensive Claude tokens cost-efficiently.
   ============================================================ */

html:has(.landing-page) { scroll-behavior: smooth; scroll-padding-top: 74px; background: #f3efe7; }

.landing-page {
  /* remapped shared tokens (warm) */
  --paper: #fdfbf7;
  --ink:   #211d18;
  --muted: #6f665c;
  --line:  #e7e0d4;
  --soft:  #f4f0e8;
  --blue:      #bc5a38;   /* clay coral — fills, marks, active states */
  --blue-dark: #a44a2a;   /* hover */
  --green: #4f7b5b;
  --amber: #9a6318;
  --red:   #b23a2a;
  /* landing-local */
  --r-lg: 16px; --r: 11px; --r-sm: 8px;
  --hair: #ede7db;
  --tint: #f6ece4;
  --mist: #f5f1e9;
  --ink-2: #4b443b;
  --accent-text: #9c4728;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --shadow-card: 0 1px 2px rgba(70, 45, 25, .05), 0 14px 34px rgba(70, 45, 25, .07);
  background: var(--paper);
}

.landing-page .button { border-radius: 10px; }
.landing-page .field input:focus,
.landing-page .auth-dialog .field input:focus { outline: 2px solid #e0b7a3; border-color: var(--blue); }

/* ---- brand mark ---- */
.landing-page .brand__mark { display: inline-block; width: 25px; height: 25px; }
.landing-page .brand__mark svg, .hero__kicker .mk svg { display: block; width: 100%; height: 100%; }

/* ---- narrow container + tight section rhythm ---- */
.lp { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.main-lp { flex: 1; }
.lp-section { padding: 46px 0; border-top: 1px solid var(--hair); }
.lp-section--mist { background: var(--mist); }
.lp-head { max-width: 620px; margin: 0 0 22px; }
.lp-eyebrow { margin: 0 0 10px; color: var(--accent-text); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.lp-h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; letter-spacing: -.01em; word-break: keep-all; }
.lp-sub { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; word-break: keep-all; }

/* ---- sticky top bar ---- */
.landing-page .topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 243, .82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.landing-page .topbar__inner { min-height: 62px; width: min(720px, calc(100% - 40px)); }
.lp-nav { display: flex; align-items: center; gap: 20px; font-size: 13.5px; }
.lp-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.lp-nav a:hover { color: var(--ink); }
.lp-nav .button { min-height: 36px; padding: 7px 14px; }

/* ============================================================
   HERO — iconic catchphrase
   ============================================================ */
.hero { padding: 58px 0 52px; text-align: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--accent-text); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero__kicker .mk { width: 16px; height: 16px; }
.hook {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 8.5vw, 66px); line-height: 1.04; letter-spacing: -.02em;
  color: var(--ink);
}
.hook__hl { color: var(--blue); font-style: italic; }
.hero__answer { max-width: 520px; margin: 24px auto 0; color: var(--ink-2); font-size: 16px; line-height: 1.72; word-break: keep-all; }
.hero__answer b { color: var(--ink); font-weight: 800; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero__cta .button { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.button--lg { min-height: 52px; }
.button .price { margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .4); font-weight: 850; }
.hero__micro { margin: 15px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.hero__login { margin: 18px auto 0; max-width: 420px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.hero__login a { color: var(--accent-text); font-weight: 750; text-decoration: none; }
.hero__login a:hover { text-decoration: underline; }

/* ============================================================
   KIT — the monthly value
   ============================================================ */
.kit { list-style: none; margin: 0; padding: 0; display: grid; }
.kit li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.kit li:first-child { border-top: 0; padding-top: 4px; }
.kit__n { font-family: var(--serif); color: var(--accent-text); font-size: 17px; font-weight: 700; }
.kit strong { font-size: 15.5px; letter-spacing: -.01em; }
.kit p { margin: 5px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.62; word-break: keep-all; }

/* ============================================================
   PRICING
   ============================================================ */
.price-card { padding: 24px; border: 1px solid #e6cdbd; border-radius: var(--r-lg); background: linear-gradient(180deg, #fdf6f0, #f8ece3); box-shadow: var(--shadow-card); }
.price-card__amt { display: flex; align-items: baseline; gap: 8px; }
.price-card__amt b { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.price-card__amt span { color: var(--muted); font-size: 16px; font-weight: 750; }
.price-lines { display: grid; gap: 0; margin: 18px 0 20px; }
.price-lines div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid #eaddd0; font-size: 13.5px; }
.price-lines div:last-child { border-bottom: 1px solid #eaddd0; }
.price-lines dt { color: var(--muted); }
.price-lines dd { margin: 0; color: var(--ink); font-weight: 750; text-align: right; }
.price-card .button { width: 100%; min-height: 50px; }
.price-card__micro { margin: 11px 0 0; color: #6b6259; font-size: 12px; text-align: center; line-height: 1.5; }

/* ---- disclosures: hidden-by-default detail, still on the page ---- */
.disclosures { margin-top: 22px; }
.disclosures details { border-top: 1px solid var(--line); }
.disclosures details:last-child { border-bottom: 1px solid var(--line); }
.disclosures summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; list-style: none; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 700; }
.disclosures summary::-webkit-details-marker { display: none; }
.disclosures summary::after { content: "+"; color: var(--accent-text); font-size: 18px; font-weight: 700; line-height: 1; }
.disclosures details[open] summary::after { content: "\2212"; }
.disclosures__body { padding: 0 2px 16px; }
.disclosures__body p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.72; word-break: keep-all; }
.disclosures__body a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.disclosures__body a:hover { text-decoration: underline; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band { padding: 56px 0; border-top: 1px solid var(--hair); background: #221d18; color: #efe9e0; }
.cta-band__inner { width: min(720px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.cta-band h2 { margin: 0 auto; max-width: 520px; font-size: clamp(23px, 3vw, 30px); line-height: 1.3; color: #fff; letter-spacing: -.01em; word-break: keep-all; }
.cta-band p.sub { margin: 13px auto 0; max-width: 480px; color: #b8ac9e; font-size: 14.5px; line-height: 1.6; }
.cta-band .button { margin: 24px auto 0; min-height: 54px; padding: 15px 26px; font-size: 15.5px; }
.cta-band__micro { margin: 14px 0 0; color: #948877; font-size: 12.5px; }
.cta-band__login { margin: 6px 0 0; color: #b8ac9e; font-size: 13px; }
.cta-band__login a { color: #eab896; font-weight: 750; text-decoration: none; }
.cta-band__login a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.landing-page .footer { background: #211d18; color: #d8d0c4; border-top: 0; }
.lp-footer { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.lp-footer__brand .brand { color: #fff; }
.lp-footer__prov { margin: 12px 0 0; color: #a89e90; font-size: 12.5px; line-height: 1.7; }
.lp-footer__prov b { color: #d8d0c4; font-weight: 700; }
.lp-footer__prov a { color: #eab896; text-decoration: none; }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.lp-footer__links a { color: #bcb2a4; text-decoration: none; white-space: nowrap; }
.lp-footer__links a:hover { color: #fff; }

/* ============================================================
   AUTH DIALOG (purchase / login) — reuses .field/.button
   ============================================================ */
.auth-dialog { width: min(460px, calc(100% - 28px)); margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); color: var(--ink); background: var(--paper); box-shadow: 0 24px 70px rgba(50, 33, 20, .34); }
.auth-dialog::backdrop { background: rgba(38, 30, 24, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.auth-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 0; }
.auth-dialog__head h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.01em; }
.auth-dialog__close { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; }
.auth-dialog__close:hover { background: var(--soft); }
.auth-dialog__body { padding: 14px 22px 22px; }
.auth-dialog__desc { margin: 0 0 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.auth-dialog .field { margin-bottom: 12px; }
.auth-dialog .field input { min-height: 50px; }
.auth-dialog .button { width: 100%; min-height: 50px; }
.auth-dialog__help { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-dialog__help a { color: var(--accent-text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 620px) {
  .lp-nav a:not(.button):not([hreflang]) { display: none; }
  .hero { padding: 40px 0 44px; }
  .lp-section { padding: 40px 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .button { width: 100%; }
  .lp-footer { grid-template-columns: 1fr; }
}
