/* ─────────────────────────────────────────────────────────────────────────────
   Remsy marketing page.

   The visual system is lifted from the App Store screenshot deck, so the page
   and the store listing read as one thing: Figtree-weight headings at -.042em,
   the hand-drawn squiggle rule, the gradient phone bezel, pill controls, and
   the light/dark band rhythm.

   NO EXTERNAL REQUESTS. Fonts are the system stack, not a Google Fonts <link>.
   Hotlinking fonts.googleapis.com sends every visitor's IP to Google, which a
   German company serving an Impressum should not do (LG Muenchen I, 3 O 17493/20).
   "Figtree" leads the stack anyway: drop a self-hosted @font-face in and the
   whole page picks it up with no other edit.

   The phone screens are drawn in HTML using the app's real palette values from
   src/palettes.js, so nothing here can go stale against a screenshot.
   ────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --sans: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  /* Light band */
  --l-ink: #11161c;
  --l-body: #5f6a76;
  --l-eyebrow: #93a0ad;
  --l-rule: #9aa7b4;
  --l-chip: #e6e9ec;

  /* Dark band */
  --d-ink: #f4f7f9;
  --d-body: #93a3b1;
  --d-eyebrow: #7c8d9c;
  --d-rule: #66798a;

  --bezel: linear-gradient(155deg, #4d555d, #20262c 28%, #0d1013 62%, #39414a);
  --bezel-dark: linear-gradient(155deg, #454e57, #1b2128 30%, #0a0d10 64%, #2f3740);
  --lift: 0 70px 110px -34px rgba(20,28,38,.44), 0 10px 26px rgba(20,28,38,.10);
  --lift-dark: 0 70px 110px -34px rgba(0,0,0,.72), 0 10px 26px rgba(0,0,0,.4);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--l-ink);
  background: #eef0f3;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Bands ─────────────────────────────────────────────────────────────────── */
.band { position: relative; overflow: hidden; padding: clamp(4.5rem, 11vw, 8.5rem) var(--pad); }
.band > .wrap { position: relative; max-width: var(--wrap); margin: 0 auto; }

.band.light {
  background: radial-gradient(125% 78% at 14% -12%, #ffffff 0%, #f1f3f5 42%, #e1e5ea 100%);
  color: var(--l-ink);
}
.band.light::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120%;
  background: radial-gradient(46% 34% at 88% 20%, rgba(170,202,221,.55), rgba(170,202,221,0) 72%);
  pointer-events: none;
}
.band.light.flip::before { background: radial-gradient(46% 34% at 12% 20%, rgba(170,202,221,.5), rgba(170,202,221,0) 72%); }

.band.dark {
  background: radial-gradient(125% 76% at 12% -12%, #1d242c 0%, #10161c 40%, #05080b 100%);
  color: var(--d-ink);
}
.band.dark::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120%;
  background: radial-gradient(52% 34% at 84% 22%, rgba(113,132,148,.40), rgba(113,132,148,0) 72%);
  pointer-events: none;
}
.band.dark.flip::before { background: radial-gradient(50% 32% at 16% 22%, rgba(113,132,148,.34), rgba(113,132,148,0) 72%); }

/* ── Type ──────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--l-eyebrow); margin: 0 0 1.1rem;
}
.dark .eyebrow { color: var(--d-eyebrow); }

h1, h2 {
  font-weight: 800; letter-spacing: -.042em; line-height: 1.0;
  margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }

.lead {
  margin: 1.6rem 0 0; max-width: 34ch;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem); line-height: 1.42; font-weight: 400;
  color: var(--l-body); text-wrap: pretty;
}
.dark .lead { color: var(--d-body); }
.lead.wide { max-width: 46ch; }

/* The deck's hand-drawn rule */
.squiggle { margin: 1.9rem 0 0; height: 14px; width: min(320px, 70%); color: var(--l-rule); }
.dark .squiggle { color: var(--d-rule); }
.squiggle svg { width: 100%; height: 100%; }

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.split {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split.rev > *:first-child { order: 2; }
}

/* ── Pills and buttons ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  border-radius: 999px; padding: .8rem 1.4rem;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  border: 2px solid transparent;
}
.pill.solid { background: rgba(203,220,232,.94); color: #0f151b; box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); }
.pill.ghost { background: rgba(255,255,255,.10); border-color: rgba(154,175,193,.28); color: #dbe6ee; }
.pill.dashed { border: 2px dashed rgba(178,203,220,.6); background: rgba(113,132,148,.16); color: #e2ecf2; }
.light .pill.chip { background: var(--l-chip); color: var(--l-ink); font-weight: 700; font-size: .92rem; padding: .5rem 1rem; }

.cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  border-radius: 999px; padding: 1rem 1.75rem;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn.primary { background: #0f1318; color: #fff; box-shadow: 0 40px 70px -30px rgba(20,28,38,.6); }
.btn.quiet { border-color: rgba(17,22,28,.16); color: var(--l-ink); }
.btn.quiet:hover { border-color: rgba(17,22,28,.34); }
.note { margin: 1rem 0 0; font-size: .92rem; color: var(--l-body); }

/* ── White card (the deck's 56px-radius panel) ─────────────────────────────── */
.panel {
  background: #fff; border-radius: 28px; padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--lift);
}
.dark .panel {
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  border: 2px solid rgba(154,175,193,.22); box-shadow: var(--lift-dark);
}

/* ── Phone ─────────────────────────────────────────────────────────────────── */
.phone {
  width: min(320px, 78vw); margin: 0 auto;
  border-radius: 46px; padding: 6px;
  background: var(--bezel);
  box-shadow: 0 80px 130px -34px rgba(14,20,28,.42), 0 14px 34px rgba(14,20,28,.18);
}
.dark .phone { background: var(--bezel-dark); box-shadow: 0 80px 130px -34px rgba(0,0,0,.75); }
.phone.tilt { transform: rotate(3deg); }
.screen {
  position: relative; border-radius: 40px; overflow: hidden;
  background: var(--p-bg); color: var(--p-ink);
  padding: 0 14px 20px;
  font-size: 13px; line-height: 1.35;
  transition: background .45s ease, color .45s ease;
}
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 42px; padding: 0 8px 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.notch { width: 78px; height: 22px; border-radius: 12px; background: #000; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; opacity: .9; }
.bars i { width: 3px; border-radius: 1px; background: currentColor; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; }
.bars i:nth-child(3) { height: 8px; } .bars i:nth-child(4) { height: 10px; }

.appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 14px; }
.wordmark { font-weight: 200; font-size: 21px; letter-spacing: .5px; opacity: .95; }
.nowbadge {
  font-size: 10px; font-weight: 600; padding: 4px 10px;
  border-radius: 12px 7px 13px 8px;
  background: var(--p-card); border: 1px solid var(--p-bd); color: var(--p-sub);
}
.sect { font-size: 9px; font-weight: 700; letter-spacing: .18em; color: var(--p-sub); margin: 4px 2px 7px; }

.ncard {
  border-radius: 20px 12px 23px 14px;
  background: var(--p-card); border: 1px solid var(--p-bd);
  padding: 11px 13px; margin-bottom: 9px;
  transition: background .45s ease, border-color .45s ease;
}
.ncard.big { border-radius: 26px 15px 30px 18px; padding: 15px 15px 13px; }
.ncard .t { font-weight: 500; font-size: 13px; letter-spacing: -.01em; }
.ncard.big .t { font-size: 16px; line-height: 1.3; }
.ncard .m { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ncard .c {
  font-size: 9.5px; font-weight: 600; padding: 3.5px 8px; border-radius: 999px;
  background: var(--p-tint); color: var(--p-sub);
}
.ncard .c.on { color: var(--p-ink); }
.ncard.done .t { opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }
.ring { border-color: var(--p-acc); box-shadow: 0 0 0 1px var(--p-acc); }

/* ── Day strip ─────────────────────────────────────────────────────────────── */
/* 3.5rem, not 2: the marker's label pill hangs 44px above the rail and was
   sitting on the bottom edge of the sentence panel. */
.strip { margin-top: 3.5rem; }
.rail {
  position: relative; display: flex; height: 76px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(17,22,28,.10); background: #fff;
}
.dark .rail { border-color: rgba(154,175,193,.22); background: rgba(255,255,255,.05); }
.rail .w {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px 10px; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--l-body);
  border-right: 1px solid rgba(17,22,28,.07);
}
.dark .rail .w { color: var(--d-body); border-right-color: rgba(154,175,193,.16); }
.rail .w:last-child { border-right: 0; }
.rail .w span { font-size: .62rem; font-weight: 500; letter-spacing: .02em; opacity: .7; text-transform: none; }
.rail .w.morning   { background: rgba(170,202,221,.13); flex: 5; }
.rail .w.afternoon { background: rgba(170,202,221,.20); flex: 6; }
.rail .w.evening   { background: rgba(113,132,148,.26); flex: 3; }
.rail .w.night     { background: rgba(30,40,52,.30); flex: 3; }
.dark .rail .w.night { background: rgba(0,0,0,.34); }

.marker {
  position: absolute; top: -14px; bottom: -14px; width: 2px;
  background: #11161c; border-radius: 2px;
  transition: left .55s cubic-bezier(.32,.72,0,1);
}
.dark .marker { background: #f4f7f9; }
.marker b {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  font-size: .78rem; font-weight: 800; letter-spacing: -.01em;
  background: #11161c; color: #fff; padding: .25rem .6rem; border-radius: 999px;
  white-space: nowrap;
}
.dark .marker b { background: #f4f7f9; color: #0f151b; }
.striprow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* Evening and Night are only 3/17ths of the rail each, so their hour ranges are
   the first thing to collide on a phone. Drop the sub-line rather than let the
   part names clip; the marker still names the minute. */
@media (max-width: 640px) {
  .rail { height: 62px; }
  .rail .w { font-size: .58rem; letter-spacing: .04em; padding: 6px; }
  .rail .w span { display: none; }
}

/* ── Grids ─────────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 3rem; }
.cards .panel p { margin: 0; font-size: .96rem; color: var(--l-body); }
.dark .cards .panel p { color: var(--d-body); }

/* ── Palettes ──────────────────────────────────────────────────────────────────
   Two rows, 10 dark then 9 light. That is THEME_CATEGORIES in src/palettes.js,
   and it is also the only arrangement of 19 that does not leave an orphan on a
   wrapped row. The tiles flex to fill, so both rows end flush. */
.swatches { margin-top: 1.8rem; }
.swgroup + .swgroup { margin-top: 1rem; }
.swlabel {
  font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--l-eyebrow); margin: 0 0 .45rem;
}
.swrow { display: flex; gap: .4rem; }
.sw {
  position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1;
  border-radius: clamp(9px, 2.2vw, 15px);
  border: 1px solid rgba(17,22,28,.10); overflow: hidden; cursor: pointer;
  padding: 0; box-shadow: 0 12px 24px -12px rgba(20,28,38,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sw:hover { transform: translateY(-3px); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #11161c, 0 12px 24px -12px rgba(20,28,38,.4); }
.sw i { position: absolute; right: -14%; top: -14%; width: 66%; height: 66%; border-radius: 26%; }
.sw u { position: absolute; left: 15%; bottom: 15%; width: 26%; height: 26%; border-radius: 50%; }
.swname { margin-top: 1rem; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.swname span { font-weight: 500; color: var(--l-body); }

/* ── Plans ─────────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 3rem; }
.plan ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 1.6rem; margin: .55rem 0; font-size: .98rem; color: var(--l-body); }
.dark .plan li { color: var(--d-body); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: currentColor; opacity: .45;
}
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: .95rem; font-weight: 500; letter-spacing: 0; opacity: .6; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer { background: #05080b; color: #93a3b1; padding: clamp(3rem, 7vw, 5rem) var(--pad); }
footer .wrap { max-width: var(--wrap); margin: 0 auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.6rem 0 2rem; }
footer a { color: #cbd8e2; text-decoration: none; border-bottom: 1px solid rgba(203,216,226,.25); padding-bottom: 2px; }
footer a:hover { color: #fff; border-bottom-color: #fff; }
footer .fine { font-size: .88rem; opacity: .7; margin: 0; }
.brandrow { display: flex; align-items: center; gap: .8rem; }
.brandrow img { width: 40px; height: 40px; }
.brandrow .n { font-weight: 200; font-size: 1.7rem; letter-spacing: .5px; color: #e6edf2; }

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

/* ─────────────────────────────────────────────────────────────────────────────
   DOCUMENT PAGES — privacy, terms, support, impressum.

   Same family as the landing page, calibrated down: these are read, not
   scanned. The display face, the tracking, the squiggle, the panel and the
   footer all carry over; what changes is scale and measure. A legal page set
   at hero size is a poster nobody finishes.

   The link colour is the one from the App Store screenshot deck's own helmet
   (#3f5a6d, hover #1e2c37), which is the blue-grey the bloom is already made
   of, so a link reads as part of the page rather than as a browser default.
   ────────────────────────────────────────────────────────────────────────── */

.pagehead { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.pagehead .wrap { max-width: 780px; }

/* The brand row is a link home on these pages, and a plain row on the landing
   page. Strip the anchor styling rather than give it a second class. */
a.brandrow { text-decoration: none; color: inherit; }
a.brandrow:hover .n { color: var(--l-ink); }
.brandrow .n { transition: color .18s ease; }

.pagehead h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.stamp { margin: 1.1rem 0 0; color: var(--l-body); font-size: .98rem; }

.doc { background: #eef0f3; padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(4rem, 9vw, 6rem); }
.doc .wrap { max-width: 780px; margin: 0 auto; }

.prose { font-size: 1.05rem; line-height: 1.72; color: #2b3138; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.25; color: var(--l-ink); margin: 2.8rem 0 .75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1rem; max-width: 68ch; }
.prose ul { margin: 0 0 1.1rem; padding-left: 0; list-style: none; max-width: 68ch; }
.prose li { position: relative; padding-left: 1.5rem; margin: .6rem 0; }
.prose li::before {
  content: ""; position: absolute; left: .15rem; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: #9aa7b4;
}
.prose strong { font-weight: 700; color: var(--l-ink); }
.prose a { color: #3f5a6d; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: #1e2c37; }

/* The one callout the legal pages use: the plain-language summary at the top of
   the privacy policy. Same white panel as the landing page's cards. */
.callout {
  background: #fff; border-radius: 20px; padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--lift); margin: 0 0 2.5rem;
}
.callout p { margin: 0; max-width: none; }

/* Support FAQ. A question is a control, so it gets the panel treatment and a
   marker that answers which way it is going. */
.faq { display: flex; flex-direction: column; gap: .7rem; margin: 0 0 2.5rem; }
.faq details {
  background: #fff; border-radius: 18px; box-shadow: 0 24px 44px -30px rgba(20,28,38,.45);
  border: 1px solid rgba(17,22,28,.07); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.35rem;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; color: var(--l-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid #9aa7b4; border-bottom: 2px solid #9aa7b4;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details[open] summary { padding-bottom: .35rem; }
.faq .body { padding: 0 1.35rem 1.2rem; }
.faq .body p { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.65; }
.faq .body p:last-child { margin-bottom: 0; }

.contactcard {
  background: #0f1318; color: #e6edf2; border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 1.75rem); margin: 0 0 2.5rem;
  box-shadow: 0 40px 70px -34px rgba(20,28,38,.55);
}
.contactcard p { margin: 0; max-width: none; }
.contactcard a { color: #cbd8e2; }
.contactcard a:hover { color: #fff; }

:where(a, button, summary):focus-visible {
  outline: 2px solid #3f5a6d; outline-offset: 3px; border-radius: 6px;
}
