/* TurnDisk website — one stylesheet for every page.
 *
 * The visual language is the desktop app's "drive face": an aluminium casing, a navy display
 * slot with one activity LED, signal blue for the action you came to take. The hero drive is the
 * one loud thing on the site; everything else stays quiet on the casing colour. */

:root {
  --casing: #E6EBF1;
  --panel: #F4F7FA;
  --raised: #FFFFFF;
  --edge: #CDD5DF;
  --hair: #D7DEE7;
  --ink: #18212E;
  --muted: #4F5C6E;
  --faint: #6B7789;
  --slot: #0F2747;
  --slot-edge: #071A33;
  --slot-ink: #F2F6FB;
  --slot-muted: #A9BAD0;
  --signal: #1F6FD8;
  --signal-hover: #185DB8;
  --signal-ink: #FFFFFF;
  --pressed: #0F2747;
  --link: #1A62C4;
  --focus: #1F6FD8;
  --led-ok: #2FC56B;
  --led-sync: #4DA3FF;
  --led-off: #7C8796;
  --led-warn: #F2A93B;
  --danger: #C6343A;
  --danger-bg: #FBECEC;
  --ok-bg: #E7F6EC;
  --ok-ink: #17663A;
  --metal-top: #F1F4F8;
  --metal-bottom: #D9E0E8;
  --shadow: 0 30px 60px -28px rgba(15, 39, 71, .45), 0 2px 0 rgba(255, 255, 255, .9) inset;
  --g-fill: #FFFFFF; --g-hover: #F1F1F1; --g-edge: #747775; --g-ink: #1F1F1F;
  --a-fill: #000000; --a-hover: #262626; --a-ink: #FFFFFF;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --casing: #1A2029;
    --panel: #202833;
    --raised: #262F3B;
    --edge: #354050;
    --hair: #2E3846;
    --ink: #E7ECF3;
    --muted: #A7B2C1;
    --faint: #8996A7;
    --slot: #0A1A30;
    --slot-edge: #050E1C;
    --slot-ink: #F2F6FB;
    --slot-muted: #9DB0C8;
    --signal: #2A78E0;
    --signal-hover: #3D88EC;
    --pressed: #2A78E0;
    --link: #78B3FA;
    --focus: #78B3FA;
    --danger: #D9474D;
    --danger-bg: #3A2124;
    --ok-bg: #173325;
    --ok-ink: #7FE0A6;
    --metal-top: #2C3542;
    --metal-bottom: #1F2731;
    --shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .07) inset;
    --g-fill: #131314; --g-hover: #242425; --g-edge: #8E918F; --g-ink: #E3E3E3;
    --a-fill: #FFFFFF; --a-hover: #EBEBEB; --a-ink: #000000;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--casing);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 18px; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--signal); color: var(--signal-ink);
  padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 9px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: var(--signal-hover); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn-quiet:hover { background: var(--panel); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--signal-ink) var(--signal-ink) transparent transparent;
  animation: spin .8s linear infinite;
}
.btn-quiet.busy::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation-duration: 3s; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--casing) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 7px;
}
.nav a:not(.btn):hover { background: var(--panel); }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .brand img { height: 30px; } }

/* ---------- the LED (shared by hero, account page, CTA) ---------- */
.led { position: relative; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }
.led::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--led-off); box-shadow: 0 0 10px 2px rgba(124, 135, 150, .45);
}
.led.ok::before { background: var(--led-ok); box-shadow: 0 0 12px 2px rgba(47, 197, 107, .6); }
.led.sync::before { background: var(--led-sync); box-shadow: 0 0 12px 2px rgba(77, 163, 255, .65); animation: pulse 1.2s ease-in-out infinite; }
.led.warn::before { background: var(--led-warn); box-shadow: 0 0 12px 2px rgba(242, 169, 59, .55); }
.led.error::before { background: #E5484D; box-shadow: 0 0 12px 2px rgba(229, 72, 77, .6); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .led.sync::before { animation: none; } }

/* ---------- hero: the drive face ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -0.035em; line-height: 1.04; }
.hero .lede { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 33em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .aside { margin-top: 18px; font-size: 14.5px; color: var(--faint); }
@media (max-width: 980px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
}

.drive {
  position: relative; margin: 0;
  background: linear-gradient(180deg, var(--metal-top), var(--metal-bottom));
  border: 1px solid var(--edge);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
.drive-top { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 16px; }
.drive-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.drive-label img { width: 22px; height: 22px; }
.screws { display: flex; gap: 8px; }
.screws i {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--metal-top), var(--metal-bottom) 70%);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.drive .slot {
  background: var(--slot);
  border: 1px solid var(--slot-edge);
  border-radius: 12px;
  padding: 24px 24px 22px;
  color: var(--slot-ink);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .45);
}
.slot-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.slot-title {
  font-size: clamp(22px, 3vw, 31px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2;
  overflow-wrap: anywhere;
}
.drive .slot-title { font-size: clamp(20px, 2.3vw, 27px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.drive .slot-sub { min-height: 3.2em; }
.slot .led { margin-top: 10px; }
@media (max-width: 560px) {
  .drive { padding: 16px 14px 14px; border-radius: 18px; }
  .drive .slot { padding: 20px 16px 18px; }
  .drive .slot-sub { min-height: 4.8em; }
  .fmap { gap: 2px; }
}
.slot-sub { margin-top: 8px; color: var(--slot-muted); font-size: 16px; min-height: 1.6em; }
.slot-text { transition: opacity .25s ease; }
.slot-text.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .slot-text, .fmap i { transition: none; }
}
.drive-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 4px 0; }
.vents {
  flex: 1; height: 14px; max-width: 280px;
  background: repeating-linear-gradient(90deg, var(--edge) 0 3px, transparent 3px 9px);
  border-radius: 2px; opacity: .9;
}
.drive-switch {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--edge); border-radius: 999px;
  padding: 5px 12px 5px 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.drive-switch:hover { background: var(--panel); }
.drive-switch svg { width: 12px; height: 12px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--hair); }
.section.tint { background: var(--panel); }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
@media (min-width: 900px) {
  .section-head.duo { max-width: none; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: end; }
  .section-head.duo p { margin-top: 0; max-width: 32em; }
}

/* ---------- the file map ----------
 * The site's one diagram: a file drawn as a grid of slices. Dim = only in the cloud,
 * lit = on this Mac, blue = moving now, green = just uploaded. Used big in the hero and small
 * beside each difference, always on the navy slot. */
.fmap { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; margin-top: 22px; }
.fmap i {
  aspect-ratio: 1; border-radius: 2px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.fmap i.got { background: #C9D9EE; box-shadow: none; }
.fmap i.head { background: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF, 0 0 10px rgba(255, 255, 255, .55); }
.fmap i.move { background: var(--led-sync); box-shadow: 0 0 9px rgba(77, 163, 255, .7); animation: pulse 1.2s ease-in-out infinite; }
.fmap i.done { background: var(--led-ok); box-shadow: 0 0 9px rgba(47, 197, 107, .6); }
.fmap.mini { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; margin: 0; }
.fmap.mini i.move { animation: none; }
@media (prefers-reduced-motion: reduce) { .fmap i.move { animation: none; } }

.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.readout dt { font-size: 13px; color: var(--slot-muted); }
.readout dd { margin: 2px 0 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 650; letter-spacing: -0.02em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: var(--slot-muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.legend i.got { background: #C9D9EE; box-shadow: none; }
.legend i.move { background: var(--led-sync); box-shadow: none; }

/* who it's for: four photos, each tagged with a Finder-style label for the file that person keeps */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1020px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } .people .person-shot { aspect-ratio: 4 / 3; } .people .person-shot img { object-position: center 35%; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }
.person { margin: 0; }
.person-shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--slot); aspect-ratio: 4 / 5; }
.person-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .people .person-shot { aspect-ratio: 4 / 3; } .people .person-shot img { object-position: center 35%; } }
.tagfile {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
  background: rgba(15, 39, 71, .82); color: var(--slot-ink); font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.tf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-size { color: #9CCBFF; white-space: nowrap; }
.tagfile .doc { width: 12px; height: 15px; border-radius: 2px; border: 1.5px solid #C9D9EE; flex: 0 0 auto; }
.tagfile .doc.blue { border-color: var(--led-sync); }
.tagfile .doc.folder { width: 15px; height: 11px; border-radius: 3px; background: var(--led-sync); border-color: var(--led-sync); }
.person figcaption { padding: 16px 2px 0; }
.person h3 { font-size: 18px; }
.person p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* what's different: text on the left, a small diagram on the right, hairlines between */
.diff { border-top: 1px solid var(--hair); }
.diff-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 56px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--hair); }
.diff-text h3 { font-size: 21px; }
.diff-text p { margin-top: 8px; color: var(--muted); max-width: 34em; }
.diff-fig { margin: 0; }
.diff-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); }
@media (max-width: 820px) { .diff-row { grid-template-columns: 1fr; padding: 28px 0; } }
.chip {
  background: var(--slot); border: 1px solid var(--slot-edge); border-radius: 10px; padding: 16px;
  color: var(--slot-ink); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .4);
}
.gauge-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--slot-muted); }
.gauge-row .num { color: var(--slot-ink); font-weight: 600; }
.gauge .usage-bar { margin: 8px 0 12px; }
.gauge-cloud { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.loc { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; padding: 12px 10px; font-size: 13.5px; }
.loc .group { font-size: 11.5px; font-weight: 600; color: var(--faint); margin: 0 8px 4px; }
.loc .row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.loc .row.on { background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--ink); font-weight: 600; }
.loc .row img, .loc .row > svg:first-child { width: 16px; height: 16px; flex: 0 0 auto; }
.loc .free { margin-left: auto; font-weight: 450; color: var(--faint); font-size: 12.5px; }
.loc .eject { width: 11px; height: 11px; color: var(--faint); flex: 0 0 auto; }

/* safety: heading on the left, a numbered ledger on the right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 100px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split .section-head { position: static; } }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.ledger li { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-content: start; gap: 4px 20px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.ledger .tag { grid-row: span 2; white-space: nowrap; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--signal); line-height: 1.1; }
.ledger .tag small { display: block; font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-top: 2px; }
.ledger p { color: var(--muted); }
@media (max-width: 460px) { .ledger li { grid-template-columns: 1fr; } .ledger .tag { grid-row: auto; } }

/* how it works: three steps beside a Finder sidebar */
.how { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 40px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 30px 56px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--slot); color: var(--slot-ink);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 6px; width: 1px; background: var(--edge);
}
.steps p { margin-top: 6px; color: var(--muted); }
.steps .soon { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--signal); }

.finder {
  background: var(--raised); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(15, 39, 71, .5);
  max-width: 480px; width: 100%; justify-self: center;
}
.finder-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.finder-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--edge); }
.finder-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 230px; }
@media (max-width: 420px) { .finder-body { grid-template-columns: 1fr; } .finder-side { display: none; } }
.finder-side { background: var(--panel); padding: 14px 10px; font-size: 13px; border-right: 1px solid var(--hair); }
.finder-side .group { font-size: 11.5px; font-weight: 600; color: var(--faint); margin: 10px 8px 4px; }
.finder-side .group:first-child { margin-top: 0; }
.finder-side .row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--muted); }
.finder-side .row.on { background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--ink); font-weight: 600; }
.finder-side .row img, .finder-side .row svg { width: 16px; height: 16px; flex: 0 0 auto; }
.finder-side .eject { margin-left: auto; width: 11px; height: 11px; color: var(--faint); }
.finder-main { padding: 14px 16px; font-size: 13px; }
.finder-main .file { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--hair); }
.finder-main .file:last-child { border-bottom: 0; }
.finder-main .file span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-main .file .size { color: var(--faint); font-variant-numeric: tabular-nums; }
.finder-main .doc { width: 14px; height: 17px; border-radius: 2px; border: 1.5px solid var(--faint); flex: 0 0 auto; }
.finder-main .doc.blue { border-color: var(--signal); }
.finder-main .doc.folder { width: 17px; height: 13px; border-radius: 3px; background: var(--led-sync); border-color: var(--led-sync); opacity: .8; }

/* privacy & control: a plain two-column list */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.pairs div { padding: 22px 0; border-top: 1px solid var(--hair); }
.pairs p { margin-top: 6px; color: var(--muted); }
.pairs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pairs, .pairs.three { grid-template-columns: 1fr; } }

/* ---------- download ----------
 * A navy panel like the drive's slot, two large buttons with the system's mark. The button for
 * the computer you're on comes first and stays solid; the other turns to an outline. A button
 * whose link isn't filled in yet (js/site.js → DOWNLOADS) carries an amber "Coming soon" tag. */
.section.download { padding: 72px 0; }
.dl-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px 56px; align-items: center;
  background: var(--slot); color: var(--slot-ink); border-radius: 20px; padding: 48px;
  box-shadow: inset 0 0 0 1px var(--slot-edge), 0 30px 60px -36px rgba(15, 39, 71, .7);
}
.dl-copy h2 { font-size: clamp(28px, 3.8vw, 40px); }
.dl-copy p { margin-top: 12px; color: var(--slot-muted); font-size: 17px; max-width: 32em; text-wrap: pretty; }
.dl-copy .dl-fine { font-size: 14.5px; }
@media (max-width: 860px) { .dl-panel { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; } }
.downloads { display: flex; flex-direction: column; gap: 12px; }
.dl {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 78px; padding: 14px 18px 14px 20px; border-radius: 14px; text-decoration: none;
  background: #FFFFFF; color: var(--slot); border: 1px solid transparent;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.dl.yours { order: -1; }
a.dl[href] { cursor: pointer; }
a.dl[href]:hover { background: #E8F0FB; }
.dl.soon { cursor: default; }
.dl:focus-visible { outline: 2px solid #9CCBFF; outline-offset: 3px; border-radius: 14px; }
.dl-logo { width: 30px; height: 30px; }
.dl[data-download="windows"] .dl-logo { color: #0A6CD0; width: 27px; height: 27px; margin-left: 2px; }
.dl-label { min-width: 0; }
.dl-pre { display: block; font-size: 13px; font-weight: 500; color: #4F5C6E; line-height: 1.2; }
.dl-os { display: block; font-size: 23px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.dl-note {
  font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: #E7F6EC; color: #17663A;
}
.dl.soon .dl-note { background: #FCEFD9; color: #8A5300; }
/* the other system's button, once we know which computer this is */
.has-yours .dl:not(.yours) { background: transparent; color: var(--slot-ink); border-color: rgba(255, 255, 255, .26); box-shadow: none; }
.has-yours a.dl:not(.yours)[href]:hover { background: rgba(255, 255, 255, .07); }
.has-yours .dl:not(.yours) .dl-pre { color: var(--slot-muted); }
.has-yours .dl:not(.yours) .dl-logo { color: currentColor; }
.has-yours .dl:not(.yours) .dl-note { background: rgba(255, 255, 255, .1); color: var(--slot-muted); }
.has-yours .dl.soon:not(.yours) .dl-note { background: rgba(242, 169, 59, .16); color: #F5C67E; }
@media (max-width: 400px) { .dl { grid-template-columns: 30px minmax(0, 1fr); } .dl-note { grid-column: 2; justify-self: start; } .dl-os { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } }
.cta-slot a:not(.btn), .aside a, .aside-note a { color: inherit; }
.cta-slot a:not(.btn) { color: #9CCBFF; }

/* ---------- pricing ---------- */
.period {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 11px; border: 1px solid var(--edge); background: var(--raised);
  margin-bottom: 28px;
}
.period button {
  border: 0; background: transparent; border-radius: 8px; padding: 8px 16px; font-size: 15px; font-weight: 600;
  color: var(--muted); cursor: pointer; min-height: 40px;
}
.period button[aria-pressed="true"] { background: var(--pressed); color: #FFFFFF; }
.period .save { font-size: 13px; font-weight: 500; opacity: .8; margin-left: 7px; }

.bays {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(180deg, var(--metal-top), var(--metal-bottom));
  border: 1px solid var(--edge); border-radius: 18px; padding: 10px; gap: 10px;
}
@media (max-width: 860px) { .bays { grid-template-columns: 1fr; } }
.bay { background: var(--raised); border: 1px solid var(--hair); border-radius: 11px; padding: 26px 24px 24px; display: flex; flex-direction: column; }
.bay.current { box-shadow: 0 0 0 2px var(--led-ok); }
.bay.chosen { box-shadow: 0 0 0 2px var(--signal); }
.bay-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 650; }
.bay-name .badge { font-size: 12.5px; font-weight: 600; color: var(--ok-ink); background: var(--ok-bg); padding: 2px 9px; border-radius: 999px; }
.bay-name .badge.blue { color: var(--signal); background: color-mix(in srgb, var(--signal) 14%, transparent); }
.capacity { margin-top: 16px; font-size: clamp(46px, 6vw, 60px); font-weight: 750; letter-spacing: -0.045em; line-height: 1; }
.capacity small { font-size: .42em; font-weight: 650; letter-spacing: -0.01em; margin-left: 6px; color: var(--muted); }
.price { margin-top: 14px; font-size: 18px; font-weight: 600; min-height: 1.6em; }
.price span { font-weight: 450; color: var(--muted); font-size: 15px; }
.price-note { font-size: 14px; color: var(--faint); min-height: 1.5em; }
.bay-desc { margin: 14px 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.bay .btn { width: 100%; }
.fine { margin-top: 22px; max-width: 52em; font-size: 14.5px; color: var(--muted); }
.fine + .fine { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 17.5px; font-weight: 600; border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq .answer { padding: 0 40px 22px 0; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- closing call to action: the slot again, small ---------- */
.section.cta { padding: 88px 0 96px; }
@media (max-width: 720px) { .section.cta { padding: 56px 0 64px; } }
.cta-slot {
  background: var(--slot); color: var(--slot-ink); border-radius: 18px; padding: 44px 44px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
}
.cta-slot h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 3.6vw, 36px); }
.cta-slot p { margin-top: 10px; color: var(--slot-muted); font-size: 17px; max-width: 36em; }
.cta-slot .btn-primary { background: #FFFFFF; color: var(--slot); }
.cta-slot .btn-primary:hover { background: #E3ECF8; }
.cta-slot :focus-visible { outline-color: #FFFFFF; }
@media (max-width: 760px) { .cta-slot { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: 48px 0 40px; font-size: 14.5px; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .foot-brand { grid-column: 1 / -1; } }
.foot-brand img { height: 32px; width: auto; }
.foot-brand p { margin-top: 12px; max-width: 26em; }
.foot h2 { font-size: 14px; letter-spacing: 0; font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* the logo swaps with the colour scheme (the wordmark's navy is invisible on dark) */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* ---------- prose pages (legal, contact) ---------- */
.page { padding: 56px 0 88px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.6vw, 46px); letter-spacing: -0.03em; }
.prose .updated { margin-top: 10px; color: var(--faint); font-size: 14.5px; }
.prose .intro { margin-top: 20px; font-size: 18.5px; color: var(--muted); }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--muted); }
.prose table + p { margin-top: 18px; }
@media (max-width: 520px) { .prose table { font-size: 14px; } }
.contact-card {
  margin-top: 28px; background: var(--raised); border: 1px solid var(--edge); border-radius: 14px; padding: 6px 24px;
}
.contact-card dl { margin: 0; }
.contact-card div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.contact-card div:last-child { border-bottom: 0; }
.contact-card dt { font-weight: 600; }
.contact-card dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 520px) { .contact-card div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- account page ----------
 * Signed out: the sign-in panel beside "what happens when you sign in".
 * Signed in: one wide console, the plan and space on the slot, the details beside it. */
.account { padding: 48px 0 88px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.account-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.account[data-view="signin"] .account-grid,
.account[data-view="link"] .account-grid,
.account[data-view="verify"] .account-grid,
.account[data-view="loading"] .account-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .account[data-view] .account-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
#plans-section { grid-column: 1 / -1; margin-top: 12px; }
.console {
  background: linear-gradient(180deg, var(--metal-top), var(--metal-bottom));
  border: 1px solid var(--edge); border-radius: 20px; padding: 18px; box-shadow: var(--shadow);
}
.console .slot {
  background: var(--slot); border: 1px solid var(--slot-edge); border-radius: 12px; color: var(--slot-ink);
  padding: 28px 28px 26px; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .45);
}
.account[data-view="account"] .console { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 20px; align-items: stretch; }
@media (max-width: 820px) { .account[data-view="account"] .console { grid-template-columns: minmax(0, 1fr); } }
.account[data-view="account"] .console .slot { display: flex; flex-direction: column; }
.account[data-view="account"] .usage { margin-top: auto; padding-top: 32px; }
.console .slot h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.console .slot h1:focus { outline: none; }
.console .slot h1:focus-visible { outline: 2px solid #9CCBFF; outline-offset: 4px; }
.console .slot p { margin-top: 8px; color: var(--slot-muted); }
.console .slot p strong { color: var(--slot-ink); font-weight: 600; }
.console .slot a { color: #9CCBFF; }
.console .slot :focus-visible { outline-color: #9CCBFF; }
.usage { margin-top: 26px; }
.usage-figure { color: var(--slot-ink); font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.usage-of { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--slot-muted); margin-left: 4px; }
.usage-figure + .usage-bar { margin-top: 14px; }
.usage-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.usage-bar i { display: block; height: 100%; width: 0; background: var(--led-ok); border-radius: 4px; }
.usage-bar.over i { background: var(--led-warn); }
.usage-text { margin-top: 8px; font-size: 15px; color: var(--slot-muted); }
.console-body { padding: 22px 8px 6px; }
.account[data-view="account"] .console-body { padding: 6px 10px 6px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 820px) { .account[data-view="account"] .console-body { padding: 18px 8px 4px; } }
.console-body > p { color: var(--muted); }
.console-body > p + p { margin-top: 10px; }
.provider-buttons { display: grid; gap: 12px; }
.provider {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
  border-radius: 10px; border: 1px solid transparent; font-size: 16px; font-weight: 600; cursor: pointer; padding: 0 48px; min-height: 52px;
}
.provider svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.provider:disabled { opacity: .55; cursor: default; }
.provider.google { background: var(--g-fill); border-color: var(--g-edge); color: var(--g-ink); }
.provider.google:hover:not(:disabled) { background: var(--g-hover); }
.provider.apple { background: var(--a-fill); border-color: var(--a-fill); color: var(--a-ink); }
.provider.apple:hover:not(:disabled) { background: var(--a-hover); }
.signin-fine { margin-top: 18px; font-size: 14px; color: var(--faint); max-width: 40em; }
/* email + password, under the Google and Apple buttons */
.or { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--faint); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.email-form { display: grid; gap: 14px; }
.email-note { font-size: 15px; color: var(--muted); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14.5px; font-weight: 600; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 10px;
  background: var(--raised); color: var(--ink); font: inherit; font-size: 16px; box-sizing: border-box;
}
.field input:focus-visible { border-color: var(--focus); border-radius: 10px; outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { font-size: 14px; color: var(--faint); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 7px; background: transparent; color: var(--link); font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.pw-toggle:hover { background: var(--panel); }
.linkish { border: 0; background: none; padding: 2px 0; color: var(--link); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.linkish:hover { text-decoration: underline; text-underline-offset: .18em; }
.linkish:disabled, .pw-toggle:disabled { opacity: .55; cursor: default; }
.btn-block { width: 100%; }
.email-switch { font-size: 15px; color: var(--muted); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; margin: 0; }
@media (min-width: 560px) and (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts div { padding: 13px 0; border-bottom: 1px solid var(--edge); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13.5px; color: var(--faint); font-weight: 600; }
.facts dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.notice { border-radius: 10px; padding: 14px 16px; font-size: 15.5px; border: 1px solid var(--edge); background: var(--raised); }
.notice.error { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--ink); }
.notice.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--led-ok) 45%, transparent); color: var(--ink); }
.notice p + p, .notice p + .row-actions { margin-top: 8px; }
.notice strong { font-weight: 650; }
.choice-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border: 2px solid var(--signal); border-radius: 12px; padding: 16px 18px; background: var(--raised);
}
.choice-strip p { font-weight: 600; }
.choice-strip p span { display: block; font-weight: 450; color: var(--muted); font-size: 15px; }
.subhead { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 14px; }
.subhead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.subhead-row .subhead { margin: 0; }
.subhead-row .period { margin: 0; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--slot-muted); }

.account-aside { padding-top: 8px; }
.account-aside h2 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 24px; }
.account-aside .steps li { padding-bottom: 24px; }
.account-aside .steps h3 { font-size: 16.5px; }
.account-aside .steps p { font-size: 15px; }
.aside-note { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; font-size: 14.5px; color: var(--muted); background: var(--panel); }
.aside-note .led { width: 10px; height: 10px; }

/* in-page dialog */
dialog.confirm {
  border: 1px solid var(--edge); border-radius: 16px; padding: 0; max-width: min(480px, calc(100vw - 32px));
  background: var(--raised); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
dialog.confirm::backdrop { background: rgba(10, 20, 35, .55); }
.confirm-body { padding: 24px 24px 8px; }
.confirm-body h2 { font-size: 21px; letter-spacing: -0.015em; }
.confirm-body p { margin-top: 10px; color: var(--muted); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; }

/* 404 */
.lost { padding: 80px 0 120px; }
.lost .drive { max-width: 560px; }
.lost h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; margin-bottom: 28px; }
#view-verify p + p { margin-top: 10px; }
