/*
 * The website's one stylesheet (redesigned 2026-09-29, D572). It borrows the app's language rather
 * than inventing one: the neutral tokens and the Moss accent are the values in packages/app/src/theme.ts
 * and design/handoff_screenshame_glass/README.md, the bar and the cards are the tinted glass, and the one
 * bold thing on the page is the app's own Home ring, drawn behind the hero's three phones. Everything
 * else stays quiet: the app's screens carry the page.
 *
 * No inline style is used anywhere on the site, because the content security policy in site.ts allows
 * styles from this origin only. A value that varies is therefore a class, never a style attribute.
 *
 * SYSTEM FONTS ON PURPOSE, and no web font: the app is set in the platform's own face (SF Pro on an
 * iPhone, Roboto on Android), so the site is too, and a face that is already on the device can neither
 * shift the layout when it arrives (the SEO playbook 4.4) nor be fetched from somebody else's server.
 *
 * Light and dark follow the device, as the app does. Every image carries its width and height, and the
 * fan reserves its box with aspect-ratio, so nothing moves when a picture arrives.
 */

:root {
  --bg: #f2f2f7;
  --bar: rgba(242, 242, 247, 0.72);
  --solid: #ffffff;
  --text: #000000;
  --muted: rgba(60, 60, 67, 0.66);
  --fill: rgba(118, 118, 128, 0.12);
  --hairline: rgba(0, 0, 0, 0.1);
  --shine: rgba(255, 255, 255, 0.85);
  --accent: #5cb270;
  --accent-ink: #418f54;
  --on-accent: #121210;
  --card: rgba(246, 251, 247, 0.78);
  --glow: rgba(92, 178, 112, 0.3);
  --glow-soft: rgba(92, 178, 112, 0.14);
  --ring-track: rgba(92, 178, 112, 0.16);
  --shadow: rgba(92, 178, 112, 0.35);
  --phone-shadow: rgba(20, 40, 28, 0.28);
  --badge: #000000;
  --on-badge: #ffffff;
  --radius: 24px;
  --measure: 42rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bar: rgba(0, 0, 0, 0.66);
    --solid: #1c1c1e;
    --text: #ffffff;
    --muted: rgba(235, 235, 245, 0.64);
    --fill: rgba(118, 118, 128, 0.24);
    --hairline: rgba(255, 255, 255, 0.12);
    --shine: rgba(255, 255, 255, 0.1);
    --accent-ink: #7fc990;
    --card: rgba(26, 32, 28, 0.78);
    --glow: rgba(92, 178, 112, 0.36);
    --glow-soft: rgba(92, 178, 112, 0.16);
    --ring-track: rgba(92, 178, 112, 0.2);
    --phone-shadow: rgba(0, 0, 0, 0.7);
    --badge: #ffffff;
    --on-badge: #000000;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--bg);
  /* The glow at the top of every app screen. */
  background-image: radial-gradient(ellipse 90% 520px at 50% -120px, var(--glow), transparent 72%);
  background-repeat: no-repeat;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.18em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -200vw;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--solid);
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ── the bar at the top: glass, as the app's navigation bar ─────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bar);
  border-bottom: 0.5px solid var(--hairline);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, #7fc990, #418f54);
  box-shadow: 0 6px 16px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tile img {
  width: 24px;
  height: 24px;
  display: block;
}

.tile.big {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.tile.big img {
  width: 48px;
  height: 48px;
}

.lang {
  font-size: 15px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--fill);
  text-decoration: none;
  color: var(--text);
}

/* ── the hero: the name, one sentence, and three phones on the Home ring ────────── */

.hero {
  padding: 48px 0 24px;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

/* A grid item's minimum width is its content, so one long German word would push the column, and the
   page, wider than a phone. Zero lets the text wrap instead. */
.hero-in > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 40px;
  }

  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  /* Sized so the one word never breaks: 6.6vw keeps "Screenshame" inside its column from a 320 px
     phone to the two-column desktop, where the column is half the page. */
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.claim {
  margin: 18px 0 0;
  max-width: 17em;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow-soft);
}

/* The fan. Its box is reserved by aspect-ratio, so the page does not move when the phones arrive. The
   phones stand INSIDE the ring, as the app's number stands inside it: the centre one 38% of the fan's
   width, the two behind it 29%, tilted away. Wider phones covered the ring completely (the first render
   of 2026-09-29), and the ring is the point. */
.fan {
  position: relative;
  width: min(100%, 600px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

/* THE HOME RING, the page's one bold thing: the app draws today's use against the limit as this arc
   (design/handoff_screenshame_glass, "A ring on Home"), and here it holds the phones. A conic gradient
   cut to a ring by a radial mask: no image and no markup. */
.fan::before {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 72%, var(--ring-track) 0);
  /* The stroke is a share of the radius, so it keeps the app's proportion at every width. */
  -webkit-mask: radial-gradient(farthest-side, transparent 91%, #000 91.5%);
  mask: radial-gradient(farthest-side, transparent 91%, #000 91.5%);
}

.fan::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.phone {
  display: block;
  height: auto;
  filter: drop-shadow(0 24px 36px var(--phone-shadow));
}

.fan .phone {
  position: absolute;
  z-index: 1;
}

.fan .fan-c {
  z-index: 2;
  left: 31%;
  top: 11%;
  width: 38%;
}

.fan .fan-l {
  left: 12%;
  top: 21%;
  width: 29%;
  transform: rotate(-8deg);
}

.fan .fan-r {
  right: 12%;
  top: 21%;
  width: 29%;
  transform: rotate(8deg);
}

/* ── the three screens, each beside its caption ─────────────────────────────────── */

/* Top and bottom only: the element is also a .wrap, whose side padding this must not undo. */
.features {
  display: grid;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 24px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.feature-pic .phone {
  width: min(260px, 64vw);
  margin: 0 auto;
}

.feature-copy h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.feature-copy p {
  margin: 0;
  max-width: 24rem;
  font-size: 1.2rem;
  color: var(--muted);
}

/* On a phone the caption comes first, as on a store panel: the headline, then the screen it names. */
@media (max-width: 759px) {
  .feature-copy {
    order: -1;
  }
}

@media (min-width: 760px) {
  .features {
    gap: 96px;
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  /* The phone stands at the edge next to its caption, so the two read as one thing. */
  .feature-pic .phone {
    width: min(290px, 80%);
    margin: 0 0 0 auto;
  }

  /* Every other row turns round, so the eye zig-zags down the page. */
  .feature:nth-child(even) .feature-pic {
    order: 2;
  }

  .feature:nth-child(even) .feature-pic .phone {
    margin: 0 auto 0 0;
  }

  .feature:nth-child(even) .feature-copy {
    justify-self: end;
  }
}

/* ── how it works: three steps, drawn as the app's board rows ───────────────────── */

.section {
  padding: 64px 0;
}

.section h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 0.5px solid var(--hairline);
  box-shadow: inset 1px 1px 0 var(--shine);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

.how-in {
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .how-in {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
  }
}

.steps {
  margin: 0;
  padding: 6px 20px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--hairline);
}

.steps li:last-child {
  border-bottom: 0;
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.steps h3 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* ── the stores ──────────────────────────────────────────────────────────────────── */

.get-in {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 32px 24px;
}

@media (min-width: 760px) {
  .get-in {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
  }
}

.get-in h2 {
  margin: 0;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Our own badge shape, never Apple's or Google's artwork. While STORE_LISTINGS in site.ts holds no
   address it is a plain element that says "Coming soon"; with one, the process serves it as a link. */
.store {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  color: var(--on-badge);
  background: var(--badge);
  text-decoration: none;
}

.store-icon {
  grid-row: span 3;
  display: block;
}

.store-os {
  font-size: 12px;
  line-height: 1.2;
}

.store-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.store-soon {
  justify-self: start;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
}

/* ── the legal, contact and share pages ──────────────────────────────────────────── */

.doc {
  max-width: calc(var(--measure) + 56px);
  margin: 32px auto 64px;
  padding: 36px 28px 40px;
}

@media (max-width: 560px) {
  .doc {
    margin-top: 16px;
    padding: 26px 18px 30px;
    border-radius: 20px;
  }
}

.doc h1 {
  overflow-wrap: break-word;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2rem, 5.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.doc .meta {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--muted);
}

.doc h2 {
  margin: 38px 0 10px;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  scroll-margin-top: 76px;
}

.doc h3 {
  margin: 24px 0 6px;
  font-size: 1.04rem;
}

.doc p,
.doc li {
  font-size: 16.5px;
}

.doc ul,
.doc ol {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 6px;
}

.doc address {
  font-style: normal;
  line-height: 1.7;
}

.note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15.5px;
  background: var(--glow-soft);
  border: 0.5px solid var(--hairline);
}

/* The privacy pair carries an empty note under its date (KNOWN-ISSUES.md entry 1350): a legal text is
   not edited to tidy it, so the empty box is not drawn. */
.note:empty {
  display: none;
}

.toc {
  margin: 0 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--fill);
  font-size: 15.5px;
}

.toc ol {
  margin: 8px 0 0;
  columns: 2;
  column-gap: 28px;
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 18px;
  border-radius: 14px;
  border: 0.5px solid var(--hairline);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 34rem;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 0.5px solid var(--hairline);
}

th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--fill);
}

tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 10px 24px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ── the foot ───────────────────────────────────────────────────────────────────── */

.foot {
  margin-top: 40px;
  padding: 28px 0 44px;
  border-top: 0.5px solid var(--hairline);
  font-size: 16px;
  color: var(--muted);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
}

/* At reading size and underlined, so the Impressum and the privacy policy stay easy to recognise and
   directly reachable, which section 5 DDG asks for. */
.foot a {
  color: var(--text);
  text-decoration: underline;
}

.foot p {
  margin: 0;
  font-size: 14px;
}
