/* StressMonitor website — desktop design from the Pencil file (rows "Website · …" in untitled-shw.pen).
   Tokens mirror the `ws-*` variables there, which mirror the app's Lavender palette (Shared/Palette.swift). */

@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F6F5FB;
  --sky: #E5E2FA;
  --card: #FFFFFF;
  --ink: #1D1B26;
  --ink-2: #6E6A7C;
  --ink-3: #ABA7B8;
  --line: #E9E6F3;
  --accent: #8B7FE8;
  --accent-strong: #5E52C7;
  --accent-soft: #E7E3FC;
  --accent-tint: #F3F1FD;
  --night: #1E1A33;
  --night-2: #2B2648;
  --night-ink-2: #B9B3D6;
  --night-accent: #C3BBFF;

  --calm: #5CC48E;     --calm-soft: #DDF3E7;     --calm-strong: #2F9461;
  --balanced: #8FA2F2; --balanced-soft: #E8ECFD; --balanced-strong: #5A6CD0;
  --tense: #F4A462;    --tense-soft: #FDEBDD;    --tense-strong: #C46A28;
  --high: #EE6F7C;     --high-soft: #FBE1E5;     --high-strong: #C2414F;

  --content: 1200px;
  --gutter: clamp(24px, 8.33vw, 120px);
  --section-y: 112px;
  --shadow-float: 0 16px 40px rgba(43, 33, 79, 0.15);
  --shadow-phone: 0 30px 60px rgba(43, 33, 79, 0.2);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

.wrap { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Icons are injected by main.js from `data-icon`. */
.icon { display: inline-flex; width: 1em; height: 1em; flex: none; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.115em; text-transform: uppercase; color: var(--accent-strong); }
.h2 { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.section { padding: var(--section-y) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.section-head .titles { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 30px; border-radius: 999px; border: 0;
  font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn .icon { font-size: 20px; }
.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 12px 28px rgba(94, 82, 199, 0.27); }
.btn--primary:hover { background: #5246B8; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(94, 82, 199, 0.33); }
.btn--ghost { padding: 18px 8px; background: none; color: var(--accent-strong); }
.btn--ghost .icon { font-size: 18px; transition: transform 0.2s ease; }
.btn--ghost:hover .icon { transform: translateY(3px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--accent-strong); }
.text-link .icon { font-size: 18px; transition: transform 0.2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease; }
.site-header.is-scrolled { background: rgba(246, 245, 251, 0.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--ink-2); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: 12px 22px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 16px; font-weight: 600; transition: background-color 0.2s ease; }
.nav-cta:hover { background: #5246B8; }

/* Pages start under a soft lavender sky; the header sits on top of it. */
.sky-top { position: relative; overflow: hidden; margin-top: -88px; padding-top: 88px; background: linear-gradient(180deg, #E3DFFA 0%, #EFEDFB 60%, var(--bg) 100%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 96px; }
.hero::before {
  content: ""; position: absolute; top: -260px; left: calc(50% + 160px); width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252, 227, 214, 0.8), rgba(252, 227, 214, 0)); pointer-events: none;
}
.hero-body { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 40px; }
.pitch { width: 600px; display: flex; flex-direction: column; gap: 28px; }
.weather-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px #fff; font-size: 15px; font-weight: 500;
}
.weather-chip .badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--calm-soft); color: var(--calm-strong); font-size: 15px; }
.hero h1 { font-size: 76px; font-weight: 600; letter-spacing: -0.034em; line-height: 1.02; }
.hero .subhead { max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.ctas { display: flex; align-items: center; gap: 20px; }
.fine-print { display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--ink-2); }
.fine-print li { display: inline-flex; align-items: center; gap: 7px; }
.fine-print .icon { font-size: 16px; }

.hero-art { position: relative; width: 560px; height: 680px; flex: none; }
.hero-art .phone { position: absolute; left: 150px; top: 10px; width: 316px; }
.hero-art .puff { position: absolute; left: -10px; top: 30px; width: 190px; animation: drift 7s ease-in-out infinite; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow-float); white-space: nowrap;
}
.float-card .badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.float-card small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.float-card strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.float-card--spike { left: 300px; top: 250px; animation: bob 6s ease-in-out infinite; }
.float-card--spike .badge { background: var(--high-soft); color: var(--high-strong); }
.float-card--breathe { left: 20px; top: 500px; animation: bob 6s ease-in-out -3s infinite; }
.float-card--breathe .badge { background: var(--accent-soft); color: var(--accent-strong); }

@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Phone frame ---------- */
.phone { padding: 9px; border-radius: 54px; background: var(--ink); box-shadow: var(--shadow-phone); }
.phone img { width: 100%; aspect-ratio: 390 / 844; border-radius: 46px; object-fit: cover; object-position: top; }
.phone--md { border-radius: 50px; padding: 8px; }
.phone--md img { border-radius: 43px; }

/* ---------- Four skies ---------- */
.skies .section-head .titles { width: 620px; }
.skies .section-head .lead { width: 470px; }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 36px; overflow: hidden; }
.sky { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 36px 28px; text-align: center; }
.sky img { width: 190px; height: 194px; object-fit: contain; }
.sky .label { display: inline-flex; align-items: center; gap: 10px; }
.sky .dot { width: 10px; height: 10px; border-radius: 50%; }
.sky .name { font-size: 22px; font-weight: 600; }
.sky .range { font-size: 16px; font-weight: 500; }
.sky p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.sky--calm { background: linear-gradient(180deg, #FFF1DD, #F4F9F6); }
.sky--balanced { background: linear-gradient(180deg, #E9ECFD, #F6F5FB); }
.sky--tense { background: linear-gradient(180deg, #E8E6EF, #F5F3F7); }
.sky--high { background: linear-gradient(180deg, #D9D6E6, #EFEDF4); }
.sky--calm .dot { background: var(--calm); }         .sky--calm .range { color: var(--calm-strong); }
.sky--balanced .dot { background: var(--balanced); } .sky--balanced .range { color: var(--balanced-strong); }
.sky--tense .dot { background: var(--tense); }       .sky--tense .range { color: var(--tense-strong); }
.sky--high .dot { background: var(--high); }         .sky--high .range { color: var(--high-strong); }

/* ---------- A day with it (timeline) ---------- */
.day { padding-top: 40px; }
.chapter { display: grid; grid-template-columns: 1fr 130px 1fr; align-items: center; min-height: 640px; }
.chapter--flip .chapter-text { order: 3; }
.chapter--flip .rail { order: 2; }
.chapter--flip .chapter-visual { order: 1; }
.chapter-text { display: flex; flex-direction: column; gap: 20px; padding: 48px 0; }
.when { display: flex; align-items: center; gap: 12px; }
.when time { font-size: 20px; font-weight: 600; }
.zone-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.zone-chip .icon { font-size: 14px; }
.zone-chip--calm { background: var(--calm-soft); color: var(--calm-strong); }
.zone-chip--high { background: var(--high-soft); color: var(--high-strong); }
.zone-chip--tense { background: var(--tense-soft); color: var(--tense-strong); }
.zone-chip--balanced { background: var(--balanced-soft); color: var(--balanced-strong); }
.chapter h3 { font-size: 38px; font-weight: 600; letter-spacing: -0.026em; line-height: 1.12; }
.chapter p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.points { display: flex; flex-direction: column; gap: 12px; }
.points li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.tick { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; }
.tick .icon svg { stroke-width: 3; }
.rail { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--line); }
.chapter:first-child .rail::before { top: 50%; }
.chapter:last-child .rail::before { bottom: 50%; }
.rail-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--dot, var(--accent)); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.chapter.is-visible .rail-dot { box-shadow: 0 0 0 8px color-mix(in srgb, var(--dot, var(--accent)) 18%, transparent); }
.chapter-visual { position: relative; height: 560px; border-radius: 40px; overflow: hidden; }
.chapter-visual .phone { position: absolute; left: 50%; top: 64px; width: 280px; transform: translateX(-50%); }
.chapter-visual .phone--back { left: calc(50% - 228px); width: 260px; transform: none; }
.chapter-visual .phone--front { left: calc(50% - 33px); top: 120px; width: 260px; transform: none; }

/* ---------- Features (bento) ---------- */
.features { background: #fff; }
.features .section-head { margin-bottom: 48px; }
.features .section-head .titles { width: 780px; }
.features .section-head .lead { width: 360px; }
.bento { display: grid; gap: 24px; }
.bento-row { display: grid; gap: 24px; }
.bento-row--1 { grid-template-columns: 1fr 440px; }
.bento-row--2 { grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 32px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.bento-row--1 .tile { height: 520px; }
.bento-row--2 .tile { height: 480px; }
.tile-copy { display: flex; flex-direction: column; gap: 10px; padding: 36px 36px 0; }
.tile h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tile p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tile .peek { position: relative; flex: 1; }
.tile .peek .phone { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); }
.bento-row--1 .tile .peek .phone { width: 280px; }
.bento-row--2 .tile .peek .phone { width: 270px; }
.tile--trends { flex-direction: row; background: linear-gradient(135deg, #EFECFD, #E5F4EC); box-shadow: none; }
.tile--trends .tile-copy { width: 340px; flex: none; gap: 12px; padding: 44px 0 0 44px; }
.tile--trends h3 { font-size: 32px; letter-spacing: -0.025em; }
.tile--trends p { font-size: 17px; }
.tile--trends .peek .phone { left: 70px; top: 60px; width: 290px; transform: none; }
.lenses { display: flex; gap: 8px; padding-top: 8px; }
.lenses span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 600; }
.lenses span:first-child { background: var(--accent-strong); color: #fff; }
.tile--ai { background: linear-gradient(180deg, #F3F1FD, #E9E5FC); box-shadow: inset 0 0 0 1px #E0DBF8; }
.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 600; }
.tag .icon { font-size: 13px; }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 0; }
.tile .bubble-q { align-self: flex-end; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--accent-strong); color: #fff; font-size: 15px; font-weight: 500; }
.tile .bubble-a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px 20px 20px 6px; background: #fff; font-size: 15px; line-height: 1.5; }
.tile .bubble-a p { font-size: 15px; color: var(--ink); }
.tile .bubble-a small { font-size: 12px; color: var(--ink-2); }

/* ---------- Watch & widgets ---------- */
.watch-section { position: relative; overflow: hidden; background: linear-gradient(120deg, #D9D3F8 0%, #E9E2F7 50%, #F7DDD2 100%); }
.watch-section::before { content: ""; position: absolute; left: -160px; top: 380px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); pointer-events: none; }
.watch-inner { position: relative; display: flex; align-items: center; gap: 40px; height: 720px; }
.watch-copy { width: 430px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.watch-copy p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.badge-list { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.badge-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.badge-list .badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.7); color: var(--accent-strong); font-size: 17px; }
.watch-art { position: relative; flex: 1; height: 720px; }
/* The images carry their own soft shadow, so each one is larger than the card it shows and sits a little up and left. */
.watch-art img { position: absolute; }
.watch-art .w-large { left: -42px; top: 54px; width: 424px; }
.watch-art .w-small-1 { left: -42px; top: 432px; width: 245px; }
.watch-art .w-small-2 { left: 138px; top: 432px; width: 245px; }
.watch-art .w-watch { left: 332px; top: 70px; width: 427px; }

/* ---------- Privacy (night) ---------- */
.night { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; }
.night::before { content: ""; position: absolute; right: -180px; top: -220px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 127, 232, 0.25), rgba(139, 127, 232, 0)); pointer-events: none; }
.night .wrap { position: relative; }
.night .eyebrow, .night .text-link { color: var(--night-accent); }
.night .section-head { margin-bottom: 56px; }
.night .section-head .titles { width: 640px; }
.night .section-head .text-link { padding-bottom: 10px; }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.promise { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.promise .icon { font-size: 26px; color: var(--night-accent); }
.promise h3 { font-size: 22px; font-weight: 600; }
.promise p { font-size: 16px; line-height: 1.6; color: var(--night-ink-2); }
.night .footnote { margin-top: 56px; font-size: 15px; color: var(--night-ink-2); }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 80px; }
.faq-intro { display: flex; flex-direction: column; gap: 16px; }
.faq-intro .text-link { padding-top: 8px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0;
  font-size: 21px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 22px; height: 22px; flex: none;
  background: var(--accent-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.faq-list details p { max-width: 640px; padding-bottom: 26px; margin-top: -14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.faq-list details a { color: var(--accent-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.final { padding: 100px 0 112px; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, #EDEAFC 55%, #FBE9DE 100%); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final img { width: 240px; animation: drift 7s ease-in-out infinite; }
.final h2 { font-size: 60px; font-weight: 600; letter-spacing: -0.033em; line-height: 1.1; }
.final p { font-size: 19px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; background: #fff; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; }
.footer-brand { width: 360px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand { font-size: 19px; }
.footer-brand .brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand p { font-size: 15px; color: var(--ink-2); }
.footer-cols { display: flex; gap: 96px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.03em; }
.footer-col a { font-size: 15px; color: var(--ink-2); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* ---------- Inner pages (Privacy, Support) ---------- */
.page-head { padding-top: 136px; padding-bottom: 64px; }
.page-head h1 { font-size: 64px; font-weight: 600; letter-spacing: -0.031em; line-height: 1.1; }
.page-head .intro { max-width: 820px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.title-block { display: flex; flex-direction: column; gap: 16px; }

.short-version { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.short-tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px #fff; }
.short-tile .badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-size: 20px; }
.short-tile h2 { font-size: 19px; font-weight: 600; }
.short-tile p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.doc { display: grid; grid-template-columns: 260px 720px; gap: 96px; padding-top: 72px; padding-bottom: 112px; }
.toc { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc h2 { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-2); }
.toc a { padding: 9px 14px; border-radius: 10px; font-size: 15px; color: var(--ink-2); transition: background-color 0.2s ease, color 0.2s ease; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; }
.prose { display: flex; flex-direction: column; gap: 48px; }
.prose section { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.prose h3 { font-size: 19px; font-weight: 600; margin-top: 4px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose li span { color: var(--ink-2); }
.prose a { color: var(--accent-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.support-head { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.support-head .title-block { width: 600px; }
.contact-card { width: 440px; flex: none; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 32px; background: #fff; box-shadow: 0 20px 50px rgba(43, 33, 79, 0.12); }
.contact-card .row { display: flex; align-items: center; gap: 14px; }
.contact-card img { width: 64px; }
.contact-card h2 { font-size: 22px; font-weight: 600; }
.contact-card .address { font-size: 16px; color: var(--ink-2); }
.contact-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.contact-card .btn { width: 100%; padding: 15px 24px; font-size: 17px; box-shadow: none; }
.contact-card .btn .icon { font-size: 18px; }

.fixes { padding: 72px 0 96px; }
.fixes h2 { margin-bottom: 32px; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.fix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fix { display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: 32px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fix-head { display: flex; align-items: center; gap: 14px; }
.fix-head .badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 22px; }
.fix-head h3 { font-size: 22px; font-weight: 600; }
.fix ol { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.fix li { display: flex; gap: 14px; font-size: 16px; line-height: 1.6; color: var(--ink-2); counter-increment: step; }
.fix li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); font-size: 13px; font-weight: 600; }
.badge--calm { background: var(--calm-soft); color: var(--calm-strong); }
.badge--balanced { background: var(--balanced-soft); color: var(--balanced-strong); }
.badge--tense { background: var(--tense-soft); color: var(--tense-strong); }
.badge--high { background: var(--high-soft); color: var(--high-strong); }

/* ---------- Legal pages (Privacy Policy, Terms) ---------- */
.page-head--legal { padding-bottom: 48px; }
.legal { max-width: 820px; display: flex; flex-direction: column; gap: 24px; padding: 56px 0 112px; }
.legal section { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.legal section:first-child { padding-top: 0; }
.legal h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.legal h2.caps { font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.legal ul { display: flex; flex-direction: column; gap: 8px; margin-top: -6px; }
.legal li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.legal li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal a { color: var(--accent-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Contact form (Support) ---------- */
.contact { padding: 96px 0; background: linear-gradient(180deg, var(--bg), #ECE9FC); }
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-intro h2 { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.contact-intro > p:not(.eyebrow) { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.contact-info { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-2); }
.contact-info li a { font-weight: 600; color: var(--ink); }
.contact-info .badge { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: #fff; color: var(--accent-strong); font-size: 18px; }
.form-card { display: flex; flex-direction: column; gap: 20px; padding: 40px; border-radius: 32px; background: #fff; box-shadow: 0 20px 50px rgba(43, 33, 79, 0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field input { height: 52px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-tint); }
.field.has-error input, .field.has-error textarea { border-color: var(--high); background: #fff; }
.field-error { min-height: 0; font-size: 13px; color: var(--high-strong); }
.field-error:empty { display: none; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 4px; }
.form-footer p { font-size: 14px; color: var(--ink-2); }
.form-footer a { color: var(--accent-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form-card .btn { padding: 16px 28px; font-size: 17px; }
.form-card .btn .icon { font-size: 18px; }
.form-card .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.form-status[hidden] { display: none; }
.form-status .icon { font-size: 20px; margin-top: 1px; }
.form-status--ok { background: var(--calm-soft); color: var(--calm-strong); }
.form-status--error { background: var(--high-soft); color: var(--high-strong); }
.form-status a { font-weight: 600; text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Narrower windows ----------
   The design is for desktop (1440). Smaller laptop windows shrink the art; very narrow windows stack
   the columns so nothing overlaps or scrolls sideways. */
@media (max-width: 1320px) {
  .hero h1 { font-size: 64px; }
  .pitch { width: auto; flex: 1; }
  .hero-art { transform: scale(0.88); transform-origin: right center; margin-left: -60px; }
  .chapter { grid-template-columns: 1fr 100px 1fr; }
  .watch-art { transform: scale(0.85); transform-origin: left center; }
  .doc { grid-template-columns: 220px 1fr; gap: 64px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .titles, .section-head .lead, .skies .section-head .titles, .skies .section-head .lead,
  .features .section-head .titles, .features .section-head .lead, .night .section-head .titles { width: auto; max-width: 720px; }
  .forecast { grid-template-columns: repeat(2, 1fr); }
  .bento-row--1, .bento-row--2 { grid-template-columns: 1fr 1fr; }
  .tile--trends { grid-column: 1 / -1; }
  .promises, .short-version { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .support-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .h2 { font-size: 40px; }
  .hero-body { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 52px; }
  .hero-art { transform: none; margin: 0 auto; width: 100%; max-width: 560px; height: auto; aspect-ratio: 560 / 680; }
  .hero-art .phone { left: 27%; width: 56%; }
  .hero-art .puff { width: 36%; }
  .hero-art .float-card { display: none; }
  .ctas, .fine-print { flex-wrap: wrap; }
  .chapter { grid-template-columns: 1fr; min-height: 0; padding-bottom: 32px; }
  .chapter--flip .chapter-text, .chapter--flip .chapter-visual { order: 0; }
  .rail { display: none; }
  .bento-row--1, .bento-row--2 { grid-template-columns: 1fr; }
  .watch-inner { flex-direction: column; height: auto; padding: 96px 0 0; }
  .watch-copy { width: auto; }
  .watch-art { width: 100%; max-width: 720px; transform: none; height: 640px; }
  .promises, .short-version, .fix-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .final h2 { font-size: 40px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .contact-card { width: 100%; }
  .page-head h1 { font-size: 48px; }
}
