/* Dovecote: one centred page card with the dovecote on top. The icon accent comes from the app icon's roof. */
:root {
  --backdrop: #e7e9ee;
  --card: #ffffff;
  --card-deep: #f3f5f8;
  --ink: #16181d;
  --ink-soft: #5b616d;
  --ink-body: #31353d;
  --rule: #e1e4ea;
  --accent: #0a74e6;
  --accent-hover: #0864c8;
  --roof: #d9652a;
  --shadow: 0 1px 0 rgb(0 0 0 / 0.04), 0 30px 80px rgb(20 30 50 / 0.12);
  --lift: 0 0 0 1px rgb(0 0 0 / 0.06), 0 18px 40px rgb(20 40 70 / 0.16);
  --blob-blue: #d6e7f5;
  --blob-roof: #fbe1d2;
  --blob-timber: #f6ead2;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
/* Dark: set on <html> from the visitor's choice or the system (see the script in each page's head). */
:root[data-theme="dark"] {
    color-scheme: dark;
    --backdrop: #141518;
    --card: #23252b;
    --card-deep: #1b1c21;
    --ink: #f2f3f5;
    --ink-soft: #a8adb7;
    --rule: #33363e;
    --accent: #0a7cff;
    --accent-hover: #2a8dff;
    --roof: #f0a04b;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.05), 0 30px 80px rgb(0 0 0 / 0.5);
    --lift: 0 0 0 1px rgb(255 255 255 / 0.08), 0 18px 40px rgb(0 0 0 / 0.45);
    --blob-blue: #1d3550;
    --blob-roof: #43281c;
    --blob-timber: #3a3222;
    --ink-body: #d4d7dd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--backdrop); color: var(--ink); font: 18px/1.6 var(--font); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The page card. */
.page {
  width: min(1120px, 100% - 32px); margin: 16px auto; border-radius: 28px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
}

/* Top bar. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px 0; }
.wordmark { font: 700 30px/1 var(--font-display); letter-spacing: -0.025em; text-decoration: none; white-space: nowrap; }
.wordmark .for { font-weight: 500; font-size: 0.62em; letter-spacing: -0.01em; color: var(--ink-soft); }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a:not(.button) { padding: 8px 10px; text-decoration: none; font-size: 17px; border-radius: 8px; }
.top nav a:not(.button):hover { background: var(--card-deep); }

/* Theme toggle. */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 6px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--card-deep); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* The screenshot switch. */
.shot-switch { padding: 4px; border-radius: 12px; background: var(--card-deep); box-shadow: inset 0 0 0 1px var(--rule); gap: 2px; }
.shot-switch[hidden] { display: none; }
.shot-switch button {
  flex: 1; padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft);
  font: 500 15px/1.2 var(--font); cursor: pointer;
}
.shot-switch [aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 0 0 1px var(--rule); }

/* Buttons. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; border-radius: 12px;
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button.small { padding: 10px 16px; font-size: 17px; }
.button.big { padding: 18px 28px; font-size: 20px; border-radius: 16px; margin-top: 36px; }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); padding: 14px 22px; font-size: 18px; }
.button.ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Everything is centred. */
.hero, .band { text-align: center; }
.hero > p, .band > p { max-width: 36em; margin-inline: auto; }

/* Hero. */
.hero { padding: 40px 32px 32px; }
.cote { width: 180px; height: auto; display: block; margin: 8px auto 28px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.06; font-weight: 700; }
.lede { margin-top: 20px; font-size: 21px; color: var(--ink-soft); }
.lede + .lede { margin-top: 10px; }
.fine { margin-top: 18px; font-size: 16px; color: var(--ink-soft); }
.shot { margin: 56px auto 0; max-width: 1040px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule), 0 24px 60px rgb(10 20 40 / 0.18); }
[data-theme="dark"] .shot img { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 60px rgb(0 0 0 / 0.5); }
/* Each screenshot comes in both appearances; data-shots on <html> picks one. */
:root:not([data-shots="dark"]) .v-dark, [data-shots="dark"] .v-light { display: none !important; }
.shot-switch { display: inline-flex; margin-top: 20px; }

/* Sections. */
.band { padding: 88px 32px; }
.band.deep { background: var(--card-deep); }
.band h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; font-weight: 700; margin-bottom: 28px; }
.band > p { color: var(--ink-soft); }
.band > p + p { margin-top: 16px; }
.band .aside { color: var(--ink); font-weight: 600; margin-top: 24px; }

/* Prose sections: heading beside the text, which reads left-aligned in a comfortable column. */
.band.prose {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
  max-width: 1040px; margin-inline: auto; text-align: left; padding-inline: 48px;
}
.band.prose.deep { max-width: none; padding-inline: max(48px, calc((100% - 944px) / 2)); }
.band.prose h2 { margin: 0; }
.prose .text p { font-size: 20px; line-height: 1.65; color: var(--ink-body); max-width: 32em; }
.prose .text p + p { margin-top: 18px; }
.prose .text .aside { color: var(--ink); font-weight: 600; }
.prose .text .signature {
  /* Handwriting fonts that ship with macOS and iOS, then Windows; no web font needed. */
  margin-top: 24px; font: 700 44px/1 "Bradley Hand", "Segoe Script", "Ink Free", cursive;
  color: var(--ink); transform: rotate(-4deg); transform-origin: left center; display: inline-block;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px !important; }
.actions .button { padding: 14px 24px; font-size: 18px; }
.text-link { color: var(--accent); font-weight: 500; text-underline-offset: 4px; }

/* Support: copy beside a short, single choice that goes straight to checkout. */
.support-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 48px; border-radius: 24px; text-align: left;
  background: linear-gradient(160deg, var(--blob-roof), var(--blob-timber));
}
.support-copy h2 { margin-bottom: 20px; }
.support-copy p { font-size: 19px; line-height: 1.6; color: var(--ink-body); }
.support-copy p + p { margin-top: 14px; }
.give { padding: 28px; border-radius: 18px; background: var(--card); box-shadow: var(--lift); text-align: center; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amount-grid button {
  padding: 14px 0; border-radius: 12px; border: 0; background: var(--card); color: var(--ink); cursor: pointer;
  font: 600 18px/1.2 var(--font); box-shadow: inset 0 0 0 1.5px var(--rule);
}
.amount-grid button:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.amount-grid [aria-checked="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.give .go { width: 100%; margin-top: 18px; }
.give .fine { margin-top: 14px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Familiar by design: one row per feature, text beside a small composition of real interface pieces. */
.familiar h2 { margin-bottom: 8px; }
.row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 48px 0; text-align: left;
}
.row.flip { grid-template-columns: 1.15fr 1fr; }
.row.flip .copy { order: 2; }
.row h3 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; line-height: 1.12; }
.row .copy p { margin-top: 14px; font-size: 19px; color: var(--ink-soft); max-width: 26em; }

.art { position: relative; height: 380px; }
.blob {
  position: absolute; inset: 6% 4% 2% 8%; z-index: 0;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
}
.blob.blue { background: var(--blob-blue); }
.blob.roof { background: var(--blob-roof); border-radius: 58% 42% 40% 60% / 45% 58% 42% 55%; }
.blob.timber { background: var(--blob-timber); border-radius: 40% 60% 52% 48% / 58% 46% 54% 42%; }
.card { position: absolute; z-index: 1; display: block; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: var(--lift); }
.card img { display: block; width: 100%; height: auto; }

.art-gmail .rows { width: 100%; right: -4%; top: 14%; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); border-radius: 10px 0 0 10px; }
.art-gmail .labels { width: 32%; left: -4%; top: 44%; }
.art-accounts .accounts { width: 82%; right: 4%; top: 34%; }
.art-accounts .tabs { width: 78%; left: 2%; top: 12%; border-radius: 999px; }
.art-switch .tabs { width: 86%; left: 7%; top: 28%; border-radius: 999px; }
.keys { position: absolute; z-index: 1; left: 0; right: 0; top: 56%; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 17px; }
kbd {
  display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 10px;
  font: 500 21px/1 var(--font); color: var(--ink); background: var(--card);
  box-shadow: 0 0 0 1px var(--rule), 0 3px 0 var(--rule), 0 10px 20px rgb(20 30 50 / 0.1);
}
kbd.wide { min-width: 72px; font-size: 18px; }
.keys span { margin: 0 6px; }

.art-dock .menubar {
  position: absolute; z-index: 1; left: 8%; right: 8%; top: 16%; height: 34px; border-radius: 9px; padding: 0 14px;
  display: flex; align-items: center; gap: 18px; justify-content: flex-end;
  background: rgb(255 255 255 / 0.72); backdrop-filter: blur(10px); box-shadow: var(--lift); color: #1d1d1f; font-size: 14px; font-weight: 500;
}
.mb-dots { margin-right: auto; display: flex; gap: 14px; }
.mb-dots i { width: 34px; height: 7px; border-radius: 4px; background: rgb(0 0 0 / 0.14); }
.mb-item { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.mb-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.dock {
  position: absolute; z-index: 1; left: 50%; bottom: 14%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 14px; padding: 12px 16px; border-radius: 26px;
  background: rgb(255 255 255 / 0.55); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6), var(--lift);
}
.dock .tile { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(160deg, rgb(255 255 255 / 0.9), rgb(210 216 226 / 0.9)); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.dock .app { position: relative; width: 74px; height: 74px; display: grid; place-items: end center; }
.dock .app img { width: 74px; height: 74px; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.18)); }
.dock .app b {
  position: absolute; top: 0; right: 0; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
  display: grid; place-items: center; background: #ff3b30; color: #fff; font: 600 14px/1 var(--font); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}
.dock .app::after { content: ""; position: absolute; bottom: -8px; width: 5px; height: 5px; border-radius: 50%; background: rgb(0 0 0 / 0.45); }
[data-shots="dark"] {
  .art-dock .menubar { background: rgb(40 42 48 / 0.78); color: #f2f3f5; }
  .mb-dots i { background: rgb(255 255 255 / 0.2); }
  .dock { background: rgb(60 62 70 / 0.55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), var(--lift); }
  .dock .tile { background: linear-gradient(160deg, rgb(110 114 124 / 0.9), rgb(70 73 82 / 0.9)); }
  .dock .app::after { background: rgb(255 255 255 / 0.6); }
}

/* And so much more: short items, three across. */
.extras {
  list-style: none; margin: 24px auto 0; padding: 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; text-align: left;
}
.extras li { font-size: 17px; color: var(--ink-soft); padding-top: 18px; border-top: 2px solid var(--rule); }
.extras b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }


/* Last call. */
.last img { display: block; width: 72px; height: auto; margin: 0 auto 24px; }
.last h2 { margin-bottom: 14px; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px 32px 32px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft);
}

/* The privacy page. */
.doc { max-width: 720px; margin-inline: auto; padding: 40px 32px 88px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); font-weight: 700; text-align: center; margin-bottom: 36px; }
.doc > p:first-of-type { font-size: 20px; color: var(--ink); }
.doc h2 { font-size: 24px; font-weight: 600; margin-top: 40px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--roof); }

/* Medium screens. */
@media (max-width: 980px) {
  .extras { grid-template-columns: 1fr 1fr; }
  .support-card { grid-template-columns: 1fr; gap: 32px; }
}

.thanks { text-align: center; }
.thanks .cote { width: 120px; margin-bottom: 20px; }
.thanks p { max-width: 30em; margin-inline: auto; }
.thanks .actions { justify-content: center; }

/* Phones: the hero's own download button is just below, so the header keeps only the toggle. */
@media (max-width: 480px) {
  .top nav .button.small { display: none; }
}

/* Narrow screens. */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .page { width: calc(100% - 16px); margin: 8px auto; border-radius: 22px; }
  .top { padding: 20px 20px 0; }
  .wordmark { font-size: 27px; }
  .top nav a:not(.button) { display: none; }
  .hero { padding: 28px 20px 24px; }
  .cote { width: 132px; }
  .lede { font-size: 19px; }
  .button.big { width: 100%; max-width: 360px; padding: 16px 20px; font-size: 18px; }
  .shot { margin-top: 40px; }
  .shot img { border-radius: 8px; }
  .band { padding: 64px 20px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .row.flip .copy { order: 0; }
  .art { height: 260px; }
  kbd { min-width: 38px; height: 38px; font-size: 17px; padding: 0 9px; }
  kbd.wide { min-width: 56px; font-size: 15px; }
  .keys { gap: 5px; font-size: 15px; }
  .keys span { margin: 0 3px; }
  .dock { gap: 10px; padding: 10px 12px; }
  .dock .tile { width: 44px; height: 44px; border-radius: 11px; }
  .dock .app { width: 56px; height: 56px; }
  .dock .app img { width: 56px; height: 56px; }
  .extras { grid-template-columns: 1fr; gap: 22px; }
  .band.prose, .band.prose.deep { grid-template-columns: 1fr; gap: 20px; padding-inline: 20px; }
  .prose .text p { font-size: 18px; }
  .support-card { padding: 24px 20px; border-radius: 18px; }
  .give { padding: 20px 16px; }
  .theme-toggle { margin: 0; }
  .wordmark .for { font-size: 0.58em; }
  footer { padding: 24px 20px 28px; }
  .doc { padding: 28px 20px 64px; }
}
