/* Rethought website. Colours, spacing and type come from tokens.css (the app's design system).
   Text colours used here must appear in the contrast pairs in scripts/test.mjs. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-opsz-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/newsreader-latin-ext-opsz-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rt-bg);
  color: var(--rt-ink);
  font-family: var(--rt-font-sans);
  font-size: 1.0625rem; /* 17px, the app's body size */
  line-height: 1.45;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--rt-font-serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 500; }
p { margin: 0 0 1em; }

a { color: var(--rt-accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: var(--rt-size-focus-ring) solid var(--rt-accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--rt-surface); color: var(--rt-ink);
  padding: 0.75rem 1rem; border-radius: var(--rt-radius-small); z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(44rem, 100% - 2.5rem); margin-inline: auto; }

/* Header and footer */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--rt-ink); text-decoration: none; font-family: var(--rt-font-serif); font-size: 1.5rem; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 0.55rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding-block: 0.6rem; color: var(--rt-ink2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rt-ink); text-decoration: underline; }
/* Short labels for narrow screens: "DE" for the language switch, "Soon" in the Android pill. The hidden
   twin is display: none, so screen readers read only one of them. */
.short { display: none; }
/* Narrow phones: logo, Support and the language switch on one row; Press stays in the footer. */
@media (max-width: 30rem) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav ul { flex-wrap: nowrap; gap: 0 1rem; }
  .site-nav .wide-only { display: none; }
  .site-nav .long, .android-pill .long { display: none; }
  .site-nav .short, .android-pill .short { display: inline; }
}

.site-footer { margin-top: 4rem; padding-block: 2.5rem; border-top: 1px solid var(--rt-separator); color: var(--rt-ink2); font-size: 0.9375rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0 0 1rem; padding: 0; }
.site-footer a { display: inline-block; padding-block: 0.6rem; color: var(--rt-ink2); }
.site-footer a:hover { color: var(--rt-ink); }
.site-footer small { display: block; color: var(--rt-ink2); font-size: 0.8125rem; margin-top: 0.5rem; }

/* Sections */
section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section-alt { background: var(--rt-surface2); }
.lead { font-size: 1.25rem; color: var(--rt-ink2); max-width: 38rem; }
.muted { color: var(--rt-ink2); }

/* App Store badge, the Android line under it, and the desktop QR code beside it */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
/* Android pill beside Apple's badge: a matched pair. --badge-h is the badge's height; the corner radius is
   Apple's (8.44 units on the badge's 40-unit height). Outlined and muted, so it still reads as "coming
   soon" and not as a store badge. Side by side when there is room, stacked on narrow phones. */
:root { --badge-h: 3.375rem; }
.get-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
/* Narrow phones: the pill takes the badge's exact width (Apple's artwork is 119.66 x 40), so when the two
   stack they line up as a pair. */
@media (max-width: 30rem) {
  .get-main { gap: 0 0.6rem; }
  .android-pill { width: calc(var(--badge-h) * 119.66407 / 40); padding: 0 0.6rem; gap: 0.45rem; font-size: 0.875rem; justify-content: center; }
}
.android-pill {
  box-sizing: border-box; height: var(--badge-h);
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0 1.1rem;
  border: 1px solid var(--rt-control-border); border-radius: calc(var(--badge-h) * 8.44 / 40);
  color: var(--rt-ink2); text-decoration: none; font-size: 0.9375rem; line-height: 1; white-space: nowrap;
}
.android-pill strong { color: var(--rt-ink); font-weight: 600; }
.android-pill:hover { border-color: var(--rt-accent); }
.android-pill:hover strong { text-decoration: underline; }
.android-pill .robot { display: block; width: 1.7rem; height: auto; flex: none; }
.icon { width: 1.25rem; height: 1.25rem; background: var(--rt-ink2); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon-phone { --icon: url('/img/icons/phone.svg'); }
/* Only where a QR code helps: a wide screen with a mouse. Phones and tablets get the badge alone. */
.qr { display: none; margin: 0; align-items: center; gap: 0.9rem; max-width: 19rem; }
@media (min-width: 52rem) and (hover: hover) and (pointer: fine) { .qr { display: flex; } }
.qr img, .qr-print img { flex: none; border-radius: var(--rt-radius-small); border: 1px solid var(--rt-separator); }
.qr figcaption { color: var(--rt-ink2); font-size: 0.9375rem; line-height: 1.35; }
.qr figcaption strong { display: block; color: var(--rt-ink); }

/* Hero */
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.5rem; }
.badge { display: inline-block; padding: 0.85rem 0; } /* Apple: clear space of at least 1/4 badge height */
.badge img { display: block; height: var(--badge-h); width: auto; }

/* App screenshots. Shown as plain pictures, not inside a drawn phone: Apple's marketing rules allow only
   Apple's own device bezels, with no shadows (RESEARCH.md 3.1). The thin line keeps the light screen
   apart from the light page. */
.phone { margin: 0; justify-self: center; }
.phone img {
  display: block; width: 17.5rem; max-width: 100%;
  border-radius: 1.75rem; border: 1px solid var(--rt-separator);
  background: var(--rt-surface);
}
.phone.small img { width: 14rem; border-radius: 1.4rem; }

/* How it works */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.3fr 1fr; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rt-accent-soft); color: var(--rt-ink);
  font-family: var(--rt-font-serif); font-size: 1.375rem;
}
.steps h3 { margin: 0.35rem 0 0.25rem; }
.steps p { margin: 0; color: var(--rt-ink2); }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 1.5rem; }
.card { background: var(--rt-surface); border-radius: var(--rt-radius-large); padding: 1.5rem; border: 1px solid var(--rt-separator); }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--rt-ink2); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 1.75rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--rt-accent); font-weight: 700; }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.5rem 0; }
.plan { background: var(--rt-surface); border: 1px solid var(--rt-control-border); border-radius: var(--rt-radius-large); padding: 1.5rem; }
.plan.featured { background: var(--rt-accent-soft); border: 2px solid var(--rt-accent); }
.plan h3 { font-family: var(--rt-font-sans); font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.25rem; }
.plan .price { font-size: 1.75rem; font-weight: 700; margin: 0; }
.plan .per { font-size: 1rem; font-weight: 400; color: var(--rt-ink2); }
.plan .note { color: var(--rt-ink2); margin: 0.35rem 0 0; font-size: 0.9375rem; }

/* Privacy */
.promise { background: var(--rt-surface); border-radius: var(--rt-radius-large); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--rt-separator); }
.promise p.big { font-family: var(--rt-font-serif); font-size: clamp(1.375rem, 3vw, 1.875rem); line-height: 1.3; }

/* "See it on iPhone": four screens in one row on a soft panel, the caption above each, App Store style.
   Plain rounded screenshots with a real status bar, no drawn device (Apple's rule, RESEARCH.md 3.1).
   On phones the row becomes a sideways scroll-snap carousel, so there is never an orphan row. */
.gallery-panel {
  background: var(--rt-surface2); border-radius: calc(var(--rt-radius-large) * 1.5);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
}
.gallery-panel > p { margin-bottom: 0; }
.shots {
  list-style: none; margin: 1.75rem 0 0; padding: 0 0 0.75rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 52rem) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(70%, 15rem);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem)); padding-inline: clamp(1.25rem, 4vw, 3rem);
    scroll-padding-inline: clamp(1.25rem, 4vw, 3rem);
  }
}
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; display: grid; gap: 0.9rem; }
.shots figcaption {
  font-family: var(--rt-font-serif); font-size: 1.1875rem; line-height: 1.25; color: var(--rt-ink);
  min-height: 2.5em; text-wrap: balance;
}
.shots img {
  display: block; width: 100%; height: auto; border-radius: 2rem;
  border: 1px solid var(--rt-separator); background: var(--rt-surface);
}

/* Seasonal pages */
.verse { margin: 0 0 2.5rem; max-width: 44rem; }
.verse p { font-family: var(--rt-font-serif); font-style: italic; font-size: clamp(1.375rem, 3vw, 1.875rem); line-height: 1.3; margin: 0 0 0.5rem; }
.verse footer { color: var(--rt-ink2); }

/* Press kit */
.press .get { margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; margin: 0 0 1.5rem; }
@media (min-width: 36rem) { .facts { grid-template-columns: 11rem 1fr; } }
.facts dt { font-weight: 600; }
.facts dd { margin: 0 0 0.75rem; color: var(--rt-ink2); }
.assets a { display: inline-block; padding-block: 0.3rem; }
.qr-print { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.5rem 0; }
.qr-print figcaption { color: var(--rt-ink2); max-width: 24rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rt-separator); }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.7rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
/* Our own disclosure marker, inside the content edge: a chevron that turns when the answer opens. */
.faq summary::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin: 0 0.25rem 0 0.15rem;
  border-right: 2px solid var(--rt-ink2); border-bottom: 2px solid var(--rt-ink2); transform: rotate(-45deg);
}
.faq details[open] summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .faq summary::before { transition: transform 0.15s; } }
.faq details p { margin: 0 0 1rem 1.65rem; color: var(--rt-ink2); }

/* Sign-up */
.signup-grid { display: grid; gap: 2rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .signup-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.signup-get { font-family: var(--rt-font-sans); font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.signup-card {
  display: grid; gap: 1rem; background: var(--rt-surface); border: 1px solid var(--rt-separator);
  border-radius: var(--rt-radius-large); padding: clamp(1.25rem, 4vw, 2rem);
}
.signup-card > label:not(.check) { font-weight: 600; }
.signup-card input[type="email"] {
  font: inherit; color: var(--rt-ink); background: var(--rt-surface);
  border: 1px solid var(--rt-control-border); border-radius: var(--rt-radius-field);
  min-height: var(--rt-size-field); padding: 0.6rem 0.9rem; width: 100%;
}
.interests { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.interests legend { font-weight: 600; padding: 0; margin-bottom: 0.5rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--rt-accent); }
.consent { color: var(--rt-ink2); }
.hint { color: var(--rt-ink2); font-size: 0.9375rem; margin: 0; }
.status-pill {
  justify-self: start; margin: 0; padding: 0.3rem 0.85rem; border-radius: var(--rt-radius-pill);
  background: var(--rt-accent-soft); color: var(--rt-ink); font-size: 0.9375rem; font-weight: 600;
}
.signup-card :disabled + span { color: var(--rt-ink2); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--rt-size-primary-button); padding: 0.75rem 1.75rem;
  border-radius: var(--rt-radius-pill); border: 0;
  background: var(--rt-accent); color: var(--rt-on-accent);
  font: var(--rt-type-button); font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  justify-self: start;
}
.button:hover { opacity: 0.9; }
.button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Long text (legal, support) */
.prose { padding-block: 1.5rem 0; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.625rem; margin-top: 2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.manage { background: var(--rt-surface); border: 1px solid var(--rt-separator); border-radius: var(--rt-radius-large); padding: 0.25rem clamp(1.25rem, 4vw, 2rem) 0.5rem; margin-top: 2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--rt-accent-soft); border-radius: var(--rt-radius-medium); color: var(--rt-ink); }
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 0.75rem; }
.prose a { overflow-wrap: anywhere; }
.qa { border-top: 1px solid var(--rt-separator); padding-top: 0.5rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
