/* Innerstood site styles. Inverted edition: white sky, black stars, black logo. */

@font-face {
  font-family: "Bungee Hairline";
  src: url("../fonts/BungeeHairline.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sky: #FFFFFF;         /* page background */
  --sky-2: #F7F6F4;       /* raised surfaces (cards, form panel) */
  --sky-rgb: 255, 255, 255;
  --ink-rgb: 11, 10, 13;
  --ink: #0B0A0D;         /* main text, buttons, stars */
  --ink-2: #34313A;       /* secondary text */
  --muted: #6E6A76;       /* captions, meta */
  --line: rgba(11, 10, 13, 0.14);
  --haze: 150, 205, 255;   /* light blue haze accent (one place to tune it) */

  /* Fonts matched to the logo lettering: Bungee Hairline (the logo match) for
     large headings, Rajdhani (tall, narrow, squared) for everything else. */
  --display: "Bungee Hairline", "Rajdhani", sans-serif;
  --sans: "Rajdhani", system-ui, -apple-system, sans-serif;
  --serif: var(--sans);

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 100px;
}
@media (max-width: 720px) { :root { --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 500 1.16rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Black starfield, drawn by main.js onto this fixed canvas behind everything. */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* ---------- type ---------- */
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.22; margin: 0 0 .6em; letter-spacing: .05em; }
/* Bungee Hairline is thinner than the logo's strokes; a light stroke brings it to the logo's weight. */
h1, h2, .tone-hz { -webkit-text-stroke: .035em currentColor; paint-order: stroke fill; }
h3 { font-family: var(--sans); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; color: var(--ink-2); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink); max-width: 38em; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.2rem; display: block;
}
em.glow { font-style: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(var(--sky-rgb), .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* The header gets its own, much wider box instead of sharing the body
   content's 1120px --max: the logo alone renders ~214px wide (its source
   file is a 2000x672 wordmark), and with 7 top-level items now (Shop added,
   Connect grouped into a dropdown), that shared budget left the whole
   header visibly squeezed no matter how far the nav text itself shrank. */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); max-width: none; }
/* flex-shrink: 0 so the logo keeps its real size no matter how tight the nav
   gets -- with 7 top-level items now (Shop added, Connect grouped into a
   dropdown), the nav was eating into the logo's space instead of the other
   way around. */
.brand { flex-shrink: 0; }
.brand img { height: 86px; width: auto; }
@media (max-width: 720px) { .brand img { height: 60px; } }
/* flex: 1 so the nav actually grows to fill the space between the logo and
   the toggle (instead of shrink-wrapping its own content and getting pushed
   to one edge by a margin trick), and justify-content: space-evenly so its
   items spread evenly across whatever width that turns out to be, rather
   than bunching together at their minimum gap. */
.nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-evenly; gap: clamp(4px, 1vw, 12px); list-style: none; margin: 0; padding: 0; }
.nav a, .nav-sub-toggle {
  font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* "Watch" and "Practice" group related pages under one dropdown each, so the
   top-level nav stays short (Home, About, Watch, Practice, Contact) instead
   of listing every page and crowding the logo. */
.nav li.has-sub { position: relative; }
.nav-sub-toggle { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-sub-toggle::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-sub-toggle:hover, .nav-sub-toggle.current, .nav-sub-toggle[aria-expanded="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.subnav {
  /* top: 100% with no gap (padding-top gives visual breathing room instead)
     is deliberate: a real gap between the toggle and the menu is a dead zone
     the mouse has to cross with nothing hoverable in it, so the menu closes
     before you can reach it. Flush avoids that. */
  list-style: none; margin: 0; padding: 14px 0 8px; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 170px; background: var(--sky); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), .14); display: none;
}
.nav li.has-sub:hover .subnav, .nav li.has-sub.open .subnav { display: block; }
.subnav a {
  display: block; padding: 10px 18px; font-size: .78rem; letter-spacing: .1em; border-bottom: none;
  color: var(--ink-2);
}
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--ink); background: var(--sky-2); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav { gap: clamp(3px, .8vw, 8px); }
  .nav a, .nav-sub-toggle { font-size: .64rem; letter-spacing: .04em; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); color: var(--ink);
    border-radius: 6px; padding: 7px 12px; font: inherit; font-size: .85rem; cursor: pointer;
  }
  /* fixed, not absolute, with its own scroll: the menu is ~17 rows once the
     dropdowns are expanded, which is taller than a phone screen. dvh (not
     vh) so iOS Safari's shrinking address bar doesn't cut off the last item,
     and overscroll-behavior stops the page behind from scrolling once the
     menu hits its end. */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--sky); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
  .nav-sub-toggle { display: block; width: 100%; text-align: left; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
  .subnav {
    position: static; display: block; transform: none; min-width: 0; width: 100%;
    background: var(--sky-2); border: none; border-radius: 0; box-shadow: none; padding: 0;
  }
  .subnav a { padding: 14px var(--gutter) 14px calc(var(--gutter) + 18px); border-bottom: 1px solid var(--line); }
}

/* ---------- hero: logo in the middle of the sky ---------- */
.hero .wrap {
  min-height: calc(100svh - var(--header-h)); padding-top: 48px; padding-bottom: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero-logo { width: min(620px, 86vw); height: auto; margin: 0 auto clamp(28px, 5vh, 48px); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18em; margin: 0 auto .5em; }
.hero .lede { margin: 0 auto 2rem; }
/* Hero buttons only: bigger, and translucent so the starfield shows through
   them like glass. Scoped to .hero on purpose -- every other .btn on the
   site (forms, plans, account) keeps its solid fill, where contrast matters
   more than atmosphere. The blur keeps the label readable over whatever
   stars happen to sit behind it. In dark mode --ink/--sky swap, so the
   filled one becomes translucent white and the ghost translucent black,
   which is the same effect inverted. */
.hero .btn-row { justify-content: center; gap: 16px; }
/* Both are glass: a faint wash plus a visible rim, with the label in --ink
   rather than --sky. A translucent dark fill with white text would turn to
   mud over the light sky, so the text flips to ink and the fill stays light
   enough for stars to read straight through it. */
.hero .btn, .hero .btn:hover {
  font-size: 1.05rem; padding: 18px 40px; color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero .btn { background: rgba(var(--ink-rgb), .1); border-color: rgba(var(--ink-rgb), .55); }
.hero .btn:hover { background: rgba(var(--ink-rgb), .2); border-color: var(--ink); }
.hero .btn.ghost { background: rgba(var(--sky-rgb), .18); border-color: rgba(var(--ink-rgb), .25); }
.hero .btn.ghost:hover { background: rgba(var(--sky-rgb), .3); border-color: rgba(var(--ink-rgb), .55); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 500 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--ink); color: var(--sky);
  background: var(--ink); cursor: pointer; transition: box-shadow .2s, transform .2s;
}
.btn:hover { color: var(--sky); box-shadow: 0 6px 22px rgba(var(--ink-rgb),.18); transform: translateY(-1px); }
.btn.ghost { background: var(--sky); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
section.block { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 48px; }

/* understanding vs innerstanding */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.contrast > div { background: var(--sky); padding: clamp(24px, 4vw, 44px); }
.contrast .label { font-family: var(--sans); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; font-size: .78rem; color: var(--muted); display: block; margin-bottom: 1rem; }
.contrast .inner { background: var(--ink); }
.contrast .inner .label { color: rgba(var(--sky-rgb),.78); }
.contrast .inner p { color: var(--sky); }
.contrast p { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
@media (max-width: 720px) { .contrast { grid-template-columns: 1fr; } }

/* six themes */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
/* third section: black boxes, white text */
.themes li { border: 1px solid var(--ink); border-radius: 14px; padding: 26px; background: var(--ink); color: var(--sky); }
.themes .num { font-family: var(--sans); font-weight: 600; color: rgba(var(--sky-rgb),.78); font-size: .95rem; letter-spacing: .2em; }
.themes h3 { margin: .6rem 0 .5rem; font-size: 1.15rem; color: var(--sky); }
.themes p { margin: 0; font-size: 1.05rem; color: rgba(var(--sky-rgb),.78); }
@media (max-width: 900px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .themes { grid-template-columns: 1fr; } }

/* videos: the films stay dark, like windows into the night sky */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--sky); display: flex; flex-direction: column; }
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.video-card .body { padding: 18px 20px 22px; }
.video-card .hook { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; line-height: 1.3; color: var(--ink); margin: 0 0 .5rem; }
.video-card .meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.video-card-link { display: block; color: inherit; text-decoration: none; }
.video-card .card-save { margin: 0 20px 18px; align-self: flex-start; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .78rem; color: var(--muted); cursor: pointer; }
.video-card .card-save:hover { border-color: var(--ink); color: var(--ink); }
.video-card .card-save.saved { border-color: var(--ink); color: var(--ink); }
.tone { display: inline-block; font-family: var(--sans); font-weight: 500; letter-spacing: .14em; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .72rem; margin-right: 8px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* social links */
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .92rem; color: var(--ink-2); background: var(--sky);
}
.socials a:hover { border-color: var(--ink); color: var(--ink); }

/* forms */
.signup { background: var(--sky-2); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 56px); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.form-row input { flex: 1 1 240px; }
label.field { display: block; margin-bottom: 18px; }
label.field span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
input[type=email], input[type=text], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sky);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: var(--ink); font-weight: 500; }
.form-status.err { color: #a4262c; }

/* page intro (non-home pages) */
.page-intro { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); }
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 22px; border-left: 2px solid var(--ink); font-family: var(--sans); font-weight: 600; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; background: rgba(var(--sky-rgb),.9); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer .icon { height: 80px; width: auto; }
@media (max-width: 720px) { .site-footer .icon { height: 60px; } }
.site-footer small { color: var(--muted); display: block; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.site-footer .links a { color: var(--muted); text-decoration: none; }
.site-footer .links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Keep the stars off the words: a soft white glow behind the hero content,
   and a mostly-white veil over the lower sections so the sky reads as a faint
   texture there instead of specks in the paragraphs. */
.hero { overflow: hidden; }
.hero .wrap { position: relative; }
.hero .wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, 110%); height: 66%;
  background: radial-gradient(ellipse at center, rgba(var(--sky-rgb),.97) 0%, rgba(var(--sky-rgb),.92) 45%, rgba(var(--sky-rgb),0) 72%);
}
/* Sections are transparent so the sky, Solara and the stardust show through the whole page. */

/* ---------- Tones page ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tone-section { padding-top: 48px; }
.tone-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .tone-grid { grid-template-columns: 1fr; } }
.tone-player, .tone-meaning {
  border: 1px solid var(--line); border-radius: 20px; background: rgba(var(--sky-rgb),.92);
  padding: clamp(22px, 4vw, 40px);
}
.tone-player { text-align: center; }
.tone-canvas { width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto 8px; display: block; }
.tone-readout { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.tone-hz { font-family: var(--display); font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.tone-unit { font-size: 1.1rem; color: var(--muted); }
.tone-match { margin: .6rem 0 1.4rem; color: var(--muted); font-size: .95rem; }
.tone-match.exact { color: var(--ink); font-weight: 500; }
.tone-controls { display: grid; gap: 16px; max-width: 420px; margin: 0 auto; }
.tone-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.tone-play { min-width: 150px; font-size: 1.05rem; }
.tone-fine { display: flex; justify-content: center; align-items: center; gap: 10px; }
.tone-input-wrap input { width: 110px; text-align: center; padding: 10px 12px; font-variant-numeric: tabular-nums; }
input[type=number] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sky); border: 1px solid var(--line); border-radius: 10px; }
.tone-range { display: grid; gap: 6px; text-align: left; font-size: .82rem; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--ink); }
.chip {
  font: 500 .88rem/1 var(--sans); padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--sky); color: var(--ink);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.prompt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-active { font-weight: 600; color: var(--ink); }
.tone-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 6px; }
.tone-meaning h2 { margin-bottom: .4em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); overflow-wrap: anywhere; }
.tone-meaning h3 { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .3rem; }
.tone-meaning p { font-size: 1.05rem; }
.tone-meaning.dim h2, .tone-meaning.dim #tone-body, .tone-meaning.dim #tone-mind { opacity: .55; }
.tone-video a { font-weight: 500; }
.tone-honest { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tone-honest p { font-size: .9rem; color: var(--muted); margin: 0; }
.tone-honest strong { color: var(--ink); font-weight: 500; }

/* Fills the space left over under the shorter "meaning" column on desktop,
   where .tone-grid's align-items:start leaves it shorter than the player. */
.tone-scope-wrap { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tone-scope-wrap canvas {
  display: block; width: 100%; height: 130px; margin-top: 10px; border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--haze), .16) 0%, rgba(var(--haze), 0) 70%);
  border: 1px solid var(--line);
}
.tone-scope-wrap .form-note { margin-top: 10px; }

.tone-sphere-wrap { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tone-sphere-stage {
  /* Fills the width of the .tone-meaning card it sits in -- inset from the
     card's own border by the card's padding, so it reads as "slightly
     smaller than the section box" without a separate margin. aspect-ratio:1
     keeps it square at that width; the WebGL camera in tone-sphere.js
     reframes to the box's actual pixel size on every resize, so the sphere
     itself scales up to match, not just the box around it. */
  position: relative; width: 100%; aspect-ratio: 1; margin: 10px auto 0; cursor: grab;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(var(--haze), .22) 0%, rgba(var(--haze), 0) 72%);
}
.tone-sphere-stage:active { cursor: grabbing; }
.tone-sphere-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tone-sphere-wrap .form-note { margin-top: 10px; }

/* ---------- Soundscape Studio ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-stage { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; text-align: center;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(var(--sky-rgb),.92); padding: clamp(20px, 3vw, 32px); }
@media (max-width: 900px) { .studio-stage { position: static; } }
.studio-row, .studio-download { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 12px; }
.studio-download .form-note { flex-basis: 100%; margin: 0; }
.studio-select { display: grid; gap: 6px; text-align: left; font-size: .85rem; color: var(--muted); }
select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--sky); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.studio-mixer { display: grid; gap: 14px; }
.studio-layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.layer { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(var(--sky-rgb),.92); display: grid; gap: 10px; }
.layer.on { border-color: var(--ink); }
.layer.empty { opacity: .6; }
.layer-top { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; cursor: pointer; }
.layer-top input { width: 18px; height: 18px; accent-color: var(--ink); }
.tone-layer { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.tone-layer .layer-top input, .tone-layer input[type=range] { accent-color: var(--sky); }
.tone-layer .form-note, .tone-layer .studio-select { color: rgba(var(--sky-rgb),.78); }
.tone-layer.off { opacity: .7; }
.studio-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tone-layer .chip { background: transparent; color: var(--sky); border-color: rgba(var(--sky-rgb),.3); padding: 8px 11px; }
.tone-layer .chip.on { background: var(--sky); color: var(--ink); }
.studio-rec { display: grid; gap: 8px; justify-items: start; }
.studio-rec .form-note { margin: 0; }
.rec-on { border-color: #a4262c !important; color: #a4262c !important; }

/* ---------- memberships ---------- */
[hidden] { display: none !important; }
.gate-card { max-width: 720px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: rgba(var(--sky-rgb),.94); padding: clamp(28px, 5vw, 56px); }
.gate-card .lede { margin: 0 auto 1.6rem; }
.gate-card .btn-row { justify-content: center; }

/* ---------- entry consent gate (Terms + Disclaimer acknowledgement) ---------- */
#consent-gate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(var(--ink-rgb),.72); backdrop-filter: blur(3px); }
#consent-gate .gate-card { background: var(--sky); }
/* Reused on the review form's publish-consent checkbox too, not just the gate. */
.consent-check { display: flex; align-items: flex-start; gap: 10px; text-align: left; margin: 20px 0; font-size: .92rem; color: var(--ink-2); }
.consent-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
#consent-gate .btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.layer.locked { position: relative; }
.layer.locked .layer-top, .layer.locked input[type=range] { opacity: .5; }
.lock-note { justify-self: start; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 3px 10px; background: var(--sky); color: var(--ink); opacity: 1; }
button:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
.billing-toggle { display: inline-flex; gap: 8px; margin-top: 1.6rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(var(--sky-rgb),.94); padding: 30px 26px; }
.plan h2 { font-size: 1.6rem; margin: 0; }
.plan.popular { background: var(--ink); color: var(--sky); border-color: var(--ink); transform: translateY(-8px); }
.plan.popular p, .plan.popular li { color: rgba(var(--sky-rgb),.78); }
.plan.popular .btn { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.plan.wanted { outline: 2px solid var(--ink); outline-offset: 4px; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--sky); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-family: var(--display); -webkit-text-stroke: .035em currentColor; font-size: 2.8rem; line-height: 1; color: inherit; }
.plan.popular .plan-price .amt { color: var(--sky); }
.plan-price .per { color: var(--muted); }
.plan-save { margin: 0; font-size: .9rem; }
.plan-tagline { margin: 14px 0 0; font-weight: 600; font-family: var(--sans); font-size: 1.02rem; line-height: 1.4; }
.plan-perks { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 8px; flex: 1; }
.plan-perks li { padding-left: 18px; position: relative; font-size: 1.02rem; }
.plan-perks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plan .btn { width: 100%; text-align: center; }
.plans-free { text-align: center; margin: 36px 0 0; }
.faq { margin: 72px auto 0; }
.faq h3 { margin-top: 1.6em; }
.nav a.nav-join { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; color: var(--ink); }
@media (max-width: 720px) { .nav a.nav-join { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 16px var(--gutter); font-weight: 600; } }
.plan.soon > * { opacity: .78; }  /* fade the content, not the card, so nothing shows through */
.plan-soon { width: 100%; text-align: center; }

/* ---------- long-form sessions ---------- */
.session-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
/* Volume One and Volume Two each get a real heading rather than a toggle:
   these are two catalogues a member chooses between, not a detail to tuck
   away. The first one needs no top margin because the filter row sits above. */
.session-volume + .session-volume { margin-top: 56px; }
.session-volume-h { font-size: 1.35rem; margin: 0 0 .4rem; }
.session-volume-note { max-width: 44em; margin: 0 0 24px; }
@media (max-width: 900px) { .session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .session-grid { grid-template-columns: 1fr; } }
.session-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--sky); }
.session-media { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.session-media img, .session-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.session-len, .session-tier { position: absolute; top: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.session-len { left: 10px; background: rgba(var(--ink-rgb),.75); color: var(--sky); }
.session-tier { right: 10px; background: var(--sky); color: var(--ink); border: 1px solid var(--line); }
.session-tier.locked { background: var(--ink); color: var(--sky); }
.session-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(var(--ink-rgb),.72); box-shadow: 0 0 0 1px rgba(var(--sky-rgb),.4); }
.session-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 16px solid var(--sky); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.session-media:hover .session-play { background: rgba(var(--ink-rgb),.9); }
.session-meaning { font-size: .95rem; margin: 0; }

/* ---------- text panels: every page's text sits in soft white boxes ---------- */
.page-intro .wrap, .section-head, .panel {
  background: rgba(var(--sky-rgb),.93);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(var(--ink-rgb),.05);
  padding: clamp(24px, 4vw, 44px);
}
.page-intro { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 4vw, 40px); }
.page-intro .wrap { width: min(1040px, calc(100% - 2 * var(--gutter))); }
.page-intro .lede { margin-bottom: 0; }
.section-head { max-width: none; }
.section-head > * { max-width: 44em; }
.section-head p:last-child { margin-bottom: 0; }
section.block { padding: clamp(40px, 6vw, 80px) 0; border-top: 0; }
.panel-section { padding-top: 0 !important; }
.panel-stack { display: grid; gap: 22px; }   /* same width as the intro box above */
.panel.prose { max-width: none; }
.panel.prose h2 { margin-top: 0; }
.panel.prose p:last-child { margin-bottom: 0; }
.panel-actions { padding: 8px 4px 0; }
.panel-actions .form-note { margin: 0; }
.hero .wrap { background: none; border: 0; box-shadow: none; }

/* membership cards: equal, aligned, solid */
.plans { align-items: stretch; margin-top: 18px; }
.plan { background: var(--sky); transform: none !important; padding: 34px 26px 26px; }
.plan.popular { background: var(--ink); }
.plan-save { min-height: 1.5em; }
.plan-perks { flex: 1 1 auto; align-content: start; gap: 10px; }
.plan .btn, .plan .plan-soon { margin-top: auto; }
.plans-note { margin-top: 32px; text-align: center; }
.plans-note .plans-free { margin: 0 0 6px; }
.faq.panel { margin: 32px 0 0; max-width: none; }

/* Getting-started bullets: sits inside the existing page-intro box, right
   under the lede, so no new boxed section is needed per page. */
.getting-started { margin: 18px 0 0; padding-left: 1.2em; }
.getting-started li { margin-bottom: .5em; color: var(--ink-2); font-size: .95rem; }
.getting-started li:last-child { margin-bottom: 0; }

.panel.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.panel.prose li { margin-bottom: .6em; color: var(--ink-2); }
.panel.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; margin-bottom: .8em; }
.session-card .body { padding: 16px 20px 20px; }
.session-card .hook { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; margin: 0 0 .35rem; color: var(--ink); }

/* ---------- Breathe page ---------- */
.methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; max-width: none !important; }
@media (max-width: 1000px) { .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .methods { grid-template-columns: 1fr; } }
.method { text-align: left; display: grid; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--sky); color: var(--ink); cursor: pointer; font: inherit; }
.method:hover { border-color: var(--ink); }
.method.on { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.method-name { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.method-steps { font-family: var(--display); -webkit-text-stroke: .03em currentColor; font-size: 1.35rem; letter-spacing: .08em; }
.method-for { font-size: .9rem; line-height: 1.4; opacity: .8; }
.breathe-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .breathe-grid { grid-template-columns: 1fr; } }
.breathe-stage { text-align: center; }
.breathe-visual { width: min(420px, 100%); margin: 0 auto; }
.breathe-visual canvas { width: 100%; aspect-ratio: 1; display: block; }
.breathe-phase { font-family: var(--display); -webkit-text-stroke: .035em currentColor; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 6px 0 0; }
.breathe-count { font-family: var(--display); -webkit-text-stroke: .035em currentColor; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.1; color: var(--ink); margin: 0 0 6px; min-height: 1.2em; }
.breathe-meta { color: var(--muted); font-size: .9rem; min-height: 1.4em; margin: 0 0 14px; }
.breathe-meta span + span::before { content: "\00a0\00b7\00a0"; }
.breathe-meta span:empty::before { content: ""; }
.breathe-options { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: end; margin-top: 18px; }
.breathe-toggle { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.breathe-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.breathe-how ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.breathe-how li { margin-bottom: .7em; color: var(--ink-2); }

/* ---------- ascending figure + chakras (Tones page) ---------- */
.chakra-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; margin-top: 24px; align-items: stretch; }
@media (max-width: 900px) { .chakra-grid { grid-template-columns: 1fr; } }
.chakra-stage { position: relative; min-height: 560px; padding: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, var(--sky) 0%, #f1f0f3 70%, #e8e7ec 100%); }
.chakra-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chakra-stage:not(.loaded)::after { content: "Loading figure\2026"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.chakra-stage.failed::after { content: "The figure couldn't load on this device."; }
.chakra-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; margin: 0; font-weight: 600; color: var(--ink); }
.chakra-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.chakra-list button { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; text-align: left; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sky); color: var(--ink); cursor: pointer; font: inherit; }
.chakra-list button:hover { border-color: var(--ink); }
.ck-name { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.ck-where { grid-column: 1; font-size: .88rem; color: var(--muted); }
.ck-hz { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--display); -webkit-text-stroke: .03em currentColor; font-size: 1.1rem; letter-spacing: .06em; }
.chakra-list li.on button { background: var(--ink); color: var(--sky); border-color: var(--ink); }
.chakra-list li.on .ck-where { color: rgba(var(--sky-rgb),.78); }
.chakra-list li.near button { border-color: var(--ink); border-style: dashed; }

/* Studio mixer: full names always visible, whole mixer sits in a panel */
.layer-top span { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.studio-layers { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.studio-mixer { background: rgba(var(--sky-rgb),.93); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(var(--ink-rgb),.05); padding: clamp(18px, 3vw, 28px); }

/* ---------- light blue haze accents ---------- */
.hero .wrap::before { background: radial-gradient(ellipse at center, rgba(var(--haze), .38) 0%, rgba(var(--sky-rgb),.9) 38%, rgba(var(--sky-rgb),0) 72%); }
.page-intro .wrap, .section-head, .panel, .studio-mixer, .plan, .session-card, .video-card, .themes li {
  box-shadow: 0 14px 44px rgba(var(--haze), .22), 0 2px 10px rgba(var(--ink-rgb),.04);
}
.btn:hover { box-shadow: 0 6px 26px rgba(var(--haze), .55); }
.btn.ghost:hover { box-shadow: 0 0 0 4px rgba(var(--haze), .25); }
.plan.popular { box-shadow: 0 18px 60px rgba(var(--haze), .45); }
.chakra-stage { background: radial-gradient(ellipse at 50% 46%, rgba(var(--haze), .55) 0%, rgba(var(--haze), .18) 32%, var(--sky) 62%, var(--sky-2) 100%); }
.tone-canvas, .breathe-visual { background: radial-gradient(circle at 50% 50%, rgba(var(--haze), .28) 0%, rgba(var(--haze), 0) 62%); border-radius: 50%; }
.chakra-list li.on button { box-shadow: 0 0 0 4px rgba(var(--haze), .35); }


/* ---------- dark mode: the exact inverse of the light site ---------- */
:root[data-theme="dark"] {
  --sky: #07070A; --sky-2: #121118; --sky-rgb: 7, 7, 10;
  --ink: #F4F3F1; --ink-2: #CFCBD6; --muted: #9A96A4; --ink-rgb: 244, 243, 241;
  --line: rgba(244, 243, 241, 0.16);
  color-scheme: dark;
}
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .hero-logo, :root[data-theme="dark"] .site-footer .icon { filter: invert(1); }
:root[data-theme="dark"] .form-status.err { color: #f0a0a0; }
:root[data-theme="dark"] input[type=range] { accent-color: var(--ink); }

/* theme switch in the header */
/* margin-right (not just the wrap's 8px gap) so the toggle keeps real
   distance from "Home" even when the nav itself is wide enough that
   margin-left:auto doesn't have much free space left to push it with. */
/* order: 3 puts the toggle after the nav every time (not just on mobile),
   so it reads as the fixed right-hand endpoint the nav's even spacing
   stretches toward, instead of sitting wherever DOM order happened to
   place it relative to a margin-based push. */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; order: 3; margin-left: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--sky); color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(var(--haze), .25); }
.theme-toggle svg { width: 18px; height: 18px; }
.site-header .wrap { gap: 8px; }
@media (max-width: 720px) { .theme-toggle { margin-left: 8px; } .nav-toggle { order: 4; } body.nav-open { overflow: hidden; } }

/* Studio: which level you're on and what the next one adds */
.studio-plan { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(var(--sky-rgb),.92); display: grid; gap: 8px; }
.studio-plan p { margin: 0; }
.studio-plan b { letter-spacing: .08em; text-transform: uppercase; }
.studio-plan .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.studio-row .lock-note, .tone-layer .lock-note { align-self: center; }
.practice-mixes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.practice-mixes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.practice-mixes .mix-name { font-weight: 500; }
.practice-mixes .mix-actions { display: flex; gap: 8px; flex-shrink: 0; }
.practice-mixes button { background: none; border: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.practice-mixes button:hover { color: var(--ink); }

/* Library */
.video-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; display: block; }
.empty-note { color: var(--muted); padding: 20px 0; }

/* Reviews (Connect page): a star picker where every row shows its own
   filled-star count and the number in words ("5 stars") directly on the
   option, so there's no hover/sibling trick to misread -- a visual-order
   version of this (CSS alone deciding what "rightmost" meant) got clicked
   backwards by a real visitor expecting traditional left-to-right 1-5
   labelling, so this version leaves nothing to infer. Plus a grid of
   published quote cards. */
.star-rating { border: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; }
.star-rating legend { font-size: .82rem; color: var(--muted); padding: 0 0 6px; }
.star-rating label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 8px; border-radius: 10px; }
.star-rating label:hover { background: var(--sky-2); }
.star-rating input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.star-rating .stars { color: #f5b400; letter-spacing: 1px; font-size: 1.1rem; }
.review-form details { margin-top: 22px; }
.review-form summary { cursor: pointer; font-weight: 500; }
.review-form .field { margin-top: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.review-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: rgba(var(--sky-rgb),.92); }
.review-card .stars { color: #f5b400; letter-spacing: 2px; font-size: 1.1rem; }
.review-card p { margin: .6em 0 0; }
.review-card .who { margin-top: .8em; font-size: .85rem; color: var(--muted); }

/* .review-box is the shared boxed, single-column card format used for
   review display everywhere -- the Connect page's teaser and the full
   /reviews page both use it, so a review looks the same wherever it shows
   up. .review-teaser layers on top of it ONLY for the Connect page's
   3-review preview, clipping each quote to 2 lines so it stays a quick
   glance; the full /reviews page uses plain .review-box with the complete
   text, since cutting reviews off on the one page meant to show everything
   would make the rest of a review permanently unreadable anywhere. */
.review-box { margin-top: 20px; }
.review-box .review-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
.review-box .review-card { padding: 14px 18px; }
.review-teaser .review-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-box #review-more { margin: 14px 0 0; text-align: center; }

/* Astraea: a fixed orb toggle, bottom-right on every page, opening a small
   chat panel. Theme-matched black/night-white, no color accent, consistent
   with the rest of the site's final look (see the sphere/figure work
   earlier). The orb itself is a plain radial-gradient pulse, not a full
   canvas render -- a toggle button doesn't need the WebGL budget the Tones
   page sphere does. */
.astraea-orb {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ink) 0%, rgba(var(--ink-rgb),.65) 55%, rgba(var(--ink-rgb),.25) 100%);
  box-shadow: 0 0 18px rgba(var(--ink-rgb),.35);
  animation: astraea-pulse 3.4s ease-in-out infinite;
}
.astraea-orb-sm { width: 20px; height: 20px; box-shadow: 0 0 10px rgba(var(--ink-rgb),.3); vertical-align: middle; margin-right: 6px; }
@keyframes astraea-pulse { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .astraea-orb { animation: none; } }

#astraea-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--sky); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 10px 30px rgba(var(--ink-rgb),.18);
}
#astraea-toggle:hover { box-shadow: 0 10px 30px rgba(var(--ink-rgb),.3); }

#astraea-panel {
  position: fixed; right: 20px; bottom: 86px; z-index: 900;
  width: min(360px, calc(100vw - 40px)); height: min(480px, calc(100vh - 140px));
  background: var(--sky); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(var(--ink-rgb),.22); display: flex; flex-direction: column; overflow: hidden;
}
.astraea-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  border-bottom: 1px solid var(--line); font-weight: 600; flex: none;
}
.astraea-head span:first-child { display: flex; align-items: center; }
#astraea-close { background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
#astraea-close:hover { color: var(--ink); }
#astraea-messages { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.astraea-msg { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; max-width: 86%; }
.astraea-msg-bot { background: var(--sky-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.astraea-msg-user { background: var(--ink); color: var(--sky); align-self: flex-end; border-bottom-right-radius: 4px; }
.astraea-msg-err { color: #a4262c; background: transparent; border: 1px solid #a4262c; }
#astraea-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); flex: none; }
#astraea-form input { flex: 1 1 auto; margin: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--sky); color: var(--ink); font: inherit; font-size: .92rem; }
#astraea-form input:focus { outline: none; border-color: var(--ink); }
#astraea-form button { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); background: var(--ink); color: var(--sky); cursor: pointer; font-size: 1rem; }
@media (max-width: 480px) { #astraea-panel { right: 12px; bottom: 80px; } #astraea-toggle { right: 12px; bottom: 12px; } }

/* Shop: a grid of affiliate product cards. Each card's own disclosure line
   keeps the affiliate relationship visible right where the link is, not
   just once at the top of the page. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--sky); display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1 / 1; background: var(--sky-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-media-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 20px; }
.product-view-link { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: .92rem; letter-spacing: .04em; color: var(--ink); background: var(--sky-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.product-view-link:hover { background: var(--ink); color: var(--sky); }
.product-body { padding: 18px 20px 20px; }
.product-body h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.product-body p { margin: 0 0 .8rem; }
.product-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; }
.product-code .copy-code { font: inherit; font-size: .8rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--sky); color: var(--ink); cursor: pointer; }
.product-code .copy-code:hover { border-color: var(--ink); }
.product-disclosure { margin: 10px 0 0 !important; font-size: .76rem; color: var(--muted); }
.product-disclosure a { color: inherit; }
