/* Rasterwerk: the page is the app icon. Navy ground, a sheet of chart paper, the heart colours. */

@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-next-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-next-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("fonts/atkinson-next-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --navy: #1c2540;
  --navy-soft: #2a3556;
  --paper: #f8f3e7;
  --grid: #dcd4c3;
  --grid-strong: #a89e8a;
  --rose: #c24a6b;

  --bg: #ffffff;
  --bg-alt: #f3f1ee;
  --text: #1c2540;
  --muted: #55607a;
  --line: #dcdde3;
  --link: #a93a5a;
  --on-navy: #f8f3e7;
  --on-navy-muted: #c3c9da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c2540;
    --bg-alt: #232d4b;
    --text: #f4f1ea;
    --muted: #b9c0d2;
    --line: #38446a;
    --link: #ff9db4;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 "Atkinson Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.15em; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .bar :focus-visible { outline-color: var(--paper); }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; font-weight: 800; margin: 0; }

/* top bar, part of the navy ground */

.bar { background: var(--navy); color: var(--on-navy); }

.bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 7px; }

.bar nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }

.bar nav a { color: var(--on-navy-muted); text-decoration: none; padding-block: 4px; }
.bar nav a:hover { color: var(--on-navy); text-decoration: underline; }

/* hero: the sheet from the icon */

.hero { background: var(--navy); color: var(--on-navy); padding-block: 12px 72px; }

.sheet {
  background: var(--paper);
  border-radius: clamp(10px, 2.4vw, 26px);
  padding: clamp(10px, 2vw, 22px);
  box-shadow: 0 clamp(4px, 1vw, 10px) 0 #131a2e;
}

.art { width: 100%; height: auto; }
.art .thin { fill: none; stroke: var(--grid); stroke-width: 0.35; }
.art .thick { fill: none; stroke: var(--grid-strong); stroke-width: 0.6; }
.art .frame { fill: none; stroke: var(--grid-strong); stroke-width: 1; }
.art .ruler { fill: none; stroke: var(--rose); stroke-width: 1.3; }

/* once, on load: the ruler walks down the chart and the rows fill in behind it */
@media (prefers-reduced-motion: no-preference) {
  .art .row { animation: row-in 0.01s linear backwards; }
  .art .row:nth-child(1) { animation-delay: 0.05s; }
  .art .row:nth-child(2) { animation-delay: 0.1s; }
  .art .row:nth-child(3) { animation-delay: 0.15s; }
  .art .row:nth-child(4) { animation-delay: 0.2s; }
  .art .row:nth-child(5) { animation-delay: 0.25s; }
  .art .row:nth-child(6) { animation-delay: 0.3s; }
  .art .row:nth-child(7) { animation-delay: 0.35s; }
  .art .row:nth-child(8) { animation-delay: 0.4s; }
  .art .row:nth-child(9) { animation-delay: 0.45s; }
  .art .row:nth-child(10) { animation-delay: 0.5s; }
  .art .row:nth-child(11) { animation-delay: 0.55s; }
  .art .row:nth-child(12) { animation-delay: 0.6s; }
  .art .row:nth-child(13) { animation-delay: 0.65s; }
  .art .row:nth-child(14) { animation-delay: 0.7s; }
  .art .row:nth-child(15) { animation-delay: 0.75s; }
  .art .row:nth-child(16) { animation-delay: 0.8s; }
  .art .row:nth-child(17) { animation-delay: 0.85s; }
  .art .row:nth-child(18) { animation-delay: 0.9s; }
  .art .row:nth-child(19) { animation-delay: 0.95s; }
  .art .row:nth-child(20) { animation-delay: 1s; }
  .art .ruler { animation: ruler-walk 1.5s steps(30, end) backwards; }
}

/* starts pale, not empty: without a running timeline the wordmark still reads */
@keyframes row-in { from { opacity: 0.22; } }

@keyframes ruler-walk {
  0% { transform: translateY(-130px); }
  67% { transform: translateY(60px); }
  100% { transform: translateY(0); }
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px 56px;
  margin-top: 48px;
  align-items: start;
}

.intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); text-wrap: balance; }

.intro p { margin: 0; font-size: 1.1875rem; color: var(--on-navy-muted); }

.intro .status { margin-top: 16px; color: var(--on-navy); font-weight: 700; }

/* sections */

.block { padding-block: 72px; }
.block.alt { background: var(--bg-alt); }

.block h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); text-wrap: balance; }

/* features, set as the legend of a chart */

.legend-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: start;
}

.legend { list-style: none; margin: 28px 0 0; padding: 0; }

.legend li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 14px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.legend li:last-child { border-bottom: 1px solid var(--line); }

.chip {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid rgb(0 0 0 / 0.16);
}

.chip.k { background: #3b2a20; color: #fff; }
.chip.o { background: #f0953a; color: #2b1a08; }
.chip.g { background: #4fae85; color: #0e2a1e; }
.chip.p { background: #f2a6b4; color: #3a1320; }
.chip.y { background: #f4d55f; color: #3a2e05; }
.chip.r { background: #db2b3b; color: #fff; }
.chip.w { background: #f8f3e7; color: #1c2540; }

.legend h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

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

.devices { position: relative; padding-bottom: 8%; }

.devices .tablet {
  width: 84%;
  margin-left: auto;
  border-radius: 16px;
  border: 7px solid var(--navy);
}

.devices .phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
  border-radius: 18px;
  border: 5px solid var(--navy);
  box-shadow: 0 0 0 3px var(--bg);
}

/* price and privacy */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; }

.pair p { margin: 14px 0 0; max-width: 34rem; }

.slots { display: flex; gap: 8px; margin-bottom: 22px; }

.slot { width: 48px; height: 48px; border-radius: 9px; }
.slot.a { background: #f94a6c; }
.slot.b { background: #d8327f; }
.slot.c { background: #6f47bb; }

.slot.more {
  display: grid;
  place-items: center;
  border: 2px dashed var(--muted);
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.lockup { display: flex; gap: 8px; margin-bottom: 22px; }

.lockup svg { width: 48px; height: 48px; }

/* help */

.help-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 32px 56px; align-items: start; }

.help-layout > div > p { margin: 14px 0 0; color: var(--muted); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding-block: 14px;
  font-weight: 700;
  list-style-position: outside;
  margin-left: 1.1em;
}

.faq summary::marker { color: var(--rose); }

.faq details p { margin: 0 0 16px 1.1em; max-width: 40rem; }

/* legal pages */

.legal { padding-block: 48px 72px; }

.legal .wrap { width: min(100% - 32px, 680px); }

.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); }

.legal .date { color: var(--muted); margin: 10px 0 0; }

.legal h2 { font-size: 1.3rem; font-weight: 700; margin-top: 34px; letter-spacing: 0; }

.legal p, .legal ul { margin: 10px 0 0; }

.legal ul { padding-left: 1.2em; }

.legal li + li { margin-top: 6px; }

.legal address { font-style: normal; margin-top: 10px; }

/* footer */

.foot { background: var(--navy); color: var(--on-navy-muted); padding-block: 26px; }

.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }

.foot .copy { margin-right: auto; }

.foot a { color: var(--on-navy); }

@media (max-width: 820px) {
  .hero { padding-bottom: 52px; }
  .intro, .legend-layout, .pair, .help-layout { grid-template-columns: 1fr; }
  .intro { margin-top: 32px; }
  .block { padding-block: 52px; }
  .devices { max-width: 520px; }
}

@media (max-width: 420px) {
  .bar nav { gap: 12px; font-size: 0.95rem; }
  .brand span { display: none; }
}
