/* Shared styles for the pdf.inversesquare.app pages (pricing, thanks). Brand: midnight blue and wand gold. */
:root {
  --ink: #16173a; --ink-2: #4a4c6e; --line: #e3e1ef; --bg: #fbfaf6; --card: #ffffff;
  --brand: #2f3492; --brand-deep: #11123a; --gold: #e9a92e; --gold-soft: #fff4d6; --ok: #1f7a4d; --sale: #d0342c;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eceaf8; --ink-2: #a9a7c8; --line: #2c2e5a; --bg: #0d0e26; --card: #16183d; --brand: #8c90e0; --gold-soft: #3a3214; --ok: #6fd3a0; --sale: #ff7b72; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top { background: radial-gradient(ellipse at 50% 0%, #2f3492 0%, #181a55 60%, #0b0c28 100%); color: #fbf3dc; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 20px/1 Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav nav { display: flex; gap: 18px; font-size: 15px; }
.nav nav a { color: #c9c6f2; text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: #fff; }
.hero { text-align: center; padding: 36px 0 56px; }
.hero h1 { font: 600 clamp(30px, 5vw, 44px)/1.15 Georgia, 'Times New Roman', serif; margin: 0 0 10px; }
.hero p { margin: 0 auto; max-width: 560px; color: #c9c6f2; font-size: 18px; }


.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 32px 0; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(17, 18, 58, .12); }
.plan h2 { margin: 0; font-size: 22px; }
.plan .tag { color: var(--ink-2); margin: 4px 0 16px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price .now { font: 700 40px/1 system-ui, sans-serif; }
.price .launch-note { display: none; color: var(--sale); font-size: 15px; line-height: 1.35; text-align: center; margin-left: auto; }
.launch .pro .price { align-items: center; }
.launch .pro .price .now { text-decoration: line-through; text-decoration-color: var(--sale); text-decoration-thickness: 3px; }
.launch .pro .price .launch-note { display: block; }
.price-note { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan li.lead { font-weight: 600; }
.plan li.lead::before { content: ''; }
.btn { display: block; text-align: center; padding: 13px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--brand-deep); color: #fbf3dc; }
.btn.primary:hover { background: #2f3492; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--gold); color: #11123a; } .btn.primary:hover { background: #ffd56b; } }
.small { font-size: 14px; color: var(--ink-2); }

.faq { margin: 40px 0 56px; }
.faq h2 { font-size: 24px; margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 60px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #11123a; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); }
kbd { font: 14px ui-monospace, Menlo, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.ref { font: 13px ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); word-break: break-all; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-2); font-size: 14px; }
footer a { color: inherit; }
@media (max-width: 420px) { .nav nav { gap: 12px; font-size: 14px; } .brand { font-size: 18px; } }

/* Legal links in the footer, and long-form pages such as the privacy notice */
footer .legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.doc { max-width: 760px; padding-bottom: 48px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.draft { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin: 28px 0 8px; }
