/* Mekey website. Page language from design/penpot/redesign-b.js (Direction B, iOS); keycaps from KeyboardView.kt. */

@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Theme colours interpolate between palettes (set from palettes.js). */
@property --deck { syntax: '<color>'; inherits: true; initial-value: #E3E4E8; }
@property --a-top { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --a-bot { syntax: '<color>'; inherits: true; initial-value: #E8EAEE; }
@property --a-lip { syntax: '<color>'; inherits: true; initial-value: #C9CDD5; }
@property --a-pt { syntax: '<color>'; inherits: true; initial-value: #F0F1F4; }
@property --a-pb { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --a-leg { syntax: '<color>'; inherits: true; initial-value: #1F2227; }
@property --s-top { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --s-bot { syntax: '<color>'; inherits: true; initial-value: #E8EAEE; }
@property --s-lip { syntax: '<color>'; inherits: true; initial-value: #C9CDD5; }
@property --s-pt { syntax: '<color>'; inherits: true; initial-value: #F0F1F4; }
@property --s-pb { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --s-leg { syntax: '<color>'; inherits: true; initial-value: #1F2227; }
@property --d-top { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --d-bot { syntax: '<color>'; inherits: true; initial-value: #E8EAEE; }
@property --d-lip { syntax: '<color>'; inherits: true; initial-value: #C9CDD5; }
@property --d-pt { syntax: '<color>'; inherits: true; initial-value: #F0F1F4; }
@property --d-pb { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --d-leg { syntax: '<color>'; inherits: true; initial-value: #1F2227; }
@property --e-top { syntax: '<color>'; inherits: true; initial-value: #5C9DF5; }
@property --e-bot { syntax: '<color>'; inherits: true; initial-value: #2F76E0; }
@property --e-lip { syntax: '<color>'; inherits: true; initial-value: #1A5CC9; }
@property --e-pt { syntax: '<color>'; inherits: true; initial-value: #2A74E8; }
@property --e-pb { syntax: '<color>'; inherits: true; initial-value: #4189F3; }
@property --e-leg { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }

:root {
  --bg: #ECEAE5;          /* the warm paper grey behind every README render */
  --surface: #F8F7F4;
  --fg: #111214;
  --sub: #66666B;
  --rule: rgb(20 20 10 / .1);
  --tint: #0060D6;
  --ring: #0A6CF0;
  --shadow: rgb(40 36 24 / .16);
  --sha: .18; --sha-p: .22;       /* key lip shadows, light themes (KeyboardView.applyShadows) */
  --field: #FFFFFF; --ink: #16181A; --strip: rgb(255 255 255 / .6); --div: rgb(16 40 42 / .1); --hair: rgb(0 0 0 / .06);
  /* Spring(.22, .7): a key coming back up. Spring(.45, .82): tiles and panels (redesign-b.js B.motion). */
  --spring-key: linear(0, 0.069, 0.226, 0.413, 0.592, 0.744, 0.863, 0.946, 1, 1.031, 1.044, 1.046, 1.041, 1.033, 1.024, 1.016, 1.01, 1.005, 1.002, 0.999, 0.998, 0.998, 0.998, 0.998, 1);
  --spring-ui: linear(0, 0.051, 0.167, 0.31, 0.454, 0.586, 0.699, 0.79, 0.86, 0.913, 0.951, 0.977, 0.993, 1.003, 1.009, 1.011, 1.011, 1.01, 1.009, 1.007, 1.006, 1.004, 1.003, 1.002, 1);
  --theme-t: .5s;
  color-scheme: light dark;
  transition: --deck var(--theme-t), --a-top var(--theme-t), --a-bot var(--theme-t), --a-lip var(--theme-t), --a-pt var(--theme-t), --a-pb var(--theme-t), --a-leg var(--theme-t), --s-top var(--theme-t), --s-bot var(--theme-t), --s-lip var(--theme-t), --s-pt var(--theme-t), --s-pb var(--theme-t), --s-leg var(--theme-t), --d-top var(--theme-t), --d-bot var(--theme-t), --d-lip var(--theme-t), --d-pt var(--theme-t), --d-pb var(--theme-t), --d-leg var(--theme-t), --e-top var(--theme-t), --e-bot var(--theme-t), --e-lip var(--theme-t), --e-pt var(--theme-t), --e-pb var(--theme-t), --e-leg var(--theme-t);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1C1C1E; --fg: #F5F5F7; --sub: #9A9AA1; --rule: rgb(255 255 255 / .13);
    --tint: #4DA3FF; --shadow: rgb(0 0 0 / 0);
  }
}
:root[data-kb-dark="1"] { --sha: .5; --sha-p: .45; --field: rgb(255 255 255 / .09); --ink: #F2F4F3; --strip: rgb(0 0 0 / .26); --div: rgb(255 255 255 / .14); --hair: rgb(0 0 0 / .5); }
:root.boot { --theme-t: 0s; }
@media (prefers-reduced-motion: reduce) { :root { --theme-t: 0s; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
code { font: 500 .88em/1 ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; letter-spacing: 0; padding: .14em .38em; border-radius: 6px; background: var(--rule); color: var(--fg); }
h1, h2, h3 { font-family: "Onest", "Inter", system-ui, sans-serif; margin: 0; text-wrap: balance; }
h1 code, h2 code { font-size: .78em; padding: .04em .22em; border-radius: .2em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow { font: 600 15px/1.2 "Inter", sans-serif; color: var(--sub); letter-spacing: 0; margin-bottom: 14px; }
.fine { font-size: 14px; color: var(--sub); margin-top: 18px; }
.aside { font-size: 15px; color: var(--sub); margin-top: 18px; }
.center { text-align: center; justify-content: center; }

/* ------------------------------------------------------------------------------------------------ header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font: 700 19px/1 "Onest", sans-serif; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; gap: 26px; margin-left: auto; }
.bar nav a { color: var(--sub); font-size: 15px; font-weight: 500; }
.bar nav a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 720px) { .bar nav { display: none; } .bar .capbtn { margin-left: auto; } .bar-in { padding: 0 16px; } }

/* ------------------------------------------------------------------------------------------------ keycap buttons
   One element per cap: the border box is the cap gradient, the padding box is the dished plate (KeyboardView.drawCell). */
.capbtn {
  --lipd: 5px; --r: 15px; --dishw: 4px;
  display: inline-block; border-radius: var(--r); padding-bottom: var(--lipd);
  background: var(--e-lip); color: var(--e-leg);
  box-shadow: 0 3px 5px rgb(16 24 26 / var(--sha));
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cb-plate { display: flex; align-items: center; gap: 8px; }
.cb-cap {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 22px; border-radius: var(--r);
  border: var(--dishw) solid transparent;
  background: linear-gradient(var(--e-pt), var(--e-pb)) padding-box, linear-gradient(var(--e-top), var(--e-bot)) border-box;
  font: 700 17px/1 "Onest", sans-serif; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .35s var(--spring-key);
}
.capbtn:hover { text-decoration: none; }
.capbtn:hover .cb-cap { filter: brightness(1.03); }
.capbtn:active { box-shadow: 0 1px 2px rgb(16 24 26 / var(--sha-p)); }
.capbtn:active .cb-cap { transform: translateY(calc(var(--lipd) * .6)); transition-duration: 30ms; }
.capbtn:focus-visible { border-radius: var(--r); outline-offset: 4px; }
.capbtn.alt { background: var(--a-lip); color: var(--a-leg); }
.capbtn.alt .cb-cap { background: linear-gradient(var(--a-pt), var(--a-pb)) padding-box, linear-gradient(var(--a-top), var(--a-bot)) border-box; }
.capbtn.small { --lipd: 3.5px; --r: 11px; --dishw: 3px; }
.capbtn.small .cb-cap { height: 36px; padding: 0 14px; font-size: 14.5px; }

/* ------------------------------------------------------------------------------------------------ hero */
.hero {
  max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) 24px clamp(64px, 8vw, 120px);
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.35rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
.hero h1 span { color: var(--sub); }
.hero .lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.55; color: var(--sub); margin-top: 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: flex-start; }
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-copy { max-width: 640px; }
  .demo { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero { padding-inline: 16px; padding-top: 32px; }
  .cta { gap: 10px; flex-direction: column; align-items: stretch; } /* phones: full-width buttons, stacked */
  .cta .capbtn .cb-cap { width: 100%; justify-content: center; }
  .cta .cb-cap { padding: 0 15px; font-size: 16px; gap: 7px; }
  .hero h1 { font-size: 2.35rem; }
  .hero .lead { font-size: 1rem; margin-top: 18px; }
}

/* ------------------------------------------------------------------------------------------------ live keyboard */
.demo { min-width: 0; }
.device {
  background: var(--deck); border-radius: 30px; overflow: hidden;
  box-shadow: 0 50px 90px -50px var(--shadow), 0 0 0 1px rgb(0 0 0 / .05);
  user-select: none; -webkit-user-select: none;
}
@media (prefers-color-scheme: dark) { .device { box-shadow: 0 0 0 1px rgb(255 255 255 / .1); } }

.field { margin: 14px 14px 12px; height: 58px; border-radius: 22px; background: var(--field); color: var(--ink); display: flex; align-items: center; padding: 0 20px; cursor: text; transition: box-shadow .3s; }
.field:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.field-in { position: relative; display: flex; align-items: center; min-width: 0; flex: 1; overflow: hidden; white-space: pre; font: 400 21px/1 "Inter", sans-serif; letter-spacing: -0.015em; }
.field-in.overflow { justify-content: flex-end; }
#field-text { flex: none; }
#field-text.sent { animation: sent .26s cubic-bezier(.3, 0, .8, .15) forwards; }
@keyframes sent { to { transform: translateY(-14px); opacity: 0; } }
.caret { flex: none; width: 2px; height: 26px; margin-left: 1px; border-radius: 1px; background: var(--e-bot); animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ph { position: absolute; left: 4px; color: var(--ink); opacity: .72; display: none; }
.field.empty .ph { display: block; }
.field.fixed #field-text { animation: fixed .5s ease-out; }
@keyframes fixed { from { color: var(--e-bot); } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } #field-text.sent, .field.fixed #field-text { animation: none; } }

.kb { position: relative; border-top: 1px solid var(--hair); touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 200px; }
.strip { position: absolute; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: stretch; background: var(--strip); }
.slot { position: relative; border: 0; background: none; color: var(--ink); font: 400 1em/1 "Onest", sans-serif; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-radius: 10px; }
.slot.mid { font-weight: 600; }
.slot:disabled { cursor: default; }
.slot:not(:disabled):active { opacity: .5; }
.slot + .slot::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--div); }

/* One keycap: lip (::before, full cell) + glow + cap (inset bottom by the lip) + dished plate + legend. */
.key { position: absolute; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.key:focus-visible { outline-offset: 2px; }
.key::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--capR); background: var(--lc);
  box-shadow: 0 calc(3px * var(--d)) calc(4.5px * var(--d)) rgb(16 24 26 / var(--sha));
}
.key.down::before { top: calc(1px * var(--d)); box-shadow: 0 calc(1px * var(--d)) calc(1.6px * var(--d)) rgb(16 24 26 / var(--sha-p)); }
.glow { position: absolute; inset: 0; border-radius: var(--capR); opacity: 0; box-shadow: 0 0 calc(8px * var(--d)) calc(4px * var(--d)) var(--glowc, transparent); transition: opacity .5s; }
.kb.lit .glow { opacity: .7; }
.cap {
  position: absolute; left: 0; right: 0; top: 0; height: var(--capH); border-radius: var(--capR);
  background: linear-gradient(var(--ct), var(--cb));
  transition: transform .35s var(--spring-key); will-change: transform;
}
.key.down .cap { transform: translateY(calc(var(--lip) * .6)); transition-duration: 25ms; transition-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { .cap, .key.down .cap { transition: none; } .glow { transition: none; } }
.plate { position: absolute; inset: var(--dish); border-radius: var(--plateR); background: linear-gradient(var(--pt), var(--pb)); }
.legend { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--lg); font-family: "Onest", sans-serif; line-height: 1; padding-bottom: .04em; white-space: nowrap; }
.legend svg { display: block; overflow: visible; }
.r-a { --ct: var(--a-top); --cb: var(--a-bot); --lc: var(--a-lip); --pt: var(--a-pt); --pb: var(--a-pb); --lg: var(--a-leg); }
.r-s { --ct: var(--s-top); --cb: var(--s-bot); --lc: var(--s-lip); --pt: var(--s-pt); --pb: var(--s-pb); --lg: var(--s-leg); }
.r-d { --ct: var(--d-top); --cb: var(--d-bot); --lc: var(--d-lip); --pt: var(--d-pt); --pb: var(--d-pb); --lg: var(--d-leg); }
.r-e { --ct: var(--e-top); --cb: var(--e-bot); --lc: var(--e-lip); --pt: var(--e-pt); --pb: var(--e-pb); --lg: var(--e-leg); }
.lockbar { display: none; }
.kb[data-shift="on"] .sp-shift path, .kb[data-shift="locked"] .sp-shift path { fill: currentColor; }
.kb[data-shift="locked"] .sp-shift .lockbar { display: block; }
.kb[data-shift="locked"] .sp-shift path { transform: translateY(-.12px); }

/* ------------------------------------------------------------------------------------------------ demo controls */
.controls { margin-top: 26px; display: grid; gap: 18px; }
.themes { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.themes legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--sub); }
.themes legend span { color: var(--fg); margin-left: 6px; }
.sw-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.sw-row::-webkit-scrollbar { display: none; }
.sw-label { flex: none; width: 40px; font-size: 13px; color: var(--sub); }
.swatch {
  position: relative; flex: none; width: 46px; height: 34px; border-radius: 11px; background: var(--sw-deck);
  display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .07); transition: transform .3s var(--spring-ui);
}
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw-cap { width: 14px; height: 13px; border-radius: 4px; pointer-events: none; }
.sw-cap.a { background: linear-gradient(var(--sw-a), var(--sw-a2)); box-shadow: 0 2px 0 var(--sw-al); }
.sw-cap.e { width: 16px; background: linear-gradient(var(--sw-e), var(--sw-e2)); box-shadow: 0 2px 0 var(--sw-el); }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 4px; }
.swatch:active { transform: scale(.94); }

.toggles { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; border-radius: 20px;
  border: 0; background: var(--surface); color: var(--fg); font: 600 14.5px/1 "Inter", sans-serif; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--rule); transition: background-color .2s, color .2s, transform .3s var(--spring-ui);
}
.pill:active { transform: scale(.96); }
.pill[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.pill .waves { opacity: .35; }
.pill[aria-pressed="true"] .waves { opacity: 1; }
.seg { border: 0; margin: 0; padding: 3px; display: inline-flex; border-radius: 11px; background: var(--rule); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--sub); }
.seg input:checked + span { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.seg input:focus-visible + span { outline: 3px solid var(--ring); }
.note { font-size: 14px; color: var(--sub); max-width: 40em; }

/* ------------------------------------------------------------------------------------------------ tour */
.tour { max-width: 1120px; margin: 0 auto; padding: clamp(96px, 13vw, 168px) 24px 0; }
.copy { max-width: 720px; margin: 0 auto; text-align: center; }
.copy h2 { font-size: clamp(2.15rem, 4.6vw, 3.7rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.038em; }
.copy p:not(.eyebrow):not(.aside) { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--sub); margin-top: 22px; }
.copy p.aside { max-width: 36em; margin-inline: auto; }
.clip, .still { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 760px; border-radius: 28px; overflow: hidden; background: #E3E4E8; box-shadow: 0 50px 90px -60px var(--shadow); }
.clip video { width: 100%; }
.still { background: none; max-width: 820px; }
.still.wide { max-width: 760px; }
@media (prefers-color-scheme: dark) { .clip, .still { box-shadow: 0 0 0 1px rgb(255 255 255 / .08); } }
@media (max-width: 520px) { .tour { padding-inline: 16px; } .clip, .still { border-radius: 20px; } }

.paint-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.paint .copy { text-align: left; margin: 0; }
.clip.phone { margin: 0; max-width: 360px; border-radius: 40px; background: #F2F2F7; }
.gestures { margin: 34px 0 0; }
.gestures div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.gestures div:last-child { border-bottom: 1px solid var(--rule); }
.gestures dt { font-weight: 600; }
.gestures dd { margin: 0; color: var(--sub); }
@media (max-width: 860px) {
  .paint-grid { grid-template-columns: minmax(0, 1fr); }
  .clip.phone { margin: 0 auto; max-width: 300px; }
}
@media (max-width: 460px) { .gestures div { grid-template-columns: 1fr; gap: 2px; } }

.tools { max-width: 900px; margin: clamp(72px, 9vw, 120px) auto 0; }
.tools h3, .stored h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 15px 18px 15px 0; border-top: 1px solid var(--rule); }
tr:last-child th, tr:last-child td { border-bottom: 1px solid var(--rule); }
tbody th { width: 7em; font: 600 17px/1.4 "Onest", sans-serif; }
td { color: var(--sub); }
thead th { font: 600 13px/1.2 "Inter", sans-serif; color: var(--sub); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 10px; border-top: 0; }
@media (max-width: 560px) {
  .tools tr { display: grid; border-top: 1px solid var(--rule); padding: 14px 0; }
  .tools th, .tools td { border: 0; padding: 0; width: auto; }
  .tools tr:last-child { border-bottom: 1px solid var(--rule); }
  .tools tr:last-child th, .tools tr:last-child td { border: 0; }
}

/* The backlight section is always at night. */
.tour.night { max-width: none; background: #000; color: #F5F5F7; margin-top: clamp(96px, 13vw, 168px); padding-bottom: clamp(96px, 13vw, 168px); --sub: #A1A1A8; --rule: rgb(255 255 255 / .14); }
.tour.night .clip { background: #151515; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 0 120px -20px rgb(157 124 246 / .25); }
.tour.night + .tour { padding-top: clamp(96px, 13vw, 168px); }

/* ------------------------------------------------------------------------------------------------ privacy */
.privacy { max-width: 1120px; margin: 0 auto; padding: clamp(110px, 15vw, 200px) 24px 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: clamp(48px, 6vw, 80px); }
.facts > div { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.facts h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.facts p { color: var(--sub); margin-top: 8px; }
.stored { margin-top: 56px; }
.stored td:first-child { color: var(--fg); font-weight: 500; }
.stored td code { white-space: nowrap; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } .privacy { padding-inline: 16px; } }
@media (max-width: 560px) {
  .stored thead { display: none; }
  .stored tr { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule); }
  .stored td { border: 0; padding: 0; }
}

/* ------------------------------------------------------------------------------------------------ install */
.install { max-width: 1120px; margin: 0 auto; padding: clamp(110px, 15vw, 200px) 24px clamp(110px, 14vw, 180px); }
.steps { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.steps h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; margin-top: 22px; }
.steps p { color: var(--sub); margin-top: 8px; font-size: 16px; }
/* A step number is a letter key from the current theme. */
.num { display: inline-block; width: 54px; border-radius: 13px; padding-bottom: 5px; background: var(--a-lip); box-shadow: 0 3px 5px rgb(16 24 26 / var(--sha)); }
.num span { display: grid; place-items: center; height: 50px; border-radius: 13px; border: 5px solid transparent; background: linear-gradient(var(--a-pt), var(--a-pb)) padding-box, linear-gradient(var(--a-top), var(--a-bot)) border-box; color: var(--a-leg); font: 600 21px/1 "Onest", sans-serif; }
.install .cta { margin-top: clamp(56px, 7vw, 88px); }
.support { max-width: 760px; margin: calc(-1 * clamp(40px, 6vw, 90px)) auto 0; padding: 0 24px clamp(96px, 12vw, 150px); }
.support-card {
  text-align: center; border-radius: 32px; padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px);
  background: #151515; /* the Ink theme's deck, as on the backlight band */
  box-shadow: 0 1px 0 #ffffff12 inset, 0 30px 60px -28px rgb(0 0 0 / .45);
}
.support h2 { font: 800 clamp(2rem, 4.4vw, 2.9rem)/1.05 "Onest", sans-serif; letter-spacing: -0.03em; margin: 0; color: #F4F1E6; }
.support p { color: #A9A59A; font-size: 17.5px; line-height: 1.5; margin: 14px auto 30px; max-width: 30em; }
/* Ink's orange Return keycap: the same key as in the logo. */
.capbtn.coffee { --e-top: #EA8543; --e-bot: #DC712C; --e-lip: #AC5822; --e-pt: #E5752D; --e-pb: #EA813D; --e-leg: #140A02;
  box-shadow: 0 8px 24px rgb(234 133 67 / .28), 0 2px 3px rgb(0 0 0 / .4); }
.capbtn.coffee .cb-cap { height: 60px; padding: 0 30px; font-size: 18.5px; }
@media (prefers-color-scheme: dark) { .support-card { background: #1C1C1E; box-shadow: 0 0 0 1px #ffffff14; } }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } .install { padding-inline: 16px; } .steps li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; } .steps h3 { margin-top: 2px; } }

/* ------------------------------------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--rule); padding: 48px 24px calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 9px; }
.foot-brand strong { display: block; font: 700 18px/1.2 "Onest", sans-serif; letter-spacing: -0.02em; }
.foot-brand span { font-size: 14px; color: var(--sub); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: flex-end; font-size: 15px; font-weight: 500; }
.credits { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: var(--sub); max-width: 76em; }
.credits a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .2em; }
@media (max-width: 640px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot nav { justify-content: flex-start; } .foot { padding-inline: 16px; } }

/* Two-up: number pad and globe key */
.pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.half { display: flex; flex-direction: column; }
.half .copy { text-align: left; margin: 0; max-width: 30em; }
.half h3 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }
.half .copy p:not(.eyebrow) { font-size: 1.02rem; margin-top: 12px; }
.half .copy { padding-bottom: 28px; }
.half .clip { margin: auto 0 0; max-width: none; border-radius: 24px; } /* pinned to the bottom: both clips line up whatever the copy length */
@media (max-width: 860px) { .pair-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; } }

/* All palettes, on request */
.all { max-width: 820px; margin: 36px auto 0; text-align: center; }
.all summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; color: var(--tint); padding: 8px 4px; border-radius: 8px; }
.all summary::-webkit-details-marker { display: none; }
.all summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--spring-ui); }
.all[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.all .still { margin-top: 20px; }
h2 code { background: none; padding: 0; font-size: .8em; font-weight: 600; letter-spacing: -0.02em; color: var(--sub); }
.seg[hidden] { display: none; }
p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
