/* LockWords website. Tokens mirror the app's design system (Shared/DesignSystem):
   primitives → semantic roles → components. No web fonts: ui-serif is New York on
   Apple devices, the same serif the app uses. */

:root {
  color-scheme: light dark;

  /* Primitives */
  --c-paper: #F6F3EE;
  --c-paper-2: #EFEAE1;
  --c-white: #FFFFFF;
  --c-ink: #1B1830;
  --c-ink-2: #4E4963;
  --c-indigo: #4A3FD0;
  --c-indigo-deep: #3A30B0;
  --c-night: #0D0C14;
  --c-night-2: #17151F;
  --c-night-3: #221F2D;
  --c-wall: #1C1916;
  --c-sky: #0E1420;
  --c-sky-2: #182133;
  --c-moonlight: #F2DDA8;
  --c-amber: #F5B764;
  --c-dusk: linear-gradient(160deg, #14113A 0%, #2E2780 38%, #5B3399 68%, #9A4A22 100%);

  /* Semantic */
  --bg: var(--c-paper);
  --bg-raised: var(--c-white);
  --bg-sunk: var(--c-paper-2);
  --text: var(--c-ink);
  --text-2: var(--c-ink-2);
  --accent: var(--c-indigo);
  --accent-hover: var(--c-indigo-deep);
  --on-accent: #FFFFFF;
  --line: #E3DDD2;
  --shadow: 0 1px 2px rgb(27 24 48 / .06), 0 12px 32px rgb(27 24 48 / .10);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .10), 0 30px 70px rgb(20 17 58 / .28);
  --focus: #4A3FD0;

  /* Type */
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.1rem, 1rem + .45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;

  /* Space, shape */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --max: 1160px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--c-night);
    --bg-raised: var(--c-night-2);
    --bg-sunk: #121019;
    --text: #F4F1EA;
    --text-2: #B3AEC4;
    --accent: #A9A3FF;
    --accent-hover: #C4BFFF;
    --on-accent: #14113A;
    --line: #2C2938;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .35);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 30px 70px rgb(0 0 0 / .55);
    --focus: #C4BFFF;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.eyebrow { font-size: .8125rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.55; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-raised); color: var(--text); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { font-weight: 650; font-style: italic; }
.nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-size: var(--fs-small); font-weight: 550; padding: .55rem .75rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-sunk); }
@media (max-width: 560px) {
  .site-header .wrap { justify-content: center; gap: 0; padding-block: .4rem; }
  .nav { margin: 0 auto; justify-content: center; }
  .nav a { padding: .45rem .6rem; }
  .nav .nav-features { display: none; }
}

/* Buttons and badge */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-ghost { color: inherit; border: 1px solid currentColor; opacity: .9; }
.btn-ghost:hover { opacity: 1; color: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background-color: #2E2780; background-image: var(--c-dusk); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(closest-side, rgb(245 183 100 / .35), transparent); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; }
.hero h1 em { font-style: italic; color: #FFE3B8; }
.hero .lead { color: rgb(255 255 255 / .82); margin: 1.25rem 0 2rem; max-width: 34ch; }
.hero .trust { margin-top: 1.5rem; font-size: var(--fs-small); color: rgb(255 255 255 / .75); display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; }
.hero .trust li::before { content: "✓"; margin-right: .4rem; color: #FFE3B8; }
.hero .btn-ghost { color: #fff; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .actions, .hero .trust { justify-content: center; }
}

/* Lock Screen mock in the hero: a real clock and real widget content */
.lockmock {
  position: relative; margin-inline: auto; width: min(100%, 380px); min-height: 470px;
  border-radius: 44px; padding: 28px 22px 22px; color: #fff; text-align: center;
  background: linear-gradient(170deg, #241F5A 0%, #3B2C7C 45%, #6A3C7D 75%, #A35A3A 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .12);
  display: flex; flex-direction: column; overflow: hidden;
}
.lockmock .date { font-weight: 600; font-size: 1rem; opacity: .9; display: flex; justify-content: center; gap: .45rem; align-items: center; }
.lockmock .date img { width: 16px; height: 16px; border-radius: 50%; }
.lockmock .clock { font: 600 clamp(4.2rem, 3rem + 5vw, 5.6rem)/1 var(--sans); letter-spacing: -.03em; margin: .25rem 0 1rem; font-variant-numeric: tabular-nums; }
.stack { position: relative; display: grid; }
.stack > .wcard { grid-area: 1 / 1; }
.wcard {
  align-self: start; width: 100%;
  border-radius: 22px; padding: 16px 18px; text-align: left;
  background: rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
  opacity: 0; transform: translateY(14px) scale(.98);
  animation: card 12s infinite; animation-delay: calc(var(--i) * 4s);
}
.wcard .kind { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 650; }
.wcard .term { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-top: .35rem; }
.wcard .term i { font-family: var(--sans); font-size: .85rem; font-weight: 400; opacity: .7; margin-left: .35rem; }
.wcard .def { opacity: .88; margin-top: .15rem; }
.wcard.art { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px; background: rgb(28 25 22 / .78); }
.wcard.art img { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.wcard.art .q { font-size: .82rem; opacity: .8; margin: 2px 0 6px; }
.wcard.art .opt { display: block; font-size: .8rem; font-weight: 600; text-align: center; padding: 6px 4px; border-radius: 999px; background: rgb(255 255 255 / .16); margin-top: 5px; }
.wcard.art .opt.ok { background: rgb(143 209 174 / .3); box-shadow: inset 0 0 0 1.5px #8FD1AE; }
.wcard.sky { display: flex; gap: 14px; align-items: center; background: rgb(14 20 32 / .78); }
.wcard.sky img { width: 64px; height: 64px; border-radius: 50%; }
.wcard.sky .phase { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.wcard.sky .meta { font-size: .85rem; opacity: .8; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 1rem; }
.lockbar { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1.5rem; }
.lockbar span { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .14); display: grid; place-items: center; }
.lockbar svg { width: 20px; height: 20px; opacity: .9; }
.lockbar i { width: 120px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .8); align-self: end; margin-bottom: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .35); animation: dot 12s infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes card { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes dot { 0%, 30% { background: #fff; } 34%, 100% { background: rgb(255 255 255 / .35); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wcard, .dots i { animation: none; }
  .stack { gap: 10px; }
  .stack > .wcard { grid-area: auto; opacity: 1; transform: none; }
  .dots { display: none; }
}

/* Sections */
.section { padding-block: var(--section); }
.section.alt { background: var(--bg-sunk); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1rem; }
.section-head .eyebrow { display: block; margin-bottom: .8rem; }

/* Collections */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.coll { border-radius: var(--r-l); padding: 1.75rem; background: var(--bg-raised); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .75rem; overflow: hidden; }
.coll h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.coll p { color: var(--text-2); }
.coll .sample { margin: auto 0 0; border-radius: var(--r-m); padding: 1.1rem 1.2rem; }
.coll.words .sample { background-color: #3A2D8C; background-image: linear-gradient(150deg, #2E2780, #5B3399); color: #fff; }
.coll.words .sample .t { font: 600 1.45rem/1.2 var(--serif); }
.coll.words .sample .d { opacity: .85; font-size: .95rem; }
.coll.art .sample { background: var(--c-wall); padding: 0; }
.coll.art .sample img { border-radius: var(--r-m) var(--r-m) 0 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.coll.art .sample figcaption { color: #F7F2E9; padding: .8rem 1.1rem 1rem; font-size: .9rem; }
.coll.art .sample figcaption b { font-family: var(--serif); font-size: 1.05rem; display: block; }
.coll.sky .sample { background: var(--c-sky); color: #F4F1EA; display: flex; gap: 1rem; align-items: center; }
.coll.sky .sample img { width: 72px; height: 72px; border-radius: 50%; }
.coll.sky .sample .t { font: 600 1.2rem/1.2 var(--serif); }
.coll.sky .sample .d { color: var(--c-moonlight); font-size: .9rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 650; color: var(--accent); }
@media (max-width: 900px) { .collections { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature.flip .feature-media { order: -1; }
.feature-text h2 { margin: .6rem 0 1rem; }
.feature-text .lead { margin-bottom: 1.25rem; }
.points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; color: var(--text-2); }
.points svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone-pair { width: 100%; max-width: 580px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.flip .feature-media { order: 0; }
  .points { text-align: left; max-width: 30rem; margin-inline: auto; }
}

/* Phone frame around real captures */
.phone {
  border-radius: clamp(28px, 7vw, 48px); padding: 10px; background: #0D0C14;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / .1); position: relative;
}
.phone img { border-radius: clamp(20px, 5.6vw, 39px); width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }
.phone-pair { display: flex; gap: 1rem; align-items: flex-end; justify-content: center; }
.phone-pair .phone:first-child { flex: 0 0 54%; max-width: 300px; }
.phone-pair .phone:nth-child(2) { flex: 0 0 43%; max-width: 250px; margin-bottom: -2rem; }

/* Steps (widgets) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--bg-raised); border-radius: var(--r-l); padding: 1.6rem; box-shadow: var(--shadow); }
.step h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.step h3::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 .95rem/1 var(--sans); flex: none; }
.step p { color: var(--text-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Pay once + privacy */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { border-radius: var(--r-l); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--bg-raised); box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: 1rem; }
.panel p { color: var(--text-2); }
.panel.dark { background-color: #2E2780; background-image: var(--c-dusk); color: #fff; }
.panel.dark p, .panel.dark li { color: rgb(255 255 255 / .82); }
.panel ul { margin: 1.1rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--text-2); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* Numbers strip */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.numbers b { display: block; font: 600 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--serif); }
.numbers span { color: var(--text-2); font-size: var(--fs-small); }
@media (max-width: 640px) { .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; } }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--bg-raised); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; color: var(--text-2); display: grid; gap: .7rem; }
.faq ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.faq h2 { font-size: 1.5rem; margin: 2.5rem 0 .25rem; }
.faq h2:first-child { margin-top: 0; }

/* CTA */
.cta { text-align: center; color: #fff; background-color: #2E2780; background-image: var(--c-dusk); border-radius: var(--r-l); padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.cta img.icon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 1.25rem; box-shadow: 0 12px 30px rgb(0 0 0 / .35); }
.cta h2 { margin-bottom: .8rem; }
.cta p { color: rgb(255 255 255 / .82); margin-bottom: 1.75rem; }
.cta .actions { justify-content: center; }

/* Legal and support pages */
.page-head { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 2rem; }
.page-head h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); }
.page-head .lead { margin-top: .8rem; }
.prose { padding-bottom: var(--section); }
.prose h2 { font-size: 1.55rem; margin: 2.4rem 0 .7rem; }
.prose h3 { margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose .meta { font-size: var(--fs-small); color: var(--text-2); }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 .9rem; border-radius: 999px; background: var(--bg-raised); box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-size: var(--fs-small); font-weight: 550; }
.contact-card { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; background: var(--bg-raised); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 1.5rem 1.75rem; margin-top: 3rem; }
.contact-card p { color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--text-2); font-size: var(--fs-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

@media (forced-colors: active) {
  .coll, .step, .panel, .faq details, .phone, .contact-card { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .hero, .site-footer, .cta { display: none; }
  body { background: #fff; color: #000; }
}
