/* Moth Identifier – shared styles for the app page and its privacy policy */
:root {
  --night: #0b1611;
  --night-2: #13241c;
  --lamp: #ffe2a3;
  --sheet: #eeeadb;
  --day: #f7f7f2;
  --card: #ffffff;
  --ink: #17251d;
  --forest: #193e32;
  --moss: #a8c4ad;
  --muted: #5d6c62;
  --line: #d8e2d9;
  --on-night: #edf1ec;
  --on-night-muted: #a9b8ad;
  --accent: #193e32;
  --tint: #e6efe7;
  --tint-2: #f1f4ef;
  --ink-2: #2a372f;
  --chip: rgba(255, 255, 255, .94);
  color-scheme: light;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --latin: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* dark theme: chosen in the header, or following the phone/computer setting */
:root[data-theme="dark"] {
  --day: #0e1813;
  --card: #15231c;
  --ink: #e6ede8;
  --ink-2: #ccd8cf;
  --forest: #24563f;
  --accent: #9fd4b5;
  --muted: #9aaca0;
  --line: #24372d;
  --tint: #1c3328;
  --tint-2: #1a2a22;
  --chip: rgba(14, 24, 19, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --day: #0e1813;
    --card: #15231c;
    --ink: #e6ede8;
    --ink-2: #ccd8cf;
    --forest: #24563f;
    --accent: #9fd4b5;
    --muted: #9aaca0;
    --line: #24372d;
    --tint: #1c3328;
    --tint-2: #1a2a22;
    --chip: rgba(14, 24, 19, .9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--day);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.day :focus-visible, .page-day :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.latin { font-family: var(--latin); font-style: italic; font-weight: 400; }
.label { font-family: var(--label); font-size: 12px; letter-spacing: .04em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; opacity: .7; letter-spacing: 0; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; opacity: .82; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.top .nav-hide { display: none; }
@media (min-width: 980px) { .top .nav-hide { display: inline; } }
.top nav { gap: 14px 22px; }
.top nav .btn { opacity: 1; }
.top nav .btn:hover { text-decoration: none; }

.theme-toggle {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(237, 241, 236, .22); background: rgba(237, 241, 236, .06);
  color: var(--on-night); cursor: pointer; padding: 0;
  transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: rgba(237, 241, 236, .14); border-color: rgba(237, 241, 236, .4); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lamp { background: var(--lamp); color: #1c1a12; box-shadow: 0 0 0 0 rgba(255, 226, 163, .0); }
.btn-lamp:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px rgba(255, 226, 163, .55); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { transform: translateY(-1px); background: #12302a; }
.btn-ghost { color: var(--on-night); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero (night) ---------- */
.night {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% 8%, rgba(255, 214, 140, .16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 78%, #2b3d33 92%, var(--day) 100%);
  color: var(--on-night);
}
.night .top { color: var(--on-night); }
.hero {
  display: grid; gap: 40px; align-items: center;
  padding-top: clamp(24px, 6vw, 64px); padding-bottom: clamp(96px, 14vw, 170px);
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--lamp); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px 2px rgba(255, 226, 163, .7); }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 7.2vw, 76px); line-height: .98; letter-spacing: -.035em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero h1 em { font-family: var(--latin); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--lamp); }
.hero .lede { font-size: clamp(17px, 2vw, 19px); color: var(--on-night-muted); max-width: 33em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fineprint { margin: 18px 0 0; color: var(--on-night-muted); }

/* the light sheet: the page's signature */
.sheet-scene { position: relative; }
.lamp {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
  width: 64px; height: 22px; border-radius: 0 0 40px 40px;
  background: #2a2a24; z-index: 2;
}
.lamp::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 26px; height: 12px; border-radius: 50%;
  background: #fff8e2; box-shadow: 0 0 30px 14px rgba(255, 232, 170, .75), 0 0 140px 70px rgba(255, 220, 150, .28);
}
.sheet {
  position: relative; aspect-ratio: 5 / 4; width: 100%;
  border-radius: 6px 6px 14px 14px;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 246, 214, .95), rgba(255, 246, 214, 0) 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.018) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.015) 0 2px, transparent 2px 6px),
    var(--sheet);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 -40px 60px -30px rgba(60, 60, 40, .25);
}
.sheet::before {
  /* the rope the sheet hangs from */
  content: ""; position: absolute; left: -4%; right: -4%; top: -3px; height: 3px;
  background: #4b4535; border-radius: 3px;
}
.pin {
  position: absolute; margin: 0;
  width: var(--w, 30%);
  left: var(--x); top: var(--y);
  transform: rotate(var(--r, 0deg));
  background: #fbfaf5; padding: 6px 6px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 22px -10px rgba(0,0,0,.45);
  animation: land .9s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--d, 0s);
}
.pin::before {
  content: ""; position: absolute; left: 50%; top: -5px; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f1d07a, #a3772a 70%);
  box-shadow: 0 2px 3px rgba(0,0,0,.35);
}
.pin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pin figcaption { padding: 5px 2px 6px; line-height: 1.25; color: #2b302b; }
.pin figcaption .latin { display: block; font-size: 13px; }
.pin figcaption .label { display: block; font-size: 9.5px; color: #6c716a; text-transform: uppercase; }
@keyframes land {
  from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--r, 0deg) - 6deg)) scale(.96); }
  to   { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
@media (max-width: 520px) {
  .pin { padding: 4px 4px 0; }
  .pin figcaption .latin { font-size: 11px; }
  .pin figcaption .label { display: none; }
}

/* ---------- day sections ---------- */
.day { background: var(--day); color: var(--ink); }
.section { padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(56px, 9vw, 104px); }
.section + .section { padding-top: 0; }
.kicker { color: var(--accent); margin: 0 0 12px; text-transform: uppercase; }
.h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0 0 16px; text-wrap: balance;
}
.intro { color: var(--muted); max-width: 38em; margin: 0; font-size: 18px; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px 22px;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--forest); color: #fff; font: 600 14px/1 var(--label);
  margin-bottom: 14px;
}
.steps h3 { font: 650 18px/1.25 var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* result demo */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: .95fr 1.05fr; gap: 64px; } }
.result {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px; box-shadow: 0 30px 60px -36px rgba(25, 62, 50, .45);
  max-width: 440px; width: 100%; justify-self: center;
}
.result-photo { position: relative; border-radius: 14px; overflow: hidden; }
.result-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.chip {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip); color: var(--accent);
  border-radius: 999px; padding: 6px 11px; font: 600 13px/1 var(--body);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f8a5b; }
.result-body { padding: 16px 8px 6px; }
.result-body h3 { font: 700 26px/1.1 var(--display); margin: 0 0 2px; letter-spacing: -.02em; }
.result-body .latin { font-size: 19px; color: var(--muted); }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 13.5px; color: var(--muted); }
.alts { border-top: 1px solid var(--line); padding-top: 12px; }
.alts .label { color: var(--muted); text-transform: uppercase; }
.alts ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.alts li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.alts img { width: 38px; height: 38px !important; border-radius: 8px; object-fit: cover; }
.alts li span.latin { color: var(--muted); font-size: 14px; margin-left: auto; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.ticks strong { display: block; font-weight: 600; }
.ticks span { color: var(--muted); font-size: 16px; }

/* features */
.features { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
}
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font: 650 19px/1.25 var(--display); margin: 2px 0 6px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* honest note */
.note {
  margin-top: 14px; border-radius: 18px; padding: 24px 26px;
  background: var(--forest); color: #e9f1ea;
  display: grid; gap: 6px;
}
.note h3 { font: 650 20px/1.25 var(--display); margin: 0; color: #fff; }
.note p { margin: 0; color: #c7d8cb; }

/* plans */
.plans { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.plan.pro { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan h3 { font: 700 24px/1.1 var(--display); margin: 0 0 4px; letter-spacing: -.02em; }
.plan .sub { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.plans-foot { color: var(--muted); font-size: 15px; margin: 16px 0 0; }

/* faq */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font: 600 18px/1.35 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--body); color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

/* closing cta */
.closing {
  border-radius: 26px; padding: clamp(32px, 6vw, 56px);
  background:
    radial-gradient(500px 260px at 85% 0%, rgba(255, 214, 140, .18), transparent 70%),
    var(--night-2);
  color: var(--on-night);
  border: 1px solid var(--line);
  display: grid; gap: 22px; align-items: center;
}
@media (min-width: 820px) { .closing { grid-template-columns: 1fr auto; } }
.closing h2 { font: 700 clamp(28px, 4vw, 40px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 8px; }
.closing p { margin: 0; color: var(--on-night-muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 40px; color: var(--muted); font-size: 14.5px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.credits { margin-top: 22px; }
.credits summary { cursor: pointer; color: var(--ink); }
.credits ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.credits a { color: var(--muted); text-decoration: underline; }

/* ---------- privacy page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.policy-hero { background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 214, 140, .16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.policy-head { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(110px, 13vw, 150px); max-width: 880px; margin-left: 0; }
@media (min-width: 1184px) { .policy-head { margin-left: calc((100vw - var(--wrap)) / 2); } }
.policy-head h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 18px; text-wrap: balance;
}
.policy-head h1 em { font-family: var(--latin); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--lamp); }
.policy-head .lede { color: var(--on-night-muted); font-size: clamp(17px, 2vw, 19px); margin: 0 0 22px; max-width: 34em; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-night-muted); margin: 0; }
@media (min-width: 560px) { .policy-meta span + span::before { content: "·"; margin-right: 22px; opacity: .6; } }

.short-grid {
  list-style: none; padding: 0; margin: -84px 0 0; position: relative; z-index: 2;
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .short-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .short-grid { grid-template-columns: repeat(5, 1fr); } }
.short-grid li {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .55);
}
.short-grid .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.short-grid .ico svg { width: 21px; height: 21px; }
.short-grid strong { font: 650 17px/1.25 var(--display); letter-spacing: -.01em; }
.short-grid li > span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 619px) {
  .short-grid li { grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .short-grid .ico { grid-row: span 2; margin-bottom: 0; }
}

.policy { display: grid; gap: 32px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 960px) { .policy { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.toc { display: none; }
@media (min-width: 960px) {
  .toc { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
}
.toc .label { color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35;
  transition: color .15s ease, border-color .15s ease;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.policy-body { max-width: 740px; min-width: 0; }
.policy-body section { scroll-margin-top: 24px; padding-bottom: 8px; }
.policy-body section + section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.policy-body h2 { font: 650 clamp(22px, 2.6vw, 26px)/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 10px; }
.policy-body p, .policy-body li { color: var(--ink-2); }
.policy-body p { margin: 0 0 14px; }
.policy-body p:last-child { margin-bottom: 0; }
.policy-body a { color: var(--accent); }
.policy-body code { font-family: var(--label); font-size: 14px; background: var(--tint); color: var(--ink); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

.data-list { display: grid; gap: 10px; margin: 18px 0 18px; }
.data-row { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.data-row h3 { display: flex; align-items: center; gap: 10px; font: 650 17px/1.3 var(--display); margin: 0 0 12px; letter-spacing: -.01em; }
.data-row h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.data-row dl { display: grid; gap: 10px; margin: 0; }
@media (min-width: 640px) { .data-row dl { grid-template-columns: 1fr 1.4fr; gap: 20px; } }
.data-row dt { font: 500 11.5px/1 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.data-row dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

.service-grid { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.policy-body .service {
  display: grid; gap: 4px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.policy-body .service:hover { border-color: var(--accent); transform: translateY(-1px); }
.service strong { font: 650 17px/1.25 var(--display); }
.service span { color: var(--muted); font-size: 15px; }
.service em { font-style: normal; color: var(--accent); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.service em svg { width: 15px; height: 15px; }

.tip { background: var(--tint-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; }

.keep-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.keep-list li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
}
.keep { font: 600 13px/1 var(--body); padding: 7px 11px; border-radius: 999px; background: var(--tint); color: var(--accent); white-space: nowrap; }
.keep-none { background: var(--forest); color: #fff; }
.keep-you { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.contact-card {
  margin-top: 44px; border-radius: 22px; padding: clamp(24px, 4vw, 36px);
  background: radial-gradient(420px 220px at 90% 0%, rgba(255, 214, 140, .18), transparent 70%), var(--night-2);
  border: 1px solid var(--line);
  color: var(--on-night); display: grid; gap: 18px; align-items: center;
}
@media (min-width: 720px) { .contact-card { grid-template-columns: 1fr auto; } }
.policy-body .contact-card h2 { color: var(--on-night); margin: 0 0 6px; }
.policy-body .contact-card p { color: var(--on-night-muted); }
.policy-body .contact-card .btn { color: #1c1a12; }

/* features: three across on wide screens */
.intro + .features { margin-top: 32px; }
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- support page ---------- */
.help-top { display: grid; gap: 12px; margin-top: -84px; position: relative; z-index: 2; }
@media (min-width: 820px) { .help-top { grid-template-columns: repeat(3, 1fr); } }
.help-card {
  display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .55);
  transition: border-color .15s ease, transform .15s ease;
}
.help-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.help-card .ico svg { width: 21px; height: 21px; }
.help-card strong { font: 650 18px/1.25 var(--display); letter-spacing: -.01em; }
.help-card > span:not(.ico) { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.help-card em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }
.help-card em svg { width: 15px; height: 15px; }
.help-mail { background: var(--forest); border-color: var(--forest); color: #fff; }
.help-mail .ico { background: rgba(255, 255, 255, .12); color: var(--lamp); }
.help-mail > span:not(.ico) { color: #cfe0d4; }
.help-mail em { color: var(--lamp); }
.help-mail:hover { border-color: var(--lamp); }

.steps-list { padding-left: 22px; display: grid; gap: 10px; margin: 0 0 14px; }
.steps-list li { padding-left: 4px; }
.steps-list strong { color: var(--ink); }
.policy-body .faq-flush { margin-top: 4px; }
.policy-body .faq-flush summary { font-size: 17px; padding: 16px 36px 16px 0; }
.policy-body .faq-flush details p { margin: 0 0 16px; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: radial-gradient(900px 600px at 50% 30%, rgba(255, 214, 140, .14), transparent 65%), linear-gradient(180deg, var(--night), var(--night-2)); }
.lost-body { display: grid; place-content: center; text-align: center; padding: 40px var(--gutter) 80px; gap: 14px; }
.lost-body .moth-mark { width: 72px; height: 72px; margin: 0 auto 8px; filter: drop-shadow(0 0 28px rgba(255, 226, 163, .45)); }
.lost-body h1 { font: 700 clamp(34px, 6vw, 56px)/1.02 var(--display); letter-spacing: -.03em; margin: 0; }
.lost-body h1 em { font-family: var(--latin); font-weight: 400; color: var(--lamp); }
.lost-body p { color: var(--on-night-muted); margin: 0 auto 10px; max-width: 30em; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; }

/* ---------- hero: perks + phone mockups ---------- */
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; color: var(--on-night-muted); font-size: 13px; }
.perks li::before { content: "+"; color: var(--lamp); margin-right: 8px; }

.phones { position: relative; height: 640px; max-width: 630px; width: 100%; justify-self: center; }
.lamp-glow {
  position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 140, .22), rgba(255, 214, 140, .06) 55%, transparent 72%);
  pointer-events: none;
}
.phone {
  position: absolute; width: 284px; aspect-ratio: 9 / 19.2;
  padding: 9px; border-radius: 46px; background: #08090a;
  box-shadow: 0 0 0 1.5px #2a2e2c, 0 50px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255,255,255,.04);
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}
.phone::before { /* camera punch-hole */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #050606; z-index: 3;
}
.phone-back { right: 0; top: 0; animation-delay: .1s; }
.phone-front { left: 0; top: 80px; animation-delay: .3s; z-index: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* the app screens, drawn with the app's own colours */
.screen {
  --a-bg: #f7f7f2; --a-card: #ffffff; --a-ink: #17251d; --a-muted: #758279; --a-line: #e3eae3; --a-forest: #193e32; --a-sage: #a8c4ad;
  height: 100%; border-radius: 37px; overflow: hidden; position: relative;
  background: var(--a-bg); color: var(--a-ink);
  font-family: var(--body); font-size: 11px; line-height: 1.35;
  display: flex; flex-direction: column; gap: 9px; padding: 0 14px 0;
}
.screen.app-dark { --a-bg: #0f1612; --a-card: #18221c; --a-ink: #e8eee9; --a-muted: #93a398; --a-line: #26332b; --a-forest: #234d3c; }
.screen svg { width: 16px; height: 16px; flex: none; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 0; font-weight: 600; font-size: 11px; }
.sb-r { display: flex; gap: 4px; align-items: center; }
.sb-r i { width: 12px; height: 8px; border-radius: 2px; background: currentColor; opacity: .85; }
.sb-r i:first-child { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sb-r b { width: 18px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .85; }
.a-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 0; }
.a-top strong { font: 700 15px/1.2 var(--display); letter-spacing: -.01em; }
.a-top-sub strong { font-size: 14px; }
.a-top svg { color: var(--a-muted); }

.a-hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--a-forest); color: #fff; min-height: 150px; }
.a-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.a-hero-text { position: relative; padding: 14px; display: grid; gap: 4px; background: linear-gradient(90deg, rgba(10, 30, 22, .9), rgba(10, 30, 22, .2)); min-height: 150px; align-content: end; }
.a-hero-text b { font: 700 16px/1.15 var(--display); max-width: 9em; }
.a-hero-text span { font-size: 10px; opacity: .85; max-width: 16em; }
.a-hero-text em { font-style: normal; justify-self: start; margin-top: 6px; background: #f7f7f2; color: #193e32; font-weight: 600; font-size: 10.5px; padding: 6px 11px; border-radius: 999px; }
.a-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-actions div { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 11px; display: grid; gap: 6px; font-weight: 600; }
.a-actions svg { color: var(--a-sage); width: 18px; height: 18px; }
.a-quiet { text-align: center; border: 1px solid var(--a-line); border-radius: 999px; padding: 7px; font-weight: 600; color: var(--a-muted); }
.a-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.a-row b { font: 700 13px/1.2 var(--display); }
.a-row span { color: var(--a-sage); font-weight: 600; font-size: 10px; }
.a-species { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.a-species figure { margin: 0; }
.a-species img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.a-species figcaption { font-size: 9px; margin-top: 4px; color: var(--a-muted); line-height: 1.2; }
.a-tabs { margin: auto -14px 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px 14px; border-top: 1px solid var(--a-line); background: var(--a-card); }
.a-tabs span { display: grid; justify-items: center; gap: 3px; font-size: 9px; color: var(--a-muted); }
.a-tabs svg { width: 17px; height: 17px; }
.a-tabs .on { color: var(--a-ink); font-weight: 600; }
.a-tabs .on svg { background: var(--a-forest); color: #fff; border-radius: 999px; width: 34px; height: 20px; padding: 2px 9px; }

.r-photo { position: relative; border-radius: 18px; overflow: hidden; }
.r-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.r-chip { position: absolute; left: 9px; top: 9px; background: rgba(255, 255, 255, .95); color: #193e32; font-weight: 600; font-size: 9.5px; padding: 5px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.r-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2f8a5b; }
.r-name { display: grid; gap: 1px; }
.r-name b { font: 700 20px/1.1 var(--display); letter-spacing: -.02em; }
.r-name span { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--a-muted); }
.r-name small { font-size: 9.5px; color: var(--a-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.r-label { font-weight: 700; font-size: 11.5px; margin-top: 2px; }
.r-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: -3px; }
.r-tags span { background: #e8efe8; color: #193e32; border-radius: 999px; padding: 4px 8px; font-size: 9.5px; font-weight: 500; }
.r-alts { display: grid; gap: 6px; margin-top: -2px; }
.r-alts div { display: flex; align-items: center; gap: 9px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 12px; padding: 6px; font-weight: 600; }
.r-alts img { width: 32px; height: 32px !important; border-radius: 8px; object-fit: cover; }
.r-alts small { display: block; font-weight: 400; color: var(--a-muted); font-size: 9px; }
.r-btns { margin-top: auto; padding-bottom: 18px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.r-btns span { text-align: center; padding: 9px; border-radius: 999px; border: 1px solid var(--a-line); font-weight: 600; }
.r-btns .fill { background: #193e32; border-color: #193e32; color: #fff; }

@media (max-width: 899px) {
  .phones { height: 600px; margin-top: 8px; }
}
@media (max-width: 560px) {
  .phones { height: 520px; }
  .phone { width: 236px; border-radius: 40px; padding: 8px; }
  .screen { border-radius: 32px; font-size: 9.5px; gap: 7px; padding: 0 11px; }
  .phone-back { right: -8px; }
  .phone-front { top: 64px; left: -4px; }
  .a-hero, .a-hero-text { min-height: 118px; }
  .a-hero-text b { font-size: 13.5px; }
  .r-name b { font-size: 17px; }
  .a-species figcaption { display: none; }
}

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