/* Apple-like, with a purple tint (systemPurple) */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --fg: #1d1d1f; --muted: #6e6e73; --faint: #86868b; --line: #d2d2d7; --hair: rgba(0, 0, 0, .08);
  --tint: #8e44d6; --tint-strong: #7a2fc4; --tint-soft: rgba(142, 68, 214, .1); --on-tint: #fff;
  --ok: #248a3d; --warn: #b25000; --bad: #d70015; --code: #f0f0f3;
  --bar: rgba(251, 251, 253, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 24px rgba(0, 0, 0, .05);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .05), 0 14px 40px rgba(0, 0, 0, .1);
  --glow: rgba(142, 68, 214, .16);
  /* Apple's curves: the soft one for hover, the long settle for things coming into view */
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1c1c1e; --fg: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73; --line: #38383a; --hair: rgba(255, 255, 255, .1);
    --tint: #bf5af2; --tint-strong: #d07cf6; --tint-soft: rgba(191, 90, 242, .16); --on-tint: #fff;
    --ok: #30d158; --warn: #ff9f0a; --bad: #ff453a; --code: #2c2c2e;
    --bar: rgba(22, 22, 23, .78);
    --shadow: none;
    --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .6);
    --glow: rgba(191, 90, 242, .22);
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
h1, h2, .lead, .hero .eyebrow, .brand { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, system-ui, sans-serif; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--fg); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; }
a { color: var(--tint); text-decoration: none; text-underline-offset: .18em; } a:hover { text-decoration: underline; }
code, pre, .secret { font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; letter-spacing: 0; background: var(--code); border-radius: 6px; }
code { padding: .12em .4em; }
pre { padding: .9em 1.1em; overflow-x: auto; white-space: pre-wrap; word-break: break-all; border-radius: 12px; }

/* the translucent bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease); view-transition-name: bar; }
.scrolled .top { border-bottom-color: var(--hair); }
.top .bar { max-width: 1024px; margin: 0 auto; height: 48px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 600; font-size: 19px; color: var(--fg); letter-spacing: -.02em; } .brand:hover { text-decoration: none; }
.brand .sub { color: var(--tint); font-weight: 600; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 13px; letter-spacing: -.01em; }
.top nav a { color: var(--fg); opacity: .8; transition: opacity .2s var(--ease), color .2s var(--ease); } .top nav a:hover { opacity: 1; text-decoration: none; color: var(--tint); }
.top nav .who { color: var(--muted); }
.top nav .button.small { color: var(--on-tint); opacity: 1; padding: 4px 12px; font-size: 12px; border-radius: 980px; }

main { max-width: 1024px; margin: 0 auto; padding: 40px 22px 80px; }
footer { color: var(--faint); font-size: 12px; padding: 22px; border-top: 1px solid var(--hair); text-align: center; letter-spacing: -.01em; }
footer a { color: var(--muted); }

h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; margin: 0 0 .5em; }
h2 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -.02em; margin: 1.8em 0 .6em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .35em; }
.lead { font-size: 21px; line-height: 1.38; color: var(--muted); max-width: 680px; letter-spacing: -.016em; }
.muted { color: var(--muted); }
.tint { color: var(--tint); }

/* start page */
.hero { text-align: center; padding: 72px 0 32px; position: relative; isolation: isolate; transform-origin: 50% 0; will-change: transform, opacity; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(900px, 100vw); height: 520px; transform: translate(-50%, -18%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero .eyebrow { color: var(--tint); font-weight: 600; font-size: 19px; margin: 0 0 8px; letter-spacing: -.02em; }
.hero h1 { font-size: clamp(44px, 8vw, 80px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 18px; }
.hero h1 .tint { background: linear-gradient(110deg, #c27bff, var(--tint) 30%, #6e48d9 60%, #c27bff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.6s var(--ease); }
.hero h1:hover .tint { background-position: 100% 0; }
.hero .lead { margin: 0 auto 28px; }
.actions { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.textlink { font-size: 19px; letter-spacing: -.02em; }
.chev { display: inline-block; transition: transform .3s var(--ease); } a:hover .chev { transform: translateX(3px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 56px; }
.feature { padding: 32px 30px; border-radius: 28px; }
.feature h3 { font-size: 21px; }
.feature .step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint-soft); color: var(--tint); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 18px; padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow); border: 1px solid var(--hair); }
.grid .card, .steps .card { margin: 0; }
.card h2:first-child { margin-top: 0; font-size: 21px; }
.feature, .card.tile { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feature:hover, .card.tile:hover { transform: scale(1.015); box-shadow: var(--shadow-lift); }
.card.danger { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.narrow { max-width: 420px; margin: 24px auto; }
.narrow h1 { font-size: 32px; text-align: center; }

/* forms */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .row > label { flex: 1; min-width: 180px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
label small, .stack small { font-weight: 400; color: var(--muted); font-size: 13px; }
label.check { flex-direction: row; align-items: center; font-weight: 400; gap: 8px; }
input, textarea, select { font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); width: 100%; letter-spacing: -.01em; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:hover, textarea:hover, select:hover { border-color: color-mix(in srgb, var(--line) 55%, var(--muted)); }
input[type=checkbox] { width: auto; accent-color: var(--tint); } input[type=file] { padding: 8px; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--tint); box-shadow: 0 0 0 4px var(--tint-soft); }
textarea { resize: vertical; }

/* buttons: rounded like the fields next to them (Apple's account and checkout pages), pills only on the start page and in the bar */
button, .button { font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; background: var(--tint); color: var(--on-tint); border: 0; border-radius: 12px; padding: 11px 20px; cursor: pointer; display: inline-block; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); -webkit-tap-highlight-color: transparent; }
button:hover, .button:hover { background: var(--tint-strong); text-decoration: none; }
button:active, .button:active { transform: scale(.97); }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 35%, transparent); }
.button.large { font-size: 17px; padding: 12px 24px; }
.hero .button, .closing .button { border-radius: 980px; padding: 13px 26px; }
.hero .button:hover, .closing .button:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--tint) 35%, transparent); }
.narrow .stack > button { width: 100%; font-size: 17px; padding: 13px 20px; margin-top: 4px; }
button.secondary, .button.secondary { background: var(--tint-soft); color: var(--tint); }
button.secondary:hover, .button.secondary:hover { background: color-mix(in srgb, var(--tint) 22%, transparent); }
button.danger { background: var(--bad); } button.danger:hover { background: color-mix(in srgb, var(--bad) 85%, black); }
button.small, .button.small { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
button.link { background: none; color: var(--fg); padding: 0; font-weight: 400; font-size: 13px; opacity: .8; border-radius: 0; } button.link:hover { color: var(--tint); background: none; opacity: 1; } button.link:active { transform: none; }
form.inline { display: inline; }

.notice, .error, .note { padding: 13px 18px; border-radius: 14px; font-size: 15px; }
.notice { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.error { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.note { background: var(--tint-soft); }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 980px; background: var(--code); color: var(--muted); vertical-align: middle; letter-spacing: 0; }
.badge.ok, .badge.approved, .badge.live, .badge.fixed { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.warn, .badge.pending, .badge.new, .badge.confirmed { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.badge.rejected, .badge.revoked { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--hair); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr, table tr:not(:first-child) { transition: background-color .2s var(--ease); }
table tr:not(:first-child):hover { background: color-mix(in srgb, var(--tint-soft) 45%, transparent); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.list { padding-left: 1.1rem; } .list li { margin: .35rem 0; }
.pre { white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.filters a { padding: 5px 14px; border-radius: 980px; background: var(--surface); color: var(--fg); font-size: 14px; border: 1px solid var(--hair); transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.filters a:hover { text-decoration: none; border-color: var(--tint); }
.filters a.on { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }
.comment { border-left: 3px solid var(--tint-soft); padding: 2px 0 2px 16px; margin: 16px 0; } .comment p { margin: 4px 0; }
.qr { text-align: center; } .qr img { background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.secret { padding: .3em .55em; word-break: break-all; }
.howto { color: var(--muted); } .howto li { margin: 8px 0; } .howto code { color: var(--fg); }
.proof { border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--tint-soft) 50%, transparent); }
.proof p { margin: 0; font-size: 15px; }
details summary { cursor: pointer; color: var(--tint); margin: 8px 0; font-size: 15px; }
details[open] > :not(summary) { animation: unfold .45s var(--ease-out); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
.notice, .error { animation: drop .6s var(--ease-out) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.legal h2 { font-size: 19px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 28px 16px 60px; }
  .top .bar { padding: 0 16px; } .top nav { gap: 14px; }
  h1 { font-size: 32px; }
  .lead { font-size: 19px; }
  th:nth-child(n+4), td:nth-child(n+4) { display: none; }
}
.top nav .button.small:hover { color: var(--on-tint); }
.card .stack > button, .stack.card > button { align-self: flex-start; padding-left: 24px; padding-right: 24px; }

/* the front page's chapters, like an Apple product page */
.chapter, .closing { text-align: center; margin: 140px auto 0; max-width: 820px; }
.chapter + section { margin-top: 48px; }
.kicker { color: var(--tint); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 0 0 10px; }
.headline { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; margin: 0 0 20px; }
.headline .tint { background: linear-gradient(110deg, #c27bff, var(--tint) 45%, #6e48d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter .lead, .closing .lead { margin: 0 auto; }
.closing { margin-bottom: 40px; } .closing .lead { margin-bottom: 30px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { margin: 0; padding: 34px 32px 36px; border-radius: 28px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.028em; margin: 0 0 12px; font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, system-ui, sans-serif; }
.tile p { color: var(--muted); font-size: 16px; margin: 0; }
.tile .kicker { font-size: 14px; margin-bottom: 8px; }
.tile .stat { font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 6px 0 18px; color: var(--fg); background: linear-gradient(110deg, #c27bff, var(--tint) 55%, #6e48d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slots { display: flex; gap: 12px; margin-top: auto; padding-top: 26px; }
.slot { flex: 1; border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.slot small { font-weight: 400; font-size: 13px; color: var(--muted); }
.slot.boot { background: var(--code); }
.slot.rom { flex: 2; background: var(--tint-soft); color: var(--tint); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, transparent, var(--tint-soft) 10%, var(--tint) 50%, var(--tint-soft) 90%, transparent); }
.node { text-align: center; position: relative; }
.node .dot { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); color: var(--tint); font-weight: 700; font-size: 19px; margin-bottom: 14px; transition: transform .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.node:hover .dot { transform: scale(1.1); background: var(--tint); color: var(--on-tint); }
.node.end .dot { background: var(--tint); color: var(--on-tint); border-color: transparent; }
.node h3 { font-size: 17px; margin-bottom: 2px; }
.node p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.35; }

.terminal { background: #1d1d1f; color: #f5f5f7; border-radius: 22px; padding: 18px 28px 26px; box-shadow: var(--shadow-lift); text-align: left; }
.terminal .lights { display: flex; gap: 8px; margin-bottom: 14px; } .terminal .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .terminal .lights i + i { background: #febc2e; } .terminal .lights i + i + i { background: #28c840; }
.terminal dl { margin: 0; }
.terminal dt { font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: 0; margin-top: 18px; color: #f5f5f7; overflow-wrap: anywhere; }
.terminal dt:first-child { margin-top: 4px; }
.terminal .prompt { color: #d07cf6; margin-right: 6px; user-select: none; }
.terminal dd { margin: 4px 0 0 18px; color: #a1a1a6; font-size: 15px; }
.terminal code { background: rgba(255, 255, 255, .1); color: #f5f5f7; }
@media (prefers-color-scheme: dark) { .terminal { background: #161617; border: 1px solid var(--hair); } }
.manifest table { margin: 0; } .manifest td:first-child { white-space: nowrap; }

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; }
  .flow { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .flow::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--tint-soft), var(--tint) 50%, var(--tint-soft)); }
  .node { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: center; }
  .node .dot { grid-row: span 2; margin: 0; }
  .chapter, .closing { margin-top: 100px; }
  .manifest td:first-child { white-space: normal; word-break: break-all; }
}

/* motion: site.js marks what fades up into place as it scrolls into view, and moves the start page's hero as it scrolls away */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero.moving { transform: translateY(calc(var(--p, 0) * 60px)) scale(calc(1 - var(--p, 0) * .06)); opacity: calc(1 - var(--p, 0) * .9); }

/* pages fade into each other (Safari 18.2, Chrome 126 and newer) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero.moving { transform: none; opacity: 1; }
  .feature:hover, .card.tile:hover { transform: none; }
  @view-transition { navigation: none; }
}
