/* Schubox website. Colours are the app's Lagoon tokens (PhotoScan/DesignSystem.swift),
   so the site and the app read as one thing. */

@font-face {
  /* Subset of the app's bundled Pacifico (SIL OFL 1.1) to the letters of the wordmark:
     6 KB instead of 329 KB, and no request to a font service. */
  font-family: "Pacifico";
  src: url("/fonts/pacifico-schubox.woff2") format("woff2");
  font-display: swap;
}

:root {
  --lagoon: #0E8FA8;        /* tintPrimary — the lid and heart */
  --lagoon-soft: #B7DDE5;   /* tintSecondary — the box */
  --lagoon-deep: #0A5A6B;   /* deep */
  --accent: #0E8FA8;        /* links */
  --subbrand: #6A8E9B;      /* PHOTO SCANNER */
  --charcoal: #3E4749;
  --ink: #101314;           /* textPrimary */
  --muted: #6E7679;         /* textSecondary */
  --faint: #8A9294;         /* textTertiary */
  --bg: #F6F7F7;            /* appSurface */
  --card: #FFFFFF;          /* cardSurface */
  --divider: #D3D8D9;       /* cardDivider */
  --hairline: #E7EBEB;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lagoon-soft: rgba(53, 201, 224, 0.26);
    --accent: #35C9E0;
    --subbrand: #9DB8C2;
    --charcoal: #C9CFD0;
    --ink: #F2F2F0;
    --muted: #9BA3A4;
    --faint: #7C8484;
    --bg: #141516;
    --card: #202223;
    --divider: #3A3E3F;
    --hairline: #2B2D2E;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

header.site { background: var(--card); border-bottom: 1px solid var(--hairline); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 13px; }

/* The app's WordmarkLockup: Schubox in Pacifico, PHOTO SCANNER letter-spaced beneath it,
   running from the S's shoulder to the x's arm rather than tail to tail. */
.lockup { display: flex; flex-direction: column; }
.lockup .word {
  font-family: "Pacifico", cursive; font-size: 34px; line-height: 1.05;
  color: var(--lagoon); padding-bottom: 2px;
}
.lockup .sub {
  font-size: 11px; font-weight: 500; letter-spacing: 0.29em; line-height: 1;
  color: var(--subbrand); padding-left: 0.2em; white-space: nowrap;
}

nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--lagoon); }

/* ---------- Shared pieces ---------- */

.card {
  background: var(--card); border-radius: 16px;
  border: 1px solid var(--hairline);
}

.button {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--lagoon-deep); color: #fff; font-weight: 600; text-decoration: none;
}
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--lagoon-soft); color: var(--ink); font-weight: 600;
}

/* "THREE EASY STEPS" between two hairlines, as on the welcome sheet. */
.ruled {
  display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--charcoal);
}
.home-section h2.ruled { font-size: 14px; letter-spacing: 0.28em; margin: 0 0 28px; }
.ruled::before, .ruled::after { content: ""; flex: 1; height: 1px; background: var(--divider); }

/* The step timeline: numbered circles joined by a line, the last one filled. */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px;
  background: var(--lagoon-soft);
}
.steps .num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--lagoon); color: var(--lagoon);
  display: grid; place-items: center; font-weight: 600; font-size: 19px;
}
.steps li:last-child .num { background: var(--lagoon); color: #fff; }
.steps .name { display: block; color: var(--lagoon); font-weight: 600; font-size: 20px; line-height: 1.3; margin-top: 2px; }
.steps .lines { display: block; color: var(--muted); font-size: 16px; line-height: 1.45; margin-top: 4px; }
.steps a { display: flex; gap: 14px; flex: 1; text-decoration: none; }
.steps a .chev { margin-left: auto; align-self: center; color: var(--faint); }

/* "Private by design" */
.privacy-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
}
.privacy-card svg { flex: none; width: 22px; height: 22px; color: var(--lagoon); margin-top: 1px; }
.privacy-card strong { display: block; font-size: 15px; }
.privacy-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Home ---------- */

.hero {
  display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start;
  padding: 64px 0 64px;
}
.hero > div:first-child { padding-top: 64px; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.hero-image {
  width: 100%; height: auto; display: block; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14, 143, 168, 0.18);
}

.home-section { padding: 16px 0 56px; }
.home-section h2 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.home-section > p.intro { color: var(--muted); margin: 0 0 28px; font-size: 18px; }

.steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.steps-row .step { padding: 22px; }
.steps-row .num {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--lagoon);
  color: var(--lagoon); display: grid; place-items: center; font-weight: 600; font-size: 19px;
  margin-bottom: 12px;
}
.steps-row .step:last-child .num { background: var(--lagoon); color: #fff; }
.steps-row h3 { margin: 0 0 4px; color: var(--lagoon); font-size: 20px; }
.steps-row p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.more { margin: 20px 0 0; font-weight: 600; }
.more a { text-decoration: none; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.features .card { padding: 24px; }
.features h3 { margin: 0 0 6px; font-size: 19px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.closing { text-align: center; padding: 48px 24px; margin-bottom: 64px; }
.closing h2 { font-size: 30px; margin: 0 0 8px; }
.closing p { color: var(--muted); margin: 0 0 24px; font-size: 18px; }
.closing .actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Text pages ---------- */

main.doc { padding: 48px 20px 72px; max-width: 720px; }
main.doc h1 { font-size: 36px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
main.doc .lede { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
main.doc .updated { color: var(--muted); margin: 0 0 32px; }
main.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.callout { background: var(--card); border-left: 4px solid var(--lagoon); border-radius: 8px; padding: 16px 20px; margin: 0 0 8px; }
.callout p { margin: 0; }

/* A chapter: its number and name, then its topics in one card. */
.chapter { margin-top: 40px; scroll-margin-top: 16px; }
.chapter-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; color: var(--lagoon); }
.chapter-head .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--lagoon); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.group-head { margin: 40px 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* A topic: name, a line saying what is in it, a chevron that turns when it opens. */
.topics { overflow: hidden; }
.topics details + details { border-top: 1px solid var(--divider); margin-left: 16px; }
.topics details + details > summary { padding-left: 0; }
.topics details + details > .body { padding-left: 0; }
.topics summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; scroll-margin-top: 16px;
}
.topics summary::-webkit-details-marker { display: none; }
.topics summary .t { flex: 1; }
.topics summary h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.topics summary .s { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.topics summary .chev { color: var(--faint); transition: transform 0.2s; flex: none; }
.topics details[open] > summary .chev { transform: rotate(90deg); }
.topics .body { padding: 0 16px 16px; }
.topics .body p { margin: 0 0 14px; }
.topics .body ul { margin: 0 0 14px; padding-left: 20px; }
.topics .body li { margin-bottom: 8px; }
.topics .body li::marker { color: var(--faint); }
.topics .body > :last-child { margin-bottom: 0; }

.help-card { padding: 18px 20px; margin-top: 12px; }
.help-card h3 { margin: 0 0 6px; font-size: 17px; }
.help-card p { margin: 0; }

.link-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); margin-top: 16px; }
.link-card span { flex: 1; }
.link-card strong { display: block; }
.link-card small { color: var(--muted); font-size: 15px; }
.link-card .chev { color: var(--faint); }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); }

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 36px 0 48px; gap: 32px; }
  .hero > div:first-child { padding-top: 0; }
  .hero h1 { font-size: 34px; }
  .hero .shot { max-width: 280px; margin: 0 auto; }
  .steps-row, .features { grid-template-columns: 1fr; }
  .home-section h2, .closing h2 { font-size: 26px; }
}

@media (max-width: 560px) {
  .brand img { width: 44px; height: 44px; border-radius: 10px; }
  .brand { gap: 10px; }
  .lockup .word { font-size: 28px; }
  .lockup .sub { font-size: 9px; }
  nav { width: 100%; gap: 22px; padding: 2px 0 2px 54px; }
}
