/*
 * TonerAI — the four pages at tonerai*.html.
 *
 * The look of gettonerai.com (TonerAI 2.0): lavender-gray paper, plum accent,
 * Instrument Serif headlines over Manrope, white formula cards with shade
 * swatches, and a dark ink band for pricing. Colour tokens are the ones in
 * gettonerai.com/guides/guides.css (the app's src/ui/tokens.ts, LIGHT and DARK).
 *
 * Self-contained on purpose: these pages do not load css/main.css, so nothing
 * here touches the other apps' pages. The app icon lives in /tonerai/img/.
 */

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  color-scheme: light dark;
  --bg: #F5F3F7; --card: #FFFFFF; --ink: #1E1A24; --muted: #5E5768; --subtle: #8A8394; --line: #E4E0EA;
  --plum: #5B3A8C; --plum-dark: #3F2566; --plum-tint: #EEE8F6; --chip: #ECE8F1; --on-ink: #FFFFFF;
  --sw-line: rgba(30, 26, 36, .12);
  /* Dark band (the landing's pricing band), the same in both modes. */
  --band: #1E1A24; --band-ink: #FFFFFF; --band-muted: #D6D0DE; --band-line: #5E5768;
  /* Shade swatches from the landing's sample formula. */
  --sw-violet: #C0A7DC; --sw-natural: #DAC39D;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141217; --card: #1E1B23; --ink: #F2EFF6; --muted: #B6AEC2; --subtle: #8F879C; --line: #34303B;
    --plum: #B79AE8; --plum-dark: #D7C6F5; --plum-tint: #2C2338; --chip: #29252F; --on-ink: #141217;
    --sw-line: rgba(255, 255, 255, .14);
  }
  .band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}

/* ── Base ───────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--plum); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ───────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
.display { font: 400 clamp(44px, 6.4vw, 76px)/1.02 var(--serif); letter-spacing: -0.01em; }
.display em { font-style: italic; }
.h2 { font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--serif); }
.kicker { margin: 0 0 14px; font: 700 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.lead { margin: 20px 0 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.body { color: var(--muted); line-height: 1.7; max-width: 62ch; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ── Header ─────────────────────────────────────────────── */

.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { font: 400 28px/1 var(--serif); color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover { color: var(--plum); }
.nav a[aria-current="page"]:not(.btn) { color: var(--plum); }
.nav .wide-only { display: none; }
@media (min-width: 900px) { .nav .wide-only { display: inline; } }
@media (max-width: 560px) { .nav { gap: 14px; font-size: 14px; } .nav .hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn--line { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--plum); }
.btn--lg { min-height: 56px; padding: 0 22px; border-radius: 16px; font-size: 16px; }
.btn--light { background: var(--band-ink); color: var(--band); }
.btn--ghost { border-color: var(--band-line); color: var(--band-ink); }
.btn--ghost:hover { border-color: var(--band-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero { padding: clamp(24px, 5vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

/* The sample formula card. */
.formula {
  width: 100%; max-width: 420px; justify-self: center;
  padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(30, 26, 36, .35);
}
.formula-label { margin: 0 0 12px; font: 700 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.lift { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.lift span { flex: 1; }
.shades { list-style: none; margin: 0; padding: 0; }
.shade { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.sw { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--sw-line); flex: none; }
.shade .n { flex: 1; font-weight: 700; font-size: 15px; }
.shade .n span { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.shade .oz { font: 400 24px/1 var(--serif); white-space: nowrap; }
.ps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ps span { background: var(--chip); border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.why { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.why b { color: var(--ink); }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--card { background: var(--card); }
.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head .body { margin: 14px 0 0; }

/* Feature tiles: tinted on the white section. */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { padding: 24px; border-radius: 22px; background: var(--bg); }
.features h3 { margin: 0 0 6px; font: 700 18px/1.35 var(--sans); }
.features p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.features .ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--plum-tint); color: var(--plum-dark); }
.features .ico svg { width: 20px; height: 20px; }

/* Guide cards. */
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guides { grid-template-columns: repeat(3, 1fr); } }
.gcard { display: flex; flex-direction: column; height: 100%; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.gcard:hover { border-color: var(--plum); }
.gcard small { margin-bottom: 4px; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.gcard strong { font-size: 16px; }
.gcard span { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.more { margin: 18px 0 0; font-weight: 700; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Pricing band ───────────────────────────────────────── */

.band { background: var(--band); color: var(--band-ink); padding: clamp(48px, 7vw, 88px) 0; }
.band h2 { color: var(--band-ink); }
.band p { color: var(--band-muted); }
.band-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.band .lead { color: var(--band-muted); margin-top: 14px; }
.plans { display: grid; gap: 10px; }
.plans div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 18px; border: 1px solid var(--band-line); border-radius: 16px; }
.plans dt { font-weight: 700; }
.plans dt small { display: block; font-weight: 500; font-size: 13px; color: var(--band-muted); }
.plans dd { margin: 0; font: 400 30px/1 var(--serif); white-space: nowrap; }
.plans dd small { font: 500 14px/1 var(--sans); color: var(--band-muted); }
.band .actions { margin-top: 24px; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--plum-dark); font-size: 20px; font-weight: 500; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 68ch; color: var(--muted); line-height: 1.65; }

/* ── Page heads, panels and legal text ──────────────────── */

.page-head { padding: clamp(24px, 4vw, 56px) 0 clamp(32px, 4vw, 48px); }
.page-head .display { font-size: clamp(42px, 5.4vw, 64px); }
.updated { margin: 16px 0 0; font-size: 14px; color: var(--subtle); }

.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

.panel { padding: clamp(20px, 3vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.panel-title { margin: 0 0 10px; font: 700 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.price-list { margin: 0; border-top: 1px solid var(--line); }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.price-list dt { font-weight: 700; }
.price-list dt small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.price-list dd { margin: 0; font: 400 26px/1 var(--serif); white-space: nowrap; }
.price-list dd small { font: 500 14px/1 var(--sans); color: var(--muted); }
.answer { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--plum-tint); font-size: 15px; line-height: 1.6; }

.legal { max-width: 820px; padding: clamp(24px, 4vw, 52px) clamp(20px, 5vw, 60px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; color: var(--muted); line-height: 1.7; }
.legal h2 { margin: 2em 0 .6em; font: 400 clamp(24px, 2.4vw, 30px)/1.15 var(--serif); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.5em 0 .4em; font: 700 17px/1.35 var(--sans); }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal li::marker { color: var(--plum); }
.legal a { font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────── */

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 13px; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--plum); }
.foot p { margin: 0 0 6px; }

/* ── Back to all apps ───────────────────────────────────── */
/* A slim bar above the header on every TonerAI page, linking to pingsolveai.com. */
.ps-back { background: var(--card); border-bottom: 1px solid var(--line); font: 600 13px/1 var(--sans); }
.ps-back .wrap { display: flex; align-items: center; min-height: 36px; }
.ps-back a { color: var(--muted); text-decoration: none; }
.ps-back a:hover { color: var(--plum); }

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