:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --ink: #1a2030;
  --muted: #5d6578;
  --brand: #2b4bdf;
  --line: #e2e5eb;
  --pdf: #e2352c;
  --doc: #2673dd;
  --xls: #05a255;
  --ppt: #f66d37;
  --on-brand: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11141b;
    --surface: #1a1e28;
    --ink: #e7eaf1;
    --muted: #a0a8ba;
    --brand: #8a9dff;
    --line: #2a2f3c;
    --on-brand: #0e1330;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, .wordmark { font-family: "Bricolage Grotesque", -apple-system, sans-serif; letter-spacing: -0.02em; line-height: 1.1; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

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

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; gap: 12px; }
.wordmark { white-space: nowrap; font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark img { width: 34px; height: 34px; border-radius: 9px; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

/* Hero: headline left, three fanned sheets right — the same motif as the app. */
.hero { padding: 48px 0 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 20px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 40ch; margin: 0 0 28px; }
.hero p.fine { font-size: 15px; margin: 16px 0 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

.fan { position: relative; height: 340px; overflow: hidden; }
.sheet {
  position: absolute; width: 190px; height: 238px; bottom: 30px;
  border-radius: 18px; border: 3px solid currentColor; background: color-mix(in srgb, currentColor 9%, var(--surface));
  clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%);
  font: 800 34px "Bricolage Grotesque", sans-serif; display: flex; align-items: flex-end; padding: 0 0 28px 24px;
}
.sheet::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 30%; height: 24%;
  background: color-mix(in srgb, currentColor 60%, transparent);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.sheet.xls { color: var(--xls); left: 6%; transform: rotate(-10deg); }
.sheet.doc { color: var(--doc); left: 28%; bottom: 60px; z-index: 1; }
.sheet.pdf { color: var(--pdf); left: 50%; transform: rotate(10deg); z-index: 2; }

.fine { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* One gallery of real screens; scrolls sideways on phones. */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 8px 0 56px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.45; }

.formats { padding: 8px 20px 72px; max-width: 760px; }
.formats h2 { font-size: 30px; margin: 40px 0 14px; }
.table-scroll { overflow-x: auto; }
.formats table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.formats th, .formats td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.formats th { color: var(--muted); font-weight: 600; font-size: 14px; }
.formats td:first-child { font-weight: 700; white-space: nowrap; }
.formats td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: 1px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a { color: var(--muted); }
footer.site .copy { margin-right: auto; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); margin: 8px 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink); overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal .table-scroll { overflow-x: auto; }
.legal table { min-width: 520px; width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--muted); font-weight: 600; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.legal .summary p { margin: 0; }

@media (max-width: 760px) {
  header.site nav { gap: 14px; }
  header.site nav .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 8px; }
  .fan { height: 220px; order: -1; }
  .sheet { width: 34%; height: auto; aspect-ratio: 4 / 5; bottom: 20px; font-size: clamp(18px, 6vw, 26px); padding: 0 0 6% 10%; }
  .sheet.doc { bottom: 36px; left: 33%; }
  .sheet.pdf { left: 60%; }
  .gallery { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; }
  .gallery figure { scroll-snap-align: start; }
}

@media (max-width: 400px) {
  header.site nav { display: none; } /* footer carries the same links */
}
@media (max-width: 600px) {
  .formats table { min-width: 0; }
  .formats thead { display: none; }
  .formats tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .formats td { border: 0; padding: 0; }
  .formats td:nth-child(3) { grid-column: 1 / -1; margin-top: 4px; }
}
