/* Face Unlock for Mac & PC: one stylesheet for the home page and the
   plain pages (privacy, support). Dark, with the icon's red and green. */

:root {
  --bg: #05070c;
  --raised: #0c111b;
  --card: #101624;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f9;
  --soft: #9aa5b5;
  --red: #ff453a;
  --green: #30d158;
  --link: #7db4ff;
  --nav: rgba(5, 7, 12, 0.72);
  --button: #f3f5f9;
  --on-button: #05070c;
  --tint: rgba(255, 255, 255, 0.05);
  --glass: rgba(16, 22, 36, 0.86);
  --edge: rgba(0, 0, 0, 0.4);
  --panel: radial-gradient(120% 120% at 20% 30%, #121a2b, #0c111b);
  --figure: #e9edf3;
  --lift: none;
  --device-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --wide: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
/* The light theme: the same page on a pale ground. */
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --raised: #ffffff;
  --card: #ffffff;
  --line: rgba(12, 24, 48, 0.1);
  --line-strong: rgba(12, 24, 48, 0.2);
  --text: #0b1220;
  --soft: #556072;
  --red: #e0352b;
  --green: #17a046;
  --link: #0a5fe0;
  --nav: rgba(245, 247, 251, 0.78);
  --button: #0b1220;
  --on-button: #ffffff;
  --tint: rgba(12, 24, 48, 0.045);
  --glass: rgba(255, 255, 255, 0.88);
  --edge: rgba(12, 24, 48, 0.06);
  --panel: radial-gradient(120% 120% at 20% 30%, #ffffff, #eef2f8);
  --figure: #2a3142;
  --lift: 0 1px 2px rgba(12, 24, 48, 0.05), 0 12px 32px -18px rgba(12, 24, 48, 0.22);
  --device-shadow: 0 40px 80px -34px rgba(12, 24, 48, 0.55);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); transition: background 0.4s, color 0.4s;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

/* ---- Top bar ---- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: 12px max(20px, calc((100vw - var(--wide)) / 2));
  background: var(--nav); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; margin-right: auto; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand em { font-style: normal; font-weight: 500; color: var(--soft); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--soft); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--button); color: var(--on-button); font-weight: 650; font-size: 16px; text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.88; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--tint); opacity: 1; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* The light and dark switch, in the top right corner. */
.theme {
  flex: none; width: 38px; height: 38px; margin-left: -8px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, transform 0.3s var(--ease);
}
.theme:hover { background: var(--tint); transform: rotate(18deg); }
.theme svg { grid-area: 1 / 1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.3s, transform 0.5s var(--ease); }
.theme .moon, :root[data-theme="light"] .theme .sun { opacity: 0; transform: rotate(-70deg) scale(0.5); }
:root[data-theme="light"] .theme .moon { opacity: 1; transform: none; }

/* ---- Plain pages: privacy and support ---- */
.doc main { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 28px 0 10px; }
.doc h2 { font-size: 23px; margin: 40px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 4px; }
.soft { color: var(--soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 18px 0; box-shadow: var(--lift); }
.card h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
th { color: var(--soft); font-weight: 600; }
.wrap { overflow-x: auto; }

footer {
  max-width: var(--wide); margin: 72px auto 0; padding: 30px 20px 48px; border-top: 1px solid var(--line);
  color: var(--soft); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
}
footer a { color: var(--soft); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--text); }
footer small { font-size: 13px; max-width: 560px; }

/* ---- Home ---- */
.section { max-width: var(--wide); margin: 0 auto; padding: 96px 20px 0; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--soft); margin: 0 0 12px; }
.section h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px; max-width: 22ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 58ch; margin: 0; }
.red { color: var(--red); }
.green { color: var(--green); }

/* Things that rise into place as they scroll into view. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; text-align: center; padding: 64px 20px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14px; color: var(--soft); background: var(--tint);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); animation: beat 2.4s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
.hero h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.0; letter-spacing: -0.04em; margin: 22px auto 20px; max-width: 14ch; font-weight: 700; }
.hero h1 span { background: linear-gradient(100deg, var(--red) 10%, #ffb340 50%, var(--green) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto; max-width: 54ch; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.stage { position: relative; width: 100vw; margin: 8px calc(50% - 50vw) 0; height: clamp(320px, 52vw, 620px); }
.stage canvas {
  width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease;
  /* The floor fades into the page instead of ending at the canvas's edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%); mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
}
.stage.ready canvas { opacity: 1; }
/* Shown until the scene is drawn, and for good if it can't be. */
.stage::before {
  content: ""; position: absolute; inset: 0; transition: opacity 1.2s ease; pointer-events: none;
  background: radial-gradient(40% 55% at 62% 45%, color-mix(in srgb, var(--state, var(--red)) 26%, transparent), transparent 70%);
}
.stage.ready::before { opacity: 0; }

/* The slide control under the scene: right unlocks, left locks. */
.try { position: relative; z-index: 2; margin: -34px auto 0; display: grid; justify-items: center; gap: 12px; }
.slide {
  --knob: 58px; --pad: 5px; position: relative; width: min(340px, 86vw); height: calc(var(--knob) + var(--pad) * 2);
  border-radius: 999px; background: var(--glass); border: 1.5px solid var(--red); cursor: pointer; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px var(--edge), 0 18px 50px -12px rgba(255, 69, 58, 0.45); transition: border-color 0.45s, box-shadow 0.45s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.slide[aria-checked="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--edge), 0 18px 50px -12px rgba(48, 209, 88, 0.45); }
.slide .knob {
  position: absolute; top: var(--pad); left: var(--pad); width: var(--knob); height: var(--knob); border-radius: 50%; background: var(--red);
  display: grid; place-items: center; transform: translateX(var(--x, 0px)); transition: transform 0.5s var(--ease), background 0.45s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.slide.dragging .knob { transition: background 0.45s; }
.slide[aria-checked="true"] .knob { background: var(--green); }
.slide .knob svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity 0.3s, transform 0.4s var(--ease); }
.slide .knob .open, .slide[aria-checked="true"] .knob .shut { opacity: 0; transform: scale(0.6); }
.slide[aria-checked="true"] .knob .open { opacity: 1; transform: none; }
.slide .words { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--soft); pointer-events: none; }
.slide .words span { grid-area: 1 / 1; transition: opacity 0.35s, transform 0.45s var(--ease); padding-left: 46px; }
.slide .words .to-lock { opacity: 0; transform: translateX(-14px); padding-left: 0; padding-right: 46px; }
.slide[aria-checked="true"] .words .to-unlock { opacity: 0; transform: translateX(14px); }
.slide[aria-checked="true"] .words .to-lock { opacity: 1; transform: none; }
.try small { color: var(--soft); font-size: 14px; }
.try small b { font-weight: 600; color: var(--red); transition: color 0.45s; }
.try.unlocked small b { color: var(--green); }

/* Three ways to connect */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.tile { background: linear-gradient(180deg, var(--card), var(--raised)); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--lift); transition: border-color 0.3s, transform 0.4s var(--ease); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile h3 { font-size: 20px; margin: 18px 0 6px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--soft); font-size: 16px; }
.tile .tag { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; }
.glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); border: 1px solid var(--line); color: var(--text); }
.glyph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glyph .wave { animation: wave 2.4s infinite; opacity: 0.25; }
.glyph .wave:nth-of-type(2) { animation-delay: 0.3s; }
.glyph .wave:nth-of-type(3) { animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { opacity: 0.25; } 35% { opacity: 1; } }
.glyph .spin { transform-origin: 12px 12px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--lift); counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; font-size: 16px;
  color: #05070c; background: linear-gradient(135deg, var(--red), var(--green)); margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--soft); font-size: 16px; }

/* The app, in three screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 40px); margin: 48px auto 0; max-width: 920px; align-items: start; }
.device { margin: 0; }
.device .frame {
  border-radius: clamp(26px, 4vw, 46px); padding: clamp(6px, 0.9vw, 10px); background: #000; border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--device-shadow), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 80px -20px var(--halo, rgba(125, 180, 255, 0.25));
  transform: translateY(calc(var(--lift, 0) * 1px)); will-change: transform;
}
.device:nth-child(1) { --halo: rgba(48, 209, 88, 0.28); }
.device:nth-child(2) { --halo: rgba(125, 180, 255, 0.25); margin-top: clamp(0px, 5vw, 56px); }
.device:nth-child(3) { --halo: rgba(255, 69, 58, 0.28); }
.device .frame::before { content: ""; display: block; width: 30%; height: clamp(10px, 1.9vw, 22px); border-radius: 999px; background: #0d0f14; margin: clamp(6px, 1vw, 12px) auto clamp(2px, 0.4vw, 6px); }
.device img { width: 100%; height: auto; border-radius: 0 0 clamp(20px, 3.2vw, 37px) clamp(20px, 3.2vw, 37px); }
.device figcaption { text-align: center; color: var(--soft); font-size: 15px; margin-top: 18px; }
.device figcaption b { display: block; color: var(--text); font-size: 17px; }

/* Walk away, it locks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--soft); font-size: 16.5px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: rgba(48, 209, 88, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='%2330d158' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }
.ticks li b { color: var(--text); font-weight: 600; }
.walk { border-radius: 26px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--lift); padding: 10px; overflow: hidden; }
.walk .guide { stroke: var(--line-strong); }
.walk .ring { stroke: var(--link); }
.walk .figure { fill: var(--figure); }
.walk .legs { stroke: var(--figure); }
.walk .say-open { fill: var(--green); }
.walk .say-shut { fill: var(--red); }
.walk svg { width: 100%; height: auto; }
.walk .near { animation: near 10s infinite; }
.walk .far { animation: far 10s infinite; }
.walk .mover { animation: mover 10s infinite ease-in-out; }
.walk .ring { transform-origin: 130px 118px; animation: ring 3.2s infinite ease-out; }
.walk .ring:nth-of-type(2) { animation-delay: 1.6s; }
@keyframes mover { 0%, 6% { transform: translateX(0); } 40%, 56% { transform: translateX(215px); } 92%, 100% { transform: translateX(0); } }
@keyframes near { 0%, 24% { opacity: 1; } 27%, 71% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes far { 0%, 24% { opacity: 0; } 27%, 71% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes ring { from { transform: scale(0.35); opacity: 0.55; } to { transform: scale(1); opacity: 0; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.grid .tile { padding: 22px; border-radius: 20px; }
.grid .tile h3 { font-size: 17.5px; margin-top: 16px; }
.grid .tile p { font-size: 15px; }
.grid .glyph { width: 44px; height: 44px; border-radius: 12px; }
.grid .glyph svg { width: 24px; height: 24px; }

/* Trust */
.trust { position: relative; border-radius: 32px; border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); overflow: hidden; background: var(--raised); box-shadow: var(--lift); }
.trust::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(48, 209, 88, 0.16), transparent); pointer-events: none; }
.trust::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 69, 58, 0.13), transparent); pointer-events: none; }
.trust > * { position: relative; z-index: 1; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; margin-top: 40px; }
.facts h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.facts p { margin: 0; color: var(--soft); font-size: 16px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--lift); }
.plan.best { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--red), var(--green)) border-box; border: 1.5px solid transparent; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 2px; line-height: 1.1; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.plan .price s { font-size: 20px; color: var(--soft); font-weight: 500; margin-right: 6px; }
.plan .note { color: var(--soft); font-size: 14.5px; min-height: 3.2em; margin: 0; }
.plan .note b { color: var(--green); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.plan li { color: var(--soft); font-size: 15.5px; padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-3px); }
.fine { color: var(--soft); font-size: 14.5px; margin-top: 20px; max-width: 80ch; }

/* Download */
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.get { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--raised); box-shadow: var(--lift); display: grid; gap: 6px; align-content: start; }
.get h3 { margin: 12px 0 0; font-size: 20px; }
.get p { margin: 0; color: var(--soft); font-size: 15.5px; }
.soon { justify-self: start; margin-top: 14px; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 6px 12px; color: var(--text); background: var(--tint); border: 1px solid var(--line-strong); }

/* Questions */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 22px; color: var(--soft); max-width: 70ch; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .ways, .steps, .plans, .gets { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .facts { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .plan .note { min-height: 0; }
  .stage { height: clamp(300px, 78vw, 520px); }
}
@media (max-width: 520px) {
  .brand em { display: none; }
  .nav { gap: 16px; }
  .hero { padding-top: 40px; }
  .grid { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(3, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 36px -20px 0; padding: 0 20px 20px; max-width: none; }
  .device { scroll-snap-align: center; }
  .device:nth-child(2) { margin-top: 0; }
  .device .frame { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill i, .glyph .wave, .glyph .spin, .walk .near, .walk .far, .walk .mover, .walk .ring { animation: none; }
  .glyph .wave { opacity: 1; }
  .walk .far { opacity: 0; }
  .device .frame { transform: none; }
}
