/* Storagery: Swiss and lagom. One grid, one left edge, one accent, big numbers. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --rule: #1d1d1f;
  --accent: #0a7aff;
  --accent-soft: rgba(10, 122, 255, .1);
  --card: #ffffff;
  --page: min(1080px, calc(100% - 48px));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #161617;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: #38383a;
    --rule: #f5f5f7;
    --accent: #3b9bff;
    --accent-soft: rgba(59, 155, 255, .16);
    --card: #1c1c1e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }

/* Nav */
.nav { width: var(--page); margin: 0 auto; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { display: flex; gap: 22px; font-size: 14px; }
.nav .links a { color: var(--text-2); }
.nav .links a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Sections share the page edge and open with a heavy rule and a small label — the Swiss table head. */
.wrap { width: var(--page); margin: 0 auto; }
.rule { border-top: 2px solid var(--rule); padding-top: 10px; margin-top: 96px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 32px; }

/* Hero: flush left, huge type, the box number as the image. */
.hero { width: var(--page); margin: 0 auto; padding: 56px 0 0; display: grid; gap: 48px; align-items: end; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.2fr .8fr; padding-top: 96px; } }
.hero h1 { font-size: clamp(56px, 10vw, 120px); line-height: .95; letter-spacing: -0.045em; margin: 0 0 24px; font-weight: 800; }
.hero .lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--text-2); margin: 0; max-width: 560px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.badge { display: inline-block; padding: 13px 24px; border-radius: 980px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; }
.badge.soon { background: var(--bg-soft); color: var(--text-2); }
.cta .more { font-weight: 600; font-size: 15px; }

/* Phone screenshot */
.phone { border-radius: 44px; overflow: hidden; border: 10px solid #1d1d1f; box-shadow: 0 30px 60px rgba(0,0,0,.18); background: #f2f2f7; max-width: 340px; justify-self: center; }
@media (prefers-color-scheme: dark) { .phone { border-color: #2c2c2e; box-shadow: none; } }

/* The number strip: a row of box numbers, the app's identity. */
.strip { width: var(--page); margin: 72px auto 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--rule); }
.strip div { padding: 10px 0 0; font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.strip span { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-top: 8px; }

/* Numbered rows: 01, 02 … in a left column, text in the next. */
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .row { grid-template-columns: 120px 1fr 1fr; gap: 24px; } }
.row .n { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.row h3 { font-size: 21px; margin: 2px 0 0; letter-spacing: -0.01em; }
.row p { margin: 4px 0 0; color: var(--text-2); }
@media (min-width: 760px) { .row p { margin-top: 4px; } }
.row p + p { grid-column: 2; }
@media (max-width: 759px) { .row > p { grid-column: 2; } }

/* Six sorting boxes */
.six { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .six { grid-template-columns: repeat(6, 1fr); } }
/* Each decision card is tinted in its color, as the box rows are in the app
   (softer than the app rows: 14 % over the card in light mode, 24 % in dark), with the same square icon tile. */
.six div { --tint: 14%; background: color-mix(in srgb, var(--c) var(--tint), var(--card)); border-radius: 16px; padding: 16px; }
@media (prefers-color-scheme: dark) { .six div { --tint: 24%; } }
.six i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--c); color: #fff; font-style: normal; font-weight: 700; margin-bottom: 18px; }
.six b { display: block; font-size: 16px; }
.six small { color: var(--text-2); font-size: 13px; }

/* Lagom block */
.lagom { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lagom { grid-template-columns: 1fr 1fr; } }
.lagom h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 16px; }
.lagom p { font-size: 19px; color: var(--text-2); margin: 0 0 16px; }
.curve { width: 100%; height: auto; color: var(--text); }
.curve .band { fill: var(--accent); fill-opacity: .12; }
/* The lagom band, its label and the dot slowly breathe through the decision
   colors together (blue, teal, green, orange, pink and back) — the only thing
   that moves. Still, in the accent blue, with reduced motion. */
@media (prefers-color-scheme: dark) { .curve .band { fill-opacity: .24; } }
@media (prefers-reduced-motion: no-preference) {
  .curve .band, .curve .tag, .curve .dot { animation: lagom-hue 24s ease-in-out infinite; }
}
@keyframes lagom-hue {
  0%, 100% { fill: #0a7aff; }
  20% { fill: #30b0c7; }
  40% { fill: #34c759; }
  60% { fill: #ff9500; }
  80% { fill: #ff2d55; }
}}
.curve .dot, .curve .tag { fill: var(--accent); }
.curve text { font: 600 13px -apple-system, "Helvetica Neue", Arial, sans-serif; fill: var(--text-2); }
.curve .tag { font-weight: 700; }

/* Quiet facts */
.facts { display: grid; gap: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.facts div { border-top: 1px solid var(--line); padding: 16px 0; }
.facts b { display: block; font-size: 19px; margin-bottom: 4px; }
.facts p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Long-form pages (lagom, privacy, support) */
main.page { width: var(--page); margin: 0 auto; padding: 48px 0 24px; }
main.page article { max-width: 720px; }
main.page h1 { font-size: clamp(48px, 8vw, 88px); line-height: .98; letter-spacing: -0.045em; margin: 0 0 16px; font-weight: 800; }
main.page .sub { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; color: var(--text-2); margin: 0 0 8px; }
main.page h2 { font-size: 28px; letter-spacing: -0.02em; margin: 56px 0 12px; }
main.page .date { color: var(--text-2); font-size: 15px; }
.manifest { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; white-space: pre-line; }
.manifest em { font-style: normal; color: var(--text-2); }
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 16px 0; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 700; border-bottom: 2px solid var(--rule); }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td { border: 0; padding: 2px 0; }
  td[data-label]::before { content: attr(data-label) " · "; color: var(--text-2); font-weight: 600; }
}
.closing { font-size: 21px; font-weight: 700; margin-top: 48px; }

footer { width: var(--page); margin: 120px auto 0; padding: 20px 0 48px; border-top: 2px solid var(--rule); color: var(--text-2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Small screens: the nav wraps under the brand instead of colliding with it. */
.nav { flex-wrap: wrap; }
.nav .links { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 600px) {
  .nav .links { gap: 6px 16px; font-size: 14px; width: 100%; }
  .phone { max-width: 280px; border-radius: 38px; border-width: 8px; }
  .rule { margin-top: 72px; }
}
/* Grid children may shrink below their content, so nothing pushes the page wider than the screen. */
.hero > *, .row > *, .strip > *, .six > *, .lagom > *, .facts > * { min-width: 0; }
@media (max-width: 600px) {
  .strip { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .strip div { border-top: 0; }
  .strip span { overflow-wrap: anywhere; }
}
.hero .lead .gloss { font-style: italic; color: var(--text); }
/* The app screenshot follows the page: light shot in light mode, dark shot in dark mode. */
picture.phone { display: block; }
picture.phone img { width: 100%; height: auto; }
/* A box with a decision carries its color, as the row does in the app. */
.strip div { padding-top: 14px; }
.strip div.marked { box-shadow: inset 0 4px 0 var(--mark); }
.strip div.marked span { color: var(--mark); font-weight: 600; }

.closing a { color: inherit; text-decoration: none; }
.closing a:hover { text-decoration: underline; }
