@charset "UTF-8";
/* Colours follow the app's AppPalette and lock screen: warm "Satin, stone" in light mode, iOS system colours in dark mode. */
:root {
  --background: #EEECE7;
  --surface: #FFFFFF;
  --surface-secondary: #F1EFEA;
  --text: #19191D;
  --text-secondary: #5F5D58;
  --text-tertiary: #8F8A81;
  --border: #CFCCC4;
  --divider: #E4E1DA;
  --warning: #C4271D;
  --pocket-top: #47433F;
  --pocket-middle: #2D2A27;
  --pocket-bottom: #12110F;
  --pocket-text: #F2F0EB;
  --pocket-text-secondary: #B8B4AC;
  --gold: #E9C46A;
  --gold-text: #B8902F;
  --switch-track: rgba(120, 120, 128, 0.12);
  --switch-selected: #FFFFFF;
  --switch-selected-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-monospace: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --content-width: 1080px;
  --text-width: 680px;
  --gutter: max(20px, env(safe-area-inset-left));

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #1C1C1E;
    --surface-secondary: #2C2C2E;
    --switch-track: #1C1C1E;
    --switch-selected: #3A3A3C;
    --switch-selected-shadow: none;
    --text: #FFFFFF;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --text-tertiary: rgba(235, 235, 245, 0.3);
    --border: rgba(84, 84, 88, 0.6);
    --divider: rgba(84, 84, 88, 0.45);
    --warning: #FF6961;
    --pocket-top: #45474D;
    --pocket-middle: #2B2C31;
    --pocket-bottom: #101114;
    --pocket-text: #F2F2F7;
    --pocket-text-secondary: #AEAEB2;
    --gold-text: #E9C46A;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* No double-tap zoom, so quick taps on the fan and the scenes' buttons stay taps; pinch zoom still works. */
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
/* Pictures, including the ones drawn in HTML, can't be selected or long-pressed. */
img, .lock-demo, .enclave-chip, .data-page { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }

p { margin: 0; }

code, .monospace { font-family: var(--font-monospace); font-size: 0.88em; letter-spacing: 0; }

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--divider);
}

.site-navigation {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.site-name img { border-radius: 22.5%; }

.site-navigation ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-navigation ul a { color: var(--text-secondary); text-decoration: none; }
.site-navigation ul a:hover, .site-navigation ul a[aria-current="page"] { color: var(--text); }
.site-navigation ul { align-items: center; }


@media (max-width: 520px) {
  .site-name span { display: none; }
}

.site-footer {
  border-top: 0.5px solid var(--divider);
  margin-top: 96px;
  font-size: 13px;
  color: var(--text-secondary);
}

.site-footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px var(--gutter) max(40px, env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
}

.site-footer-name { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.site-footer-name img { border-radius: 22.5%; }

.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.site-footer-legal { max-width: var(--text-width); color: var(--text-tertiary); }

/* Language link and light and dark switch: top right of the home pages only, scrolling away with them. A theme chosen there still applies on every page. The head script does the switching, so without it the switch stays hidden. */
.page-tools-bar { position: relative; z-index: 1; max-width: var(--content-width); height: 0; margin: 0 auto; }
.page-tools { position: absolute; top: 16px; right: var(--gutter); display: flex; align-items: center; gap: 12px; }
.language-link { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--switch-track); color: var(--text-secondary); font-size: 15px; font-weight: 500; text-decoration: none; }
.language-link:hover { color: var(--text); }
/* On the Slovak home page, marks links to pages that are only in English. */
.language-tag { display: inline-block; margin-left: 0.45em; padding: 0 0.4em; border: 1px solid currentColor; border-radius: 0.3em; font-size: 0.64em; font-weight: 600; line-height: 1.5; letter-spacing: 0.04em; text-decoration: none; vertical-align: 0.15em; opacity: 0.6; }

.theme-switch { display: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--switch-track); }
.shows-theme-switch .theme-switch { display: flex; }
.theme-switch button { display: grid; place-items: center; width: 38px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--text-tertiary); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.theme-switch button:hover { color: var(--text-secondary); }
.theme-switch button[aria-pressed="true"] { background: var(--switch-selected); box-shadow: var(--switch-selected-shadow); color: var(--text); }
.theme-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Download sheet: shown instead of the App Store on devices that can't install the app (site.js). The code's box stays white so cameras read it in both appearances. */
html:has(.download-sheet[open]) { overflow: hidden; }
.download-sheet {
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: none;
  border-radius: 32px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: auto;
}
.download-sheet[open] { animation: download-sheet-pop 0.3s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.download-sheet::backdrop { background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes download-sheet-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes download-sheet-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.download-sheet-content { position: relative; display: flex; flex-direction: column; align-items: center; padding: 36px 36px 28px; text-align: center; }
.download-sheet-handle { display: none; width: 40px; height: 5px; margin-bottom: 22px; border-radius: 3px; background: var(--border); }
.download-sheet-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%; background: var(--surface-secondary); color: var(--text-secondary); cursor: pointer; }
.download-sheet-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.download-sheet-icon { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 22.5%; }
.download-sheet-title { margin-bottom: 8px; font-size: 28px; line-height: 1.15; }
.download-sheet-text { max-width: 320px; margin: 0 0 24px; font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.download-sheet-code { width: 232px; height: 232px; margin-bottom: 24px; padding: 12px; border: 1px solid var(--border); border-radius: 24px; background: #FFFFFF; }
.download-sheet-code img { width: 206px; height: 206px; }
.download-sheet-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: none; border-radius: 16px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.download-sheet-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-sheet-button svg[hidden] { display: none; }
.download-sheet-copy { display: none; margin-bottom: 10px; background: var(--text); color: var(--background); transition: background 0.2s ease; }
.download-sheet-copy.is-copied { background: #34C759; color: #FFFFFF; }
.download-sheet-store { background: var(--surface-secondary); color: var(--text); }
.download-sheet-note { margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }
.narrow-only { display: none; }

@media (max-width: 620px) {
  .download-sheet { width: 100%; max-height: calc(100% - 24px); margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .download-sheet[open] { animation-name: download-sheet-rise; animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  .download-sheet-content { padding: 10px 24px calc(34px + env(safe-area-inset-bottom)); }
  .download-sheet-handle { display: block; }
  .download-sheet-close { top: 14px; right: 14px; }
  .download-sheet-icon { width: 60px; height: 60px; margin-bottom: 16px; }
  .download-sheet-title { font-size: 24px; }
  .download-sheet-text { max-width: 300px; margin-bottom: 20px; }
  .download-sheet-code { width: 184px; height: 184px; margin-bottom: 20px; padding: 10px; border-radius: 20px; }
  .download-sheet-code img { width: 162px; height: 162px; }
  .download-sheet-copy { display: flex; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .download-sheet[open] { animation: none; }
}

/* Shared pieces */

/* Screenshots come already framed in Apple's iPhone 17 Pro bezel (tools/screenshots.sh). */
.phone { width: 100%; }
/* iOS Safari paints a drop-shadow on an uncomposited image as a tinted band around it; its own layer avoids that. */
.phone img { width: 100%; height: auto; filter: drop-shadow(0 24px 32px rgba(18, 14, 10, 0.22)); will-change: filter; }

/* Home: hero */

.hero {
  padding: 72px var(--gutter) 0;
  text-align: center;
  overflow: hidden;
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 22.5%;
  box-shadow: 0 10px 30px -10px rgba(18, 14, 10, 0.45);
}

.hero h1 {
  font-size: clamp(44px, 8.4vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.hero-lede {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--text-secondary);
}
.hero-lede strong { color: var(--text); font-weight: 600; }

/* The Open Source Initiative's keyhole, unaltered and in its own colours. OSI's trademark guidelines ask that the logo link to opensource.org and that it never sit on a similar colour, so the pill stays white in both appearances. */
.open-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px #3DA639;
  color: #1E531D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.open-source-badge img { width: 17px; height: 16px; }
.open-source-badge:hover { box-shadow: inset 0 0 0 1.5px #3DA639; }
.open-source-badge + .hero-actions { margin-top: 26px; }

/* /testflight/: unlisted, for sharing the beta link. */
.testflight { padding-bottom: 96px; }
.testflight-steps { max-width: 520px; margin: 48px auto 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; text-align: left; font-size: 17px; line-height: 1.5; color: var(--text-secondary); }
.testflight-steps li { position: relative; padding-left: 44px; counter-increment: step; }
.testflight-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-size: 15px; font-weight: 600; }
.testflight-steps span { color: var(--text); font-weight: 600; }
.testflight-steps a { display: block; font-weight: 500; text-decoration: none; }
.testflight-steps a:hover { text-decoration: underline; }
.testflight .text-badge img { width: 32px; height: 32px; flex: none; }
.testflight .open-source-badge-small { margin-top: 18px; gap: 6px; padding: 3px 10px 3px 7px; font-size: 11.5px; }
.testflight .open-source-badge-small img { width: 14px; height: 13px; }
.testflight .open-source-badge-small + .hero-lede { margin-top: 18px; }
.testflight-source { margin-top: 22px; font-size: 17px; }
.testflight-source a { font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.testflight-source a:hover { color: var(--text); text-decoration: underline; }
.testflight-note { max-width: 520px; margin: 40px auto 0; font-size: 15px; line-height: 1.5; color: var(--text-tertiary); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* Three phones, the middle one in front, fading into the page at the bottom. */
.hero-phones {
  position: relative;
  max-width: 980px;
  height: clamp(500px, 68vw, 680px);
  margin: 40px auto 0;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
}

.hero-phones .phone { flex: none; width: clamp(220px, 29vw, 300px); }
.hero-phones .phone-side { width: clamp(190px, 25vw, 258px); margin-top: 56px; }
.hero-phones .phone-side:first-child { margin-right: -36px; }
.hero-phones .phone-side:last-child { margin-left: -36px; }
.hero-phones .phone-front { position: relative; z-index: 1; }

@media (max-width: 620px) {
  .hero-phones { height: 510px; margin: 16px calc(-1 * var(--gutter)) 0; }
  .hero-phones .phone-front { width: 240px; }
  .hero-phones .phone-side { width: 200px; }
  .hero-phones .phone-side:first-child { margin-right: -150px; }
  .hero-phones .phone-side:last-child { margin-left: -150px; }
}

/* Home: statements */

.statement {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 120px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.statement-text { max-width: 500px; }
.statement-reversed .statement-text { order: 2; }

.statement h2 { font-size: clamp(34px, 4.6vw, 52px); }

.statement-text > p {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.statement-text > p strong { color: var(--text); font-weight: 600; }

.statement-text .more { margin-top: 22px; font-size: 17px; }
.statement-text .more a { font-weight: 600; text-decoration: none; color: var(--text); }
.statement-text .more a:hover { text-decoration: underline; }
/* Links that leave the site: lighter than the site's own links, marked with ↗. */
.statement-text .more-secondary { margin-top: 10px; }
.more-secondary a { font-weight: 500; color: var(--text-secondary); }

/* Each pill takes its colours from the sample card it names in the fan above it. */
.card-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.card-types li {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: var(--card-type-fill);
  color: var(--card-type-ink);
  box-shadow: inset 0 0 0 1px var(--card-type-edge);
}

.card-type-payment { --card-type-fill: #E4E7EC; --card-type-ink: #2E3644; --card-type-edge: #CDD2DA; }
.card-type-identity { --card-type-fill: #E2E3F4; --card-type-ink: #3A3D86; --card-type-edge: #CACCE8; }
.card-type-passport { --card-type-fill: #F2E7E5; --card-type-ink: #7A3E3A; --card-type-edge: #E3D0CD; }
.card-type-driving-licence { --card-type-fill: #DFE8F5; --card-type-ink: #2559A6; --card-type-edge: #C6D5EC; }
.card-type-vehicle-registration { --card-type-fill: #DDF1EA; --card-type-ink: #1F6B55; --card-type-edge: #C2E2D6; }
.card-type-other { --card-type-fill: #E1E7EF; --card-type-ink: #3A5679; --card-type-edge: #C9D3E1; }

@media (prefers-color-scheme: dark) {
  .card-type-payment { --card-type-fill: #2E3644; --card-type-ink: #FFFFFF; --card-type-edge: #4A5568; }
  .card-type-identity { --card-type-fill: #3A3D86; --card-type-ink: #FFFFFF; --card-type-edge: #5A5EA8; }
  .card-type-passport { --card-type-fill: #7A3E3A; --card-type-ink: #FFFFFF; --card-type-edge: #965E59; }
  .card-type-driving-licence { --card-type-fill: #2559A6; --card-type-ink: #FFFFFF; --card-type-edge: #4677C4; }
  .card-type-vehicle-registration { --card-type-fill: #1F6B55; --card-type-ink: #FFFFFF; --card-type-edge: #3E8A72; }
  .card-type-other { --card-type-fill: #3A5679; --card-type-ink: #FFFFFF; --card-type-edge: #58739A; }
}

.statement-figure { display: flex; justify-content: center; }
.statement-figure .phone { max-width: 300px; }

@media (max-width: 820px) {
  .statement { grid-template-columns: 1fr; gap: 48px; padding-top: 96px; }
  .statement-reversed .statement-text { order: 0; }
  .statement-figure .phone { max-width: 260px; }
}

/* Home: the two encryption sections sit on a faint leather, under a pocket's curved lip, like the lock screen's. The leather
   fades into the page at the bottom, so only the lip marks where it starts. */
.pocket-band {
  --band-top: #E4E1DA;
  --band-bottom: var(--background);
  --band-grain: rgba(0, 0, 0, 0.018);
  --lip: #C9C5BD;
  position: relative;
  isolation: isolate;
  margin-top: 96px;
  padding: 3.6vw 0 120px;
}

@media (prefers-color-scheme: dark) {
  .pocket-band {
    --band-top: #1E1F22;
    --band-grain: rgba(255, 255, 255, 0.014);
    --lip: #3A3B40;
  }
}

.pocket-band > .statement:first-of-type { padding-top: 104px; }

.pocket-band > .leather {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, var(--band-grain) 0 2.2px, transparent 2.2px 4.4px),
    linear-gradient(180deg, var(--band-top), var(--band-bottom));
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0C33 0 40 10 50 10C60 10 67 0 100 0V10H0Z'/%3E%3C/svg%3E") 0 0 / 100% 3.6vw no-repeat,
    linear-gradient(#000, #000) 0 calc(3.6vw - 1px) / 100% 100% no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0C33 0 40 10 50 10C60 10 67 0 100 0V10H0Z'/%3E%3C/svg%3E") 0 0 / 100% 3.6vw no-repeat,
    linear-gradient(#000, #000) 0 calc(3.6vw - 1px) / 100% 100% no-repeat;
}

.pocket-band-lip { position: absolute; left: 0; top: 0; width: 100%; height: 3.6vw; overflow: visible; }
.pocket-band-lip path { fill: none; stroke: var(--lip); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* The lock badge from the app's onboarding and Security Overview (the SF Symbol lock.fill, semibold, on a white disc, rendered
   with AppKit to /assets/lock-symbol.png and used as a mask), where the lip dips lowest: 9.6 of the lip's 10 units. */
.pocket-band-lock {
  --lock-disc: #FFFFFF;
  position: absolute;
  left: 50%;
  top: calc(3.6vw * 0.96);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lock-disc);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
}
.pocket-band-lock span {
  width: 22.6px;
  height: 27px;
  background: var(--text);
  -webkit-mask: url("/assets/lock-symbol.png") center / contain no-repeat;
  mask: url("/assets/lock-symbol.png") center / contain no-repeat;
}
@media (prefers-color-scheme: dark) {
  .pocket-band-lock { --lock-disc: #1C1C1E; }
}

/* Home: encrypted, not just hidden. The passport is readable while unlocked; locking sweeps a gold line down it and leaves only encrypted bytes. The bytes are random, an illustration. */
.lock-demo { width: 100%; max-width: 480px; margin: 0; }

/* The radius matches the passport render's own corners (32 of its 742 by 523 pixels), so the bytes fill the card's shape. */
.wipe-window { position: relative; aspect-ratio: 742 / 523; overflow: hidden; border-radius: 4.3% / 6.1%; box-shadow: 0 24px 40px -20px rgba(18, 14, 10, 0.4); }
.wipe-window img { width: 100%; height: 100%; object-fit: cover; }

.wipe-bytes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  background: #1B1A18;
  color: #8E897F;
  font: 11px/1.5 var(--font-monospace);
  letter-spacing: 0.06em;
  white-space: pre-wrap;
  word-break: break-all;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.wipe-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); opacity: 0; transition: top 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease 1.1s; }
.lock-demo.is-locked .wipe-bytes { clip-path: inset(0); }
.lock-demo.is-locked .wipe-line { top: 100%; opacity: 1; transition: top 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.1s ease; }

.lock-demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.lock-demo-state { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.lock-demo.is-locked .lock-demo-state { color: var(--gold-text); }

.lock-demo-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--border);
  color: var(--text);
  font: 600 15px/1.2 var(--font);
  cursor: pointer;
}

.lock-demo-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock-demo-button:hover { background: var(--surface-secondary); }
.lock-demo-button:disabled { cursor: default; opacity: 0.6; }

/* Unlocking shows a prompt first: a lock that pulses, then turns over to a tick, then the passport comes back. A lock, not a
   Face ID glyph, so it doesn't look as if the page used the visitor's own Face ID. The lock is the one on the pocket's lip. */
.unlock-glyph {
  background: currentColor;
  -webkit-mask: url(/assets/lock-symbol.png) center / contain no-repeat;
  mask: url(/assets/lock-symbol.png) center / contain no-repeat;
}
.lock-demo.is-locked .lock-demo-lock-icon { display: none; }

.unlock-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  width: 136px;
  height: 136px;
  border-radius: 26px;
  background: rgba(44, 44, 46, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #FFFFFF;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  perspective: 400px;
}
/* The lock and the tick are the two faces of one tile, which turns over once unlocked. */
.unlock-flip { display: grid; transform-style: preserve-3d; transition: transform 0.22s ease-in-out; }
.unlock-glyph, .unlock-tick { grid-area: 1 / 1; width: 64px; height: 54px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.unlock-name { font-size: 15px; font-weight: 600; }
.unlock-tick { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transform: rotateY(180deg); }

.lock-demo.is-authenticating .unlock-prompt,
.lock-demo.is-authenticated .unlock-prompt { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lock-demo.is-authenticating .unlock-glyph { animation: unlock-pulse 0.4s ease-in-out; }
.lock-demo.is-authenticated .unlock-flip { transform: rotateY(180deg); }

@keyframes unlock-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.88); opacity: 0.7; }
}

/* Home: the Secure Enclave, drawn as a chip. Nine whole pins a side, in the chip's own 280-unit box. */
.enclave-chip { position: relative; width: min(300px, 80%); aspect-ratio: 1; }
.enclave-pins { position: absolute; inset: 0; width: 100%; height: 100%; fill: #B9A26A; opacity: 0.75; }

.enclave-die {
  position: absolute;
  inset: 11%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 14%;
  background: linear-gradient(145deg, #3B3936, #141311);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 50px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(233, 196, 106, 0.25);
  color: var(--gold);
  animation: enclave-glow 3.2s ease-in-out infinite;
}

.enclave-die svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.enclave-die p { font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; }

.enclave-die::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.09) 50%, transparent 58%);
  animation: enclave-sweep 4.5s ease-in-out infinite;
}

@keyframes enclave-glow {
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 50px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(233, 196, 106, 0.5), 0 0 40px rgba(233, 196, 106, 0.22); }
}

@keyframes enclave-sweep {
  from { transform: translateX(-60%); }
  60%, to { transform: translateX(60%); }
}

/* What the app doesn't have, set large. */
.absences-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 120px var(--gutter) 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 820px) {
  .absences-section { padding-top: 96px; }
}

@media (max-width: 620px) {
  .pocket-band { padding-bottom: 56px; }
  .absences-section { padding-top: 40px; }
}

.absences {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

/* Without the script, the lines fade one step at a time; with it, each line comes to full strength as it passes the middle of the screen. */
.absences li { color: var(--text-tertiary); }
.absences[data-reading] li { color: color-mix(in srgb, var(--text) calc(var(--emphasis, 0) * 100%), var(--text-tertiary)); transition: color 0.15s linear; }
.absences:not([data-reading]) li:nth-child(1) { color: var(--text); }
.absences:not([data-reading]) li:nth-child(2) { color: color-mix(in srgb, var(--text) 78%, var(--background)); }
.absences:not([data-reading]) li:nth-child(3) { color: color-mix(in srgb, var(--text) 58%, var(--background)); }
.absences:not([data-reading]) li:nth-child(4) { color: color-mix(in srgb, var(--text) 40%, var(--background)); }

/* Home: every card you carry */

.card-spread {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
  text-align: center;
}

.card-spread-text { max-width: 640px; margin: 0 auto; }
.card-spread h2 { font-size: clamp(34px, 4.6vw, 52px); }
.card-spread-text p { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--text-secondary); }

/* Six cards fanned out in an arc, each on top of the one to its left so every card's name shows; they start stacked and fan out once in view. */
.card-fan {
  --card-width: 30cqw;
  --step: 14cqw;
  position: relative;
  isolation: isolate;
  margin-top: 0;
  aspect-ratio: 100 / 34;
  container-type: inline-size;
}

.card-fan img {
  --offset: calc(var(--position) - 2.5);
  --lift: 0cqw;
  position: absolute;
  top: 50%;
  left: calc(50cqw - var(--card-width) / 2);
  width: var(--card-width);
  height: auto;
  filter: drop-shadow(0 1cqw 1.4cqw rgba(18, 14, 10, 0.22));
  transform:
    translate(calc(var(--offset) * var(--step)), calc(-50% + var(--offset) * var(--offset) * 0.9cqw + var(--lift)))
    rotate(calc(var(--offset) * 4deg));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc((2.5 - var(--offset)) * 40ms);
}


/* With the script, site.js moves the cards on springs: transform, z-index and filter are set every frame. */
.has-script [data-card-fan] { touch-action: pan-y; }
.has-script [data-card-fan] img { transition: none; will-change: transform, filter; }

.card-spread .card-types { justify-content: center; margin-top: 40px; }

.card-types li { transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.card-types button {
  margin: -6px -14px;
  padding: 6px 14px;
  border: 0;
  border-radius: inherit;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.card-types button:focus-visible { outline: 2px solid var(--card-type-ink); outline-offset: 3px; }
.card-types.has-focus li:not(.is-focused) { opacity: 0.5; }
.card-types li.is-focused { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--card-type-ink); }

/* On phones the last focused card also shows at full width above the fan. */
.card-raised { display: none; }

@media (max-width: 620px) {
  .card-raised { display: grid; margin-top: 28px; }
  .card-raised img {
    grid-area: 1 / 1;
    align-self: center;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 10px rgba(18, 14, 10, 0.22));
    will-change: filter;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .card-raised img.is-shown { opacity: 1; transform: none; }
  .card-fan { --card-width: 40cqw; --step: 12cqw; aspect-ratio: 100 / 46; }
}

/* Home: copy, export, present */

.jobs-section { max-width: var(--content-width); margin: 0 auto; padding: 96px var(--gutter) 0; }
.jobs-section-text { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.jobs-section h2 { font-size: clamp(34px, 4.6vw, 52px); }
.jobs-section-text p { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--text-secondary); }

/* Each scene plays when its action is pressed, and ends where it started so it can play again. */
/* Light stages are white panels lifted off the page by a hairline and a soft shadow; their buttons are dark, like the app's light-mode Share button, so the action stands out. */
.jobs {
  --job-stage-top: #FFFFFF;
  --job-stage-bottom: #F7F6F2;
  --job-stage-edge: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(60, 50, 30, 0.08);
  --job-action-background: #19191D;
  --job-action-hover: #3A3A3C;
  --job-action-text: #FFFFFF;
  --job-card-shadow: rgba(0, 0, 0, 0.2);
  --job-page-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  --job-file-background: #FFFFFF;
  --job-file-text: #19191D;
  --job-file-border: rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (prefers-color-scheme: dark) {
  .jobs {
    --job-stage-top: #2C2C2E;
    --job-stage-bottom: #161617;
    --job-stage-edge: none;
    --job-action-background: #3A3A3C;
    --job-action-hover: #48484A;
    --job-action-text: #FFFFFF;
    --job-card-shadow: rgba(0, 0, 0, 0.35);
    --job-page-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.3);
    --job-file-background: #1C1C1E;
    --job-file-text: #FFFFFF;
    --job-file-border: rgba(255, 255, 255, 0.16);
  }
}
.job { margin: 0; display: grid; gap: 16px; align-content: start; }
.job figcaption { font-size: 16px; line-height: 1.45; color: var(--text-secondary); }
.job figcaption strong { color: var(--text); }

.job-stage {
  position: relative;
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, var(--job-stage-top), var(--job-stage-bottom));
  box-shadow: var(--job-stage-edge);
  container-type: inline-size;
}
/* Positions are in container units of the stage (100cqw wide, 90cqw tall), measured from the card images. */
.job-card { position: absolute; left: 12cqw; top: 12.6cqw; width: 76cqw; height: auto; filter: drop-shadow(0 2cqw 3cqw var(--job-card-shadow)); will-change: filter; }

/* The app's tray button, the one that starts the scene. */
.job-action {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2cqw;
  padding: 2.8cqw 5cqw 2.8cqw 4cqw;
  border: 0;
  border-radius: 3.6cqw;
  background: var(--job-action-background);
  color: var(--job-action-text);
  font: 600 4.6cqw/1.2 var(--font);
  white-space: nowrap;
  transform: translateX(-50%);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.job-action svg { width: 5.4cqw; height: 5.4cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.job-action:hover { background: var(--job-action-hover); }
.job-action:active { transform: translateX(-50%) scale(0.96); }
.job.is-playing .job-action { opacity: 0.45; cursor: default; }

.job-number-highlight { position: absolute; left: 17.5cqw; top: 37.4cqw; width: 60.3cqw; height: 6.5cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, 0.22); box-shadow: 0 0 0 0.4cqw rgba(255, 255, 255, 0.5); opacity: 0; }
.job-number { position: absolute; left: 17.5cqw; top: 37.4cqw; width: 60.3cqw; height: 6.5cqw; display: flex; align-items: center; justify-content: center; border-radius: 1.4cqw; background: #FFFFFF; color: #111111; font: 600 4.6cqw/1 var(--font-monospace); white-space: nowrap; opacity: 0; }
.job-clipboard { position: absolute; left: 50%; top: 3cqw; z-index: 1; display: flex; align-items: center; gap: 2cqw; padding: 2cqw 4cqw 2cqw 2.4cqw; border-radius: 999px; background: #5CB85C; color: #FFFFFF; font-size: 4cqw; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(-50%); }
.job-clipboard-ring { width: 5cqw; height: 5cqw; border-radius: 50%; background: conic-gradient(#FFFFFF calc(var(--remaining, 1) * 360deg), rgba(255, 255, 255, 0.3) 0); }

.job[data-job="copy"].is-playing .job-number-highlight { animation: job-highlight 1s ease forwards; }
.job[data-job="copy"].is-playing .job-number { animation: job-lift 1.4s cubic-bezier(0.5, 0, 0.2, 1) 0.15s both; }
.job[data-job="copy"].is-playing .job-clipboard { animation: job-clipboard 4.2s ease 0.8s both; }
@keyframes job-highlight { 0% { opacity: 0; } 12%, 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes job-lift {
  0% { opacity: 0; transform: none; }
  20% { opacity: 1; transform: translateY(-1cqw) scale(1.04); }
  100% { opacity: 0; transform: translate(0, -30cqw) scale(0.5); }
}
@keyframes job-clipboard { 0% { opacity: 0; transform: translateX(-50%) translateY(-3cqw); } 8%, 85% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-3cqw); } }

/* Export: the licence's two sides take their places on an A4 page as in the app's combined layout, then the page becomes a file. */
.job-document { position: absolute; inset: 0; transform-origin: 50cqw 35.6cqw; }
.job-page { position: absolute; left: 28cqw; top: 4.5cqw; width: 44cqw; aspect-ratio: 210 / 297; background: #FFFFFF; border-radius: 1cqw; box-shadow: var(--job-page-shadow); opacity: 0; }
.job-card-back { filter: none; }
.job-card-back { opacity: 0; }
.job-file { position: absolute; left: 50%; top: 30cqw; display: flex; align-items: center; gap: 2.4cqw; padding: 2.4cqw 4cqw 2.4cqw 2.4cqw; border-radius: 3cqw; background: var(--job-file-background); box-shadow: inset 0 0 0 0.5px var(--job-file-border); color: var(--job-file-text); font-size: 4cqw; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(-50%); }
.job-file-icon { padding: 1.6cqw 1.4cqw; border-radius: 1cqw; background: #D64535; color: #FFFFFF; font-size: 2.8cqw; font-weight: 800; letter-spacing: 0.04em; }
.job[data-job="export"].is-playing .job-document { animation: job-document 5s ease forwards; }
.job[data-job="export"].is-playing .job-page { animation: job-page 5s ease forwards; }
.job[data-job="export"].is-playing .job-card:not(.job-card-back) { animation: job-front 5s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.job[data-job="export"].is-playing .job-card-back { animation: job-back 5s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.job[data-job="export"].is-playing .job-file { animation: job-file 5s ease forwards; }
@keyframes job-document { 0%, 56% { opacity: 1; transform: none; } 66% { opacity: 0; transform: scale(0.3); } 88% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes job-page { 0% { opacity: 0; transform: translateY(6cqw); } 12%, 80% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: none; } }
/* The shadow belongs to the card in the hand; printed on the page it has none. */
@keyframes job-front {
  0% { transform: none; filter: drop-shadow(0 2cqw 3cqw var(--job-card-shadow)); }
  22%, 80% { transform: translateY(-17.4cqw) scale(0.496); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }
  84%, 100% { transform: none; filter: drop-shadow(0 2cqw 3cqw var(--job-card-shadow)); }
}
@keyframes job-back { 0%, 3% { opacity: 0; transform: none; } 9% { opacity: 1; } 28%, 80% { opacity: 1; transform: translateY(8.5cqw) scale(0.496); } 84%, 100% { opacity: 0; transform: none; } }
@keyframes job-file { 0%, 60% { opacity: 0; transform: translateX(-50%) scale(0.6); } 68%, 84% { opacity: 1; transform: translateX(-50%) scale(1); } 94%, 100% { opacity: 0; transform: translateX(-50%) scale(1); } }

/* Present: the passport and the screen share one centre, 38cqw down, so the card turns in place. */
.job[data-job="present"] .job-card { top: 11cqw; }
.job-screen { position: absolute; left: 50%; top: 38cqw; width: 30cqw; aspect-ratio: 9 / 19.5; border-radius: 4.4cqw; background: #000000; box-shadow: 0 0 0 0.8cqw #3A3A3C; transform: translate(-50%, -50%); opacity: 0; }
.job[data-job="present"].is-playing .job-screen { animation: job-screen 4.2s ease forwards; }
.job[data-job="present"].is-playing .job-card { animation: job-present 4.2s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
@keyframes job-screen { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } 16%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 95%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }
@keyframes job-present { 0% { transform: none; } 22%, 78% { transform: rotate(90deg) scale(0.52); } 100% { transform: none; } }

@media (max-width: 860px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .job * { animation: none !important; transition: none !important; }
}

/* Home: open source, with the app's details set out like a passport's photo page */

.open-source-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 150px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 72px;
  align-items: center;
}

.open-source-text h2 { font-size: clamp(34px, 4.6vw, 52px); }
.open-source-text > p { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--text-secondary); }
.open-source-text .more { margin-top: 22px; font-size: 17px; }
.open-source-text .more a { font-weight: 600; text-decoration: none; }
.open-source-text .more a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .open-source-section { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 620px) {
  .open-source-section { padding-top: 88px; }
}

.data-page {
  position: relative;
  aspect-ratio: 125 / 88;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(155deg, #F6FAF4, #E5F1E2 55%, #EEF6EA);
  color: #16351A;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 30px 60px -24px rgba(18, 14, 10, 0.45);
  transform: rotate(-2deg);
}

.data-page-guilloche { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Fine wavy lines, like the background print of an identity document, in OSI's two greens (#3DA639, #1E531D). */
.data-page-guilloche path { fill: none; stroke-width: 0.45; }
.guilloche-light path { stroke: rgba(61, 166, 57, 0.28); }
.guilloche-dark path { stroke: rgba(30, 83, 29, 0.16); }
/* A ring of fine lines, open at one side: a nod to OSI's mark without its keyhole. */
.guilloche-ring path { stroke-width: 0.6; }
.guilloche-ring.guilloche-light path { stroke: rgba(61, 166, 57, 0.4); }
.guilloche-ring.guilloche-dark path { stroke: rgba(30, 83, 29, 0.24); }

.data-page-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 5cqw 5.5cqw 0;
  font-size: 3cqw;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1E531D;
}

.data-page-body {
  position: relative;
  display: grid;
  grid-template-columns: 22cqw minmax(0, 1fr);
  gap: 5cqw;
  padding: 4.5cqw 5.5cqw 0;
}

.data-page-photo { width: 22cqw; height: 22cqw; border-radius: 22.5%; box-shadow: 0 0.8cqw 2cqw rgba(0, 0, 0, 0.18); }

.data-page-fields {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6cqw 3cqw;
}

.data-page-wide { grid-column: 1 / -1; }

.data-page-fields dt { font-size: 2.1cqw; line-height: 1.3; color: #5B7A57; }

.data-page-fields dd {
  margin: 0;
  font-family: var(--font-monospace);
  font-size: 3.1cqw;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.data-page-machine-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6cqw 5cqw 3.4cqw;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-monospace);
  font-size: 3.15cqw;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #16351A;
}

/* Home: a wall of the app's screens. Each column's middle phone shows whole, at a different height per column, between
   parts of the phones above and below it; the wall fades out slowly at the top and bottom.
   In phone widths: a phone is 2.044 tall and the wall 3.2. The middle phone's top sits at 2.044 + gap - --shift, so a
   --shift from 1.3 to 1.76 keeps its edges where the fade is already more than half way in. */
.screenshot-wall {
  --phone-width: clamp(120px, 16vw, 230px);
  --wall-gap: clamp(6px, 0.8vw, 12px);
  --wall-fade: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25) 5%, rgba(0, 0, 0, 0.6) 10%, #000 17%, #000 83%, rgba(0, 0, 0, 0.6) 90%, rgba(0, 0, 0, 0.25) 95%, transparent);
  height: calc(var(--phone-width) * 3.2);
  margin-top: 96px;
  overflow: hidden;
  -webkit-mask-image: var(--wall-fade);
  mask-image: var(--wall-fade);
}
.screenshot-wall-columns { display: flex; justify-content: center; gap: var(--wall-gap); }
.screenshot-wall-column { flex: none; display: grid; gap: var(--wall-gap); width: var(--phone-width); transform: translateY(calc(-1 * var(--shift) * var(--phone-width))); }
.screenshot-wall .phone img { filter: drop-shadow(0 12px 18px rgba(18, 14, 10, 0.18)); }

/* Home: closing */

.closing {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px var(--gutter) 0;
  text-align: center;
}

.closing > img { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 22.5%; box-shadow: 0 14px 36px -12px rgba(18, 14, 10, 0.5); }
.closing h2 { font-size: clamp(34px, 4.6vw, 52px); }
.closing p { margin-top: 14px; font-size: 19px; color: var(--text-secondary); }
.closing .hero-actions { margin-top: 32px; }

/* Documents: security and privacy */

.document {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--text-width));
  gap: 64px;
  align-items: start;
}

.document-single { grid-template-columns: minmax(0, var(--text-width)); justify-content: center; }
.document-single .document-body > p { margin-top: 16px; }
.document-single .document-date { margin-bottom: 32px; }

.document-contents {
  position: sticky;
  top: 100px;
  font-size: 14px;
}

.document-contents p { font-weight: 600; margin-bottom: 10px; }
.document-contents ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.document-contents a { color: var(--text-secondary); text-decoration: none; }
.document-contents a:hover { color: var(--text); }

.document-body h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.035em; }
.document-intro { margin-top: 18px; font-size: 21px; line-height: 1.45; color: var(--text-secondary); }
.document-date { margin-top: 18px; font-size: 14px; color: var(--text-tertiary); }

.document-body h2 {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 0.5px solid var(--divider);
  font-size: 28px;
  scroll-margin-top: 80px;
}

.document-body h3 { margin-top: 32px; font-size: 20px; letter-spacing: -0.015em; }
.document-body p, .document-body ul, .document-body ol:not(.document-contents ol), .document-body table, .document-body figure { margin-top: 16px; }
.document-body ul, .document-body ol { padding-left: 1.3em; }
.document-body li + li { margin-top: 6px; }

.document-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.document-body th, .document-body td {
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 0.5px solid var(--divider);
}

.document-body th { font-weight: 600; color: var(--text-secondary); font-size: 13px; }

.note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--border);
  font-size: 15px;
}

.note strong { font-weight: 600; }

.diagram {
  margin-inline: 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--border);
}

.diagram svg { width: 100%; height: auto; display: block; }

/* Each diagram has a tall version for narrow screens, where the wide one's text would be too small to read. */
.diagram .diagram-tall { display: none; max-width: 320px; margin: 0 auto; }

@media (max-width: 620px) {
  .diagram { padding: 16px; }
  .diagram .diagram-wide { display: none; }
  .diagram .diagram-tall { display: block; }
}
.diagram figcaption { margin-top: 14px; font-size: 14px; color: var(--text-secondary); }
.diagram .box { fill: var(--surface-secondary); stroke: var(--border); stroke-width: 1; }
.diagram .box-dark { fill: var(--text); }
.diagram .label { fill: var(--text); font-family: var(--font); font-size: 14px; font-weight: 600; }
.diagram .label-small { fill: var(--text-secondary); font-family: var(--font); font-size: 12px; }
.diagram .label-inverse { fill: var(--background); font-family: var(--font); font-size: 14px; font-weight: 600; }
.diagram .line { stroke: var(--text-tertiary); stroke-width: 1.5; fill: none; }
.diagram .line-dashed { stroke-dasharray: 4 5; }
.diagram .frame { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 6 5; }
.diagram .label-inverse-small { fill: var(--background); opacity: 0.7; font-family: var(--font); font-size: 12px; }
.diagram .arrowhead { fill: var(--text-tertiary); }

.see-also { margin-top: 48px; padding-top: 24px; border-top: 0.5px solid var(--divider); }
.see-also p { font-weight: 600; }
.see-also ul { list-style: none; padding: 0; }

@media (max-width: 860px) {
  .document { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .document-contents { position: static; order: 2; margin-top: 56px; padding-top: 24px; border-top: 0.5px solid var(--divider); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Apple's badge artwork, unaltered. Apple asks for one badge per layout, at least 40 px tall. */
.app-store-badge { display: inline-flex; border-radius: 9px; }
.app-store-badge img { height: 54px; width: auto; }
.app-store-badge:hover { opacity: 0.86; }

/* Drawn to sit beside Apple's badge: same height, corner and border, black in light mode and white in dark mode. */
.text-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  padding: 0 18px 0 14px;
  border-radius: 9px;
  background: #000000;
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1.2px #A6A6A6;
  text-decoration: none;
}

.text-badge svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.text-badge span { display: flex; flex-direction: column; text-align: left; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.text-badge small { font-size: 11px; font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
.text-badge:hover { opacity: 0.86; text-decoration: none; }

@media (prefers-color-scheme: dark) {
  .text-badge { background: #FFFFFF; color: #000000; box-shadow: inset 0 0 0 1.2px #000000; }
}

.hero-link { margin-top: 22px; font-size: 17px; }
.hero-link a { font-weight: 600; text-decoration: none; }
.hero-link a::after { content: " →"; }
.hero-link a:hover { text-decoration: underline; }

/* Apple's badge at its minimum onscreen height, with a quarter of its height clear above and below. */
.header-badge { display: flex; }
.header-badge img { height: 40px; width: auto; }
.header-badge:hover { opacity: 0.86; }

/* While hidden, the badge also gives up its width and the list's gap, so Security sits at the edge. */
.page-home .header-badge-item {
  max-width: 0;
  margin-left: -22px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-width 0.3s ease, margin-left 0.3s ease, opacity 0.25s ease, visibility 0s linear 0.3s;
}

.page-home.shows-header-badge .header-badge-item {
  max-width: 120px;
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  transition: max-width 0.3s ease, margin-left 0.3s ease, opacity 0.25s ease 0.1s, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .card-fan img, .wipe-bytes, .wipe-line, .unlock-prompt, .unlock-flip { transition: none !important; }
  .unlock-glyph { animation: none !important; }
  .enclave-die, .enclave-die::after { animation: none; }
}
