/* Silo — homepage. Bright, white and quiet: one blue (the app's accent),
   near-black headlines in Inter Tight with tight tracking, Inter for
   everything you read, and the app's own sky behind the hero. */

:root {
  --ink: #0b1220;
  --body: #475467;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #eaecf0;
  --soft: #f6f8fb;
  --tint: #eef5ff;
  --blue: #1e6ff2;
  --blue-deep: #1459cc;
  --sky-top: #b9e1f8;
  --sky-mid: #e3f3fc;
  --green: #12b76a;
  --radius: 24px;
  --display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.08);
  --shadow-phone: 0 40px 80px -30px rgba(15, 40, 90, 0.35), 0 12px 30px -12px rgba(15, 40, 90, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

/* ── type ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--body); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 14px;
}
.accent { color: var(--blue); }
.nowrap { white-space: nowrap; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .lede { margin-top: 16px; }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--text);
  background: var(--ink); color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: #fff; background: #1d2939; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: #fff; color: var(--blue-deep); }
.btn--small { height: 40px; padding: 0 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow:hover { color: var(--blue); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff;
  transition: transform .15s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-1px); }
.store-badge img { width: 26px; height: 26px; }
.store-badge .col { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge .small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.store-badge .big { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* ── header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { position: relative; display: flex; align-items: center; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--body); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); background: rgba(16, 24, 40, 0.05); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-links a.btn { color: #fff; margin-left: 8px; padding: 0 18px; }
.nav-links a.btn:hover { color: #fff; background: #1d2939; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, 0.7); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ── hero ─────────────────────────────────────────────── */
.hero-band {
  position: relative;
  margin-top: -72px; padding-top: 72px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, #fff 100%);
  overflow: hidden;
}
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 40px; padding: 72px 0 112px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 14px; font-weight: 500; color: var(--ink);
  margin-bottom: 28px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.16); }
.hero .lede { margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.hero-note strong { color: var(--ink); font-weight: 600; }

.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; top: 50%; left: 50%; }
.hero-phones .phone--front { width: 300px; transform: translate(-50%, -50%); z-index: 3; }
.hero-phones .phone--left { width: 250px; transform: translate(-112%, -44%) rotate(-7deg); z-index: 2; }
.hero-phones .phone--right { width: 250px; transform: translate(12%, -44%) rotate(7deg); z-index: 2; }

/* ── phone frame ──────────────────────────────────────── */
/* A thin, even bezel like a real iPhone's: the screen's margin is a share of
   the phone's own width (a margin's % reads the parent's width — here the
   phone — on all four sides), not of whatever box the phone sits in. */
.phone {
  position: relative;
  display: flow-root;
  border-radius: 14.1% / 6.6%;
  background: #0d1117;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px #343a45;
}
.phone img { width: 96.4%; height: auto; margin: 1.8%; border-radius: 12.8% / 5.9%; }
/* The Dynamic Island, 11 pt below the screen's top edge. */
.phone::after {
  content: ''; position: absolute; left: 50%; top: 2%;
  width: 28.3%; height: 3.9%; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

/* ── trust row ────────────────────────────────────────── */
.trust { padding: 8px 0 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px; border-radius: 20px; background: var(--soft);
}
.trust-item .ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: #fff; color: var(--blue);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.trust-item .ico svg { width: 20px; height: 20px; }
.trust-item b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; }
.trust-item span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

/* ── features ─────────────────────────────────────────── */
.section { padding: 128px 0; }
.section--soft { background: var(--soft); }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.feature + .feature { margin-top: 144px; }
.feature--flip .feature-copy { order: 2; }
.feature-copy { max-width: 500px; }
.feature-copy .lede { margin-top: 18px; }
.checks { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 16.5px; line-height: 1.5; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--blue); }
.tag {
  display: inline-block; vertical-align: 1px; margin-left: 4px;
  padding: 1px 8px; border-radius: 999px;
  background: var(--tint); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.6;
}

.stage {
  position: relative;
  display: flex; justify-content: center; align-items: center; gap: 28px;
  padding: 56px 24px;
  border-radius: 36px;
  background: linear-gradient(180deg, #e6f3fd 0%, #f5faff 100%);
  overflow: hidden;
}
.section--soft .stage { background: linear-gradient(180deg, #dff0fc 0%, #fff 100%); }
.stage .phone { width: 280px; flex: none; }
.stage--duo .phone { width: 236px; }
.stage--duo .phone:nth-child(2) { margin-top: 64px; }

/* ── details grid ─────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--blue);
  margin-bottom: 20px;
}
.card .ico svg { width: 22px; height: 22px; }
.card p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.card--wide {
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  padding-bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f3f6fb 100%);
}
.card--wide .copy { padding-bottom: 28px; align-self: center; }
/* Two dark screens rising out of the card's foot: only their tops show. */
.card--wide .peek { display: flex; gap: 14px; align-self: end; align-items: flex-start; height: 250px; overflow: hidden; padding-top: 4px; }
.card--wide .peek img { width: 150px; border-radius: 22px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18); }

/* ── privacy band ─────────────────────────────────────── */
.privacy-band { padding: 0 0 128px; }
.privacy-card {
  position: relative; overflow: hidden;
  border-radius: 40px; padding: 88px 72px;
  background: linear-gradient(160deg, #3a86f7 0%, var(--blue) 45%, #1557c9 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.privacy-card::before {
  content: ''; position: absolute; right: -120px; top: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
.privacy-card h2 { color: #fff; }
.privacy-card .lede { color: rgba(255, 255, 255, 0.88); margin-top: 18px; }
.privacy-card .btn { margin-top: 32px; }
.privacy-list { list-style: none; display: grid; gap: 14px; position: relative; }
.privacy-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
}
.privacy-list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.privacy-list b { display: block; font-weight: 600; font-size: 16px; }
.privacy-list span { display: block; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.84); }

/* ── faq ──────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: 20px; background: var(--soft); transition: background .15s ease; }
.faq-list details[open] { background: #f0f4f9; }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 22px 26px; color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { flex: none; width: 20px; height: 20px; color: var(--blue); transition: transform .2s ease; }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list details p { padding: 0 26px 24px 62px; font-size: 16px; line-height: 1.65; color: var(--body); }
.faq-more { margin-top: 28px; text-align: center; color: var(--muted); }

/* ── contact ──────────────────────────────────────────── */
.contact-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px;
  padding: 56px; border-radius: 32px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.contact-intro .lede { margin-top: 16px; font-size: 17px; }
.contact-intro .mail { display: inline-flex; margin-top: 24px; font-weight: 600; word-break: break-all; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--soft); margin-bottom: 20px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--faint); }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--text); color: var(--ink);
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid #d0d5dd; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 111, 242, 0.14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-submit { border: 0; cursor: pointer; }
.contact-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.contact-status { margin-top: 14px; font-size: 15px; min-height: 1.5em; }
.contact-status.ok { color: #067647; }
.contact-status.error { color: #b42318; }

/* ── closing CTA ──────────────────────────────────────── */
.closing { padding: 128px 0 136px; text-align: center; }
.closing .icon { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 28px; box-shadow: 0 16px 40px -16px rgba(30, 111, 242, 0.6); }
.closing .lede { margin: 16px auto 0; max-width: 560px; }
.closing .hero-cta { justify-content: center; }

/* ── footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer-brand p { margin-top: 14px; max-width: 340px; font-size: 15px; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; word-break: break-word; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

/* ── legal and help pages ─────────────────────────────── */
.doc-hero {
  margin-top: -72px; padding: 144px 0 56px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 60%, #fff 100%);
}
.doc-hero h1 { font-size: clamp(40px, 5vw, 60px); }
.doc-hero .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc-body { padding: 16px 0 112px; }
.doc-body p, .doc-body li { font-size: 17px; line-height: 1.7; color: var(--body); }
.doc-body p + p { margin-top: 14px; }
.doc-body h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 52px 0 14px; }
.doc-body ul { margin: 14px 0 14px 22px; display: grid; gap: 8px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(30, 111, 242, 0.35); text-underline-offset: 3px; }
.doc-lead {
  margin: 8px 0 8px; padding: 22px 24px; border-radius: 20px;
  background: var(--soft); color: var(--ink) !important;
}
@media (max-width: 640px) {
  .doc-hero { margin-top: -64px; padding: 116px 0 40px; }
  .doc-body p, .doc-body li { font-size: 16px; }
  .doc-body h2 { font-size: 23px; margin-top: 44px; }
}

/* ── motion ───────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .store-badge, .link-arrow svg { transition: none; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 48px 0 88px; gap: 24px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-phones { height: 600px; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 48px; }
  .feature--flip .feature-copy { order: 0; }
  .feature-copy { max-width: 640px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .privacy-card { grid-template-columns: 1fr; padding: 64px 48px; }
  .contact-card { grid-template-columns: 1fr; gap: 36px; padding: 44px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 50px -20px rgba(16, 24, 40, 0.3), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links a.btn { margin: 6px 0 0; justify-content: center; height: 48px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; }
  .nav-links { top: 60px; left: 0; right: 0; }
  .hero-band { margin-top: -64px; padding-top: 64px; }
  .hero { padding: 36px 0 64px; }
  .pill { margin-bottom: 22px; }
  .hero-phones { height: 470px; }
  .hero-phones .phone--front { width: 218px; }
  .hero-phones .phone--left, .hero-phones .phone--right { width: 176px; }
  .hero-phones .phone--left { transform: translate(-98%, -44%) rotate(-7deg); }
  .hero-phones .phone--right { transform: translate(-2%, -44%) rotate(7deg); }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 44px; }
  .feature + .feature { margin-top: 96px; }
  .stage { padding: 36px 12px; border-radius: 28px; gap: 12px; }
  .stage .phone { width: 230px; }
  .stage--duo .phone { width: calc(50% - 6px); max-width: 190px; }
  .stage--duo .phone:nth-child(2) { margin-top: 40px; }
  .grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item { flex-direction: column; gap: 12px; padding: 18px; }
  .trust-item b { font-size: 15px; }
  .trust-item span { font-size: 13.5px; }
  .card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .card--wide .peek { justify-content: center; }
  .card--wide .peek img { width: 128px; }
  .privacy-band { padding-bottom: 88px; }
  .privacy-card { padding: 48px 24px; border-radius: 28px; }
  .contact-card { padding: 28px 20px; border-radius: 24px; }
  .faq-list summary { padding: 18px 20px; font-size: 16px; }
  .faq-list details p { padding: 0 20px 20px 56px; }
  .closing { padding: 88px 0 96px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ── unlock scroll story ──────────────────────────────────
   A sticky iPhone on a night band. Scrolling down: the Liquid Glass lock
   screen recognises you (the padlock opens), slides away, Silo's own app lock
   clears, and Home is there. home.js drives --p (whole story), --u (lock
   screen away) and --v (app lock away). The lock screen is drawn in CSS: a
   likeness of iOS's, not an Apple asset; its clock uses the visitor's system
   font, so on an iPhone or a Mac it is Apple's own. */
.unlock {
  --night: #0a1530;
  position: relative;
  height: 460vh;
  background: var(--night);
  margin-top: clamp(64px, 8vw, 120px);
}
.unlock::before,
.unlock::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px;
  pointer-events: none; z-index: 2;
}
.unlock::before { top: 0; background: linear-gradient(#fff, transparent); }
.unlock::after { bottom: 0; background: linear-gradient(transparent, #fff); }
.unlock-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 24px);
  overflow: clip;
  /* clear of the sticky site header */
  padding: 88px 20px clamp(16px, 3vh, 32px);
}
.unlock-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 61% 48%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 74% 18%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 86% 58%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 8% 82%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 92% 84%, rgba(255,255,255,0.4), transparent);
}
.phone--xl {
  width: min(clamp(240px, 33vh, 380px), 76vw);
  opacity: calc(0.3 + var(--p, 0) * 7);
  transform: scale(calc(0.92 + min(var(--p, 0) * 0.8, 0.08)));
  transition: box-shadow 0.8s ease;
}
.unlock[data-phase="app"] .phone--xl,
.unlock[data-phase="done"] .phone--xl {
  box-shadow: 0 40px 90px rgba(11, 34, 68, 0.5), 0 0 140px rgba(102, 201, 243, 0.28), inset 0 0 0 1px #343a45;
}
/* The screen: same inset and corners as every other .phone on the page */
.unlock-screen {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 1.8%; border-radius: 12.8% / 5.9%;
  container-type: inline-size;
}
.unlock-screen img { width: 100%; margin: 0; border-radius: 0; }
.unlock-app {
  transform: scale(calc(1.06 - var(--v, 0) * 0.06));
  filter: blur(calc(4px - var(--v, 0) * 4px));
  will-change: transform, filter;
}
/* Silo's own lock ("Silo is locked"), a real screen from the app */
.unlock-applock {
  position: absolute; inset: 0; z-index: 2; height: 100%; object-fit: cover;
  opacity: calc(1 - var(--v, 0));
  transform: scale(calc(1 + var(--v, 0) * 0.04));
}

/* The lock screen */
.lockscreen {
  position: absolute; inset: 0; z-index: 3;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(90% 55% at 85% 8%, rgba(185, 225, 248, 0.75), transparent 60%),
    radial-gradient(80% 50% at 10% 90%, rgba(30, 111, 242, 0.55), transparent 65%),
    linear-gradient(170deg, #5fb8ef 0%, #2f7df0 45%, #123a8f 80%, #0b2257 100%);
  transform: translateY(calc(var(--u, 0) * -104%));
  filter: blur(calc(var(--u, 0) * 6px));
  will-change: transform, filter;
}
.ls-status { position: absolute; top: 4.6%; right: 7%; display: flex; gap: 1.4cqw; align-items: center; }
.ls-status svg { width: auto; height: 3cqw; }
.ls-lock { position: absolute; top: 9.5%; left: 50%; width: 6.5cqw; height: 6.5cqw; transform: translateX(-50%); }
.ls-lock svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s ease, transform .25s ease; }
.ls-lock-open { opacity: 0; transform: scale(.85); }
.unlock:not([data-phase="lock"]) .ls-lock-closed { opacity: 0; transform: scale(.85); }
.unlock:not([data-phase="lock"]) .ls-lock-open { opacity: 1; transform: none; }
.ls-date {
  position: absolute; top: 15.5%; left: 0; right: 0; text-align: center;
  font-size: 5cqw; font-weight: 600; letter-spacing: -0.01em; opacity: 0.92;
}
/* Liquid Glass numerals: bright, a little clear, lit from the top edge */
.ls-time {
  position: absolute; top: 18.5%; left: 0; right: 0; text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter Tight', system-ui, sans-serif;
  font-size: 27cqw; font-weight: 700; line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 55%, rgba(225, 240, 255, 0.62) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.25cqw rgba(255, 255, 255, 0.35);
  filter: drop-shadow(0 0.8cqw 2.4cqw rgba(8, 30, 80, 0.28));
}
.ls-note {
  position: absolute; left: 4.5%; right: 4.5%; top: 63%;
  display: flex; gap: 3cqw; align-items: center;
  padding: 3.2cqw 3.6cqw; border-radius: 6.5cqw;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2cqw 6cqw rgba(8, 30, 80, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  font-size: 3.6cqw; line-height: 1.3;
}
.ls-note img { width: 9cqw; height: 9cqw; border-radius: 2.2cqw; flex: none; }
.ls-note-text { flex: 1; min-width: 0; }
.ls-note-head { display: flex; justify-content: space-between; gap: 2cqw; }
.ls-note-head b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-note-head span { opacity: 0.7; flex: none; }
.ls-swipe {
  position: absolute; bottom: 5.4%; left: 0; right: 0; text-align: center;
  font-size: 3.5cqw; font-weight: 500; opacity: 0; transition: opacity .3s ease;
}
.unlock[data-phase="hint"] .ls-swipe { opacity: 0.85; }
.ls-btn {
  position: absolute; bottom: 4.8%; width: 13cqw; height: 13cqw; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
}
.ls-btn svg { width: 44%; height: 44%; }
.ls-btn--left { left: 10%; }
.ls-btn--right { right: 10%; }
.ls-homebar {
  position: absolute; bottom: 1.8%; left: 50%; transform: translateX(-50%);
  width: 35%; height: 1.2cqw; border-radius: 999px; background: rgba(255, 255, 255, 0.9);
}
.unlock[data-phase="hint"] .ls-homebar { animation: barPulse 1.6s ease-in-out infinite; }
@keyframes barPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* One line under the phone, following the story */
.unlock-caption {
  position: relative; display: grid; text-align: center; min-height: 1.6em;
  font: 600 clamp(17px, 2.2vh, 21px)/1.3 var(--display); letter-spacing: -0.015em; color: #eaf3ff;
}
.unlock-caption span { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.unlock[data-phase="lock"] .unlock-caption [data-for="lock"],
.unlock[data-phase="hint"] .unlock-caption [data-for="hint"],
.unlock[data-phase="opening"] .unlock-caption [data-for="opening"],
.unlock[data-phase="app"] .unlock-caption [data-for="app"],
.unlock[data-phase="done"] .unlock-caption [data-for="app"] { opacity: 1; transform: none; }

/* Short landscape viewports and reduced motion: no sticky story, just the app */
@media (max-height: 500px), (prefers-reduced-motion: reduce) {
  .unlock { height: auto; padding-block: 72px; }
  .unlock-sticky { position: static; height: auto; }
  .lockscreen, .unlock-applock { display: none; }
  .phone--xl { opacity: 1; transform: none; }
  .unlock-app { transform: none; filter: none; }
  .unlock-caption [data-for="app"] { opacity: 1; transform: none; }
}

/* ── see it work: two real recordings ─────────────────────
   The Apple Pay clip is filmed at a counter, so it sits in a plain rounded
   frame; the AssistiveTouch clip is a screen recording, so it wears the
   page's iPhone. Both play muted, only while on screen (home.js). */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.demo { margin: 0; display: flex; flex-direction: column; }
.demo-stage {
  display: flex; justify-content: center; align-items: center;
  height: 620px; padding: 48px 24px; border-radius: 36px;
  background: linear-gradient(180deg, #e6f3fd 0%, #f5faff 100%);
  overflow: hidden;
}
.demo-film, .demo-phone { position: relative; flex: none; }
.demo-film {
  width: 290px; aspect-ratio: 720 / 1280;
  border-radius: 30px; overflow: hidden; background: #0d1117;
  box-shadow: var(--shadow-phone);
}
.demo-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-phone { width: 246px; }
.demo-phone video {
  display: block; width: 96.4%; height: auto; margin: 1.8%; aspect-ratio: 720 / 1561;
  object-fit: cover; border-radius: 12.8% / 5.9%; background: #000;
}
/* The recording keeps its own status bar, so no drawn Dynamic Island. */
.demo-phone::after { display: none; }
.demo-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 999px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(13, 17, 23, 0.55); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0.85; transition: opacity .2s ease, background .2s ease;
}
.demo-toggle:hover, .demo-toggle:focus-visible { opacity: 1; background: rgba(13, 17, 23, 0.75); }
.demo-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.demo-toggle .i-play, .demo-toggle.is-paused .i-pause { display: none; }
.demo-toggle.is-paused .i-play { display: block; }
.demo-phone .demo-toggle { right: 7%; bottom: 3.5%; }
.demo figcaption { padding: 28px 8px 0; max-width: 460px; }
.demo figcaption p { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--body); }
.demo figcaption .eyebrow { margin-bottom: 8px; }
.demo h3 { font-size: 24px; letter-spacing: -0.02em; }
@media (max-width: 820px) {
  .demo-grid { grid-template-columns: 1fr; gap: 64px; }
  .demo-stage { height: auto; padding: 40px 16px; border-radius: 28px; }
  .demo figcaption { padding: 24px 4px 0; }
}
@media (max-width: 640px) {
  .demo-film { width: min(270px, 78vw); }
  .demo-phone { width: min(230px, 66vw); }
}
