/* Snoozenix website. One stylesheet for every page.
   Design source: Project Files/design/project/Web-Home.dc.html (desktop, source of truth)
   and Web-Home-Phone.dc.html (how sections stack below 768 px). */

/* ---------- Fonts (self-hosted, SIL OFL 1.1; licences in /fonts) ---------- */
@font-face {
  font-family: "Chivo";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/chivo-900-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/young-serif-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0E1820;
  --bg-alt: #13212C;
  --card: #182733;
  --chip: #22384A;
  --line: #2E4252;
  --line-soft: #22313D;
  --black: #05090C;
  --dash: #4A6274;
  --text: #F3EDE2;
  --text-2: #D6DCE0;
  --text-3: #A9B4BD;
  --yellow: #F6C700;
  --yellow-hover: #FFE27A;
  --accent: #C8102E;

  --display: "Chivo", "Arial Black", sans-serif;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 6.25vw, 80px);
  --max: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img, svg { display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-hover); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[id] { scroll-margin-top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--yellow); color: var(--bg); font-weight: 700;
  padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: var(--bg); }

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

/* Shared type */
.wordmark {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 30px; letter-spacing: -0.5px; line-height: 1.2; color: var(--text);
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.wordmark .nix { background: var(--yellow); color: var(--bg); padding: 0 5px; margin-left: 2px; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.15; }
.label {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 13px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase;
}
.sticker {
  align-self: flex-start; display: inline-block;
  background: var(--yellow); color: var(--bg);
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 15px; letter-spacing: 2px; line-height: 1.5; padding: 6px 14px;
  transform: rotate(-2deg);
}
.muted { color: var(--text-2); }
.ph { /* clearly marked placeholder text */
  background: rgba(246, 199, 0, 0.14); color: var(--text);
  outline: 1px dashed var(--yellow); outline-offset: -1px; padding: 0 3px; border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); position: relative; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 24px;
}
.nav-main { display: flex; gap: 36px; font-size: 16px; }
.nav-main a { color: var(--text); padding-block: 10px; }
.nav-main a:hover { color: var(--yellow-hover); }
.btn-accent {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px;
  border-radius: 12px; background: var(--accent); color: #FFFFFF;
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 16px; letter-spacing: 0.5px; white-space: nowrap;
}
.btn-accent:hover { color: #FFFFFF; filter: brightness(1.12); }

.brand { display: flex; flex-direction: column; gap: 5px; }
.tagline { /* lockup A */
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 12px; line-height: normal;
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--text); white-space: nowrap;
}

/* Phone menu: a native disclosure, no JavaScript */
.menu { display: none; }
.menu > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  display: block; /* kept as block: flex on <summary> breaks it in some browsers */
}
.menu > summary svg { margin: 11px auto; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.menu-panel a {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text); font-size: 17px; font-weight: 600;
}
.menu-panel a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  padding-block: 80px 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -1px;
}
.hero .lead { font-size: 21px; line-height: 1.5; color: var(--text-2); max-width: 560px; }
.hero-meta { font-size: 17px; font-weight: 600; }

.badges { display: grid; grid-template-columns: repeat(2, 230px); gap: 14px; }
.badge-ph { /* stand-in until the official store badges are added */
  height: 62px; padding: 0 16px;
  border: 2px dashed var(--dash); border-radius: 14px; background: var(--black);
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.badge-ph svg { flex-shrink: 0; }
.badge-slot { display: flex; flex-direction: column; gap: 6px; }
.soon { font-size: 13px; font-weight: 600; color: var(--text-3); text-align: center; }
.badge-ph .b-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge-ph .b-small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.badge-ph .b-big { font-size: 19px; font-weight: 700; }

/* Hero phone mock (decorative, built in CSS) */
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art .arc {
  position: absolute; top: 40px; width: 380px; height: 190px;
  border-radius: 380px 380px 0 0; background: var(--yellow); opacity: 0.9;
}
.phone {
  position: relative; width: 310px; border-radius: 44px;
  border: 10px solid var(--black); background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column;
}
.hero-art .phone { margin-top: 90px; height: 600px; padding: 26px 18px 18px; gap: 14px; }
.phone .wordmark { font-size: 20px; letter-spacing: 0; }
.phone .wordmark .nix { padding: 0 3px; margin-left: 1px; }
.next-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.next-card .small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.next-card .time { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--yellow); }
.next-card .time span { font-size: 18px; color: var(--text); margin-left: 4px; }
.next-card .what { font-size: 13px; color: var(--text-2); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week span { height: 24px; border-radius: 6px; background: var(--yellow); }
.week span.off { background: none; border: 1px dashed var(--dash); }
.phone .won { font-size: 12px; color: var(--text-2); }
.alarm-row { background: var(--card); border-radius: 14px; padding: 12px; display: flex; align-items: center; }
.alarm-row .t { flex: 1; }
.alarm-row .t1 { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.alarm-row .t2 { font-size: 11px; color: var(--text-3); }
.toggle {
  width: 40px; height: 22px; border-radius: 11px; background: var(--yellow);
  display: flex; justify-content: flex-end; padding: 2px;
}
.toggle span { width: 18px; height: 18px; border-radius: 9px; background: var(--bg); }
.phone .spacer { flex: 1; }
.new-alarm {
  height: 44px; border-radius: 12px; background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 15px;
}

/* ---------- Made for ---------- */
.made-for .inner {
  border-top: 1px solid var(--line-soft); padding-top: 32px;
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: baseline;
}
.made-for .wrap { padding-bottom: 72px; }
.made-for .label { color: var(--yellow); }
.made-for p { font-family: var(--serif); font-size: 28px; line-height: 1.3; max-width: 860px; }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.alt { background: var(--bg-alt); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 40px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps .num {
  flex-shrink: 0; font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 64px; line-height: 0.9; color: var(--yellow);
}
.steps .body { display: flex; flex-direction: column; gap: 8px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.steps p { font-size: 17px; color: var(--text-2); }

/* Missions */
.missions .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.missions .intro { font-size: 19px; color: var(--text-2); margin: 12px 0 28px; }
.mission-list li {
  border-bottom: 1px solid var(--line); padding: 18px 0;
  display: flex; gap: 16px; align-items: center;
}
.mission-list li:first-child { border-top: 1px solid var(--line); }
.m-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.m-icon svg { width: 31px; height: 31px; }
.m-text { display: flex; flex-direction: column; gap: 2px; }
.m-text h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.m-text p { font-size: 16px; line-height: 1.45; color: var(--text-2); }
.more-label { margin-top: 22px; }
.tier {
  margin-left: 8px; vertical-align: middle; font-family: var(--sans); font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
}
.tier.pro { border: 1px solid #6E8698; color: var(--text-3); }
.tier.free { background: var(--yellow); color: var(--bg); }
.tier-note { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.chips { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chips li {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 10px; background: var(--chip); font-size: 14px; font-weight: 600;
}

/* Squats mission figure */
.mission-art { position: relative; display: flex; justify-content: center; }
.mission-art .sticker { position: absolute; top: -22px; left: 40px; z-index: 1; transform: rotate(-3deg); }
.mission-art .phone { padding: 26px 18px 22px; gap: 12px; }
.ma-head .label { font-size: 11px; }
.ma-head .name { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.cam {
  position: relative; height: 230px; border-radius: 20px; background: var(--black);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cam .frame { position: absolute; }
.cam .figure { position: relative; top: 6px; }
.pill {
  position: absolute; display: flex; align-items: center; gap: 5px;
  background: var(--bg); border-radius: 13px;
}
.pill.see { top: 10px; left: 10px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; }
.pill.stays { bottom: 10px; right: 10px; height: 24px; padding: 0 9px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.reps { display: flex; align-items: baseline; justify-content: space-between; }
.reps .n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--yellow); }
.reps .n span { font-size: 18px; color: var(--text); margin-left: 6px; }
.reps .left { font-size: 14px; font-weight: 700; }
.bar { height: 10px; border-radius: 5px; background: var(--chip); overflow: hidden; }
.bar span { display: block; width: 60%; height: 100%; border-radius: 5px; background: var(--yellow); }
.then { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }

/* Why it works */
.why .wrap { padding-block: 8px 48px; }
.why .cols { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.why .col { padding: 0 36px; display: flex; flex-direction: column; gap: 12px; }
.why .col:first-child { padding-left: 0; }
.why .col + .col { border-left: 1px solid var(--line); }
.why .col > div { display: flex; flex-direction: column; gap: 12px; }
.why h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.why p { font-size: 17px; color: var(--text-2); }

/* What makes Snoozenix different: led by "No ads" */
.noads .wrap { padding-bottom: 88px; }
.noads .inner { border-top: 1px solid var(--line); padding-top: 56px; display: flex; flex-direction: column; gap: 14px; }
.noads-eyebrow { font-size: 14px; }
.noads h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.6vw, 96px); line-height: 1; color: var(--yellow); }
.noads-sub { font-size: 22px; line-height: 1.4; color: var(--text); margin-bottom: 32px; }
.punches { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; }
.punches li { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text); white-space: nowrap; }
.punches svg { flex-shrink: 0; }

/* Pricing */
.pricing .wrap { max-width: calc(900px + 2 * var(--gutter)); } /* centred column on wide screens */
.pricing .intro { font-size: 19px; color: var(--text-2); margin: 12px 0 36px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; display: flex; flex-direction: column; gap: 10px;
}
.plan.pro { border: 2px solid var(--yellow); }
.plan .name {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: 18px; letter-spacing: 1px;
}
.plan.pro .name { color: var(--yellow); }
.plan .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan .trial {
  display: flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 10px; background: var(--chip); font-size: 14px; font-weight: 700;
}
.plan .price { font-family: var(--serif); font-size: 44px; line-height: 1.2; }
.plan .price small { font-size: 18px; color: var(--text-3); }
.plan .features { font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* Pro plans: two rows, yearly first and highlighted */
.pro-plans { display: flex; flex-direction: column; gap: 8px; }
.pro-plan {
  border: 1px solid var(--dash); border-radius: 14px; padding: 10px 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.pro-plan.best { background: var(--chip); border: 2px solid var(--yellow); }
.pp-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.save { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--yellow); color: var(--bg); }
.pp-price { font-family: var(--serif); font-size: 32px; line-height: 1.2; white-space: nowrap; }
.pp-price small { font-family: var(--sans); font-size: 15px; color: var(--text-3); }
.plan .fine { font-size: 15px; color: var(--text-3); }
.renew { grid-column: 2; margin: -8px 0 0 4px; font-size: 15px; color: var(--text-2); }
.local-price { margin-top: 20px; font-size: 15px; color: var(--text-3); }

/* Questions */
.faq .wrap, .idea .wrap { max-width: calc(860px + 2 * var(--gutter)); } /* centred column on wide screens */
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: block; position: relative; padding: 18px 32px 18px 0;
  font-size: 19px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { position: absolute; right: 0; top: 18px; color: var(--yellow); }
.faq-list .pm::before { content: "+"; }
.faq-list details[open] .pm::before { content: "\2212"; }
.faq-list details p { margin-top: -4px; padding: 0 32px 18px 0; font-size: 17px; color: var(--text-2); }

/* Got an idea (email only, no form) */
.idea .wrap { padding-bottom: 88px; }
.idea .inner {
  border-top: 1px solid var(--line-soft); padding-top: 32px;
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: baseline;
}
.idea .label { color: var(--yellow); }
.idea-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.idea-body p { font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.idea-body p.idea-mail { /* body size, not the serif line above it */
  margin-top: 12px; font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--text);
  display: block; padding-block: 10px; white-space: nowrap; /* 44 px tall tap area */
}
.idea-mail a, .made-by a, .doc .hint a, .stuck a { font-weight: 600; overflow-wrap: anywhere; }

/* Closing call to action */
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta h2 { font-size: 52px; line-height: 1.05; }
.cta p { font-size: 19px; color: var(--text-2); }
.cta .badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 28px;
  flex-wrap: wrap; padding-block: 40px 48px;
}
.site-footer .wordmark { font-size: 22px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.made-by { font-size: 14px; color: var(--text-3); }
.site-footer .wordmark .nix { padding: 0 4px; }
.nav-footer { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.nav-footer a { min-height: 44px; display: flex; align-items: center; font-weight: 600; }

/* ---------- Text pages (Web-TextPage board: Support, Privacy, Terms, Delete my data) ---------- */
.doc-grid {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start;
  padding-block: 64px 88px;
}
.rail {
  position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px;
  max-height: calc(100vh - 48px); overflow-y: auto; padding: 4px; margin: -4px;
}
.rail ul a, .toc ul a { display: flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 600; line-height: 1.3; padding-block: 6px; }
.rail-other { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.rail-other a { min-height: 36px; display: flex; align-items: center; font-size: 15px; font-weight: 600; }
.toc { display: none; }
.doc .rail ul, .doc .toc ul { list-style: none; padding-left: 0; margin: 0; }
.doc .rail li + li, .doc .toc li + li { margin-top: 0; }
.doc article { max-width: 760px; min-width: 0; }
.doc .eyebrow { margin: 0; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.05; margin: 8px 0 14px; }
.doc .lead { font-size: 20px; line-height: 1.55; margin-bottom: 8px; }
.doc .updated { font-size: 15px; color: var(--text-3); margin: 0 0 24px; }
.doc section { padding: 28px 0; border-top: 1px solid var(--line); }
.doc section h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
.doc p, .doc li { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.doc p + p, .doc ul + p, .doc ol + p, .doc p + .lead { margin-top: 14px; }
.doc article > p:not(.eyebrow):not(.lead):not(.updated):not(.draft-note) { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 1.4em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--yellow); }
.doc strong { color: var(--text); font-weight: 700; }
.doc article a { font-weight: 600; overflow-wrap: anywhere; } /* yellow, no underline (Japhet's rule) */
.draft-note {
  border-left: 4px solid var(--yellow); background: var(--bg-alt);
  padding: 14px 18px; margin: 8px 0 24px; border-radius: 0 10px 10px 0;
  font-size: 16px; line-height: 1.5; color: var(--text-2);
}
.doc .draft-note { font-size: 16px; line-height: 1.5; }
.stuck {
  margin-top: 16px; background: var(--bg-alt); border-radius: 22px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.doc .stuck { border-top: 0; padding: 24px 28px; }
.stuck > div { display: flex; flex-direction: column; gap: 4px; }
.doc .stuck h2 { font-size: 24px; margin: 0; }
.doc .stuck p { font-size: 16px; }
.btn-lg { height: 52px; border-radius: 14px; flex-shrink: 0; }
.btn-outline {
  display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 14px;
  border: 2px solid var(--dash); color: var(--text); font-size: 16px; font-weight: 600;
}
.btn-outline:hover { color: var(--text); border-color: var(--text-3); }

/* Ideas page (Web-Ideas board) */
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 14px; font-size: 13px; font-weight: 700; line-height: 1;
}
.chip.building { border: 2px solid var(--yellow); color: var(--yellow); }
.chip.planned { border: 1px solid #6E8698; color: var(--text); }
.chip.considering { border: 1px dashed #6E8698; color: var(--text-3); }
.chip.shipped { background: var(--yellow); color: var(--bg); }
.doc .legend { list-style: none; padding: 0; margin: 0; }
.doc .legend li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; margin: 0; }
.doc .legend .what { font-size: 14px; line-height: 1.4; color: var(--text-3); }
.suggest { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.doc .suggest .hint { font-size: 15px; color: var(--text-3); }
.doc .counted { font-size: 15px; line-height: 1.5; color: var(--text-3); margin: 0 0 28px; }
.doc .ideas-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.doc .ideas-list > li {
  margin: 0; padding: 22px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center;
}
.idea-main { display: flex; flex-direction: column; gap: 6px; }
.idea-tags { display: flex; align-items: center; gap: 12px; }
.doc .idea-main h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.doc .idea-main p { font-size: 16px; line-height: 1.5; }
.idea-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.asked { font-family: var(--serif); font-size: 22px; color: var(--yellow); }
.asked small { font-family: var(--sans); font-size: 14px; color: var(--text-3); }
.doc .idea-side a { min-height: 40px; display: flex; align-items: center; font-size: 15px; }
.doc .idea-side .thanks { font-size: 14px; color: var(--text-3); }
.doc .idea-side .first { font-size: 14px; color: var(--text-3); }
.sample { font-size: 12px; font-weight: 700; }
.doc .ideas-foot { margin-top: 24px; font-size: 15px; line-height: 1.5; color: var(--text-3); }

/* 404 (Web-TextPage board, lower half) */
.notfound .wrap { padding-block: 64px 88px; }
.nf {
  border: 2px dashed var(--dash); border-radius: 28px; padding: 64px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.nf-sun { width: 220px; height: 110px; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.nf-arc { width: 180px; height: 90px; border-radius: 180px 180px 0 0; background: var(--yellow); opacity: 0.35; }
.nf-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); }
.nf h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.1; }
.nf p:not(.label) { font-size: 18px; color: var(--text-2); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .doc-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .idea-body p.idea-mail { white-space: normal; } /* one line from 1101 px up; may wrap below */
  .punches li { white-space: normal; } /* nowrap only where the board's widths allow it */
  .nav-main { gap: 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { margin-top: -20px; }
  .missions .wrap { grid-template-columns: 1fr; gap: 56px; }
  .steps { gap: 32px; }
  .why .col { padding: 0 24px; }
}

/* ---------- Phone (Web-Home-Phone board) ---------- */
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .wordmark { font-size: 24px; letter-spacing: 0; }
  .wordmark .nix { padding: 0 4px; }
  .site-header .wrap { padding-block: 16px; }
  .nav-main, .site-header .btn-accent { display: none; }
  .menu { display: block; }
  .h2 { font-size: 32px; }

  .sticker { font-size: 13px; padding: 5px 12px; }
  .hero .wrap { padding-block: 32px 0; gap: 0; }
  .hero-copy { gap: 18px; }
  .hero h1 { line-height: 1.05; letter-spacing: 0; }
  .hero .lead { font-size: 17px; }
  .hero-meta { font-size: 15px; }
  .badges { grid-template-columns: 1fr 1fr; gap: 10px; }
  .badge-ph { height: 58px; padding: 0 10px; gap: 8px; }
  .badge-ph svg { width: 22px; height: 22px; }
  .badge-ph .b-big { font-size: 16px; }

  /* Phone mock is cropped at 390 px: top card, week and button only */
  .hero-art { margin-top: 40px; padding-bottom: 40px; }
  .hero-art .arc { top: 0; width: 280px; height: 140px; border-radius: 280px 280px 0 0; opacity: 1; }
  .hero-art .phone {
    margin-top: 50px; width: 240px; height: auto; padding: 20px 14px; gap: 10px;
    border-width: 8px; border-bottom: 0; border-radius: 32px 32px 0 0; box-shadow: none;
  }
  .hero-art .phone .wordmark, .hero-art .phone .won, .hero-art .alarm-row, .hero-art .spacer { display: none; }
  .next-card { padding: 12px; border-radius: 14px; gap: 0; }
  .next-card .small { font-size: 11px; }
  .next-card .time { font-size: 42px; }
  .next-card .time span { font-size: 15px; margin-left: 3px; }
  .next-card .what { font-size: 11px; }
  .week { gap: 4px; }
  .week span { height: 18px; border-radius: 5px; }
  .new-alarm { height: 38px; border-radius: 10px; font-size: 13px; }

  .made-for .wrap { padding-bottom: 36px; }
  .made-for .inner { border-top: 0; padding-top: 0; grid-template-columns: 1fr; gap: 8px; }
  .made-for p { font-size: 21px; }

  .section { padding-block: 40px; }
  .steps { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .steps li { gap: 14px; }
  .steps .num { width: 34px; font-size: 44px; }
  .steps .body { gap: 2px; }
  .steps h3 { font-size: 21px; }
  .steps p { font-size: 15px; line-height: 1.45; }

  .missions.section { padding-bottom: 32px; }
  .missions .intro { font-size: 15px; line-height: 1.45; margin: 6px 0 18px; }
  .mission-list li { padding: 14px 0; }
  .m-icon { width: 48px; height: 48px; }
  .m-icon svg { width: 26px; height: 26px; }
  .m-text h3 { font-size: 20px; }
  .m-text p { font-size: 15px; }
  .more-label { margin-top: 18px; }
  .mission-art { display: none; } /* cut at 390 px on the phone board */

  .why .wrap { padding-block: 8px 0; }
  .why .cols { grid-template-columns: 1fr; margin-top: 6px; }
  .why .col { padding: 16px 0; flex-direction: row; gap: 14px; align-items: flex-start; }
  .why .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .why .col svg { width: 28px; height: 28px; flex-shrink: 0; }
  .why .col > div { display: flex; flex-direction: column; gap: 4px; }
  .why h3 { font-size: 20px; }
  .why p { font-size: 15px; }

  .noads .wrap { padding-bottom: 40px; }
  .noads .inner { margin-top: 16px; padding-top: 32px; gap: 10px; }
  .noads-eyebrow { font-size: 13px; }
  .noads-sub { font-size: 17px; margin-bottom: 14px; }
  .punches { grid-template-columns: 1fr; gap: 14px; }
  .punches li { font-size: 16px; }
  .punches svg { width: 22px; height: 22px; }

  .pricing .intro { font-size: 15px; line-height: 1.45; margin: 6px 0 16px; }
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { border-radius: 18px; padding: 18px; gap: 6px; }
  .plan .name { font-size: 15px; }
  .plan .trial { height: 26px; font-size: 13px; }
  .plan .price { font-size: 30px; }
  .plan .price small { font-size: 15px; }
  .plan .features { font-size: 15px; line-height: 1.5; }
  .plan .fine { font-size: 14px; line-height: 1.45; }
  .renew { grid-column: auto; margin: 0 0 0 2px; font-size: 14px; line-height: 1.45; }
  .local-price { margin: 8px 0 0 2px; font-size: 14px; line-height: 1.45; }

  .faq-list { margin-top: 8px; }
  .faq-list summary { padding: 16px 32px 16px 0; font-size: 17px; }
  .faq-list .pm { top: 16px; }
  .faq-list details p { padding-bottom: 16px; font-size: 15px; }

  .cta .wrap { align-items: stretch; text-align: left; gap: 14px; }
  .cta h2 { font-size: 32px; line-height: 1.1; }
  .cta p { font-size: 15px; line-height: 1.45; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 28px 36px; }
  .site-footer .wordmark { font-size: 20px; }
  .made-by { font-size: 13px; }
  .pro-plans { gap: 6px; }
  .pro-plan { border-radius: 12px; padding: 8px 12px; align-items: center; gap: 8px; }
  .pp-name { font-size: 15px; gap: 8px; }
  .pp-price { font-size: 22px; }
  .pp-price small { font-size: 13px; }
  .nav-footer { gap: 0 20px; }

  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 24px 56px; }
  .brand { gap: 4px; }
  .tagline { font-size: 10px; }
  .idea .wrap { padding-bottom: 40px; }
  .idea .inner { border-top: 0; padding-top: 0; grid-template-columns: 1fr; gap: 8px; }
  .idea-body { gap: 8px; }
  .idea-body p { font-size: 20px; }
  .idea-body p.idea-mail { margin-top: 8px; font-size: 16px; white-space: normal; }
  .doc .ideas-list > li { grid-template-columns: 1fr; gap: 10px; }
  .idea-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 16px; }
  .rail { display: none; }
  .toc { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .toc > summary {
    list-style: none; cursor: pointer; display: block; position: relative;
    padding: 14px 32px 14px 0; font-family: var(--display); font-style: italic; font-weight: 900;
    font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3);
  }
  .toc > summary::-webkit-details-marker { display: none; }
  .toc .pm { position: absolute; right: 0; top: 12px; color: var(--yellow); font-family: var(--sans); font-style: normal; font-size: 19px; }
  .toc .pm::before { content: "+"; }
  .toc[open] .pm::before { content: "\2212"; }
  .toc ul { padding-bottom: 10px; }
  .doc h1 { font-size: 40px; }
  .doc .lead { font-size: 18px; }
  .doc section { padding: 22px 0; }
  .doc section h2 { font-size: 24px; }
  .doc p, .doc li { font-size: 17px; }
  .stuck, .doc .stuck { flex-direction: column; align-items: flex-start; padding: 20px; border-radius: 18px; gap: 16px; }
  .notfound .wrap { padding-block: 32px 56px; }
  .nf { padding: 40px 20px; border-radius: 22px; }
  .nf-sun { width: 180px; height: 90px; }
  .nf-arc { width: 150px; height: 75px; }
  .nf h1 { font-size: 34px; }
  .nf-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .nf-actions a { justify-content: center; }
}

/* Very narrow phones (320 px) */
@media (max-width: 359px) {
  .punches li { white-space: normal; }
  .badges { grid-template-columns: 1fr; }
  .hero-art .arc { width: 250px; height: 125px; }
}
