/* The app's Stationery palette, light and dark, following the device. */
:root {
  --ground: #FFFFFF;
  --ink: #1B1D1C;
  --ink-soft: #56605B;
  --ink-faint: #8E9993;
  --accent: #2E7A58;
  --rule: #CFE2D7;
  --bezel: #E4ECE7;
  --shadow: rgba(27, 29, 28, 0.18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif-jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1311;
    --ink: #E6EBE8;
    --ink-soft: #9FACA5;
    --ink-faint: #6B7872;
    --accent: #5DBB8C;
    --rule: #25312B;
    --bezel: #1B211E;
    --shadow: rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.jp { font-family: var(--serif-jp); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Header and footer */
.site-header { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.brand { font: 500 1.5rem var(--serif-jp); color: var(--ink); text-decoration: none; }
.site-header nav a, .site-footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; margin-left: 24px; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--rule); margin-top: 96px; padding: 28px 0 40px; color: var(--ink-faint); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer nav a { margin: 0 0 0 20px; }

/* An iPad screen: the screenshot in a thin bezel. */
.screen { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--rule);
          box-shadow: 0 0 0 8px var(--bezel), 0 30px 60px -30px var(--shadow); }

/* Hero: the copy beside the spread, which runs off the bottom of the window. */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; height: calc(100vh - 76px); min-height: 620px; max-height: 900px; overflow: hidden; }
.hero-copy { align-self: center; padding-bottom: 64px; }
.kicker { font: 500 1.375rem var(--serif-jp); color: var(--accent); letter-spacing: .12em; margin: 0 0 18px; }
h1 { font-size: 3rem; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 22px; }
.hero-copy p { color: var(--ink-soft); max-width: 30em; }
.facts { font-size: 1rem; margin: 26px 0 30px; }
.facts span { display: inline-block; white-space: nowrap; }
.facts span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ink-faint); }
.store-badge { display: inline-grid; place-items: center; width: 150px; height: 50px; border: 1px dashed var(--ink-faint);
               border-radius: 8px; color: var(--ink-faint); font-size: 0.875rem; text-decoration: none; }
.hero-shot { padding: 18px 10px 0; }
.hero-shot .screen { max-width: 560px; }

/* Sections */
section.wrap { padding-top: 112px; }
h2 { font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.lead { color: var(--ink-soft); max-width: 36em; margin: 0 0 40px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .screen { border-radius: 12px; box-shadow: 0 0 0 6px var(--bezel); margin-bottom: 22px; }
.steps h3 { font-size: 1.125rem; margin: 0 0 6px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px;
                    border-radius: 50%; background: var(--accent); color: var(--ground); font-size: 0.875rem; vertical-align: 1px; }
.steps p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

.sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.sources div { padding: 16px 0; border-top: 1px solid var(--rule); }
.sources dt { font-weight: 600; }
.sources dt small { font-weight: 500; color: var(--ink-faint); font-size: 0.8125rem; letter-spacing: .06em; margin-left: 8px; }
.sources dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 1rem; }

/* Text pages: privacy and support */
.page { max-width: 680px; padding-top: 40px; }
.page h1 { font-size: 2.5rem; }
.page h2 { font-size: 1.375rem; margin-top: 40px; }
.page .updated { color: var(--ink-faint); font-size: 1rem; margin-top: -8px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 8px; }

/* The support form. Netlify takes the submissions; nothing runs on the page. */
.contact { display: grid; gap: 6px; margin: 28px 0 8px; max-width: 30em; }
.contact label { font-weight: 600; margin-top: 14px; }
.contact input, .contact textarea {
  font: inherit; color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px;
}
.contact input:focus-visible, .contact textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.contact textarea { resize: vertical; }
.contact .hint { color: var(--ink-faint); font-size: 0.9375rem; }
.contact button {
  font: inherit; font-weight: 600; margin-top: 24px; justify-self: start;
  padding: 12px 28px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: var(--ground);
}
.contact button:hover { filter: brightness(1.08); }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-header nav a { margin-left: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; max-height: none; min-height: 0; gap: 8px; }
  .hero-copy { padding: 24px 0 0; }
  .hero-shot { padding: 18px 8px 0; }
  h1 { font-size: 2.25rem; }
  section.wrap { padding-top: 80px; }
  .sources { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps .screen { max-width: 320px; }
}
