/* ==========================================================================
   Olivia Renee Studio — shared site stylesheet (oliviarenee.app)
   One file for every public page. Page-specific tweaks live in a small
   <style> block in that page; components below are shared.

   Redesigned 2026-09-10. Tokens are SEMANTIC (--brand, --bg, --surface, --ink…),
   so a page never references a raw hue. Each app listing page sets its own
   --accent / --accent-rgb on <body> (data-app) for tinted icon tiles + glows;
   the chrome (header, buttons, footer) stays studio-branded everywhere.

   Cache-busting: pages link this file as /css/site.css?v=YYYYMMDDn. Bump the
   version in every page when this file changes (Cloudflare caches CSS 4h).
   ========================================================================== */

:root {
  /* Brand */
  --brand: #5B4CE6;            /* 5.8:1 on white */
  --brand-deep: #4839C7;       /* hover / small text on tint */
  --brand-rgb: 91, 76, 230;
  --brand-tint: #EEEDFD;
  --brand-2: #A855F7;          /* gradient partner (mark, glows) */

  /* Neutrals */
  --ink: #0F1020;
  --ink-2: #3D3F55;
  --ink-3: #62657A;            /* muted text, ≥5:1 on --bg and --surface-2 */
  --ink-rgb: 15, 16, 32;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --surface-2: #F3F3F9;
  --line: rgba(15, 16, 32, 0.10);
  --line-soft: rgba(15, 16, 32, 0.06);

  /* On dark bands */
  --on-dark: #F5F5FA;
  --on-dark-muted: rgba(245, 245, 250, 0.72);

  /* Status */
  --ok: #15804A;
  --warn-bg: #FFF4DB;
  --warn-fg: #8A5A00;
  --info-bg: #EEEDFD;
  --info-fg: #4839C7;

  /* Per-app accent (overridden per listing page) */
  --accent: var(--brand);
  --accent-rgb: var(--brand-rgb);

  /* Shape + depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 16, 32, 0.05), 0 2px 8px rgba(15, 16, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 16, 32, 0.08), 0 2px 6px rgba(15, 16, 32, 0.05);
  --shadow-lg: 0 20px 48px rgba(15, 16, 32, 0.12), 0 4px 12px rgba(15, 16, 32, 0.06);

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
}

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
h4 { font-size: 17px; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

strong { font-weight: 600; }

::selection { background: rgba(var(--brand-rgb), 0.18); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 780px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); outline-offset: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 252, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 16, 32, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.35); }
.brand-name span { color: var(--ink-3); font-weight: 500; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--brand-deep); background: rgba(var(--brand-rgb), 0.08); }
.nav-link[aria-current="page"] { color: var(--brand-deep); background: rgba(var(--brand-rgb), 0.10); font-weight: 600; }

.nav-cta {
  margin-left: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand); color: #fff; }
.nav-cta[aria-current="page"] { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(var(--ink-rgb), 0.06); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(15, 16, 32, 0.10);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-cta { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(0) !important; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--brand-rgb), 0.30);
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.34); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: rgba(var(--brand-rgb), 0.5); color: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--brand-deep); transform: translateY(-2px); }

.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: rgba(245, 245, 250, 0.35); }
.btn-ghost-dark:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }

.btn-disabled, .btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--ink-3);
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-disabled:hover, .btn[aria-disabled="true"]:hover { transform: none; }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-deep); font-weight: 600; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-row.center { justify-content: center; }

/* ---------- Pills / chips ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.pill.no-dot::before { display: none; }
.pill-live { background: #E8F7EE; color: var(--ok); border-color: rgba(21, 128, 74, 0.18); }
.pill-soon { background: var(--warn-bg); color: var(--warn-fg); border-color: rgba(138, 90, 0, 0.18); }
.pill-brand { background: var(--info-bg); color: var(--info-fg); border-color: rgba(var(--brand-rgb), 0.18); }
.pill-accent { background: rgba(var(--accent-rgb), 0.10); color: var(--accent); border-color: rgba(var(--accent-rgb), 0.18); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.eyebrow.accent { color: var(--accent); }

/* ---------- Section scaffolding ---------- */

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--ink-3); }

.section-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head.split > div { max-width: 640px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(var(--brand-rgb), 0.16), transparent 62%),
    radial-gradient(700px 360px at 100% 10%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(600px 320px at 0% 30%, rgba(20, 169, 154, 0.08), transparent 60%),
    var(--bg);
}

.hero-inner { max-width: 820px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px auto 20px;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.hero .lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 32px;
}

.icon-strip {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
  list-style: none;
}
.icon-strip a {
  display: block;
  border-radius: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.icon-strip img {
  width: 76px; height: 76px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.icon-strip a:hover { transform: translateY(-6px) scale(1.03); }
@media (max-width: 520px) {
  .icon-strip { gap: 10px; margin-top: 40px; }
  .icon-strip img { width: 54px; height: 54px; border-radius: 14px; }
}

/* ---------- App cards (home) ---------- */

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  list-style: none;
}
.apps-grid > li { flex: 0 1 calc((100% - 44px) / 3); min-width: 300px; display: flex; }

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(var(--brand-rgb), 0.28); color: inherit; }

.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.app-card-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.app-card h3 { font-size: 21px; margin-bottom: 4px; }
.app-card .app-card-sub { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.app-card .app-card-desc { font-size: 15px; color: var(--ink-2); flex: 1 0 auto; }
.app-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.app-card-platforms { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.app-card-platforms span { padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.app-card-more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-deep); font-weight: 600; font-size: 14px; white-space: nowrap; }
.app-card-more .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.app-card:hover .app-card-more .icon { transform: translateX(3px); }

/* ---------- Principles (home) ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.principle {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.principle h3 { font-size: 17px; margin: 16px 0 8px; }
.principle p { font-size: 14.5px; color: var(--ink-3); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.11);
  color: var(--accent);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile.emoji { font-size: 22px; line-height: 1; }

@media (max-width: 991px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles-grid { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 991px) { .post-grid, .post-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid, .post-grid.two { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.post-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.18), rgba(168, 85, 247, 0.18)), var(--surface-2);
  overflow: hidden;
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.post-card-body > h2, .post-card-body > h3, .post-card-body > p, .post-card-body > .post-card-meta { align-self: stretch; }
.post-card h2, .post-card h3 { font-size: 18px; line-height: 1.3; margin: 10px 0 8px; letter-spacing: -0.01em; }
.post-card p { font-size: 14.5px; color: var(--ink-3); flex: 1; }
.post-card-meta { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.post-card-meta .dot { opacity: 0.5; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty-state h2 { font-size: 22px; margin-bottom: 8px; }

/* ---------- Dark band ---------- */

.band {
  position: relative;
  overflow: hidden;
  padding: 52px 48px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(var(--brand-rgb), 0.40), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(168, 85, 247, 0.28), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band h2 { color: var(--on-dark); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.band p { color: var(--on-dark-muted); max-width: 560px; font-size: 16px; }
/* Must stay shrinkable (was flex-shrink: 0 until 2026-09-11): alone on its line in a band narrower than its
   buttons laid end to end, the row shrinks to the band and wraps — otherwise overflow: hidden clips the outer buttons. */
.band .btn-row { flex-shrink: 1; }
@media (max-width: 640px) { .band { padding: 36px 26px; text-align: center; justify-content: center; } .band .btn-row { justify-content: center; } }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 245, 250, 0.12);
}
.site-footer .brand { color: var(--on-dark); margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-name span { color: var(--on-dark-muted); }
.footer-tagline { font-size: 14.5px; max-width: 360px; }
.footer-col h3, .footer-col h4 { color: var(--on-dark); font-size: 13px; letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-top: 24px; font-size: 13px;
}
.footer-bottom a { color: inherit; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (secondary pages) ---------- */

.page-head {
  padding: 64px 0 40px;
  background:
    radial-gradient(800px 320px at 50% -20%, rgba(var(--accent-rgb), 0.14), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { font-size: 17.5px; color: var(--ink-2); max-width: 680px; }
.page-head.center { text-align: center; }
.page-head.center .lead { margin-left: auto; margin-right: auto; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.page-meta strong { color: var(--ink-2); font-weight: 600; }

/* ---------- App listing pages ---------- */

.app-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 50% -15%, rgba(var(--accent-rgb), 0.18), transparent 62%),
    radial-gradient(600px 300px at 100% 40%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.app-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  max-width: 980px;
}
.app-hero-icon {
  width: 112px; height: 112px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(var(--accent-rgb), 0.28), 0 2px 6px rgba(15, 16, 32, 0.08);
  background: var(--surface);
}
.app-hero h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 8px; }
.app-hero .tagline { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); font-weight: 500; margin-bottom: 22px; }
.app-hero .app-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.app-hero .store-badges { justify-content: flex-start; }
.app-hero .badge-caption { text-align: left; }
.app-hero .description { font-size: 16.5px; color: var(--ink-2); max-width: 720px; margin-top: 26px; }

@media (max-width: 700px) {
  .app-hero { padding: 48px 0 44px; text-align: center; }
  .app-hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .app-hero-icon { width: 96px; height: 96px; border-radius: 24px; }
  .app-hero .app-meta, .app-hero .store-badges { justify-content: center; }
  .app-hero .badge-caption { text-align: center; }
  .app-hero .description { text-align: left; }
}

/* Official Apple / Google badge art. Both assets are cropped to the visible pill,
   so equal CSS height gives equal-looking badges. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform 0.2s, opacity 0.2s; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge.soon { opacity: 0.45; filter: grayscale(1); cursor: not-allowed; }
.store-badge.soon:hover { transform: none; }
.badge-caption { margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); text-align: center; }
@media (max-width: 480px) { .store-badge img { height: 44px; } }

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .icon-tile { margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--ink-3); }
.feature-card a { font-weight: 600; }
@media (max-width: 991px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.16);
}
.price-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-card h3 { font-size: 16px; color: var(--ink-2); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 18px;
}
.price .per { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price .savings {
  align-self: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #E8F7EE;
  color: var(--ok);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.price-card ul { list-style: none; flex: 1; display: grid; align-content: start; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.price-card li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.price-card li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315804A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.pricing-note { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--ink-3); max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 991px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { order: -1; }
}

/* FAQ (native <details>, no JS) */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(var(--accent-rgb), 0.4); }
.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1020' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.25s;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.faq-answer { padding: 0 20px 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.faq-answer p + p, .faq-answer p + ul { margin-top: 10px; }
.faq-answer ul { padding-left: 22px; }
.faq-answer li + li { margin-top: 6px; }

/* Callouts */
.callout {
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.callout h3 { font-size: 17px; margin-bottom: 8px; }
.callout p + p { margin-top: 10px; }
.callout-accent { background: rgba(var(--accent-rgb), 0.07); border-color: rgba(var(--accent-rgb), 0.22); }
.callout-warn { background: var(--warn-bg); border-color: rgba(138, 90, 0, 0.2); }
.callout-warn h3 { color: var(--warn-fg); }

/* Understood In language family */
.lang-featured {
  padding: 30px 30px 28px;
  background: var(--surface);
  border: 2px solid rgba(var(--accent-rgb), 0.5);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.12);
  margin-bottom: 20px;
}
.lang-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.lang-native { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.lang-featured h3 { font-size: 26px; }
.lang-featured > p { color: var(--ink-2); font-size: 15.5px; }
.course-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 4px;
}
.course-stats div { padding: 12px 8px; text-align: center; background: var(--surface-2); border-radius: var(--r-sm); }
.course-stats strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.course-stats span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .course-stats { grid-template-columns: repeat(2, 1fr); } .lang-featured { padding: 22px 20px; } }

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lang-card {
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.lang-card h3 { font-size: 17px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-card p { font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 991px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lang-grid { grid-template-columns: 1fr; } }

/* ---------- Prose (policies, blog posts) ---------- */

.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; color: var(--ink); margin-top: 2.2em; margin-bottom: 0.5em; padding-top: 0.6em; border-top: 1px solid var(--line-soft); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 1.6em; margin-bottom: 0.4em; }
.prose h4 { font-size: 16px; color: var(--ink); margin-top: 1.3em; margin-bottom: 0.3em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose a { color: var(--brand-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid rgba(var(--brand-rgb), 0.5); color: var(--ink-2); font-style: italic; }
.prose img { border-radius: var(--r-md); }
.prose pre { padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose code { font-family: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { padding: 2px 6px; background: var(--surface-2); border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.prose .callout, .prose .contact-section { margin-top: 2em; }
.prose .contact-section h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 20px; }
.prose .contact-section p + p { margin-top: 0.6em; }

.doc-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
.doc-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 56px;
}
@media (max-width: 700px) { .doc-card { padding: 28px 22px; border-radius: var(--r-lg); } .prose { font-size: 16px; } }

.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.policy-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.policy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.policy-card img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.policy-card h3 { font-size: 18px; margin-bottom: 2px; }
.policy-card .sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; font-weight: 500; }
.policy-card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
@media (max-width: 760px) { .policy-grid { grid-template-columns: 1fr; } }

/* ---------- Forms (contact) ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 32px; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .form-card { padding: 24px 20px; border-radius: var(--r-lg); } }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.form-group .hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }

.input, input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D3F55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
input:hover, select:hover, textarea:hover { border-color: rgba(var(--ink-rgb), 0.25); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.15);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
textarea { resize: vertical; min-height: 140px; }

.message {
  display: none;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.success-message { background: #E8F7EE; color: #12663B; border: 1px solid rgba(21, 128, 74, 0.25); }
.error-message { background: #FDECEC; color: #9F1D1D; border: 1px solid rgba(159, 29, 29, 0.2); }

.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.info-list .icon-tile { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.info-list .icon-tile .icon { width: 19px; height: 19px; }
.info-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- Blog post ---------- */

.post-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 32px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.post-body { margin-top: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.loading, .error { text-align: center; padding: 48px 20px; color: var(--ink-3); }

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
