:root {
  --primary: #6769de;
  --primary-dark: #4f51c4;
  --primary-soft: #f1f0ff;
  --sage: #a9bd96;
  --sage-soft: #eef3e8;
  --heading: #3c3d37;
  --text: #5c5d58;
  --muted: #8a8a85;
  --line: #e9e8f2;
  --bg: #ffffff;
  --card: #ffffff;
  --radius: 20px;
  --max: 1080px;
  --font-display: "Amaranth", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 0.5em; }
h1, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--heading); text-decoration: none; }
.nav a:hover { color: var(--primary); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #e7e6ff 0%, rgba(231, 230, 255, 0) 60%), radial-gradient(900px 400px at -10% 110%, var(--sage-soft) 0%, rgba(238, 243, 232, 0) 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 0.3em; }
.hero .lead { font-size: 1.2rem; color: var(--text); max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--heading); color: #fff; font-weight: 600; font-size: 0.95rem; }
.badge small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.75; line-height: 1.2; }
.badge.ghost { background: #fff; color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--line); }
.mascot { justify-self: center; width: min(380px, 80vw); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 30px 60px -30px rgba(103, 105, 222, 0.45), 0 0 0 10px rgba(255, 255, 255, 0.7); display: grid; place-items: center; overflow: hidden; }
.mascot img { width: 92%; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .mascot { order: -1; width: min(260px, 70vw); }
}

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } section { padding: 52px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { font-size: 1.7rem; line-height: 1; margin-bottom: 14px; }
.card p { margin: 0; font-size: 0.97rem; }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.85rem; vertical-align: 2px; }
.band { background: var(--primary-soft); }
.plans { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; max-width: 820px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan ul { margin: 12px 0 0; padding-left: 1.2em; }
.plan li { margin: 4px 0; }
.plan.pro { border-color: var(--primary); box-shadow: 0 20px 40px -28px rgba(103, 105, 222, 0.6); }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 16px; }

/* legal and help pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.3rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--heading); font-weight: 600; background: #faf9ff; }
.callout { background: var(--primary-soft); border-radius: 16px; padding: 18px 20px; margin: 0 0 1.4em; }
.callout.sage { background: var(--sage-soft); }
.toc { background: #faf9ff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 28px; font-size: 0.95rem; }
.toc ol { margin: 6px 0 0; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 12px; }
details summary { cursor: pointer; font-weight: 600; color: var(--heading); }
details[open] summary { margin-bottom: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
