/* tryflashlock.com landing. System font, iOS palette, one indigo accent.
   Motion: transform + opacity only, critically damped curve, fade-only under reduced motion. */

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --sep: rgba(0, 0, 0, .1);
  --accent: #5856D6;
  --accent-press: #4644B8;
  --tint: #EEEEFC;
  --green: #1C7C3A;
  --ink: #1D1D1F;          /* dark pill */
  --on-ink: #FFFFFF;
  --nav: rgba(245, 245, 247, .72);
  --bezel: #1D1D1F;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .25), 0 12px 24px -12px rgba(0, 0, 0, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);   /* close to a critically damped spring, response ~0.5 s */
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --text: #F5F5F7;
    --muted: #98989D;
    --sep: rgba(255, 255, 255, .14);
    --accent: #7D7AFF;
    --accent-press: #6A67F0;
    --tint: #24234A;
    --green: #30D158;
    --ink: #F5F5F7;
    --on-ink: #000000;
    --nav: rgba(0, 0, 0, .66);
    --bezel: #3A3A3C;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; }
p { margin: 0; }
section { padding: 0 var(--gutter); }

/* Type scale: tight leading and negative tracking on display sizes, near zero on body */
h1 { font-size: clamp(44px, 10vw, 88px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(32px, 6vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--accent); }
.lede { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.4; letter-spacing: -.01em; color: var(--muted); }
.fine { font-size: 13px; letter-spacing: .005em; color: var(--muted); }
.dim { opacity: .8; }

/* ---------- Nav: translucent material, edge appears only when content is under it ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 0 var(--sep); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin-right: auto; }
.brand img { border-radius: 7px; }
.nav nav { display: none; gap: 28px; }
.nav nav a { color: var(--text); opacity: .8; text-decoration: none; font-size: 14px; }
.nav nav a:hover { opacity: 1; }
@media (min-width: 760px) { .nav nav { display: flex; } }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Buttons: feedback on press, not on release ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 980px; transition: transform .1s ease-out, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { background: var(--accent-press); }
.pill:active { transform: scale(.97); }
.pill-sm { font-size: 14px; padding: 7px 15px; }
.pill-lg { font-size: 17px; height: 54px; width: 100%; border-radius: 14px; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  border-radius: 14px; padding: 11px 22px 11px 18px;
  transition: transform .1s ease-out, opacity .2s; -webkit-tap-highlight-color: transparent;
}
.store:hover { opacity: .88; }
.store:active { transform: scale(.97); }
.store svg { width: 22px; height: 27px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .01em; opacity: .85; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 96px); text-align: center; overflow: hidden; }
.hero-copy { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.hero .lede { max-width: 600px; }
.cta { display: grid; gap: 12px; justify-items: center; margin-top: 10px; }

/* Three devices: the lock in front, the reason and the way out either side */
.stage {
  position: relative; max-width: 980px; margin: clamp(48px, 7vw, 80px) auto 0;
  height: clamp(440px, 62vw, 640px);
}
.device {
  position: absolute; bottom: -60px; width: clamp(220px, 30vw, 300px);
  aspect-ratio: 9 / 19.5; border-radius: clamp(36px, 5vw, 50px);
  background: var(--bezel); padding: clamp(7px, 1vw, 10px); box-shadow: var(--shadow);
}
.device > img, .device > .shield-screen { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(29px, 4.1vw, 41px); }
.device.center { left: 50%; transform: translateX(-50%); z-index: 2; bottom: -40px; }
.device.side { z-index: 1; width: clamp(190px, 25vw, 260px); }
.device.left { left: 50%; transform: translateX(-118%) rotate(-4deg); transform-origin: bottom center; }
.device.right { left: 50%; transform: translateX(18%) rotate(4deg); transform-origin: bottom center; }
@media (max-width: 560px) {
  .device.side { width: 160px; }
  .device.left { transform: translateX(-112%) rotate(-5deg); }
  .device.right { transform: translateX(12%) rotate(5deg); }
}

/* The shield, drawn as iOS draws it: ultra-thin material over the blurred app */
.shield-screen { position: relative; overflow: hidden; background: #E9E4F2; }
.feed { position: absolute; inset: -10%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12%; filter: blur(14px); opacity: .9; }
.feed i { border-radius: 18px; }
.feed i:nth-child(1) { background: #F58529; } .feed i:nth-child(2) { background: #DD2A7B; }
.feed i:nth-child(3) { background: #8134AF; } .feed i:nth-child(4) { background: #FCAF45; }
.feed i:nth-child(5) { background: #515BD4; } .feed i:nth-child(6) { background: #E1306C; }
.shield {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 0 9%;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  color: #1D1D1F;
}
.shield img { border-radius: 13px; margin-bottom: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.shield strong { font-size: clamp(17px, 2.1vw, 21px); letter-spacing: -.02em; line-height: 1.2; }
.shield span { font-size: clamp(12px, 1.35vw, 14px); color: #3C3C43; opacity: .8; line-height: 1.35; }
.sbtn { margin-top: 14px; width: 100%; background: #5856D6; color: #fff; border-radius: 14px; font-weight: 600; font-size: clamp(14px, 1.6vw, 16px); padding: 13px 0; }
.shield em { font-style: normal; color: #5856D6; font-weight: 600; font-size: clamp(14px, 1.6vw, 16px); padding: 8px 0 0; }
@media (prefers-color-scheme: dark) {
  .shield-screen { background: #1a1530; }
  .shield { background: rgba(28, 28, 30, .55); color: #F5F5F7; }
  .shield span { color: #EBEBF5; }
  .shield em { color: #A5A3FF; }
}

/* ---------- Statement ---------- */
.statement { max-width: 980px; margin: 0 auto; padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(80px, 12vw, 140px); text-align: center; }
.statement > p:first-child { font-size: clamp(36px, 7vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.statement > p:first-child span { color: var(--accent); }
.statement .sub { max-width: 620px; margin: 24px auto 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: var(--muted); }

/* ---------- How it works ---------- */
.head { max-width: 1120px; margin: 0 auto 32px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.head p { max-width: 420px; font-size: 19px; color: var(--muted); line-height: 1.4; }
.how { padding-bottom: clamp(100px, 14vw, 160px); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border-radius: 28px; padding: 28px 28px 0; display: flex; flex-direction: column; overflow: hidden; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--sep); font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 8px 0 28px; }
/* The top half of a real screen, rising out of the card's bottom edge */
.crop { margin: auto auto 0; width: 78%; max-width: 290px; height: 300px; overflow: hidden;
  border-radius: 34px 34px 0 0; background: var(--bezel); padding: 8px 8px 0; }
.crop > img { border-radius: 27px 27px 0 0; }
.mock-crop .shield-screen { height: 520px; border-radius: 27px 27px 0 0; }
.shield-screen.small .shield { justify-content: flex-start; padding-top: 80px; }
.shield-screen.small .shield strong { font-size: 18px; }
.shield-screen.small .shield span { font-size: 13px; }
.shield-screen.small .sbtn { font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(100px, 14vw, 160px); overflow-x: clip; }
.arrows { display: flex; gap: 12px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .1s ease-out, opacity .2s; }
.arrow:active { transform: scale(.94); }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 380px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 24px;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
@media (min-width: 1184px) {
  .track { padding-inline: calc((100vw - 1120px) / 2); scroll-padding-inline: calc((100vw - 1120px) / 2); }
}
.tile { scroll-snap-align: start; background: var(--surface); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.tile .shot { height: 420px; overflow: hidden; display: flex; justify-content: center; padding-top: 40px;
  background: linear-gradient(180deg, var(--tint), transparent 85%); }
.tile .shot img { width: 240px; border-radius: 34px; border: 7px solid var(--bezel); border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; align-self: flex-start; }
.tile p { padding: 22px 26px 28px; font-size: 17px; color: var(--muted); line-height: 1.45; }
.tile p b { color: var(--text); font-weight: 600; }
.text-tile .glyph { height: 420px; display: grid; place-items: center; background: linear-gradient(180deg, var(--tint), transparent 85%); }
.text-tile svg { width: 120px; height: 120px; fill: var(--accent); stroke: var(--accent); }

/* ---------- Pricing ---------- */
.pricing { padding-bottom: clamp(100px, 14vw, 160px); }
.price-in { max-width: 1120px; margin: 0 auto; background: var(--surface); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .price-in { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.price-copy { display: grid; gap: 16px; }
.price-copy > p:not(.eyebrow) { font-size: 19px; color: var(--muted); line-height: 1.45; max-width: 460px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--tint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3 8.7 13 14 7.2' fill='none' stroke='%235856D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.plans { display: grid; gap: 12px; }
.plan {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; border: 2px solid var(--sep); background: var(--bg);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .1s ease-out; -webkit-tap-highlight-color: transparent;
}
.plan:active { transform: scale(.985); }
.plan:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan[aria-checked="true"] { border-color: var(--accent); background: var(--tint); }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--sep); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.plan[aria-checked="true"] .radio { background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4 10.3 15.6 17 8.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 24px; background-position: center; }
.pname { display: grid; gap: 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tag { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; letter-spacing: 0; }
.tag.trial { background: var(--tint); color: var(--accent); }
.plan[aria-checked="true"] .tag.trial { background: var(--surface); }
.tag.save { background: var(--green); color: #fff; }
.pprice { display: grid; justify-items: end; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pprice small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plans .pill-lg { margin-top: 8px; }
.plans .fine { text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding-bottom: clamp(100px, 14vw, 160px); }
.faq h2 { margin-bottom: 28px; }
.qs { display: grid; }
details { border-bottom: 1px solid var(--sep); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
details p { color: var(--muted); padding: 0 32px 22px 0; font-size: 17px; line-height: 1.5; }
.more { margin-top: 24px; }
.more a { text-decoration: none; font-size: 17px; }
.more a:hover { text-decoration: underline; }

/* ---------- Final ---------- */
.final { text-align: center; padding-bottom: clamp(100px, 14vw, 140px); display: grid; justify-items: center; gap: 24px; }
.final-icon { border-radius: 22px; box-shadow: 0 12px 30px -8px rgba(88, 86, 214, .45); }
.final h2 { max-width: 640px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--sep); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
/* Hero devices rise from below, the centre one first */
.js .device.reveal { translate: 0 80px; transition-duration: 1s; }
.js .device.center.reveal { transition-delay: .1s; }
.js .device.side.reveal { transition-delay: .25s; }
.js .device.reveal.in { translate: 0 0; }
.js .hero-copy .reveal:nth-child(2) { transition-delay: .06s; }
.js .hero-copy .reveal:nth-child(3) { transition-delay: .12s; }
.js .hero-copy .reveal:nth-child(4) { transition-delay: .18s; }
.js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .device.reveal { translate: none; transition: opacity .3s ease; transition-delay: 0s !important; }
  .pill:active, .store:active, .plan:active, .arrow:active { transform: none; }
}

/* Even line lengths on headlines and short paragraphs */
h1, h2, .statement p, .lede, .head p { text-wrap: balance; }
.tag { white-space: nowrap; }
/* Chromium leaks blurred children past rounded overflow; clip-path holds the corners */
.crop { clip-path: inset(0 round 34px 34px 0 0); }
.device { clip-path: inset(0 round clamp(36px, 5vw, 50px)); }
.device > .shield-screen, .mock-crop .shield-screen { clip-path: inset(0 round clamp(27px, 4.1vw, 41px)); }
