/* Bodhlok marketing site — the app's own palette (cream ground, ink, green
   for action, orange for warmth) and the app's own faces (Rozha One for
   display, Inter for text). Single light theme with deep-night bands. */
:root {
  --cream: #fcf8f5;
  --cream-2: #f6efe6;
  --ink: #2a3547;
  --ink-2: #46546a;
  --muted: #8c7e74;
  --line: #e9e1d6;
  --green: #3aa62b;
  --green-700: #2e8e22;
  --green-50: #effbea;
  --green-200: #d6f4cc;
  --orange: #f97316;
  --orange-700: #c84b08;
  --orange-100: #fff3e8;
  --orange-200: #fee2c5;
  --night: #0f1a2b;
  --night-2: #182742;
  --night-ink: #f4f1ea;
  --night-muted: #b7bfcf;
  --display: "Rozha One", "Martel", Georgia, serif;
  --body: "Inter", "Open Sans", system-ui, sans-serif;
  --glyph: "Noto Sans Symbols 2", "Noto Sans Symbols", "Segoe UI Symbol", serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; font-family: var(--body); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-700); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.glyph { font-family: var(--glyph); font-weight: 400; }
section { padding-block: clamp(56px, 8vw, 110px); }
.section-head { display: grid; gap: 14px; max-width: 46em; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-family: inherit; transition: transform 150ms ease, background 150ms ease, color 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.green:hover { background: var(--green-700); border-color: var(--green-700); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn.light:hover { background: rgba(255,255,255,0.1); }
.btn.small { padding: 9px 15px; font-size: 0.85rem; border-radius: 10px; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(252,248,245,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 26px; font-size: 0.93rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.head-cta { display: flex; gap: 8px; }
.menu-btn { display: none; appearance: none; border: 1.5px solid var(--line); background: transparent; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; }
@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-head.open .site-nav { display: flex; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-head.open .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-block; }
  .head-cta .btn:first-child { display: none; }
}

/* Hero band (night + artwork) */
.hero { position: relative; color: var(--night-ink); background: var(--night); overflow: hidden; padding-block: clamp(64px, 9vw, 130px); isolation: isolate; }
.hero .art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero .veil { position: absolute; inset: 0; z-index: -1; background: rgba(15,26,43,0.62); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .eyebrow { color: var(--orange); }
.hero .lede { color: var(--night-muted); }
.hero-copy { display: grid; gap: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { font-size: 0.85rem; color: var(--night-muted); }
.hero .ring { display: grid; place-items: center; }
.hero .ring img { width: min(100%, 440px); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero .ring { order: -1; } .hero .ring img { width: min(70%, 320px); } }

/* Planet row */
.planets { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-family: var(--glyph); font-size: 1.25rem; color: var(--orange); }
.planets span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(249,115,22,0.45); background: rgba(249,115,22,0.08); }

/* Stat strip */
.strip { background: var(--cream-2); border-block: 1px solid var(--line); padding-block: 24px; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.strip b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 400; color: var(--green-700); }
.strip span { font-size: 0.86rem; color: var(--muted); }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-100); color: var(--orange-700); display: grid; place-items: center; font-family: var(--glyph); font-size: 1.5rem; }
.card.green .icon { background: var(--green-50); color: var(--green-700); }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.95rem; display: grid; gap: 4px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.pill.orange { background: var(--orange-100); color: var(--orange-700); border-color: var(--orange-200); }

/* Feature spread with image */
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.spread.flip > .spread-art { order: -1; }
.spread-art { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.spread-art img { width: 100%; height: 100%; object-fit: cover; }
.spread-copy { display: grid; gap: 16px; }
.spread-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spread-copy li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.spread-copy li::before { content: "✓"; color: var(--green-700); font-weight: 700; }
@media (max-width: 860px) { .spread { grid-template-columns: 1fr; } .spread.flip > .spread-art { order: 0; } }

/* Night band */
.band { background: var(--night); color: var(--night-ink); }
.band .eyebrow { color: var(--orange); }
.band .lede, .band .muted { color: var(--night-muted); }
.band .card { background: var(--night-2); border-color: rgba(255,255,255,0.08); color: var(--night-ink); }
.band .card p, .band .card ul { color: var(--night-muted); }

/* Answer sample */
.answer { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 12px; line-height: 1.65; box-shadow: 0 24px 50px -30px rgba(42,53,71,0.35); }
.answer .q { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.answer .meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.depths { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.depth { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.depth:first-child { border-top: 0; }
.depth b { font-weight: 700; }
.depth .rate { font-weight: 700; color: var(--orange-700); font-variant-numeric: tabular-nums; }
.depth.rec { background: var(--green-50); }

/* Pricing */
.toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; }
.toggle button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 0.9rem; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; align-content: start; position: relative; }
.plan.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 30px 60px -40px rgba(58,166,43,0.5); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; }
.plan .persona { color: var(--muted); font-size: 0.93rem; min-height: 2.9em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); }
.plan .price b { font-size: 2.6rem; font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-family: var(--body); font-size: 0.9rem; }
.plan .gst { font-size: 0.78rem; color: var(--muted); margin-top: -10px; }
.plan .limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-block: 1px solid var(--line); padding-block: 14px; }
.plan .limits div { display: grid; gap: 2px; }
.plan .limits b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.plan .limits span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 0.95rem; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.plan li::before { content: "✓"; color: var(--green-700); font-weight: 700; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.student-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--orange-100); border: 1px solid var(--orange-200); border-radius: 18px; padding: 22px 26px; }
.student-strip h3 { font-size: 1.4rem; }
.student-strip p { color: var(--ink-2); }
@media (max-width: 760px) { .student-strip { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 640px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 70px; background: #fff; font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.compare td.c, .compare th.c { text-align: center; width: 150px; font-variant-numeric: tabular-nums; }
.compare tr.group td { background: var(--cream-2); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare .yes { color: var(--green-700); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.addon { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.addon .price { font-family: var(--display); font-size: 1.6rem; color: var(--ink); }
.addon .win { font-size: 0.82rem; color: var(--muted); }
.addon p { font-size: 0.92rem; color: var(--ink-2); }

.faq { display: grid; gap: 10px; max-width: 54em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--orange-700); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }

/* CTA + footer */
.cta-band { background: var(--green-50); border-block: 1px solid var(--green-200); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.site-foot { background: var(--night); color: var(--night-muted); padding-block: 48px 36px; font-size: 0.9rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: var(--night-ink); margin-bottom: 10px; }
.site-foot a { text-decoration: none; color: var(--night-muted); display: block; padding-block: 3px; }
.site-foot a:hover { color: #fff; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; font-size: 0.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }

/* Forms */
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 0.95rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.notice { background: var(--green-50); border: 1px solid var(--green-200); border-radius: 12px; padding: 14px 16px; font-size: 0.93rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.post-card .cover { aspect-ratio: 16 / 9; background: var(--night); display: grid; place-items: center; font-family: var(--glyph); font-size: 3rem; color: var(--orange); }
.post-card .body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.post-card h3 { font-size: 1.25rem; }
.post-card p { color: var(--ink-2); font-size: 0.93rem; }
.post-card .meta { font-size: 0.78rem; color: var(--muted); }
.post-card:hover h3 { color: var(--green-700); }
.article { max-width: 44em; margin-inline: auto; display: grid; gap: 18px; }
.article .kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.article h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article h2 { font-size: 1.6rem; margin-top: 18px; }
.article h3 { font-size: 1.2rem; margin-top: 8px; }
.article p { color: var(--ink-2); }
.article p.lede { color: var(--ink); font-size: 1.15rem; }
.article ul, .article ol { margin: 0; padding-left: 1.3em; color: var(--ink-2); display: grid; gap: 6px; }
.article table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.article th, .article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.article th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.article td.num, .article th.num { text-align: right; font-variant-numeric: tabular-nums; }
.article .aside { background: var(--orange-100); border: 1px solid var(--orange-200); border-radius: 14px; padding: 16px 18px; font-size: 0.95rem; }
.article .try { background: var(--green-50); border: 1px solid var(--green-200); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; margin-top: 10px; }
.article-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.9rem; }
