/* FaceUnlock website. Dark, with a few light tiles, a narrow column and quiet type. */
:root {
  --bg: #000; --tile: #161617; --tile-2: #1d1d1f; --fg: #f5f5f7; --muted: #86868b; --soft: #a1a1a6;
  --blue: #0071e3; --link: #2997ff; --glow: #62d8fa; --line: #38383a;
  --column: 980px; --gutter: max(20px, calc((100vw - var(--column)) / 2));
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--fg); font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.012em; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.005em; }
sup { font-size: .45em; color: var(--muted); font-weight: 400; }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--soft); }
.sub { font-size: 19px; line-height: 1.4; color: var(--soft); max-width: 30em; text-wrap: pretty; }
.fine { font-size: 12px; color: var(--muted); }
.shine { background: linear-gradient(95deg, #8af0a0, #62d8fa 55%, #4f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

/* Menu */
.globalnav { position: sticky; top: 0; z-index: 40; height: 44px; background: rgba(22,22,23,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.globalnav nav { max-width: 1024px; height: 44px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: -.01em; }
.globalnav .home { display: grid; place-items: center; color: var(--fg); }
.globalnav .home svg { width: 21px; height: 21px; }
.globalnav ul { flex: 1; display: flex; justify-content: space-between; list-style: none; padding-left: 56px; }
.globalnav li a { color: rgba(245,245,247,.8); }
.globalnav li a:hover, .globalnav li a[aria-current] { color: #fff; text-decoration: none; }
.burger { display: none; }
.subnav { position: sticky; top: 44px; z-index: 39; background: rgba(0,0,0,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.subnav > div { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 12px; }
.subnav .title { color: var(--fg); font-size: 21px; font-weight: 600; margin-right: auto; white-space: nowrap; }
.subnav ul { display: flex; gap: 24px; list-style: none; }
.subnav li a { color: rgba(245,245,247,.8); }
.pill { background: var(--blue); color: #fff; border-radius: 980px; padding: 4px 11px; }
.pill:hover { text-decoration: none; background: #0077ed; }
.ribbon { background: var(--tile-2); text-align: center; font-size: 14px; padding: 12px 20px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.btn { display: inline-block; background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: 980px; padding: 9px 21px; font-size: 17px; line-height: 1.3; }
.btn:hover { background: #0077ed; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn.ghost:hover { background: var(--link); color: #fff; }
.btn.big { padding: 13px 30px; }

/* Home: full-width tiles, then two columns, 12px apart */
.page-features main { display: grid; gap: 12px; }
.tile { text-align: center; background: var(--bg); padding: 56px 20px 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.tile h1, .tile h2 { font-size: clamp(40px, 5.4vw, 56px); }
.lead { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.2; letter-spacing: 0; margin-top: 8px; max-width: 28em; text-wrap: balance; }
.for { color: var(--muted); font-size: 17px; margin-top: 4px; }
.light { background: #f5f5f7; color: #1d1d1f; }
.light .btn.ghost { color: #0066cc; border-color: #0066cc; }
.light .btn.ghost:hover { background: #0066cc; color: #fff; }
.hero { background: radial-gradient(90% 70% at 50% 100%, rgba(41,151,255,.18), transparent 70%), var(--bg); }
.laptop { width: min(760px, 100%); margin-top: 40px; padding-bottom: 48px; }
.laptop .screen { position: relative; aspect-ratio: 16 / 8.4; border-radius: 18px 18px 4px 4px; border: 9px solid #000; outline: 1px solid #48484a; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.laptop .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.laptop .grow { position: relative; }
.laptop .deck { height: 12px; margin: 0 -5%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#5a5a5e, #2c2c2e); }
.tile .wide { width: min(900px, 100%); margin: 34px 0 48px; border-radius: 18px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(900px, 100%); margin: 40px 0 56px; }
.figures div { background: var(--tile); border-radius: 18px; padding: 30px 10px; display: grid; gap: 4px; }
.figures strong { font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.figures span { color: var(--soft); font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 12px; }
.grid .card { height: 500px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 20px 0; background: var(--tile); }
.grid .card.light { background: #f5f5f7; }
.grid h2 { font-size: clamp(28px, 3.2vw, 40px); }
.grid .card > p { font-size: clamp(17px, 1.7vw, 21px); margin-top: 6px; letter-spacing: 0; }
.art { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px 0 34px; }
.art.bleed { align-items: flex-start; padding-bottom: 0; }
.art.bleed img { width: min(440px, 92%); }
.mark-art { width: 190px; }
.art.pair img { width: 130px; }
.art.pair img + img { width: 108px; }
.light .art.pair img { filter: invert(1); }
.art.line svg { width: 130px; height: 130px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art.code { flex-direction: column; gap: 8px; font: 17px ui-monospace, "SF Mono", Menlo, monospace; color: var(--glow); }

/* Inner pages */
.intro { text-align: center; padding: 64px 20px 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.intro .demo { margin-top: 40px; }
.intro.tall { padding: 100px 20px 80px; }
.intro.download { padding-top: 72px; }
.intro.download img { margin-bottom: 14px; }
.small { font-size: 12px; color: var(--muted); margin-top: 10px; }
.band { padding: 80px var(--gutter) 0; }
.band h2 { text-align: center; margin-bottom: 36px; }
.band:last-of-type { padding-bottom: 80px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio article { background: var(--tile); border-radius: 18px; padding: 28px 24px; }
.trio h3 { font-size: 21px; margin-bottom: 8px; }
.trio p { color: var(--soft); font-size: 15px; }
.plain { list-style: none; max-width: 760px; margin: 0 auto; }
.plain li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--soft); }
.plain b { color: var(--fg); }
.after { text-align: center; margin-top: 28px; }
.more-pages { padding: 80px var(--gutter); text-align: center; }
.more-pages h2 { margin-bottom: 32px; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.links a { background: var(--tile); border-radius: 18px; padding: 26px 24px; color: var(--fg); display: grid; gap: 8px; }
.links a:hover { text-decoration: none; background: var(--tile-2); }
.links span { color: var(--link); font-size: 14px; }
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 72px; margin-top: 44px; }
.topics a { display: grid; justify-items: center; gap: 12px; color: var(--fg); font-size: 14px; min-width: 90px; }
.topics svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.topics svg use { stroke-width: initial; }
.faq { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.faq h2 { font-size: 28px; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 300; color: var(--soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); padding-bottom: 20px; }

/* The interactive Mac and product sections */
.mac { width: min(1000px, 100%); margin-top: 52px; position: relative; }
.lid { margin: 0 6%; padding: 11px 11px 14px; background: #050506; border-radius: 26px 26px 0 0; border: 2px solid #4a4a4f; border-bottom: 0; box-shadow: 0 0 0 1px #000 inset; }
.deck { height: 20px; border-radius: 3px 3px 18px 18px; background: linear-gradient(#6e6e73 0 1px, #3a3a3d 2px, #252527 60%, #0e0e10); position: relative; box-shadow: 0 30px 50px -18px rgba(0,0,0,.9); }
.deck::after { content: ""; position: absolute; left: 43%; right: 43%; top: 0; height: 8px; background: #1a1a1c; border-radius: 0 0 10px 10px; }
.mac { margin-top: 28px !important; }
.highlights { padding: 80px 0 60px; background: #101011; }
.highlights header { padding: 0 var(--gutter); margin-bottom: 44px; }

.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(780px, calc(100vw - 40px)); height: 540px; scroll-snap-align: start; background: #000; border-radius: 28px; padding: 40px 44px 0; display: flex; flex-direction: column; overflow: hidden; }
.slide > p { font-size: clamp(17px, 2vw, 24px); line-height: 1.25; font-weight: 600; color: var(--muted); max-width: 22em; }
.slide b { color: var(--fg); }
.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 28px 0 40px; flex-wrap: wrap; }
.stage.shot { align-items: flex-start; padding-bottom: 0; }
.stage.shot img { width: min(600px, 100%); height: auto; filter: drop-shadow(0 20px 40px rgba(41,151,255,.18)); }
.stage.both { gap: 20px; align-items: center; }
.both figure { flex: 1 1 200px; text-align: center; }
.mini { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: linear-gradient(140deg, #2a3872, #3d8590); display: flex; flex-direction: column; align-items: center; }
.grow { width: 190px; height: 190px; background: #000; border-radius: 0 0 46px 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 22px; font-size: 13px; font-weight: 600; animation: grow 4.2s cubic-bezier(.3,1.3,.5,1) infinite; overflow: hidden; }
.grow svg { width: 80px; height: 80px; flex: none; }
.ball { width: 108px; height: 108px; margin-top: 14px; border-radius: 50%; background: #000; display: grid; place-items: center; animation: bob 4.2s ease-in-out infinite; transform-origin: top center; }
.ball svg { width: 88px; height: 88px; }
@keyframes grow { 0%, 6% { width: 120px; height: 30px; } 20%, 88% { width: 190px; height: 190px; } 100% { width: 120px; height: 30px; } }
@keyframes bob { 0%, 6% { translate: 0 -150px; } 20%, 88% { translate: 0 0; } 100% { translate: 0 -150px; } }
.both figcaption { margin-top: 14px; font-size: 15px; font-weight: 600; }
.banners { flex-direction: column; gap: 14px; flex-wrap: nowrap; }
.banner { width: min(420px, 100%); background: var(--tile-2); border-radius: 30px; padding: 18px 24px; display: grid; gap: 2px; font-size: 14px; }
.banner span { color: var(--soft); }
.banner div { display: flex; gap: 10px; margin-top: 12px; }
.banner i { flex: 1; font-style: normal; text-align: center; padding: 7px; border-radius: 980px; background: #38383a; }
.banner i.go { background: #0a84ff; }
.pager { display: flex; justify-content: center; margin-top: 32px; }
.dots { display: flex; gap: 14px; background: rgba(66,66,69,.6); padding: 14px 18px; border-radius: 980px; }
.dots button { width: 8px; height: 8px; border-radius: 980px; border: 0; background: #86868b; cursor: pointer; transition: width .35s, background .35s; position: relative; }
.dots button::after { content: ""; position: absolute; inset: -9px -5px; }
.dots button[aria-selected="true"] { width: 40px; background: var(--fg); }

/* Security layers */
.layers { padding: 80px var(--gutter) 40px; text-align: center; }
.layers header { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 72px; }
.layers ol { list-style: none; text-align: left; max-width: 820px; margin: 0 auto; }
.layers li { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); opacity: .25; transition: opacity .6s; }
.layers li.lit { opacity: 1; }
.layers li span { grid-row: span 2; font-size: 44px; font-weight: 600; line-height: 1; background: linear-gradient(#8af0a0, #2997ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.layers h3 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.015em; }
.layers li p { color: var(--soft); font-size: 17px; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px; }
.facts div { background: var(--tile); border-radius: 28px; padding: 36px 16px; display: grid; gap: 4px; }
.facts strong { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.facts span { color: var(--soft); font-size: 15px; }

.setup { padding: 80px var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; background: #101011; }
.copy { display: grid; gap: 20px; }
.capture { text-align: center; }
.lens { position: relative; aspect-ratio: 1; border-radius: 8.75%; background: #121214; overflow: hidden; }
.lens svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.say-title { margin-top: 24px; font-weight: 600; font-size: 21px; min-height: 1.5em; }
.say { color: var(--soft); font-size: 17px; min-height: 3em; }

.compare, .specs, .get { padding: 72px var(--gutter) 0; text-align: center; }
.compare .sub { margin: 18px auto 56px; }
table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: collapse; font-size: 17px; }
th, td { padding: 22px 10px; border-bottom: 1px solid rgba(255,255,255,.14); }
thead th { font-size: clamp(17px, 2.2vw, 24px); font-weight: 600; }
tbody th { text-align: left; color: var(--muted); font-weight: 400; width: 34%; }
td { font-weight: 600; width: 33%; }
td.no { color: var(--muted); }
.specs h2 { text-align: left; max-width: 900px; margin: 0 auto 40px; }
.specs dl { max-width: 900px; margin: 0 auto; text-align: left; }
.specs dl div { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); }
.specs dt { font-weight: 600; }
.specs dd { color: var(--soft); }
.get { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 140px; }

.grow.floating { margin-top: 12px; border-radius: 40px; animation-name: grow-island; }
@keyframes grow-island { 0%, 6% { width: 60px; height: 24px; } 20%, 88% { width: 170px; height: 172px; } 100% { width: 60px; height: 24px; } }
.grow { width: 170px; }

/* Comparison headers */
.compare thead th { vertical-align: top; }
.compare thead .logo { display: block; width: 84px; height: 84px; margin: 0 auto 16px; }
.compare thead small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
@media (max-width: 620px) { .compare thead .logo { width: 56px; height: 56px; } .compare thead small { font-size: 12px; } }

/* Download */
.get .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 26px; }
/* The fingerprint is solid and fills its box, so it needs room to look the same size as the face. */
.compare thead .logo[src*="touchid"] { box-sizing: border-box; padding: 10px; }
@media (max-width: 620px) { .compare thead .logo[src*="touchid"] { padding: 7px; } }
.get .how { margin-top: 6px; font-size: 14px; }

/* Footer */
.foot { background: var(--tile-2); color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: -.01em; }
.foot .inner { max-width: 1024px; margin: 0 auto; padding: 18px 22px 24px; }
.foot .notes { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid #424245; }
.crumbs { display: flex; gap: 10px; padding: 14px 0; }
.foot a { color: #d2d2d7; }
.directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 6px 0 22px; }
.directory h3 { font-size: 12px; color: var(--fg); margin-bottom: 8px; }
.directory ul { list-style: none; display: grid; gap: 8px; }
.legal { border-top: 1px solid #424245; padding-top: 16px; }

.js .reveal { opacity: 0; translate: 0 30px; transition: opacity .9s, translate .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; translate: 0; }

@media (max-width: 833px) {
  .globalnav .burger { display: grid; align-content: center; gap: 5px; width: 30px; height: 30px; background: none; border: 0; cursor: pointer; margin-left: auto; }
  .burger i { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--fg); transition: transform .3s; }
  .burger[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .globalnav ul { display: none; position: absolute; left: 0; right: 0; top: 44px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 20px 40px 32px; background: #161617; }
  .globalnav.open ul { display: flex; }
  .globalnav li a { display: block; font-size: 24px; font-weight: 600; padding: 7px 0; color: var(--fg); }
  .subnav ul { display: none; }
  .grid { grid-template-columns: 1fr; }
  .trio, .links { grid-template-columns: 1fr; }
  .directory { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .figures { grid-template-columns: 1fr; }
  .grid .card { height: 440px; }
}

/* The product sections on smaller screens */
@media (max-width: 860px) {
  .setup { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .specs dl div { grid-template-columns: 1fr; gap: 4px; }
  .highlights, .layers { padding-top: 80px; }
}
@media (max-width: 560px) {
  .both figure { flex-basis: 40%; } .mini { height: 190px; } .grow { max-width: 90%; } .grow svg { width: 48px; height: 48px; } .ball { width: 80px; height: 80px; } .ball svg { width: 54px; height: 54px; } .grow span { font-size: 10px; }
  .narrow { display: inline; }
  .slide { height: 560px; padding: 28px 24px 0; }
  .layers li { grid-template-columns: 48px 1fr; }
  .layers li span { font-size: 40px; }
  .facts strong { font-size: 52px; }
  table { font-size: 14px; } th, td { padding: 16px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0; }
  .layers li { opacity: 1; }
}

/* Written pages */
.steps { padding-left: 22px; display: grid; gap: 10px; color: var(--soft); margin-bottom: 14px; }
.steps b { color: var(--fg); }
.note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.faq pre { background: var(--tile); border-radius: 14px; padding: 18px 20px; overflow-x: auto; margin-bottom: 14px; font: 14px/1.7 ui-monospace, "SF Mono", Menlo, monospace; }
.faq .plain { padding: 0; }
.faq .gap { margin-top: 40px; }
.faq .actions { margin-top: 32px; }
.legalese p { color: var(--soft); font-size: 14px; margin-bottom: 14px; }

/* The hero's notch, in proportion on a small laptop */
@media (max-width: 700px) { .laptop .grow { scale: .55; transform-origin: top center; } }

.mail { margin: -16px 0 30px; color: var(--soft); }
