/* ============================================================
   omniOne: Landing page styles
   Rooted in frontend/DESIGN.md: warm-paper glass surfaces,
   Libre Baskerville editorial headlines + Space Grotesk UI,
   sky→orange brand gradient reserved for brand accents only.
   ============================================================ */

:root {
  /* Neutral slate scale */
  --c-900: #0f172a;
  --c-800: #1e293b;
  --c-700: #334155;
  --c-600: #475569;
  --c-500: #64748b;
  --c-400: #94a3b8;
  --c-300: #cbd5e1;
  --c-200: #e2e8f0;
  --c-100: #f1f5f9;
  --c-50:  #f8fafc;

  /* Status / accent */
  --sky: #0ea5e9;
  --sky-dark: #0c4a6e;
  --sky-bg: rgba(14, 165, 233, 0.10);
  --green: #22c55e;
  --green-text: #15803d;
  --green-bg: rgba(34, 197, 94, 0.12);
  --amber: #f59e0b;
  --amber-text: #b45309;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --orange: #f97316;
  --orange-text: #9a3412;
  --orange-bg: rgba(249, 115, 22, 0.12);
  --violet: #7c3aed;

  /* Who has to act: the four tones of the coach dashboard */
  --tone-red: #dc2626;
  --tone-red-bg: rgba(220, 38, 38, 0.08);
  --tone-red-line: rgba(220, 38, 38, 0.3);
  --tone-amber: #b45309;
  --tone-amber-bg: rgba(245, 158, 11, 0.12);
  --tone-amber-line: rgba(217, 119, 6, 0.34);
  --tone-blue: #0369a1;
  --tone-blue-bg: rgba(2, 132, 199, 0.08);
  --tone-blue-line: rgba(2, 132, 199, 0.28);
  --tone-grey: #64748b;
  --tone-grey-bg: rgba(100, 116, 139, 0.08);
  --tone-grey-line: rgba(100, 116, 139, 0.22);

  /* Opaque surface for anything that moves or overlaps (no blur needed) */
  --surface: #ffffff;
  --header-band: #f7f8f8;

  /* Brand signature gradient: accents only, never on buttons */
  --brand-gradient: linear-gradient(135deg, #4fcbff 0%, #ff9a3a 100%);

  /* Page */
  --page-bg: #f6f4ef;
  --page-wash-top: rgba(248, 250, 252, 0.92);
  --page-wash-bottom: rgba(241, 245, 249, 0.92);
  --orb-sky: rgba(14, 165, 233, 0.16);
  --orb-orange: rgba(249, 115, 22, 0.18);
  --grid-line: rgba(148, 163, 184, 0.11);

  /* Glass surfaces */
  --glass-panel: rgba(255, 255, 255, 0.94);
  --glass-card: rgba(255, 255, 255, 0.74);
  --glass-inset: rgba(248, 250, 252, 0.68);
  --glass-border: rgba(148, 163, 184, 0.28);
  --hairline: rgba(15, 23, 42, 0.06);

  /* Shadows: three depths */
  --shadow-xs: 0 8px 18px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 14px 28px rgba(15, 23, 42, 0.08);
  --shadow-panel: 0 28px 70px rgba(15, 23, 42, 0.13);
  --shadow-glow: 0 18px 60px rgba(79, 203, 255, 0.22);

  --max-width: 1200px;

  font-family: "Space Grotesk", "Trebuchet MS", system-ui, sans-serif;
  color: var(--c-900);
  background: var(--page-bg);
  font-synthesis: style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  --c-900: #f6f8fc;
  --c-800: #e2e8f0;
  --c-700: #cbd5e1;
  --c-600: #aab6c6;
  --c-500: #8b97a8;
  --c-400: #6b7889;
  --c-300: #3a475c;
  --c-200: #25324a;
  --c-100: #1a2640;
  --c-50:  #131e36;

  --sky: #38bdf8;
  --sky-dark: #7dd3fc;
  --sky-bg: rgba(56, 189, 248, 0.14);
  --green-text: #4ade80;
  --green-bg: rgba(34, 197, 94, 0.15);
  --amber-text: #fbbf24;
  --amber-bg: rgba(245, 158, 11, 0.14);
  --orange-text: #fdba74;
  --orange-bg: rgba(249, 115, 22, 0.16);

  --tone-red: #f87171;
  --tone-red-bg: rgba(248, 113, 113, 0.12);
  --tone-red-line: rgba(248, 113, 113, 0.34);
  --tone-amber: #fbbf24;
  --tone-amber-bg: rgba(251, 191, 36, 0.11);
  --tone-amber-line: rgba(251, 191, 36, 0.34);
  --tone-blue: #7dd3fc;
  --tone-blue-bg: rgba(56, 189, 248, 0.11);
  --tone-blue-line: rgba(56, 189, 248, 0.3);
  --tone-grey: #8b97a8;
  --tone-grey-bg: rgba(148, 163, 184, 0.09);
  --tone-grey-line: rgba(148, 163, 184, 0.2);

  --surface: #111a2e;
  --header-band: #0c1222;

  --page-bg: #0a0f1d;
  --page-wash-top: rgba(15, 23, 42, 0.55);
  --page-wash-bottom: rgba(2, 6, 23, 0.75);
  --orb-sky: rgba(56, 189, 248, 0.16);
  --orb-orange: rgba(249, 115, 22, 0.14);
  --grid-line: rgba(148, 163, 184, 0.07);

  --glass-panel: rgba(17, 26, 46, 0.88);
  --glass-card: rgba(20, 30, 52, 0.66);
  --glass-inset: rgba(28, 40, 66, 0.55);
  --glass-border: rgba(148, 163, 184, 0.16);
  --hairline: rgba(148, 163, 184, 0.12);

  --shadow-xs: 0 8px 18px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 14px 28px rgba(0, 0, 0, 0.30);
  --shadow-panel: 0 28px 70px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 18px 60px rgba(56, 189, 248, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-900);
  background:
    radial-gradient(circle at 12% 6%, var(--orb-sky), transparent 34rem),
    radial-gradient(circle at 90% 12%, var(--orb-orange), transparent 32rem),
    linear-gradient(180deg, var(--page-wash-top) 0%, var(--page-wash-bottom) 100%),
    var(--page-bg);
  transition: background-color 300ms ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
}
.t-red { --tone: var(--tone-red); --tone-bg: var(--tone-red-bg); --tone-line: var(--tone-red-line); }
.t-amber { --tone: var(--tone-amber); --tone-bg: var(--tone-amber-bg); --tone-line: var(--tone-amber-line); }
.t-blue { --tone: var(--tone-blue); --tone-bg: var(--tone-blue-bg); --tone-line: var(--tone-blue-line); }
.t-grey { --tone: var(--tone-grey); --tone-bg: var(--tone-grey-bg); --tone-line: var(--tone-grey-line); }
html, body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg { display: block; }
.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shared layout shells */
.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Selection */
::selection { background: rgba(14, 165, 233, 0.2); }

/* ----------  Typography primitives  ---------- */
.serif {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 999px;
  color: var(--sky-dark);
  background: var(--sky-bg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
              background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: var(--c-900);
  border-color: var(--c-900);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--c-800);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}
:root[data-theme="dark"] .btn-primary {
  color: #0a0f1d;
  background: #f6f8fc;
  border-color: #f6f8fc;
}
:root[data-theme="dark"] .btn-primary:hover { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.btn-ghost {
  color: var(--c-700);
  background: var(--glass-card);
  border-color: var(--glass-border);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--c-900);
  border-color: var(--c-400);
  box-shadow: var(--shadow-xs);
}
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.85rem; border-radius: 10px; }

/* Header CTA: full text on desktop, compact icon-circle on phones */
.header-cta-short { display: none; }

/* ----------  Header  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 0;
  padding-top: 12px;
}
/* Opaque band behind the floating pill once the page scrolls, so nothing shows through the gap. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -14px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--header-band) 0%, var(--header-band) 62%, transparent 100%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 11px 11px 11px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.nav-settings { display: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
}
.brand-mark img { width: 36px; height: 36px; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-copy span { font-size: 0.68rem; color: var(--c-500); letter-spacing: 0.02em; white-space: nowrap; }
.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--c-600);
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.site-nav a:hover { background: var(--glass-inset); color: var(--c-900); }
.header-actions { display: flex; align-items: center; gap: 9px; }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-inset);
  color: var(--c-600);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.theme-toggle:hover { color: var(--c-900); border-color: var(--c-400); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-inset);
  color: var(--c-600);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.lang-toggle:hover { color: var(--c-900); border-color: var(--c-400); transform: translateY(-1px); }
.lang-toggle svg { width: 16px; height: 16px; opacity: 0.85; }
.lang-toggle #langCode { font-variant-numeric: tabular-nums; }

/* Hamburger / nav toggle: hidden on desktop, shown <=1040px */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-inset);
  color: var(--c-600);
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.nav-toggle:hover { color: var(--c-900); border-color: var(--c-400); transform: translateY(-1px); }
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-burger { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ----------  Section heading  ---------- */
.section { padding: clamp(56px, 9vw, 116px) 0; scroll-margin-top: 96px; }
#top { scroll-margin-top: 96px; }
.s-head { max-width: 720px; }
.s-head.center { margin-inline: auto; text-align: center; }
.s-head h2 {
  margin: 0;
  text-wrap: balance;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-900);
}
.s-head p {
  margin: 18px 0 0;
  color: var(--c-600);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.s-head.center p { margin-inline: auto; }

/* ----------  Hero  ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.preview-frame { container: ck / inline-size; }
.hero-copy h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-900);
  text-wrap: balance;
}
.hero-nowrap {
  white-space: nowrap;
}
.hero-copy h1 em {
  font-style: italic;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.04em 0.14em 0.06em 0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy .lede {
  margin: 26px 0 0;
  max-width: 540px;
  color: var(--c-600);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--c-500);
  font-size: 0.9rem;
}
.hero-note svg { width: 15px; height: 15px; color: var(--green-text); flex: none; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 30px 0 0;
  color: var(--c-500);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-proof span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--c-400);
}

/* ----------  Hero visual: "a morning with omniOne"  ---------- */
.hero-visual { position: relative; min-width: 0; padding: 46px 0 70px; }
.hv-cal {
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.hv-today { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--glass-border); }
.hv-today .ck-row { padding-block: 7px; }
.hv-swap { display: grid; }
.hv-swap > span { grid-area: 1 / 1; }
.hv-swap-after { opacity: 0; }
.hv-card {
  position: absolute;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  color: var(--c-600);
  font-size: 0.8rem;
  animation: hv-in 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hv-toast { top: 0; right: -14px; width: min(310px, 66%); display: flex; align-items: center; gap: 11px; animation-delay: 700ms; }
.hv-goal { right: -18px; bottom: 0; width: min(300px, 52%); animation-delay: 1600ms; }
.hv-who { display: flex; align-items: center; gap: 10px; }
.hv-lines { display: grid; gap: 1px; min-width: 0; }
.hv-lines b { color: var(--c-900); font-size: 0.82rem; line-height: 1.3; }
.hv-lines span { color: var(--c-500); font-size: 0.72rem; }
.hv-ic {
  width: 32px; height: 32px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
}
.hv-ic svg { width: 16px; height: 16px; }
.hv-ic-amber { color: var(--tone-amber); background: var(--tone-amber-bg); }
.hv-ic-sky { color: var(--sky-dark); background: var(--sky-bg); }
.hv-pill {
  margin-left: auto;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hv-crit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 0.74rem; }
.hv-crit-head { display: flex; justify-content: space-between; gap: 10px; color: var(--c-700); }
.hv-crit-head b { color: var(--c-900); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hv-crit-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--c-500); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.hv-crit .goal-bar { margin: 6px 0 5px; }
/* Goal criterion progress, as in the app: a thin track with a sky fill */
.goal-bar { height: 6px; overflow: hidden; border-radius: 999px; background: var(--c-100); }
.goal-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--sky); }
.fill-54 { width: 54%; }
.fill-67 { width: 67%; }
/* "A morning": notification, goal, then Mara's check-in is reviewed and turns grey */
.hero-visual .wk-ev-morning,
.hv-row-morning .ck-ic { animation: hv-done 450ms ease 2700ms forwards; }
.hv-row-morning .ck-unread { animation: hv-read 450ms ease 2700ms forwards; }
.hv-row-morning .hv-swap-before { animation: hv-fade-out 300ms ease 2700ms forwards; }
.hv-row-morning .hv-swap-after { animation: hv-fade-in 300ms ease 2950ms forwards; }
@keyframes hv-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes hv-done {
  to { color: var(--tone-grey); background-color: var(--tone-grey-bg); border-color: var(--tone-grey-line); }
}
@keyframes hv-read { to { background-color: transparent; } }
@keyframes hv-fade-out { to { opacity: 0; } }
@keyframes hv-fade-in { to { opacity: 1; } }

/* ----------  Problem  ---------- */
.problem-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.chaos {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.chaos-tag {
  position: absolute;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--r));
}
.chaos-tag b { color: var(--c-800); font-size: 0.95rem; font-weight: 600; }
.chaos-tag i { color: var(--c-500); font-size: 0.68rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.chaos-ic {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.chaos-ic svg { width: 18px; height: 18px; }
.chaos-ic.file { color: var(--orange-text); background: var(--orange-bg); }
.chaos-ic.chat { color: var(--green-text); background: var(--green-bg); }
.chaos-ic.sheet { color: var(--sky-dark); background: var(--sky-bg); }
.chaos-ic.note { color: var(--amber-text); background: var(--amber-bg); }
.chaos-ic.photo { color: var(--violet); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.ct-1 { left: 31%; top: 30%; --r: -8deg; }
.ct-2 { left: 69%; top: 28%; --r: 6deg; }
.ct-3 { left: 67%; top: 71%; --r: -5deg; }
.ct-4 { left: 32%; top: 73%; --r: 8deg; }
.ct-5 { left: 50%; top: 48%; --r: -2deg; box-shadow: var(--shadow-sm); }

/* Mock disclaimer caption */
.mock-note {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--c-500);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ----------  Idea / brand moment  ---------- */
.idea-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-top: 8px;
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(79, 203, 255, 0.6), rgba(255, 154, 58, 0.55)) border-box;
  box-shadow: var(--shadow-panel);
}
.idea-card > * { position: relative; z-index: 1; }
.idea-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-900);
}
.idea-name {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(16px, 4vw, 52px);
  margin: clamp(30px, 4.5vw, 48px) 0;
}
.idea-part { display: flex; flex-direction: column; gap: 11px; }
.idea-part:first-child { align-items: flex-end; text-align: right; }
.idea-part:last-child { align-items: flex-start; text-align: left; }
.idea-term {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.6vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.idea-term em {
  font-style: italic;
  padding-right: 0.12em;
}
.idea-def {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-500);
  line-height: 1.4;
}
.idea-plus {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--c-300);
}
.idea-body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--c-600);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .idea-card { padding: 38px 22px; border-radius: 26px; }
  .idea-name { gap: 12px; }
  .idea-def { max-width: 18ch; font-size: 0.72rem; white-space: normal; }
}

/* ----------  Workflow  ---------- */
.workflow-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 0;
  counter-reset: step;
}
.workflow-list li {
  position: relative;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.workflow-list li .step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  color: #062033;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-glow);
  font-variant-numeric: tabular-nums;
}
/* connecting line between steps */
.workflow-list li:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--glass-border) 0%, var(--c-300) 100%);
  z-index: 0;
}
.workflow-list .wf-text { display: flex; flex-direction: column; gap: 7px; }
.workflow-list li strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--c-900);
}
.workflow-list li .step-meta { color: var(--c-500); font-size: 0.85rem; line-height: 1.45; text-wrap: pretty; }

/* Workflow → vertical timeline on tablet/phone */
@media (max-width: 900px) {
  .workflow-list {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 440px;
    margin-inline: auto;
  }
  .workflow-list li {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 0 0 28px;
  }
  .workflow-list li:last-child { padding-bottom: 0; }
  /* Neutralise the desktop horizontal connector that still targets the last
     step (it matches :not(:first-child) but not the vertical :not(:last-child)). */
  .workflow-list li:last-child::before { display: none; }
  .workflow-list li .step-num { margin-bottom: 0; flex: none; }
  /* vertical connector */
  .workflow-list li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 48px;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--c-300) 0%, var(--glass-border) 100%);
  }
  .workflow-list .wf-text { padding-top: 9px; }
}

/* ----------  Preview  ---------- */
.preview-frame {
  margin-top: 44px;
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  background: var(--glass-card);
  box-shadow: var(--shadow-panel);
}
.preview-frame .cockpit { box-shadow: none; }

/* Colour legend under the preview: tap a colour to highlight its entries */
.tone-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.tone-intro { margin-right: 4px; color: var(--c-600); font-size: 0.92rem; }
.tone-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--tone-line);
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.tone-btn i { width: 8px; height: 8px; border-radius: 3px; background: currentColor; }
.tone-btn:hover { transform: translateY(-1px); }
.tone-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--tone); }
.tone-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ----------  Footer  ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 0 48px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.footer-brand .brand-copy strong { color: var(--c-900); }
.footer-meta { color: var(--c-500); font-size: 0.86rem; max-width: 360px; line-height: 1.5; }
.footer-links { display: flex; align-items: center; gap: 18px; color: var(--c-500); font-size: 0.9rem; }
.footer-links a { transition: color 150ms ease; }
.footer-links a:hover { color: var(--c-900); }

/* ----------  Legal pages  ---------- */
.legal-main { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--c-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms ease, gap 150ms ease;
}
.back-link:hover { color: var(--c-900); gap: 11px; }
.back-link svg { width: 16px; height: 16px; }
.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.legal-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.26);
  background: var(--sky-bg);
  color: var(--sky-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}
.legal-card h1 {
  margin: 0;
  min-width: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.legal-lead { margin: 14px 0 0; color: var(--c-600); font-size: 1.05rem; line-height: 1.6; }
.legal-notice {
  margin: 26px 0 8px;
  padding: 15px 17px;
  display: flex;
  gap: 11px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 16px;
  background: var(--amber-bg);
  color: var(--c-800);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}
.legal-notice svg { width: 20px; height: 20px; color: var(--amber-text); flex: none; margin-top: 1px; }
.legal-sections { display: grid; gap: 28px; margin-top: 34px; }
.legal-sections section { display: grid; gap: 8px; }
.legal-sections h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
}
.legal-sections .body { margin: 0; color: var(--c-800); font-size: 1rem; line-height: 1.7; }
.legal-sections .body ul {
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.legal-sections .body ul li {
  position: relative;
  padding-left: 20px;
}
.legal-sections .body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
}
.legal-sections .body strong { color: var(--c-900); font-weight: 600; }
.legal-sections .body a {
  color: var(--sky-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
.legal-sections .body a:hover { color: var(--sky); }
.legal-sections .note {
  margin: 4px 0 0;
  padding: 11px 13px;
  border-left: 2px solid var(--glass-border);
  background: var(--glass-inset);
  border-radius: 0 10px 10px 0;
  color: var(--c-500);
  font-size: 0.86rem;
  line-height: 1.55;
}
.legal-updated { margin-top: 30px; color: var(--c-500); font-size: 0.86rem; }

/* ----------  Contact page  ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-600);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  background: var(--glass-inset);
  color: var(--c-900);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-400); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-bg);
  background: var(--glass-card);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.contact-form .btn { justify-self: end; min-width: 200px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.form-status {
  display: none;
  padding: 13px 15px;
  border-radius: 13px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-status.show { display: block; }
.form-status.ok { color: var(--green-text); background: var(--green-bg); border: 1px solid rgba(34,197,94,0.3); }
.form-status.err { color: var(--orange-text); background: var(--orange-bg); border: 1px solid rgba(249,115,22,0.32); }
.privacy-hint { margin: 0; color: var(--c-500); font-size: 0.82rem; line-height: 1.55; }
.privacy-hint a { color: var(--sky-dark); text-decoration: underline; text-underline-offset: 2px; }

.contact-aside {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-inset);
}
.contact-aside .item { display: grid; gap: 5px; }
.contact-aside .item h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
}
.contact-aside .item p { margin: 0; color: var(--c-700); font-size: 0.96rem; line-height: 1.5; }
.contact-aside .item a { color: var(--c-900); font-weight: 600; }
.contact-aside .item a:hover { color: var(--sky-dark); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
}
@media (max-width: 560px) {
  .contact-form .btn { width: 100%; justify-self: stretch; }
  .contact-aside { padding: 22px; }
}

/* ----------  404  ---------- */
.nf-main { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: clamp(40px, 7vw, 90px) 0; }
.nf-inner { max-width: 580px; }
.nf-inner .eyebrow { margin-bottom: 22px; }
.nf-code {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(5.5rem, 17vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nf-inner h1 {
  margin: 18px 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-900);
}
.nf-inner p { margin: 16px auto 30px; max-width: 440px; color: var(--c-600); font-size: 1.05rem; line-height: 1.6; }

/* ----------  Scroll reveal  ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hv-card { animation: none; }
  .hero-visual .wk-ev-morning,
  .hv-row-morning .ck-ic {
    animation: none;
    color: var(--tone-grey);
    background-color: var(--tone-grey-bg);
    border-color: var(--tone-grey-line);
  }
  .hv-row-morning .ck-unread { animation: none; background-color: transparent; }
  .hv-row-morning .hv-swap-before { animation: none; opacity: 0; }
  .hv-row-morning .hv-swap-after { animation: none; opacity: 1; }
}

/* ----------  Responsive  ---------- */
@media (max-width: 1160px) {
  .hero { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 52px); }
  .hero-copy h1 { max-width: 20ch; }
  .hero-visual { width: 100%; max-width: 680px; margin-inline: auto; }
  .hv-toast, .hv-goal { right: 0; }
}
@media (max-width: 900px) {
  /* Stacked: text, then the pile of scattered files. */
  #problem { display: flex; flex-direction: column; }
  .problem-split { display: contents; }
  #problem .s-head { order: 1; margin-inline: auto; text-align: center; }
  .chaos { order: 2; margin-top: 32px; }
}
@media (max-width: 1040px) {
  .header-inner { display: flex; align-items: center; gap: 12px; }
  .header-actions { margin-left: auto; justify-self: auto; }
  .nav-toggle { display: grid; }
  /* Nav becomes a drop-down panel anchored under the hamburger (left) */
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-panel);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
    z-index: 60;
    transform-origin: top left;
  }
  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav a {
    padding: 13px 16px;
    border-radius: 13px;
    font-size: 1rem;
    text-align: left;
  }
  .hero-copy h1 { max-width: 16ch; }
}
@media (max-width: 720px) {
  .site-header { top: 0; margin-top: 0; padding-top: 8px; }
  .header-inner { padding: 9px 9px 9px 12px; }
  .site-header .brand-copy span { display: none; }
  /* Phone header: logo left, CTA and menu right; language and theme live in the menu. */
  .brand { order: 1; }
  .header-actions { order: 2; }
  .nav-toggle { order: 3; }
  .header-setting { display: none; }
  .site-nav { left: 0; right: 0; width: auto; max-width: none; justify-self: stretch; transform-origin: top center; }
  .nav-settings {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 8px 4px;
    border-top: 1px solid var(--glass-border);
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  /* Hero visual: the full calendar lives in the preview below; phones keep notification, today and goal. */
  .hero-visual { display: grid; gap: 10px; padding: 0; }
  .hv-cal { order: 2; padding: 12px 14px; border-radius: 16px; }
  .hv-cal .wk { display: none; }
  .hv-today { margin-top: 0; padding-top: 0; border-top: 0; }
  .hv-card { position: static; width: auto; }
  .hv-toast { order: 1; }
  .hv-goal { order: 3; }
  .hero { padding-bottom: 0; }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  :root { --max-width: 1200px; }
  .shell { width: calc(100% - 32px); }

  /* Header: free up space; hero & final CTA carry conversion */
  .site-header { top: 0; margin-top: 0; padding-top: 8px; }
  .header-inner { gap: 10px; padding: 8px 8px 8px 12px; }
  /* Short CTA label in the header on phones */
  .header-cta { min-height: 40px; padding: 0 15px; border-radius: 999px; flex: none; }
  .header-cta-label { display: none; }
  .header-cta-short { display: inline; }
  .brand-mark img { width: 32px; height: 32px; }
  .brand-copy strong { font-size: 1rem; }
  .lang-toggle { height: 40px; padding: 0 12px; }
  .theme-toggle { width: 40px; height: 40px; }
  /* comfortable tap targets for footer nav */
  .footer-links { gap: 6px 18px; flex-wrap: wrap; }
  .footer-links a { padding: 6px 0; }
  /* keep module mini-mocks from overflowing their card */
  .module-mock { min-width: 0; overflow: hidden; }

  /* Hero */
  .hero { padding: clamp(28px, 9vw, 48px) 0 8px; gap: 30px; }
  .hero-copy h1 {
    font-size: clamp(2.2rem, 9.2vw, 3rem);
    max-width: none;
    line-height: 1.06;
    hyphens: none;
  }
  .hero-copy .lede { font-size: 1.05rem; margin-top: 20px; }
  .hero-actions { gap: 11px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { margin-top: 24px; font-size: 0.84rem; }

  /* Section rhythm */
  .section { padding: clamp(44px, 13vw, 72px) 0; }
  .s-head h2 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); }
  .module-grid { margin-top: 32px; gap: 12px; }
  .module-card { padding: 24px 22px; border-radius: 20px; }
  .chaos { aspect-ratio: 5 / 3.4; border-radius: 20px; }
  .chaos-tag { column-gap: 7px; padding: 6px 10px 6px 6px; border-radius: 9px; }
  .chaos-tag b { font-size: 0.68rem; }
  .chaos-tag i { font-size: 0.56rem; }
  .chaos-ic { width: 24px; height: 24px; border-radius: 7px; }
  .chaos-ic svg { width: 13px; height: 13px; }
  .ct-1 { left: 29%; top: 27%; }
  .ct-2 { left: 71%; top: 25%; }
  .ct-3 { left: 70%; top: 74%; }
  .ct-4 { left: 30%; top: 76%; }
  .tone-intro { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
  .module-card.wide { padding: 24px 22px; }
  .workflow-list { margin-top: 32px; gap: 10px; }

  /* Preview frame */
  .preview-frame { margin-top: 32px; padding: 10px; border-radius: 24px; }

  /* Pricing */
  .pricing-grid { margin-top: 40px; gap: 14px; }
  .price-card { padding: 28px 24px; }


  /* Legal pages */
  .legal-card { padding: 26px 20px; border-radius: 22px; }
  .legal-card h1 { font-size: clamp(1.45rem, 7.4vw, 2.05rem); }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: clamp(2rem, 9.6vw, 2.5rem); }
  .brand-copy strong { font-size: 0.95rem; }
  .brand-copy span { display: none; }
  .lang-toggle span { font-size: 0.78rem; }
  .module-card, .module-card.wide, .price-card { padding: 22px 18px; }
  .price-card.solo .price-amount b { font-size: 2.4rem; }
  .s-head h2 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
}
html.instant-scroll { scroll-behavior: auto; }
.reveal.reveal-instant { transition: none; }
.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 140ms; }
.reveal-delay-3 { transition-delay: 210ms; }
.reveal-delay-4 { transition-delay: 280ms; }
.reveal-delay-5 { transition-delay: 350ms; }
.macrobar .macro-32 { flex: 32; }
.macrobar .macro-39 { flex: 39; }
.macrobar .macro-28 { flex: 28; }
.fill-80 { width: 80%; }
.fill-70 { width: 70%; }
.fill-30 { width: 30%; }
.contact-form-spaced { margin-top: 34px; }
