/* ============================================================
   Alwenna nav-kit — the shared language + theme switchers.
   Used by both the landing (apps/landing) and the blog (apps/blog); each build
   concatenates this into its own fingerprinted stylesheet. Relies on the host
   page's theme tokens (--surface, --text, --line, --hero-a/b, …), which both
   sites define identically per [data-theme].
   ============================================================ */

/* compact dropdown menus — language + theme. Native <details>; no JS to open. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--text-soft); border: 1px solid var(--line-2);
  padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: color .2s, border-color .2s; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu > summary:hover, .menu[open] > summary { color: var(--text); border-color: var(--line); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; }
.menu-pop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 60; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-soft); text-align: left; padding: 9px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-sunk); color: var(--text); }
.menu-pop a[aria-current="true"] { color: var(--text); font-weight: 700; }

/* theme swatches */
.sw { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-2) inset; }
.sw-light { background: linear-gradient(135deg,#efe7fb,#8a5cf0); }
.sw-dark { background: linear-gradient(135deg,#221a47,#7d5cff); }
.sw-warm { background: linear-gradient(135deg,#f7e9e4,#e07a64); }
.sw-active { background: linear-gradient(135deg,var(--hero-a),var(--hero-b)); box-shadow: none; }

/* theme switcher — inline row for the footer (reuses .sw swatches + data-theme-btn) */
.theme-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.theme-control-label { font-size: 13px; font-weight: 700; color: var(--text-mut); }
.theme-opt { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--text-soft); background: var(--surface);
  border: 1px solid var(--line-2); padding: 7px 13px; border-radius: 999px;
  transition: color .15s, border-color .15s, background .15s; }
.theme-opt:hover { color: var(--text); border-color: var(--line); }
.theme-opt.is-active { color: var(--text); border-color: transparent; background: var(--surface-sunk); box-shadow: var(--shadow-sm); }

/* pagination — reusable, icon + number only (apps/shared/nav-kit.mjs → pagination()) */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 44px 0 4px; flex-wrap: wrap; }
.pager-nums { display: flex; align-items: center; gap: 4px; }
.pager-btn, .pager-num { display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 7px; box-sizing: border-box; border-radius: 13px;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; color: var(--text-soft);
  border: 1px solid var(--line); background: var(--surface);
  transition: background .15s, color .15s, border-color .15s, transform .1s; }
.pager-btn svg { width: 20px; height: 20px; display: block; }
.pager-btn:hover, .pager-num:hover { color: var(--text); border-color: var(--line); background: var(--surface-sunk); }
.pager-btn:active, .pager-num:active { transform: translateY(1px); }
.pager-num.is-current { color: var(--hero-ink); border-color: transparent; cursor: default;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); box-shadow: var(--shadow-sm); }
.pager-btn.is-disabled { opacity: .32; cursor: default; pointer-events: none; }
.pager-gap { min-width: 26px; text-align: center; color: var(--text-mut); font-weight: 700; user-select: none; }

/* ============================================================
   Alwenna — landing page styles.
   The app's design language, on a marketing page: four colours, three radii, hairlines
   instead of shadows, a serif for headings and a text face for everything else. Theme via
   [data-theme] on <html> — two of them, because the design is one drawing under two lights.
   ============================================================ */

/* The app's pair. Golos Text carries Latin + Cyrillic, Cormorant Garamond the same, so the
   Russian page is set in the same two faces as the English one rather than falling back. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Golos+Text:wght@400;500;600&display=swap');
/* Golos and Cormorant carry Latin and Cyrillic and nothing else, so a page in an Indian
   language would be set in whatever the phone substituted. Each script brings its own Noto
   pair — the same faces the app uses — and only the pages written in that script ask for
   them (the @import is unconditional, but the browser fetches a face only when it is used). */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600&family=Noto+Serif+Devanagari:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600&family=Noto+Serif+Bengali:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Telugu:wght@400;500;600&family=Noto+Serif+Telugu:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;500;600&family=Noto+Serif+Tamil:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ---------- The four colours ----------
   Paper, ink, night, terracotta. Everything below is one of them at a lower opacity; a
   fifth colour would be a decision nobody made. */
:root, [data-theme="light"] {
  color-scheme: light;

  --paper: #fbf3e4;
  /* The ink is the blue the illustrations are drawn in, so the page and the pictures
     on it are the same colour rather than a teal beside a navy. */
  --ink: #16354f;
  --night: #0d1f2e;
  --accent: #c25b34;

  --page: var(--paper);
  --bg-top: var(--paper); --bg-bot: var(--paper);
  --surface: var(--paper);
  /* A sunk area is the same paper pressed a shade darker, not a different material. */
  --surface-sunk: #f2e8d5;
  /* The bar along the bottom of a sheet sits a shade under the page. */
  --bar: #f6ecd9;

  --text: var(--ink);
  --text-soft: rgba(22, 53, 79, .72);
  --text-mut: rgba(22, 53, 79, .52);

  /* The accent is the only call to action. */
  --primary: var(--accent);
  --primary-ink: var(--paper);
  --primary-soft: rgba(194, 91, 52, .1);

  /* A hero is ink on paper turned around: night ground, paper type. No gradient. */
  --hero-a: var(--night); --hero-b: var(--night);
  --hero-ink: var(--paper);
  --hero-sub: rgba(251, 243, 228, .72);

  /* Separation is a line. */
  --line: rgba(22, 53, 79, .18);
  --line-2: rgba(22, 53, 79, .1);
  --chip-bg: rgba(22, 53, 79, .07);
  --chip-ink: var(--text-soft);

  --good: var(--ink);
  --tough: var(--accent);
  --star: rgba(22, 53, 79, .5);

  /* No shadows. The names stay because the shared chrome asks for them; all four are
     nothing, so a stray `box-shadow: var(--shadow-md)` draws no shadow rather than an error. */
  --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow-hero: none;

  /* Three radii, and what each is for:
     999 — a button, a chip: something you press.
     22  — anything you can put a sentence in: a card, a sheet, a field.
     6   — a small mark: a glyph tile, a square behind an icon. */
  --r-card: 22px; --r-lg: 22px; --r-mark: 6px;

  /* Small uppercase labels are tracked out so they read as labels, not small sentences. */
  --tracking-label: 1.1px;

  /* The two faces, asked for by name so a script can swap them in one place. */
  --font-sans: 'Golos Text';
  --font-display: 'Cormorant Garamond';
}

/* Hindi and Marathi share Devanagari; the rest bring their own. A letter in these scripts is
   a cluster, so the label tracking goes to zero as well — spacing them apart pulls a word
   into loose syllables. */
:root:lang(hi), :root:lang(mr) { --font-sans: 'Noto Sans Devanagari'; --font-display: 'Noto Serif Devanagari'; --tracking-label: 0; }
:root:lang(bn) { --font-sans: 'Noto Sans Bengali'; --font-display: 'Noto Serif Bengali'; --tracking-label: 0; }
:root:lang(te) { --font-sans: 'Noto Sans Telugu'; --font-display: 'Noto Serif Telugu'; --tracking-label: 0; }
:root:lang(ta) { --font-sans: 'Noto Sans Tamil'; --font-display: 'Noto Serif Tamil'; --tracking-label: 0; }

[data-theme="dark"] {
  color-scheme: dark;

  /* The same drawing under a different light: paper and ink change places, the accent does
     not. Two tokens carry it; everything below is derived exactly as above. */
  --paper: #11293c;
  --ink: #f2e9d8;
  --night: #0d1f2e;
  --accent: #d16a41;

  --surface-sunk: #0f2334;
  --bar: #0f2334;

  --text-soft: rgba(242, 233, 216, .74);
  --text-mut: rgba(242, 233, 216, .52);

  --primary-soft: rgba(209, 106, 65, .16);
  --hero-a: #1a3e5c; --hero-b: #1a3e5c;
  --hero-ink: #f6efe1;
  --hero-sub: rgba(246, 239, 225, .74);

  --line: rgba(242, 233, 216, .18);
  --line-2: rgba(242, 233, 216, .1);
  --chip-bg: rgba(242, 233, 216, .08);
  --star: rgba(242, 233, 216, .6);
}

body {
  font-family: var(--font-sans), -apple-system, system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* The paper has a grain: hairlines every three pixels, at four per cent, over the whole
   page. Close up it is a ruled sheet; at arm's length it is just warmth. Drawn over the
   ground rather than in it, so it costs one element and never repaints while scrolling. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .04;
  background-image: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 3px);
}
body > * { position: relative; z-index: 1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.sec { padding: 92px 0; position: relative; }

/* ---------- type ----------
   Headings are the serif; body text never is. Applied here rather than per block: a heading
   that forgets it is a heading is how a type system quietly stops existing. */
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--font-display), Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: .2px; }
h1 { font-size: clamp(44px, 6.4vw, 74px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* The serif, where a block needs it without being a heading: the phone's own headings and
   the mock Book cover. One class so the face is asked for by name, never re-declared. */
.aw-serif, .phone-display { font-family: var(--font-display), Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: .2px; }

.lead { font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--text-soft); line-height: 1.62; }
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head p { margin-top: 14px; }

/* An eyebrow names what follows. It is a line of small capitals, not a coloured pill. */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 8px;
  color: var(--accent);
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-label); line-height: 1.5;
}
/* The glyph rides the first line rather than the middle of the block: on a narrow screen the
   label wraps to two lines, and a centred star ends up floating between them. */
.eyebrow svg { display: block; margin-top: 2px; flex: none; }

/* ---------- buttons ----------
   Pills, and only two of them: the accent one that asks for the click, and the quiet one
   that offers an alternative. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; font-weight: 500;
  border-radius: 999px; padding: 14px 26px; font-size: 15.5px; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s; white-space: nowrap;
}
.btn-primary, .btn-hero { background: var(--accent); color: var(--paper); }
.btn-primary:hover, .btn-hero:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-soft { background: transparent; color: var(--text); border-color: var(--line); }
.btn-soft:hover { border-color: var(--text-soft); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
/* The sample-download CTA. Allowed to wrap and capped to its container so a long label never
   overflows a narrow screen. */
.btn-download { font-size: 17px; padding: 18px 38px; gap: 11px; white-space: normal; max-width: 100%; text-align: center; line-height: 1.3; }
/* The book's own language, under the button. The button already points at the right file for
   this page; this row says which one that is and hands over the other three. */
.sample-langs {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 6px 14px; margin: 14px auto 0;
  font-size: 12.5px; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-mut);
}
.sample-langs > span::after { content: ":"; }
.sample-langs a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.sample-langs a:hover { color: var(--text); border-bottom-color: var(--text); }
.sample-langs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }

/* On a night ground the quiet button borrows the paper, not the ink. */
.on-night .btn-soft { color: var(--hero-ink); border-color: rgba(251, 243, 228, .34); }
.on-night .btn-soft:hover { border-color: var(--hero-ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--page);
  border-bottom: 1px solid var(--line-2);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display), Georgia, serif;
  font-size: 19px; font-weight: 500; letter-spacing: 0.16em; line-height: 1;
  text-transform: uppercase; color: var(--text); }
/* The mark is drawn in the ink, like every other mark the brand owns. Terracotta is the
   colour of the one thing on a screen you are meant to press, and a logo is not that. */
.brand-mark { display: grid; place-items: center; color: var(--text); }
.brand-mark svg { display: block; }
.nav-links { display: flex; gap: 26px; margin-left: 26px; }
.nav-links a { font-size: 14.5px; color: var(--text-soft); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-top: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 20px 0 0; }
.hero .lead { margin: 20px 0 30px; max-width: 470px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { display: flex; align-items: center; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--text-mut); flex-wrap: wrap; }

/* The phone: a hairline outline holding the app as it actually looks. No chrome-black
   bezel, no drop shadow — the device is a frame, not an object. */
.phone { position: relative; width: 300px; margin: 0 auto;
  border-radius: 34px; border: 1px solid var(--line); background: var(--surface); padding: 10px; }
.phone-screen { border-radius: 26px; overflow: hidden; background: var(--surface); position: relative; min-height: 430px; }
.phone-notch { display: none; }

/* ---------- the trust strip: three figures, ruled apart ---------- */
.trust { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust .stat { text-align: center; }
.trust .stat b { display: block; font-family: var(--font-display), Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--text); }
.trust .stat span { font-size: 12px; color: var(--text-mut); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.trust .vr { width: 1px; height: 44px; background: var(--line-2); }

/* ---------- a lead sheet ----------
   The one card that leads a section: night ground, paper type. Where the old page put a
   gradient band, this puts the drawing turned over. */
.flagship { background: var(--hero-a); color: var(--hero-ink); border-radius: var(--r-card); padding: 52px; position: relative; }
.flagship h2, .flagship h3 { color: var(--hero-ink); }
.flagship p, .flagship .lead { color: var(--hero-sub); }
.flagship .eyebrow { color: var(--hero-ink); opacity: .8; }
.flag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.flag-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--hero-ink);
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-label); opacity: .82; }
/* The card inside a lead sheet: the same paper, at a lower opacity, with a hairline. */
/* The home page's way to the Book's sales page: a big terracotta pill with the cover in it. */
.bk-home-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 16px; margin-top: 40px; }
.bk-home-link {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 10px 26px 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--paper); text-decoration: none;
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
/* The real cover, big enough to read as a book, standing out of the pill top and bottom. */
.bk-home-link img {
  width: 70px; height: 99px; margin: -26px 0 -22px; object-fit: cover; border-radius: 6px;
  flex: none; transform: rotate(-8deg);
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .18s ease;
}
.bk-home-link-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.bk-home-link-text b { font-size: 18px; font-weight: 600; }
.bk-home-link-text small { font-size: 13px; opacity: .82; }
.bk-home-link-arrow { flex: none; margin-left: 6px; transition: transform .18s ease; }
.bk-home-link:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); transform: translateY(-2px); }
.bk-home-link:hover img { transform: rotate(-3deg) scale(1.06); }
.bk-home-link:hover .bk-home-link-arrow { transform: translateX(4px); }
.bk-home-link:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .bk-home-link, .bk-home-link img, .bk-home-link-arrow { transition: none; }
}
@media (max-width: 560px) {
  .bk-home-ctas { flex-direction: column; align-items: stretch; }
  .bk-home-link-arrow { margin-left: auto; }
  .bk-home-ctas .btn { justify-content: center; }
}
.score-card { background: rgba(251, 243, 228, .06); border: 1px solid rgba(251, 243, 228, .18); border-radius: var(--r-card); padding: 24px; }
.score-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.score-bar { flex: 1; height: 3px; background: rgba(251, 243, 228, .22); border-radius: 999px; overflow: hidden; }
.score-bar > div { height: 100%; background: var(--accent); border-radius: 999px; }

/* A lead sheet the other way round: paper, hairline, terracotta rule. Used for the second
   flagship so the page does not read as two night bands in a row. */
.flagship.quiet { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.flagship.quiet h2, .flagship.quiet h3 { color: var(--text); }
.flagship.quiet p, .flagship.quiet .lead { color: var(--text-soft); }
.flagship.quiet .eyebrow, .flagship.quiet .flag-badge { color: var(--accent); opacity: 1; }
.flagship.quiet .score-card { background: var(--surface-sunk); border-color: var(--line-2); color: var(--text); }
.flagship.quiet .score-bar { background: var(--line-2); }

/* ---------- the section grid: one sheet ruled into cells ----------
   Cards with gaps between them turn six things into six things; a sheet ruled into cells
   reads as one place with parts in it. */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.feat { padding: 30px 28px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.feat-grid > .feat:nth-child(3n) { border-right: none; }
.feat-grid > .feat:nth-last-child(-n+3) { border-bottom: none; }
.feat-ic { width: 34px; height: 34px; border-radius: var(--r-mark); border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); }
.feat h3 { margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- steps: numbered in the serif, ruled apart ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 30px 30px 0; border-right: 1px solid var(--line-2); }
.steps > .step:last-child { border-right: none; }
.steps > .step:not(:first-child) { padding-left: 30px; }
.step-num { font-family: var(--font-display), Georgia, serif; font-size: 34px; line-height: 1;
  color: var(--accent); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- the day: a card of numbers beside the day's own words ---------- */
.day-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: stretch; }
.day-card, .day-mood {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 28px;
}
.day-date { font-size: 12.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-mut); }
/* Seven days, seven numbers. A strip rather than a chart: the point is that they differ. */
.day-week-label { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.day-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 18px; }
.day-cell { text-align: center; padding: 12px 0 10px; border-radius: 14px; border: 1px solid transparent; }
.day-cell b { display: block; font-size: 19px; font-weight: 600; color: var(--text); }
.day-cell span { font-size: 12px; color: var(--text-mut); }
.day-cell.is-today { border-color: var(--accent); background: var(--primary-soft); }
.day-note { font-size: 13px; line-height: 1.55; color: var(--text-mut); margin: 0; }
.day-mood { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.day-chip {
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 600;
}
.day-mood h3 { font-size: 23px; }
.day-mood p { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); margin: 0; }
.day-mood .btn { margin-top: auto; }

/* ---------- the four bonds ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.type { padding: 26px 24px; border-right: 1px solid var(--line-2); }
.type-grid > .type:last-child { border-right: none; }
.type-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.type h3 { font-size: 20px; }
/* The score is the argument: four different numbers from one pair of charts. */
.type-score { font-family: var(--font-display), Georgia, serif; font-size: 30px; line-height: 1; color: var(--accent); }
.type p { font-size: 14px; line-height: 1.55; color: var(--text-soft); margin: 0; }

.types-note {
  max-width: 640px; margin: 26px auto 0; text-align: center;
  font-size: 13.5px; line-height: 1.6; color: var(--text-mut);
}

/* ---------- star cards: the real artefact, three of them ---------- */
.star-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 820px; margin: 0 auto; }
.star-card { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-2); display: block; }
/* The middle card sits a little proud, so three cards read as a hand rather than a row. */
.star-card[style*="--i:1"] { transform: translateY(-14px); }
.star-privacy {
  max-width: 620px; margin: 30px auto 0; text-align: center; font-size: 14px; line-height: 1.6;
  color: var(--text-soft);
}

/* ---------- who made it ---------- */
.credo { background: var(--surface-sunk); border-radius: var(--r-card); padding: 52px 44px; }
.credo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.credo-point { padding: 28px 26px 0 0; border-right: 1px solid var(--line-2); }
.credo-grid > .credo-point:last-child { border-right: none; }
.credo-grid > .credo-point:not(:first-child) { padding-left: 26px; }
.credo-point h3 { font-size: 19px; margin-bottom: 8px; }
.credo-point p { font-size: 14px; line-height: 1.55; color: var(--text-soft); }

/* ---------- quotes (gated) ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; }
.quote .stars-row { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: 15px; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.quote .who .ava { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.quote .who b { font-size: 14px; font-weight: 600; display: block; }
.quote .who span { font-size: 12.5px; color: var(--text-mut); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
/* The plan we recommend is the drawing turned over — not a bigger, brighter card. */
.plan.featured { background: var(--hero-a); border-color: transparent; color: var(--hero-ink); }
.plan.featured h3, .plan.featured .price, .plan.featured li { color: var(--hero-ink); }
.plan.featured .price small, .plan.featured .plan-sub { color: var(--hero-sub); }
.plan.featured .btn-soft { color: var(--hero-ink); border-color: rgba(251, 243, 228, .34); }
.plan-tag { position: absolute; top: 26px; right: 26px; color: var(--hero-ink); opacity: .8;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-label); }
.plan-tag.soon { color: var(--accent); opacity: 1; }
.btn.is-soon { opacity: .45; cursor: default; }
.plan h3 { font-size: 20px; }
.plan-sub { font-size: 13px; color: var(--text-mut); margin-top: 4px; }
.price { font-family: var(--font-display), Georgia, serif; font-size: 46px; line-height: 1.1; margin: 18px 0 4px; }
.price small { font-family: var(--font-sans), system-ui, sans-serif; font-size: 14px; color: var(--text-mut); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-soft); }
.plan li svg { flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ---------- faq: hairline rows, no boxes ---------- */
.faq { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 2px; text-align: left; font-size: 16.5px; font-weight: 500; color: var(--text); }
.faq-q svg { flex: none; color: var(--accent); transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 260px; padding: 0 2px 22px; }
.faq-a p { font-size: 15px; color: var(--text-soft); }

/* ---------- the closing band ---------- */
.cta-band { text-align: center; background: var(--hero-a); color: var(--hero-ink);
  border-radius: var(--r-card); padding: 68px 40px; }
.cta-band h2 { color: var(--hero-ink); }
.cta-band p, .cta-band .lead { color: var(--hero-sub); }
.cta-band .eyebrow { color: var(--hero-ink); opacity: .8; }

/* ---------- footer ---------- */
.footer { padding: 60px 0 36px; border-top: 1px solid var(--line-2); margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-mut); font-weight: 600; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14.5px; color: var(--text-soft); }
.footer a:hover { color: var(--text); }
/* The footer's own blurb, narrow by design — it sits in a column, not across the page. It
   used to be written as a bare `.lead`, with a stray `.footer` glued to the comment above it,
   so every section's lead on the site was capped at 280px and knocked off centre. */
.footer .lead { font-size: 14.5px; max-width: 280px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px;
  padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-mut); flex-wrap: wrap; gap: 14px; }
.footer-credit { font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.footer-credit:hover { color: var(--text); }
.footer-disclaimer { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-mut); max-width: 820px; }

/* ---------- the shared chrome, in this palette ----------
   nav-kit.css is written against these tokens, so it mostly follows on its own. Two things
   it hard-codes are re-drawn here: the theme swatches (built for a three-theme lavender
   site) and the pill it paints with a gradient. */
.sw { box-shadow: 0 0 0 1px var(--line) inset; }
.sw-light { background: #fbf3e4; }
.sw-dark { background: #11293c; }
.sw-active { background: var(--accent); box-shadow: none; }
.menu > summary { border-radius: 999px; }
.menu-pop { border-radius: var(--r-card); }
.menu-pop a, .menu-pop button { border-radius: 999px; }
.theme-opt.is-active { background: var(--surface-sunk); border-color: var(--line); }
.pager-num.is-current { background: var(--accent); color: var(--paper); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .flag-grid { grid-template-columns: 1fr; }
  .hero-phone-col { order: -1; }
  .feat-grid, .quotes, .price-grid { grid-template-columns: 1fr; }
  .feat-grid > .feat { border-right: none; }
  .feat-grid > .feat:not(:last-child) { border-bottom: 1px solid var(--line-2); }
  .steps { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: 1fr; }
  .day-week { gap: 4px; }
  .day-cell b { font-size: 17px; }
  .type-grid { grid-template-columns: 1fr; }
  .type { border-right: none; border-bottom: 1px solid var(--line-2); }
  .type-grid > .type:last-child { border-bottom: none; }
  .star-row { grid-template-columns: 1fr; max-width: 320px; gap: 20px; }
  .star-card[style*="--i:1"] { transform: none; }
  .credo { padding: 34px 22px; }
  .credo-grid { grid-template-columns: 1fr; }
  .credo-point { border-right: none; padding: 24px 0 0; }
  .credo-grid > .credo-point:not(:first-child) { padding-left: 0; }
  .step, .steps > .step:not(:first-child) { padding: 26px 0; border-right: none; border-bottom: 1px solid var(--line-2); }
  .steps > .step:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 60px 0; }
  .flagship { padding: 32px; }
  .cta-band { padding: 52px 26px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust { gap: 20px; }
  .trust .vr { display: none; }
  /* Phone nav: the section links are hidden ≤920px and the theme switcher lives in the
     footer, so brand + language + CTA fit; tighten the cluster. */
  .nav .brand { font-size: 16px; gap: 8px; letter-spacing: 0.12em; }
  .nav .brand-mark svg { width: 26px; height: 26px; }
  .nav-in { gap: 10px; height: 60px; }
  .nav .wrap { padding: 0 16px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding: 10px 15px; font-size: 13.5px; }
  .btn-download { width: 100%; padding: 15px 20px; font-size: 15px; }
}

/* ============================================================
   The Book of You — its sales page (/book/). Same four colours and three radii; the one new
   material is the Book's own page: its paper and the painted vine frame it prints on every
   page, so an excerpt here looks like the thing being bought.
   ============================================================ */
.bk-nav-cta { padding: 10px 18px; font-size: 14px; }
/* One action on this page: the shared header's "Open the app" gives way to the buy button. */
.bk .nav-right > .btn-hero { display: none; }

.bk-hero { background: var(--hero-a); color: var(--hero-ink); padding: 64px 0 40px; position: relative; overflow: hidden; }
/* A warm halo behind the cover — a gradient, not a shadow: light falling on the book. */
.bk-hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(209, 150, 60, .22), transparent 70%);
}
.bk-hero .eyebrow { color: var(--hero-sub); display: inline-flex; align-items: center; gap: 8px; }
.bk-hero .lead { color: var(--hero-sub); margin-top: 18px; max-width: 540px; }
.bk-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.bk-h1 {
  color: var(--hero-ink);
  font-family: var(--font-display), Georgia, serif; font-weight: 500; letter-spacing: .2px;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; margin: 18px 0 0; text-wrap: balance;
}
.bk-h1 em { font-style: italic; color: #e9a07a; }
.bk-buy { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.bk-buy .btn { font-size: 17px; padding: 18px 32px; }
.bk-note { margin: 14px 0 0; font-size: 13.5px; color: var(--hero-sub); }
.bk-cover-col { display: flex; justify-content: center; }
.bk-cover {
  width: min(360px, 100%); height: auto; border-radius: 10px; display: block;
  border: 1px solid rgba(251, 243, 228, .28); transform: rotate(2.5deg);
  animation: bk-float 7s ease-in-out infinite;
}
@keyframes bk-float { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-8px); } }

.bk-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px;
  border-top: 1px solid rgba(251, 243, 228, .18); position: relative;
}
.bk-facts > div { padding: 20px 12px 0 0; display: flex; flex-direction: column; gap: 2px; }
.bk-facts b { font-family: var(--font-display), Georgia, serif; font-weight: 500; font-size: 38px; line-height: 1; color: var(--hero-ink); }
.bk-facts span { font-size: 13px; color: var(--hero-sub); }

.bk-pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bk-pain { border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; background: var(--surface); }
.bk-pain h3 { font-size: 18px; margin: 0 0 8px; }
.bk-pain p { margin: 0; font-size: 14.5px; color: var(--text-soft); }
.bk-answer {
  text-align: center; margin: 36px auto 0; max-width: 640px;
  font-family: var(--font-display), Georgia, serif; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--text);
}

.bk-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bk-group { border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; background: var(--surface); }
.bk-group h3 { font-family: var(--font-display), Georgia, serif; font-weight: 500; font-size: 26px; margin: 0 0 14px; }
.bk-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bk-group li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-soft); }
.bk-chip-ic {
  flex: none; width: 32px; height: 32px; border-radius: var(--r-mark); display: grid; place-items: center;
  color: var(--accent); background: var(--primary-soft);
}

/* An excerpt set as a page of the Book: its paper, its frame, its type. The page keeps its own
   paper under the night theme too — it is a picture of the PDF, which has no dark mode. */
.bk-look { background: var(--surface-sunk); }
.bk-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.bk-page {
  background: #fffdf7 url(/book/frame.png) center / 100% 100% no-repeat;
  border-radius: 6px; border: 1px solid rgba(22, 53, 79, .14); color: #16354f;
  aspect-ratio: 1 / 1.414; overflow: hidden; position: relative;
}
.bk-page-in { padding: 13% 14% 12%; height: 100%; overflow: hidden; position: relative; }
/* The page is cut where a real page would turn: the text fades into the paper at the foot. */
.bk-page-in::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(transparent, #fffdf7 78%);
}
.bk-page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bk-page-ic { color: #c25b34; flex: none; }
.bk-page h3 { font-family: var(--font-sans), system-ui, sans-serif; font-weight: 600; font-size: 21px; margin: 6px 0 0; color: #16354f; }
.bk-page p { font-family: Georgia, 'Times New Roman', serif; font-size: 14.5px; line-height: 1.62; margin: 0 0 12px; text-align: justify; hyphens: auto; color: #1d3550; }
.bk-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px; color: #fffdf7; }
.bk-badge-vedic { background: #c25b34; }
.bk-badge-western { background: #3f4f9a; }
.bk-badge-qa { background: #16354f; }
.bk-sample-note { text-align: center; margin: 28px auto 0; font-size: 13px; color: var(--text-mut); max-width: 620px; }

.bk-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.bk-shot { margin: 0; }
.bk-shot img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line-2); background: #fffdf7; }
.bk-shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--text-mut); text-align: center; }

.bk-gift {
  display: flex; gap: 26px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 40px; background: var(--surface);
}
.bk-gift-ic { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--primary-soft); }

.bk-price { max-width: 460px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px; background: var(--surface); }
.bk-price .price { margin-top: 0; }
.bk-price ul { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.bk-price li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-soft); }
.bk-price li svg { flex: none; margin-top: 4px; }
.bk-small { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-mut); text-align: center; }

/* The buy button that stays in reach once the hero is gone — phones only. */
.bk-bar { display: none; }

@media (max-width: 920px) {
  .bk-hero { padding: 22px 0 28px; }
  .bk-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .bk-h1 { font-size: clamp(31px, 8.6vw, 40px); margin-top: 12px; }
  .bk-hero .lead { margin-top: 12px; font-size: 15px; }
  .bk-buy { margin-top: 20px; }
  .bk-cover-col { order: -1; }
  /* Small enough that the price and the button are on the first screen of a phone. */
  .bk-cover { width: min(150px, 40vw); }
  .bk-buy .btn { width: 100%; }
  .bk-facts { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .bk-facts > div { padding: 16px 0 6px; }
  .bk-pain-grid, .bk-groups, .bk-pages { grid-template-columns: 1fr; }
  .bk-shots { grid-template-columns: 1fr 1fr; }
  .bk-shots .bk-shot:first-child { display: none; }
  .bk-gift { flex-direction: column; padding: 28px; }
  .bk-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--page); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .bk-bar.show { transform: none; }
  .bk-bar .btn { width: 100%; font-size: 16px; padding: 15px 20px; }
  body.bk { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .bk-nav-cta { padding: 9px 14px; font-size: 13px; }
  .bk .nav .brand-name { display: none; }
  .bk-page p { font-size: 13.5px; }
  .bk-page h3 { font-size: 18px; }
  .bk-shots { grid-template-columns: 1fr; }
  .bk-shots .bk-shot:first-child { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-cover { animation: none; }
  .bk-bar { transition: none; }
}
.bk-page p.bk-q { font-family: var(--font-sans), system-ui, sans-serif; font-weight: 600; font-size: 15px; margin-top: 4px; text-align: left; }

/* A partner's code on the Book's price: the full price struck through, small, before the paid one. */
.amount s.was { opacity: .55; font-size: .62em; font-weight: 400; margin-right: .2em; }

/* The partner page: what the Book can bring, as a short ledger. */
.pt-earn { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.pt-earn-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--r-card, 18px);
  background: var(--surface, #fff);
}
.pt-earn-row span { color: var(--text-soft); font-size: 16px; }
.pt-earn-row b { font-size: 24px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.pt-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Four points read as two pairs, not three and an orphan. */
.credo-grid.pt-two { grid-template-columns: repeat(2, 1fr); }
.credo-grid.pt-two > .credo-point { padding: 26px 26px 26px 0; border-right: none; border-bottom: 1px solid var(--line-2); }
.credo-grid.pt-two > .credo-point:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line-2); }
.credo-grid.pt-two > .credo-point:nth-last-child(-n + 2) { border-bottom: none; }
@media (max-width: 760px) {
  .credo-grid.pt-two { grid-template-columns: 1fr; }
  .credo-grid.pt-two > .credo-point,
  .credo-grid.pt-two > .credo-point:nth-child(even) { padding: 22px 0; border-left: none; border-bottom: 1px solid var(--line-2); }
  .credo-grid.pt-two > .credo-point:last-child { border-bottom: none; }
}

/* ---------- The first screen: the sky ----------
   The one place the page breaks its own quiet rules on purpose (owner, 2026-10-05: "more
   spectacle"): a night band with depth, a glow behind the Book, orbits, glass. Everything
   else on the page stays paper and hairline, so this lands as the moment. The sky is night
   under both lights. */
.hero-sky {
  --sky-paper: #fbf3e4;
  --sky-sub: rgba(251, 243, 228, .74);
  --sky-mut: rgba(251, 243, 228, .56);
  --sky-gold: #e7b98f;
  --sky-glass: rgba(251, 243, 228, .07);
  --sky-rim: rgba(251, 243, 228, .2);
  position: relative; overflow: hidden; color: var(--sky-paper);
  padding: 84px 0 40px;
  background:
    radial-gradient(1100px 700px at 74% 38%, #1f4a6e 0%, rgba(31, 74, 110, 0) 62%),
    radial-gradient(800px 520px at 6% 0%, #17395a 0%, rgba(23, 57, 90, 0) 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(194, 91, 52, .22) 0%, rgba(194, 91, 52, 0) 70%),
    #0a1824;
}
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky-glow {
  position: absolute; width: 620px; height: 620px; right: 4%; top: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 185, 143, .28) 0%, rgba(209, 106, 65, .12) 38%, rgba(209, 106, 65, 0) 70%);
  filter: blur(8px); pointer-events: none;
}
.sky-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: 560px; }
.sky-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  background: var(--sky-glass); border: 1px solid var(--sky-rim); color: var(--sky-gold);
  font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sky-title {
  margin: 22px 0 0; color: var(--sky-paper);
  font-family: var(--font-display), Georgia, serif; font-weight: 500;
  font-size: clamp(46px, 6vw, 84px); line-height: 1; letter-spacing: -.01em; text-wrap: balance;
}
.sky-title em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, #f6d6ae 0%, #e7b98f 38%, #d97a50 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sky-lead { margin: 24px 0 0; max-width: 540px; font-size: 18.5px; line-height: 1.6; color: var(--sky-sub); }
.sky-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.sky-ctas .btn { gap: 10px; }
.btn-glass {
  background: var(--sky-glass); color: var(--sky-paper); border: 1px solid var(--sky-rim);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { border-color: var(--sky-paper); background: rgba(251, 243, 228, .12); }
.btn-cover { width: 22px; height: 31px; border-radius: 3px; object-fit: cover; transform: rotate(-7deg); box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .5); }
.btn-price { opacity: .8; font-weight: 500; }
.sky-micro { margin: 16px 0 0; font-size: 13.5px; color: var(--sky-mut); letter-spacing: .02em; }

/* The light that crosses the main button now and then — the eye goes where things move. */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.8s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

/* The Book, in its own light, with planets on three orbits. */
.sky-book { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.sky-cover {
  position: relative; z-index: 2; width: 54%; height: auto; border-radius: 14px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 110px rgba(231, 185, 143, .22);
  animation: book-float 7s ease-in-out infinite;
}
@keyframes book-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(-4deg); } }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(251, 243, 228, .14); animation: orbit linear infinite; }
.orbit-1 { inset: 17%; animation-duration: 38s; }
.orbit-2 { inset: 6%; animation-duration: 64s; animation-direction: reverse; border-style: solid; border-color: rgba(251, 243, 228, .08); }
.orbit-3 { inset: -6%; animation-duration: 110s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.planet { position: absolute; border-radius: 50%; }
.planet-1 { width: 12px; height: 12px; top: -6px; left: 50%; background: radial-gradient(circle at 35% 35%, #ffe7c4, #e7b98f 60%, #b9794a); box-shadow: 0 0 18px rgba(231, 185, 143, .8); }
.planet-2 { width: 9px; height: 9px; bottom: 12%; left: 4%; background: radial-gradient(circle at 35% 35%, #ffc9ae, #d16a41 65%); box-shadow: 0 0 14px rgba(209, 106, 65, .8); }
.planet-3 { width: 6px; height: 6px; top: 30%; right: -3px; background: #fbf3e4; box-shadow: 0 0 12px rgba(251, 243, 228, .9); }
.sky-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(13, 31, 46, .55); border: 1px solid var(--sky-rim); color: var(--sky-paper);
  font-size: 13.5px; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
  animation: chip-float 6s ease-in-out infinite;
}
.sky-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-gold); box-shadow: 0 0 10px var(--sky-gold); flex: none; }
.sky-chip-1 { top: 14%; left: -2%; }
.sky-chip-2 { top: 46%; right: -6%; animation-delay: -2s; }
.sky-chip-2 i { background: #d16a41; box-shadow: 0 0 10px #d16a41; }
.sky-chip-3 { bottom: 12%; left: 4%; animation-delay: -4s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sky-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px;
  border: 1px solid var(--sky-rim); border-radius: var(--r-card); background: var(--sky-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
}
.sky-stat { padding: 18px 22px; text-align: center; }
.sky-stat + .sky-stat { border-left: 1px solid var(--sky-rim); }
.sky-stat b { display: block; font-family: var(--font-display), Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.05; color: var(--sky-gold); }
.sky-stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--sky-mut); text-transform: uppercase; letter-spacing: var(--tracking-label); }

/* Calls to action between sections, and the bar that follows a phone down the page. */
.mid-cta { display: flex; justify-content: center; padding: 0 0 12px; margin-top: -36px; }
.home-bar { display: none; }
@media (max-width: 760px) {
  .home-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(10, 24, 36, 0) 0%, rgba(10, 24, 36, .82) 40%);
    transform: translateY(120%); transition: transform .35s ease;
  }
  .home-bar.show { transform: none; }
  .home-bar .btn { width: 100%; justify-content: center; padding: 16px 20px; font-size: 16px; }
  footer { padding-bottom: 90px; }
}

/* The rest of the page gets a little life: lifted cards, warmer night sheets. */
.feat, .type, .step { transition: transform .25s ease, background .25s ease; }
.feat:hover, .type:hover { transform: translateY(-3px); background: var(--surface-sunk); }
.flagship.on-night {
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 88% 12%, rgba(209, 106, 65, .2) 0%, rgba(209, 106, 65, 0) 65%),
    radial-gradient(600px 360px at 0% 100%, rgba(31, 74, 110, .7) 0%, rgba(31, 74, 110, 0) 70%),
    var(--hero-a);
}
.type-score { background: linear-gradient(100deg, #e7b98f, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .hero-sky { padding: 56px 0 28px; }
  .sky-grid { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .sky-book { max-width: 360px; }
  .sky-glow { width: 420px; height: 420px; right: -20%; top: 38%; }
  .sky-lead { font-size: 17px; }
}
@media (max-width: 560px) {
  .sky-ctas { flex-direction: column; align-items: stretch; }
  .sky-ctas .btn { justify-content: center; }
  .sky-book { max-width: 300px; }
  .sky-chip { font-size: 12px; padding: 8px 12px; }
  .sky-chip-1 { left: -6%; } .sky-chip-2 { right: -8%; } .sky-chip-3 { left: -2%; }
  .sky-stats { grid-template-columns: 1fr; }
  .sky-stat + .sky-stat { border-left: 0; border-top: 1px solid var(--sky-rim); }
  .sky-stat { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 12px 16px; }
  .sky-stat b { font-size: 26px; }
  .sky-stat span { margin-top: 0; }
  .mid-cta { padding: 0 16px 8px; }
  .mid-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-cover, .orbit, .sky-chip, .btn-shine::after { animation: none !important; }
  .feat, .type, .step, .home-bar { transition: none; }
}

/* The page ends under the same sky it opened with. */
.cta-sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(31, 74, 110, .9) 0%, rgba(31, 74, 110, 0) 70%),
    radial-gradient(600px 300px at 50% 110%, rgba(194, 91, 52, .3) 0%, rgba(194, 91, 52, 0) 70%),
    #0a1824;
}
.cta-sky > :not(canvas) { position: relative; z-index: 1; }
.cta-sky h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; text-wrap: balance; }
.sky-title { text-wrap: pretty; }
@media (max-width: 560px) {
  .sky-eyebrow { font-size: 10.5px; letter-spacing: .4px; padding: 7px 12px; }
}
/* Long words in these scripts would push the Book aside at the display size: a smaller title,
   and columns that keep their share whatever the text. */
.sky-copy, .sky-book { min-width: 0; }
:root:lang(ta) .sky-title, :root:lang(te) .sky-title, :root:lang(bn) .sky-title, :root:lang(mr) .sky-title {
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; overflow-wrap: anywhere;
}
