/* notelet's website. No build step. The look is the icon's: cream notes on warm ink, one line
   marked with a yellow highlighter. Dark only. Fonts in fonts/ (SIL OFL): Newsreader for headings,
   Schibsted Grotesk for text, IBM Plex Mono for small labels. */

@font-face { font-family: "Newsreader"; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* the ink, and what's written on it */
  --bg: #15120f;
  --bg-2: #1b1714;
  --ink: #f3ede0;
  --muted: #b0a796;
  --faint: #847b6d;
  --rule: rgba(243, 237, 224, .1);
  --rule-strong: rgba(243, 237, 224, .2);
  --accent: #ffd12e;
  --accent-ink: #ffd12e;
  --marker: #ffd12e;
  --btn: #f3ede0;
  --btn-ink: #15120f;
  --card: #1f1b17;
  --card-2: #26211c;
  --card-edge: rgba(243, 237, 224, .08);
  --tint: rgba(243, 237, 224, .06);

  /* a note: cream paper, ink writing */
  --paper: #fffdf7;
  --paper-2: #f1e9d8;
  --paper-ink: #1d1a16;
  --paper-muted: #8a8172;
  --paper-rule: rgba(29, 26, 22, .12);

  /* the app, as drawn (apps/mobile/src/theme.ts), dark: the sync and locked-note scenes */
  --a-bg: #1e1e1e;
  --a-side: #25252b;
  --a-text: #ececec;
  --a-sec: #9a9a9a;
  --a-ter: #6c6c6c;
  --a-sep: #353537;
  --a-acc: #e8b923;
  --a-glass: #333336;
  --a-glass-edge: rgba(255, 255, 255, .06);
  --a-field: #3a3938;

  --shadow: 0 0 0 1px rgba(243, 237, 224, .06), 0 24px 60px -20px rgba(0, 0, 0, .8);
  --shadow-win: 0 0 0 1px rgba(243, 237, 224, .1), 0 30px 70px -20px rgba(0, 0, 0, .85), 0 70px 120px -50px rgba(0, 0, 0, .7);
  --shadow-soft: 0 0 0 1px rgba(243, 237, 224, .05), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --shadow-note: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 1px rgba(0, 0, 0, .25), 0 40px 80px -30px rgba(0, 0, 0, .85);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1100px 700px at 85% -12%, rgba(255, 209, 46, .08), transparent 70%), radial-gradient(900px 700px at -10% 30%, rgba(243, 237, 224, .025), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
code { font: .88em/1 var(--mono); padding: .14em .36em; border-radius: 6px; background: var(--tint); white-space: nowrap; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* the systems' logos (icons.svg#logo-…): solid shapes */
.logo { width: 18px; height: 18px; fill: currentColor; stroke: none; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }

.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, 1180px); } }
@media (min-width: 960px) {
  /* headline on the left, its support at the bottom right */
  .head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; }
  .head .sub { margin-top: 0; }
}

/* screenshots come in pairs: the dark one shows (the site is dark), unless a showcase picks light */
.only-light { display: none !important; }
:root [data-scheme="light"] .only-light { display: block !important; }
:root [data-scheme="light"] .only-dark { display: none !important; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-color: var(--rule); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; width: min(100% - 32px, 1180px); margin-inline: auto; }
@media (min-width: 720px) { .nav__inner { width: min(100% - 64px, 1180px); } }
.brand { display: flex; align-items: center; gap: 10px; font: 560 23px/1 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.01em; text-decoration: none; }
.brand__mark { flex: none; display: block; }
.nav__signin { font-size: 15px; color: var(--muted); text-decoration: none; padding: 0 6px; }
.nav__signin:hover { color: var(--ink); }
/* the community: Discord's mark, quiet beside Sign in and Download */
.nav__social { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--muted); transition: color .15s, background .15s; }
.nav__social:hover { color: var(--ink); background: var(--tint); }
.nav__social .logo { width: 20px; height: 20px; }
@media (max-width: 560px) { .nav__signin { display: none; } }
.brand__beta { padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.nav__links { display: flex; gap: 24px; margin-left: 12px; font-size: 15px; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 899px) { .nav__links { display: none; } }
@media (max-width: 400px) { .hide-sm { display: none; } .brand__beta { display: none; } }

.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.theme-toggle:hover { color: var(--ink); background: var(--tint); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: none; }
.theme-toggle[data-mode="auto"] .ic-auto, .theme-toggle:not([data-mode]) .ic-auto, .theme-toggle[data-mode="light"] .ic-light, .theme-toggle[data-mode="dark"] .ic-dark { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 620; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s ease, opacity .15s, background-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .85; }
.btn--small { height: 38px; padding: 0 15px; border-radius: 10px; font-size: 14.5px; }
.btn--big { height: 58px; padding: 0 26px; border-radius: 14px; font-size: 18px; }
/* the highlighter's yellow: the one thing to press */
.btn--accent { background: var(--accent); color: #15120f; box-shadow: 0 12px 34px -12px rgba(255, 209, 46, .5); }
.btn--accent:hover { box-shadow: 0 16px 40px -12px rgba(255, 209, 46, .6); }
/* on a cream note */
.btn--ink { background: var(--paper-ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn--ghost:hover { background: var(--tint); }
.btn .ic, .btn .logo { width: 18px; height: 18px; }

/* ---------- type ---------- */
.h1, .h2 { font-family: var(--serif); font-weight: 420; font-variation-settings: "opsz" 72; letter-spacing: -.022em; line-height: 1.02; text-wrap: balance; }
.h1 { font-size: clamp(44px, 7.6vw, 104px); }
.h2 { font-size: clamp(38px, 5.4vw, 68px); max-width: 15ch; }
.h1 i, .h2 i { font-style: italic; font-weight: 380; color: var(--accent); }
.h3 { font: 450 clamp(26px, 2.6vw, 34px)/1.12 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -.012em; }
.sub { margin-top: 20px; max-width: 42ch; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* the technical page's phrases to notice: in the accent, in italic */
.mark { font-style: italic; font-weight: 380; color: var(--accent); }

/* a phrase marked with the highlighter, on a cream note */
.marked { background: linear-gradient(transparent 14%, var(--marker) 14% 88%, transparent 88%); padding: 0 .1em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* a list with the accent's tick before each line */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 6.5px; top: calc(.12em + 4.5px); width: 5px; height: 9px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks b { color: var(--ink); font-weight: 600; }
.ticks a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- sections ---------- */
.sec { padding-top: clamp(104px, 12vw, 160px); }
.sec .wrap--wide, .sec .head + .wrap { margin-top: clamp(40px, 5vw, 60px); }
.sec--end { padding-bottom: clamp(96px, 12vw, 150px); }
.aside { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--faint); }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }

.end { display: flex; flex-direction: column; align-items: center; text-align: center; }
.end .h2, .end .sub { margin-inline: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(40px, 7vw, 84px); }
.hero__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .h1 { margin-top: 0; }
.h1__line { display: block; }
.hero__sub { max-width: 46ch; margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }

/* the release, said plainly under the buttons: no badge, no blinking dot */
.release { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .6em; row-gap: 4px; margin-top: 18px; font-size: 14.5px; color: var(--faint); }
.release > * { white-space: nowrap; }
/* on a phone the link takes its own line, without a dot before it */
@media (max-width: 559px) { .release > a { flex-basis: 100%; text-align: center; } .release > .release__dot:has(+ a) { display: none; } }
.release a { color: var(--muted); text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.release a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* five devices at once: the Mac in front of Windows and GNOME, the phones in front of it */
.hero .wrap--wide { margin-top: clamp(44px, 6vw, 72px); }
.devices { position: relative; aspect-ratio: 1180 / 740; }
/* a warm light behind the devices */
.devices::before { content: ""; position: absolute; inset: 4% 6% -2%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); filter: blur(30px); opacity: .7; pointer-events: none; }
.dv { position: absolute; }
.dv--win { left: 0; top: 0; width: 50%; z-index: 1; }
.dv--lin { right: 0; top: 0; width: 50%; z-index: 1; }
.dv--mac { left: 13%; top: 6%; width: 74%; z-index: 2; }
.dv--ios { left: 2%; bottom: 0; width: 18.5%; z-index: 3; }
.dv--android { right: 2%; bottom: 0; width: 18.5%; z-index: 3; }
.dv--win .frame, .dv--lin .frame { box-shadow: var(--shadow-soft), 0 0 0 1px var(--card-edge); }
@media (max-width: 899px) {
  .devices { aspect-ratio: 1 / .88; }
  .dv--win, .dv--lin { display: none; }
  .dv--mac { left: 5%; top: 0; width: 90%; }
  .dv--ios { left: 0; width: 25%; }
  .dv--android { right: 0; width: 25%; }
}
@media (max-width: 559px) {
  .devices { aspect-ratio: 1 / 1.1; }
  .dv--mac { left: 0; width: 100%; }
  .dv--ios, .dv--android { width: 34%; }
}
.js:not(.still) .dv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js:not(.still) .devices.is-in .dv { opacity: 1; transform: none; }
.devices.is-in .dv--win, .devices.is-in .dv--lin { transition-delay: .15s; }
.devices.is-in .dv--ios { transition-delay: .3s; }
.devices.is-in .dv--android { transition-delay: .42s; }

.oslist { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; margin-top: 34px; font-size: 14.5px; font-weight: 560; color: var(--faint); letter-spacing: .01em; }
.oslist li { position: relative; padding: 0 16px; }
.oslist li + li::before { content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--rule-strong); }
@media (max-width: 559px) { .oslist { font-size: 13px; margin-top: 26px; } .oslist li { padding: 0 9px; } }

/* ============================================================
   Frames: windows and phones around the screenshots
   ============================================================ */
.frame { position: relative; overflow: hidden; box-shadow: var(--shadow-win); background: var(--a-bg); }
.frame img, .phone img { display: block; width: 100%; height: auto; }
/* the systems' window corners, in proportion: 12 pt on a Mac, 8 px on Windows 11, 12 px in GNOME */
.frame--mac { border-radius: 1.1% / 1.65%; }
.frame--win { border-radius: .7% / 1.05%; }
.frame--gnome { border-radius: 1.05% / 1.6%; }
.phone { container-type: inline-size; position: relative; background: #0d0d0e; border-radius: 15.5% / 7.2%; box-shadow: inset 0 0 0 1.5px #3b3b3e, 0 0 0 1px rgba(0, 0, 0, .3), var(--shadow-win); }
.phone img { width: calc(100% - 6.4cqw); margin: 3.2cqw; border-radius: 12.6% / 5.8%; }
.phone--android { border-radius: 12.5% / 5.8%; }
.phone--android img { border-radius: 9.6% / 4.45%; }

/* ============================================================
   Platforms: tabs over a stage
   ============================================================ */
.show__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.tabs, .seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--tint); max-width: 100%; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .seg button { flex: none; border: 0; background: transparent; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs button:hover, .seg button:hover { color: var(--ink); }
.tabs button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }
.seg--small button { height: 34px; padding: 0 14px; font-size: 14px; }
.tabs button:focus-visible, .seg button:focus-visible { outline-offset: -2px; border-radius: 999px; }
@media (max-width: 559px) {
  .show__bar { flex-direction: column; align-items: stretch; }
  .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabs button { padding: 0 2px; font-size: 13.5px; height: 38px; }
  .seg--small { align-self: center; }
}

.look { display: block; }
.js .look:not([hidden]) { animation: look-in .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes look-in { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.look + .look { margin-top: 64px; } /* without script every look shows, one under another */
.js .look + .look { margin-top: 0; }

.look__stage {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4%;
  aspect-ratio: 1180 / 800; padding: 0 5%; border-radius: clamp(18px, 2.4vw, 30px); overflow: hidden;
  background: var(--stage); transition: background .4s;
}
.look__window { width: 100%; }
.look__stage--phones .phone { width: 27%; }
.look__stage--phones .phone + .phone { margin-top: 5%; }
@media (max-width: 719px) {
  .look__stage { aspect-ratio: auto; padding: 18px; }
  .look__stage--phones { padding: 24px 18px; }
  .look__stage--phones .phone { width: 44%; }
}

/* each system's stage: an abstract wash in its colours (none of them is a system's wallpaper) */
.show { --stage: #ece6dc; }
[data-look="mac"] { --stage: radial-gradient(90% 120% at 15% 0%, #f8dcb4 0, transparent 60%), radial-gradient(80% 90% at 100% 100%, #e9b48e 0, transparent 65%), linear-gradient(160deg, #f3e6d3, #ecd3bd); }
[data-look="windows"] { --stage: radial-gradient(55% 75% at 50% 70%, #9cc0ff 0, transparent 70%), radial-gradient(70% 60% at 0% 0%, #e6eefc 0, transparent 70%), linear-gradient(160deg, #dbe7fb, #b6cdf3); }
[data-look="linux"] { --stage: radial-gradient(80% 100% at 0% 100%, #b9c8f2 0, transparent 60%), radial-gradient(80% 90% at 100% 0%, #e2d4f3 0, transparent 60%), linear-gradient(160deg, #d4dcf3, #dcd3ee); }
[data-look="iphone"] { --stage: radial-gradient(70% 80% at 80% 10%, #f6dfc5 0, transparent 65%), radial-gradient(70% 80% at 10% 100%, #e5d7f0 0, transparent 65%), linear-gradient(160deg, #f4ebe2, #ece2ef); }
[data-look="android"] { --stage: radial-gradient(70% 80% at 85% 0%, #f5e2b6 0, transparent 65%), radial-gradient(70% 80% at 0% 100%, #d5e6cf 0, transparent 65%), linear-gradient(160deg, #eef0df, #f2e7cf); }
.show[data-scheme="dark"] [data-look="mac"] { --stage: radial-gradient(90% 120% at 15% 0%, #4d3a2a 0, transparent 60%), radial-gradient(80% 90% at 100% 100%, #5a3826 0, transparent 65%), linear-gradient(160deg, #2a2420, #231c18); }
.show[data-scheme="dark"] [data-look="windows"] { --stage: radial-gradient(55% 75% at 50% 70%, #1f4aa8 0, transparent 70%), radial-gradient(70% 60% at 0% 0%, #1b2742 0, transparent 70%), linear-gradient(160deg, #121a2d, #0e1626); }
.show[data-scheme="dark"] [data-look="linux"] { --stage: radial-gradient(80% 100% at 0% 100%, #263a73 0, transparent 60%), radial-gradient(80% 90% at 100% 0%, #3d2a5c 0, transparent 60%), linear-gradient(160deg, #1b1f30, #221c2e); }
.show[data-scheme="dark"] [data-look="iphone"] { --stage: radial-gradient(70% 80% at 80% 10%, #4a3628 0, transparent 65%), radial-gradient(70% 80% at 10% 100%, #3a2c4a 0, transparent 65%), linear-gradient(160deg, #221e1d, #1f1b22); }
.show[data-scheme="dark"] [data-look="android"] { --stage: radial-gradient(70% 80% at 85% 0%, #4a3d1c 0, transparent 65%), radial-gradient(70% 80% at 0% 100%, #24382a 0, transparent 65%), linear-gradient(160deg, #1f201b, #22201a); }
.look__stage .frame, .look__stage .phone { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 24px 60px -16px rgba(20, 15, 40, .4), 0 70px 120px -50px rgba(20, 15, 40, .45); }
.show[data-scheme="dark"] .look__stage .frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px -16px rgba(0, 0, 0, .7); }
.look__stage .phone { box-shadow: inset 0 0 0 1.5px #3b3b3e, 0 0 0 1px rgba(0, 0, 0, .3), 0 24px 60px -16px rgba(20, 15, 40, .45); }

.look__copy { display: grid; gap: 24px; margin-top: 30px; padding-inline: 4px; }
.look__copy p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
@media (min-width: 860px) { .look__copy { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

.trio { display: grid; gap: 28px; margin-top: clamp(56px, 7vw, 88px); }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.trio li { padding-top: 22px; border-top: 1px solid var(--rule); }
.trio h3 { margin-top: 14px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.trio p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.trio__ic { width: 24px; height: 24px; stroke-width: 1.7; color: var(--accent-ink); }

/* ============================================================
   Features: cards with the app inside
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card { grid-column: span 12; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: clamp(20px, 2.2vw, 28px); background: var(--card); box-shadow: 0 0 0 1px var(--card-edge), var(--shadow-soft); }
.card__copy { padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) 0; }
.card__copy p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.card__media { position: relative; flex: 1; min-height: clamp(280px, 34vw, 400px); margin-top: 28px; }
.card__media .frame, .card__media .phone { position: absolute; }
@media (min-width: 960px) {
  .card--notes, .card--attach { grid-column: span 7; }
  .card--reminders, .card--locked { grid-column: span 5; }
}

/* a window coming up from the card's foot */
.card__media--window .frame { left: clamp(24px, 3vw, 34px); right: clamp(24px, 3vw, 34px); top: 0; }
.card__media--note .frame { left: 50%; top: 0; width: min(88%, 460px); transform: translateX(-50%); }
@media (max-width: 559px) {
  /* whole windows on a phone, not cropped */
  .card__media--window, .card__media--note { flex: none; min-height: 0; padding: 0 20px 24px; }
  .card__media--window .frame, .card__media--note .frame { position: relative; left: auto; right: auto; width: 100%; transform: none; }
}

.card__media--phones .phone { top: 0; width: 41%; }
.card__media--phones .phone--ios { left: 6%; }
.card__media--phones .phone--android { right: 6%; top: 10%; }
@media (max-width: 959px) and (min-width: 560px) { .card__media--phones .phone { width: 34%; } .card__media--phones .phone--ios { left: 12%; } .card__media--phones .phone--android { right: 12%; } }

.card__media--attach .frame { left: clamp(24px, 3vw, 34px); top: 0; width: 100%; }
.card__media--attach .phone { right: 4%; top: 12%; width: 27%; }
@media (max-width: 559px) { .card__media--attach .phone { width: 34%; } }

.tiles { grid-column: span 12; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles li { padding: 24px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--card-edge); }
.tiles .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; stroke-width: 1.8; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.tiles h3 { margin-top: 16px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.tiles p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 559px) {
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tiles li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .tiles .ic { grid-row: span 2; }
  .tiles h3 { margin-top: 0; align-self: center; }
}

/* ============================================================
   The app, drawn: the pieces the sync and locked-note scenes use
   ============================================================ */
.app {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--a-bg);
  color: var(--a-text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  user-select: none;
}
.app__lights { position: absolute; top: 18px; left: 18px; display: flex; gap: 8px; z-index: 2; }
.app__lights i, .win--mac .win__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.app__lights i:nth-child(2), .win--mac .win__bar i:nth-child(2) { background: #febc2e; }
.app__lights i:nth-child(3), .win--mac .win__bar i:nth-child(3) { background: #28c840; }

.gpill { display: inline-flex; align-items: center; justify-content: center; gap: 16px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--a-glass); box-shadow: 0 0 0 .5px var(--a-glass-edge), 0 1px 3px var(--a-glass-edge); color: var(--a-text); }
.gpill .ic { width: 17px; height: 17px; stroke-width: 1.8; border-radius: 6px; transition: background-color .2s, color .2s; }
.gpill .ic.is-pressed { color: var(--a-acc); background: color-mix(in srgb, var(--a-acc) 18%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--a-acc) 18%, transparent); }
.ed__bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0; height: 49px; box-sizing: content-box; }
.ed__date { text-align: center; font-size: 12px; color: var(--a-sec); margin: 22px 0 18px; }
.doc__title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; min-height: 1.3em; }
.tick { position: relative; flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--a-ter); transition: background-color .25s, border-color .25s; }
.tick::after { content: ""; position: absolute; left: 5px; top: 2.2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.is-done > .tick { background: var(--a-acc); border-color: var(--a-acc); }
.is-done > .tick::after { transform: rotate(45deg) scale(1); }

/* scenes rise into place the first time they come into view */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.rise.is-in { opacity: 1; transform: none; }

/* typing */
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.15em; background: var(--a-acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.is-off { display: none !important; }

/* ============================================================
   Sync: four devices around your storage
   ============================================================ */
.sync {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px minmax(0, 1fr);
  grid-template-areas: "mac hub win" "lin hub phone";
  gap: 32px 72px;
  align-items: center;
}
.sync__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sync__wires path { fill: none; stroke: var(--faint); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; transition: opacity .3s; }
.sync[data-store="folder"] .sync__wires path[data-to="phone"] { opacity: .3; }

.head .seg { margin-top: 24px; position: relative; z-index: 1; }

.seg button { height: 36px; padding: 0 15px; font-size: 14.5px; }

.dev { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .4s; }
.dev--mac { grid-area: mac; } .dev--win { grid-area: win; } .dev--lin { grid-area: lin; } .dev--phone { grid-area: phone; }
.dev figcaption { font-size: 13px; color: var(--faint); letter-spacing: .01em; }
.dev .cap-off { display: none; }
.sync[data-store="folder"] .dev--phone { opacity: .4; }
.sync[data-store="folder"] .dev--phone .cap-on { display: none; }
.sync[data-store="folder"] .dev--phone .cap-off { display: inline; }

.win { width: 100%; max-width: 330px; background: var(--a-bg); color: var(--a-text); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s; }
.win.is-active { box-shadow: var(--shadow), 0 0 0 2px var(--a-acc); }
.win__bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; font-size: 11.5px; color: var(--a-sec); }
.win--mac { border-radius: 11px; }
.win--mac .win__bar i { width: 10px; height: 10px; }
.win--win { border-radius: 7px; }
.win--win .win__bar { background: var(--a-side); padding-right: 0; gap: 0; }
.win--win .win__bar span { margin-right: auto; font-size: 11.5px; }
.win--win .win__bar i { position: relative; width: 38px; height: 30px; }
.win--win .win__bar i::before, .win--win .win__bar i::after { content: ""; position: absolute; left: 50%; top: 50%; border-color: var(--a-sec); }
.w-min::before { width: 10px; border-top: 1px solid; transform: translate(-50%, -50%); }
.w-max::before { width: 9px; height: 9px; border: 1px solid; transform: translate(-50%, -50%); border-radius: 1.5px; }
.win--win .w-x::before, .win--win .w-x::after { width: 12px; border-top: 1px solid; transform: translate(-50%, -50%) rotate(45deg); }
.win--win .w-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.win--lin { border-radius: 12px 12px 6px 6px; }
.win--lin .win__bar { justify-content: center; position: relative; height: 34px; background: var(--a-side); font-weight: 700; color: var(--a-text); }
.win--lin .w-x { position: absolute; right: 9px; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--a-text) 10%, transparent); }
.win--lin .w-x::before, .win--lin .w-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; border-top: 1.5px solid var(--a-text); transform: translate(-50%, -50%) rotate(45deg); }
.win--lin .w-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.win--phone { max-width: 168px; border-radius: 30px; box-shadow: var(--shadow), inset 0 0 0 1px var(--a-sep); }
.win--phone .win__bar { justify-content: center; height: 34px; }
.island { width: 46px; height: 13px; border-radius: 999px; background: #0b0b0b; }

.mini { padding: 10px 16px 16px; }
.mini > b { display: block; font-size: 15px; margin-bottom: 6px; }
.mini li { display: flex; align-items: center; gap: 8px; height: 23px; font-size: 13px; border-radius: 4px; }
.mini .tick { width: 14px; height: 14px; }
.mini .tick::after { left: 3.6px; top: 1.2px; width: 3.5px; height: 7px; }
.mini li.is-new { animation: arrive 1.4s ease-out; }
@keyframes arrive { 0% { opacity: 0; transform: translateX(-6px); background: color-mix(in srgb, var(--a-acc) 30%, transparent); } 25% { opacity: 1; transform: none; } 100% { background: transparent; } }
.win--phone .mini { padding: 8px 14px 22px; }

.hub { grid-area: hub; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 18px 18px; border-radius: 20px; background: var(--bg); border: 1.5px solid var(--ink); text-align: center; transition: transform .3s; }
.hub.is-got { animation: thump .5s ease-out; }
@keyframes thump { 40% { transform: scale(1.035); } }
.hub__icon { position: relative; width: 40px; height: 40px; margin-bottom: 8px; }
.hub__icon .ic { position: absolute; inset: 0; width: 40px; height: 40px; stroke-width: 1.5; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s; }
.sync[data-store="cloud"] .hub__icon [data-for="cloud"], .sync[data-store="s3"] .hub__icon [data-for="s3"], .sync[data-store="webdav"] .hub__icon [data-for="webdav"], .sync[data-store="folder"] .hub__icon [data-for="folder"] { opacity: 1; transform: none; }
.hub__name { font: 600 14px/1.3 var(--mono); }
.hub__where { margin-top: 2px; font-size: 12px; color: var(--muted); }
.hub__files { width: 100%; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.hub__files li { display: flex; align-items: center; gap: 6px; font: 12px/1.6 var(--mono); color: var(--muted); }
.hub__files li:first-child { color: var(--ink); }
.hub__files li:nth-child(n + 4) { display: none; }
.hub__files .ic { width: 12px; height: 12px; color: var(--accent); }
.hub__files li.is-new { animation: drop .5s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.hub__tag { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.hub__tag.is-on { opacity: 1; }
.still .hub__tag { display: none; }

.packet { position: absolute; left: 0; top: 0; z-index: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--a-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-acc) 25%, transparent); pointer-events: none; display: grid; place-items: center; offset-rotate: 0deg; }
.packet .ic { width: 10px; height: 10px; color: #fff; stroke-width: 2.6; }

@media (max-width: 899px) {
  .sync { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "mac win" "hub hub" "lin phone"; gap: 28px 14px; }
  .hub { justify-self: center; width: min(100%, 260px); }
  .win { max-width: none; }
  .win--phone { max-width: 128px; }
  .mini { padding: 8px 10px 12px; }
  .mini > b { font-size: 13px; }
  .mini li { font-size: 11.5px; height: 20px; gap: 6px; }
  .mini .tick { width: 12px; height: 12px; border-width: 1.3px; }
  .mini .tick::after { left: 3px; top: 1px; width: 3px; height: 6px; border-width: 0 1.5px 1.5px 0; }
  .win--phone .mini { padding: 4px 10px 16px; }
  .win--phone .mini li { font-size: 10.5px; }
  .win__bar { height: 24px; font-size: 10px; }
  .win--win .win__bar i { width: 26px; height: 24px; }
  .win--lin .win__bar { height: 26px; }
  .win--lin .w-x { width: 16px; height: 16px; top: 5px; right: 6px; }
  .win--phone .win__bar { height: 26px; }
  .island { width: 34px; height: 10px; }
  .seg button { padding: 0 12px; font-size: 14px; }
}

.options { display: grid; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 860px) { .options { grid-template-columns: 1fr 1fr; } }
.option { padding: clamp(24px, 3vw, 34px); border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--card-edge), var(--shadow-soft); }
.option__head { display: flex; align-items: center; gap: 14px; }
.option__ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; stroke-width: 1.7; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.option__tag { font-size: 14px; color: var(--faint); font-weight: 560; }
.option > p { margin: 18px 0 18px; color: var(--muted); }

/* ============================================================
   Pricing
   ============================================================ */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--card-edge), var(--shadow-soft); }
.plan--feature { box-shadow: 0 0 0 2px var(--accent), var(--shadow-soft); }
.plan__badge { position: absolute; top: -12px; left: 24px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: #1d1d1b; background: var(--accent); }
/* a paid plan before payments open: the same tag, quiet */
.plan__badge--soon { color: var(--muted); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--card-edge); }
.soon-pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: 2px; font-size: 12px; font-weight: 650; color: var(--muted); background: var(--tint); }
.plan__name { font-size: 16px; font-weight: 650; color: var(--muted); }
.plan__price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-size: 42px; font-weight: 720; letter-spacing: -.04em; line-height: 1; }
.plan__price span { color: var(--faint); font-size: 15px; }
.plan__what { margin: 14px 0 20px; color: var(--muted); font-size: 15.5px; min-height: 3em; }
.plan .ticks { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; gap: 9px; }
/* the plans' parts line up across a row: names, prices, words, then the lists */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .plan .ticks { margin-top: 0; align-self: start; align-content: start; }
}

/* ============================================================
   Privacy
   ============================================================ */
.lockdemo { position: relative; }
.app--solo { display: block; height: 360px; max-width: 560px; margin-inline: auto; width: 100%; }
.app--solo .ed__bar { justify-content: flex-end; }
.lk { position: relative; padding: 0 30px; transition: opacity .4s; }
.lk .ed__date { margin-top: 10px; }
.lk__body { margin-top: 6px; white-space: pre-line; font-size: 16px; line-height: 1.6; min-height: 7.2em; }
.lk__body.is-sealed { font: 13.5px/1.65 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--a-sec); }
.lk__tag { display: table; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px/1.5 var(--mono); color: var(--a-acc); background: color-mix(in srgb, var(--a-acc) 14%, transparent); opacity: 0; transition: opacity .35s; }
.lk__tag.is-on { opacity: 1; }
.lockic .shackle { transition: opacity .2s; }
.lockic .shackle--shut { opacity: 0; }
.lockic.is-shut .shackle--shut { opacity: 1; }
.lockic.is-shut .shackle--open { opacity: 0; }
.lockic.is-shut { color: var(--a-acc); }

.lk__shut { position: absolute; inset: 63px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 40px 96px; text-align: center; background: var(--a-bg); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lk__shut.is-on { opacity: 1; visibility: visible; }
.lk__shut b { font-size: 17px; margin-top: 10px; }
.lk__shut > span { font-size: 13.5px; color: var(--a-sec); max-width: 30ch; }
.lk__pad { position: relative; color: var(--a-ter); }
.lk__pad > .ic { width: 64px; height: 64px; stroke-width: 1.3; }
.lk__badge { position: absolute; right: -10px; bottom: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--a-bg); color: #e0443a; }
.lk__badge .ic { width: 20px; height: 20px; }

.lk__prompt { position: absolute; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 18px; background: color-mix(in srgb, var(--a-bg) 70%, var(--a-field)); box-shadow: 0 0 0 .5px var(--a-glass-edge), 0 14px 40px -8px rgba(0, 0, 0, .3); transform: translate(-50%, 16px) scale(.96); opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .3, 1.1); }
.lk__prompt.is-on { opacity: 1; transform: translate(-50%, 0); }
.lk__prompt b { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.lk__scan { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--a-bg); color: #e0443a; }
.lk__scan .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.lk__prompt.is-scan .lk__scan .ic { animation: scan 1.2s ease-in-out; }
@keyframes scan { 0% { stroke-dasharray: 2 60; } 100% { stroke-dasharray: 60 0; } }
.lk__prompt.is-ok .lk__scan { color: var(--a-acc); }
@media (max-width: 899px) { .lk { padding: 0 22px; } }

.facts { display: grid; gap: 36px 40px; margin-top: clamp(56px, 7vw, 88px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.facts li { padding-top: 22px; border-top: 1px solid var(--rule); }
.facts .ic { width: 24px; height: 24px; stroke-width: 1.7; color: var(--accent-ink); }
.facts h3 { margin-top: 14px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.facts p { margin-top: 6px; color: var(--muted); font-size: 16px; }
@media (max-width: 559px) {
  .facts, .trio { gap: 26px; }
  .facts li, .trio li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; padding-top: 20px; }
  .facts li .ic, .trio li .ic { grid-row: span 2; }
  .facts h3, .trio h3 { margin-top: 0; }
}

/* ============================================================
   Download
   ============================================================ */
/* all five in a row once they fit, otherwise a list (never a row with a gap at its end) */
.downloads { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1120px) { .downloads { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dl { position: relative; display: grid; gap: 18px; height: 100%; padding: 22px; border-radius: 20px; text-decoration: none; background: var(--card); box-shadow: 0 0 0 1px var(--card-edge), var(--shadow-soft); transition: transform .15s, box-shadow .2s; }
.dl:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-soft); }
.dl > .ic:first-child { width: 28px; height: 28px; stroke-width: 1.6; }
.dl > .logo:first-child { width: 28px; height: 28px; }
.dl span { display: grid; gap: 2px; min-width: 0; }
.dl b { font-size: 18px; font-weight: 650; }
.dl small { font-size: 14px; color: var(--faint); }
.dl__go { position: absolute; top: 22px; right: 22px; color: var(--faint); }
.dl:hover .dl__go { color: var(--ink); }
@media (max-width: 1119px) {
  .dl { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
  .dl__go { position: static; margin-left: auto; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none; font: 450 clamp(19px, 1.8vw, 23px)/1.25 var(--serif); font-variation-settings: "opsz" 36; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--faint); transition: transform .25s ease; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.home .faq details[open] summary .ic { transform: rotate(180deg); }
.faq summary:hover .ic { color: var(--ink); }
.faq details p { padding: 0 2px 24px; color: var(--muted); max-width: 62ch; }
.faq details a { color: var(--ink); text-underline-offset: 3px; }

/* ============================================================
   Home page (index.html): the page for everyone
   ============================================================ */
/* a note: cream paper on the ink, its corner folded, as in the icon */
.note { position: relative; color: var(--paper-ink); background: linear-gradient(180deg, var(--paper), var(--paper-2)); border-radius: 22px; box-shadow: var(--shadow-note); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; border-bottom-right-radius: 22px; background: linear-gradient(135deg, #ddd2bb 0 50%, var(--bg) 50%); }
.note__date { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); }
.note a { color: var(--paper-ink); text-decoration-color: rgba(29, 26, 22, .35); text-underline-offset: 4px; }
.note a:hover { text-decoration-color: currentColor; }
/* round checkboxes, as notelet draws them */
.checks { display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.check { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9ae98; }
.is-done .check { border-color: #e2a500; background: #e2a500; }
.is-done .check::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.is-done { color: var(--paper-muted); }

.opening { padding-top: clamp(28px, 5vw, 64px); }
.opening__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .opening__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 64px; } }
.note--hero { padding: clamp(28px, 4vw, 48px) clamp(26px, 4vw, 54px) clamp(34px, 4.4vw, 54px); transform: rotate(-2deg); }
.note__title { margin-top: 14px; font: 480 clamp(44px, 6.6vw, 90px)/.98 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.022em; text-wrap: balance; }
.note__title i { font-weight: 420; }
.note__title:first-child { margin-top: 0; }
.note--hero .checks { margin-top: clamp(22px, 3vw, 32px); font-size: clamp(16.5px, 1.6vw, 19.5px); }
.lede { font: 400 clamp(21px, 2vw, 25px)/1.42 var(--serif); font-variation-settings: "opsz" 24; color: var(--ink); opacity: .92; max-width: 26ch; text-wrap: pretty; }
.opening__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
.also { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; }
.also a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); transition: color .15s, background-color .15s; }
.also a:hover { color: var(--ink); background: var(--tint); }
.also .logo { width: 18px; height: 18px; }
.stamp { margin-top: 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* the app, in its dark look, under the note */
.stage { position: relative; margin-top: clamp(56px, 7vw, 96px); padding: 0 7%; }
.stage__mac { position: relative; }
.stage__phone { position: absolute; width: 17%; bottom: -7%; }
.stage__phone--a { left: 0; transform: rotate(-4deg); }
.stage__phone--b { right: 0; bottom: -3%; transform: rotate(3.5deg); }
@media (max-width: 719px) { .stage { padding: 0 9%; } .stage__phone { width: 27%; } }
.js:not(.still) .stage > * { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js:not(.still) .stage.is-in > * { opacity: 1; transform: none; }
.js:not(.still) .stage.is-in .stage__phone--a { transform: rotate(-4deg); transition-delay: .2s; }
.js:not(.still) .stage.is-in .stage__phone--b { transform: rotate(3.5deg); transition-delay: .32s; }

/* the five systems */
.systems { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) { .systems { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.systems li { display: grid; align-content: start; gap: 6px; padding: 24px 22px 26px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.systems .logo { width: 30px; height: 30px; margin-bottom: 26px; color: var(--ink); }
.systems b { font: 460 28px/1 var(--serif); font-variation-settings: "opsz" 36; }
.systems span { font-size: 15px; color: var(--muted); line-height: 1.4; }
/* the list between a phone and all five in a row: the logo beside its words, not above them */
@media (min-width: 560px) and (max-width: 919px) {
  .systems li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 20px; row-gap: 4px; align-items: center; padding: 20px 24px; }
  .systems .logo { grid-row: span 2; margin-bottom: 0; }
}
.caption { margin-top: 26px; color: var(--muted); max-width: 70ch; }
.caption a, .more a { color: var(--accent); text-decoration-color: rgba(255, 209, 46, .4); text-underline-offset: 4px; }
.caption a:hover { text-decoration-color: currentColor; }

/* the tour: the app on a dark panel with a little coloured light, a few plain words beside it */
.tour { display: grid; gap: clamp(64px, 9vw, 112px); }
.tour__row { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .tour__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); }
  .tour__row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .tour__row:nth-child(even) .tour__media { order: 2; }
}
.tour__media { --glow: rgba(255, 209, 46, .16); position: relative; display: grid; place-items: center; padding: clamp(24px, 5vw, 56px); border-radius: clamp(22px, 3vw, 32px); overflow: hidden;
  background: radial-gradient(90% 100% at 20% 0%, var(--glow), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.tour__media--amber { --glow: rgba(255, 196, 46, .2); }
.tour__media--blue { --glow: rgba(96, 140, 255, .22); }
.tour__media--rose { --glow: rgba(255, 112, 96, .18); }
.tour__media--green { --glow: rgba(72, 196, 132, .18); }
.tour__media .frame { width: 100%; }
.tour__media--phones { display: flex; justify-content: center; gap: 6%; }
.tour__media--phones .phone { width: 38%; }
.tour__media--phones .phone--android { margin-top: 9%; }
.tour__media--pair { padding-right: clamp(56px, 10vw, 120px); padding-bottom: clamp(48px, 8vw, 96px); }
.tour__media--pair .phone { position: absolute; right: 5%; bottom: -14%; width: 26%; }
.tour__copy p { margin-top: 14px; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.tour__copy .ticks { margin-top: 22px; }

.perks { display: grid; gap: 36px 40px; margin-top: clamp(72px, 9vw, 112px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.perks li { padding-top: 22px; border-top: 1px solid var(--rule); }
.perks .ic { width: 24px; height: 24px; stroke-width: 1.7; color: var(--accent); }
.perks h3 { margin-top: 14px; font: 460 23px/1.15 var(--serif); font-variation-settings: "opsz" 36; }
.perks p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* moving in */
.switch { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .switch { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; padding: 11px 19px 11px 15px; border-radius: 999px; font-size: 16px; font-weight: 560; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-strong); }
/* each app's mark beside its name, in the page's ink (every logo is its owner's trademark) */
.chips li .logo, .chips li .ic { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* privacy: the note you see, and what's kept of it */
.sealed { display: grid; gap: 24px; align-items: center; justify-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
@media (min-width: 860px) { .sealed { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 28px; } }
.note--small { width: 100%; max-width: 420px; padding: 26px 30px 34px; transform: rotate(-1.5deg); }
.note--small::after { width: 46px; height: 46px; }
.note__name { margin-top: 10px; font: 500 30px/1.1 var(--serif); font-variation-settings: "opsz" 36; }
.note--small > p:not(.note__date):not(.note__name) { margin-top: 6px; }
.note--small .checks { margin-top: 12px; gap: 8px; }
.sealed__arrow { width: 80px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 859px) { .sealed__arrow { transform: rotate(90deg); } }
.cipher { width: 100%; max-width: 420px; padding: 26px 30px 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.cipher .note__date { color: var(--faint); }
.cipher__text { margin-top: 12px; font: 500 13.5px/1.75 var(--mono); color: var(--muted); word-break: break-all; }
.cipher__lock { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink); font-size: 15px; }
.cipher__lock .ic { width: 17px; height: 17px; color: var(--accent); }
.promises { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promises li { padding: clamp(24px, 3vw, 32px); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.promises .ic { width: 26px; height: 26px; stroke-width: 1.7; color: var(--accent); }
.promises h3 { margin-top: 18px; font: 460 24px/1.15 var(--serif); font-variation-settings: "opsz" 36; }
.promises p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.more { margin-top: 30px; text-align: center; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.more .ic { width: 16px; height: 16px; }

/* prices: the founders' offer is a note */
.offers { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 1000px) { .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer { display: flex; flex-direction: column; padding: 32px 30px 34px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.offer.note { background: linear-gradient(180deg, var(--paper), var(--paper-2)); box-shadow: var(--shadow-note); transform: rotate(-1deg); }
.offer__name { font-size: 15px; font-weight: 600; color: var(--muted); }
.note .offer__name, .note .offer__what { color: var(--paper-muted); }
.offer__price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.offer__price b { font: 460 52px/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; }
.offer__price > span { color: var(--faint); font-size: 15.5px; }
.note .offer__price > span { color: var(--paper-muted); }
.offer__what { margin: 14px 0 22px; color: var(--muted); font-size: 16px; }
.offer__left b { color: var(--paper-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.offer .ticks, .offer .checks { padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15.5px; gap: 10px; }
.offer .checks { border-color: var(--paper-rule); }
.offer__go { margin-top: 28px; align-self: flex-start; }
.note .btn--ink { color: var(--paper); text-decoration: none; }
.offer .is-done { color: var(--paper-ink); }

/* the end: the icon, and a button for each system */
.get__icon { width: clamp(84px, 9vw, 108px); height: auto; margin-bottom: 30px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.getrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.getrow a { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border-radius: 14px; font-weight: 600; font-size: 16.5px; text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-strong); transition: transform .15s, box-shadow .15s, background-color .15s; }
.getrow a:hover { transform: translateY(-2px); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--accent); }
.getrow .logo { width: 20px; height: 20px; }

/* ============================================================
   Download page (download/index.html)
   ============================================================ */
.nav--solid { border-color: var(--rule); }
.dlhead { padding-top: clamp(44px, 6vw, 80px); text-align: center; }
.dlhead .wrap { display: flex; flex-direction: column; align-items: center; }
.dlhead__icon { width: 88px; height: 88px; margin-bottom: 26px; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .6)); }
.dlhead .h2 { max-width: none; }
.dlhead .sub { margin-inline: auto; max-width: 44ch; }

/* the build for the visitor's system, guessed by main.js */
.suggest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 20px; width: min(100%, 620px); margin-top: 38px; padding: 24px 26px; border-radius: 24px; text-align: left; background: var(--card); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow); }
.suggest__logo { width: 40px; height: 40px; }
.suggest__text { display: grid; gap: 3px; }
.suggest__text b { font: 460 26px/1.1 var(--serif); font-variation-settings: "opsz" 36; }
.suggest__text span { color: var(--muted); font-size: 15px; }
.suggest .btn { grid-column: 1 / -1; }
.suggest .btn[hidden] { display: none; }
.suggest__other { grid-column: 1 / -1; justify-self: center; font-size: 14.5px; color: var(--muted); text-underline-offset: 3px; }
@media (min-width: 600px) { .suggest { grid-template-columns: auto 1fr auto; } .suggest .btn { grid-column: auto; } }

/* a section per kind of device */
.dlsec { padding-top: clamp(64px, 8vw, 104px); }
.dlsec--end { padding-bottom: clamp(80px, 10vw, 128px); }
.dlsec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.dlsec__head .h3 { font-size: clamp(30px, 3.2vw, 42px); }
.dlsec__head .h3 i { font-style: italic; color: var(--accent); }
.dlsec__head p { color: var(--faint); font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 599px) { .dlsec__head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* a system: its name, needs and help, then its builds */
.sys { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2.6vw, 30px); border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); scroll-margin-top: 92px; }
.sys + .sys { margin-top: 14px; }
.sys__head { display: flex; align-items: center; gap: 16px; }
.sys__logo { width: 34px; height: 34px; flex: none; color: var(--ink); }
.sys__name { font: 460 30px/1.05 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.01em; }
.sys__head p { margin-top: 4px; color: var(--faint); font-size: 14.5px; }
.sys__text { color: var(--muted); font-size: 15.5px; }
.sys__text a { color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .sys--row { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 9fr); gap: 36px; align-items: start; }
}
.sys__side { display: grid; gap: 16px; align-content: start; }

/* the builds as tiles, side by side */
.files li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.files li > div { display: grid; gap: 3px; min-width: 0; }
.files b { font-weight: 620; }
.files span { color: var(--muted); font-size: 14.5px; }
.files .btn { flex: none; }
.files .btn .logo { width: 15px; height: 15px; }
.files--tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.files--tiles li { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 18px; height: 100%; padding: 18px 18px 16px; border: 0; border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--card-edge); }
.files--tiles .btn { width: 100%; }
@media (min-width: 560px) and (max-width: 1059px) {
  .files--tiles:has(> li:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
  .files--tiles:has(> li:nth-child(3)) li { flex-direction: row; align-items: center; }
  .files--tiles:has(> li:nth-child(3)) .btn { width: auto; }
}
@media (max-width: 559px) { .files--tiles:has(> li:nth-child(3)) { grid-template-columns: minmax(0, 1fr); } }
.files__minor b { color: var(--muted); }
.soon { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 560; color: var(--faint); background: var(--tint); }
.soon .logo { width: 15px; height: 15px; }

.help { border-top: 1px solid var(--rule); }
.help summary { padding-top: 14px; cursor: pointer; font-size: 15px; font-weight: 560; color: var(--muted); }
.help summary:hover { color: var(--ink); }
.help p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.help code { white-space: normal; overflow-wrap: anywhere; }
.help a { color: var(--ink); text-underline-offset: 3px; }

/* two of a kind, side by side, the same height */
.dlpair { display: grid; gap: 14px; }
@media (min-width: 900px) { .dlpair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } .dlpair .sys + .sys { margin-top: 0; } }
.dlpair .files { margin-top: auto; }
.news { gap: 12px; }
@media (min-width: 900px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } .sys--row > .sys__text { align-self: center; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding: 40px 0 44px; font-size: 14px; color: var(--faint); }
.footer__inner { display: grid; gap: 24px; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: auto 1fr; align-items: start; } .footer__legal { grid-column: 1 / -1; } }
.footer__brand .brand { color: var(--ink); }
.footer__brand p { margin-top: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
@media (min-width: 860px) { .footer__links { justify-content: flex-end; } }
.footer__links a { text-decoration: none; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-size: 12.5px; line-height: 1.6; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- reduced motion: the finished picture, still ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- privacy and terms: one readable column ---------- */
.doc { width: min(100% - 32px, 720px); margin-inline: auto; padding-block: clamp(44px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.doc__head .h2 { max-width: none; }
.doc__date { margin-top: 14px; color: var(--faint); font-size: 14.5px; }
.doc__short { margin-top: 36px; padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.doc h2 { margin-top: clamp(40px, 5vw, 56px); font: 450 clamp(25px, 2.4vw, 31px)/1.15 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -.01em; }
.doc h3 { margin-top: 26px; font-size: 17px; font-weight: 640; }
.doc__short h2 { margin-top: 0; }
.doc p, .doc li { color: var(--muted); text-wrap: pretty; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 14px; padding-left: 1.15em; display: grid; gap: 9px; list-style: disc; }
.doc li::marker { color: var(--faint); }
.doc b { color: var(--ink); font-weight: 620; }
.doc a { color: var(--accent); text-decoration-color: rgba(255, 209, 46, .4); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font: 500 .88em var(--mono); color: var(--ink); }
.footer__links a[aria-current="page"] { color: var(--ink); }
