/* Lucify install page. The site is for phones; desktops see only .desktop-gate. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/barlow-800.woff2) format("woff2"); }

:root {
  --paper: #F3EEE5; --card: #FFFCF7; --line: #E3DACB; --ink: #15130F; --muted: #6E6558;
  --amber: #F2AE1C; --amber-deep: #C98A00;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
p { margin: 0; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand img { border-radius: 9px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 20px; background: rgba(243, 238, 229, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.install-link { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: var(--amber); padding: 6px 14px; border-radius: 999px; }

/* Intro */
.intro { padding: 18px 20px 0; max-width: 640px; }
.intro h1 { font-size: 50px; margin-bottom: 10px; }
.intro p { font-size: 17px; color: var(--muted); }

/* Screens: swipe sideways */
.screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 20px 8px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens figure { flex: none; width: 214px; margin: 0; scroll-snap-align: center; }
.phone { margin: 0; border-radius: 34px; padding: 6px; background: var(--ink); box-shadow: 0 14px 30px rgba(40, 30, 10, 0.18); }
.phone img { border-radius: 28px; width: 100%; height: auto; }
.screens figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.screens figcaption b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }

/* What it does */
.features { padding: 34px 20px 8px; }
.features h2, .install h2 { font-size: 32px; margin-bottom: 16px; }
.features ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 15px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.features li b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.features li b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin: 0 8px 3px 0; }

/* Install */
.install { padding: 30px 20px 44px; display: grid; gap: 16px; }
.card { background: var(--ink); color: #F3EEE5; border-radius: 26px; padding: 26px 22px; }
.card h2 { color: #fff; }
.card .note { color: #B8AF9F; font-size: 15px; margin: -6px 0 18px; }
.card .small { color: #9D9484; }
.invite label { display: block; margin-bottom: 12px; }
.invite label span { display: block; font-size: 13px; font-weight: 600; color: #B8AF9F; margin-bottom: 5px; }
.invite .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invite input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid #3A352C; background: #221F19; color: #fff; font: inherit; font-size: 16px; }
.invite input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 174, 28, 0.25); }
.invite .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: flex; width: 100%; align-items: center; justify-content: center; padding: 15px 20px; border: 0; border-radius: 14px; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:active { filter: brightness(0.95); }
.btn[disabled] { opacity: 0.6; }
#apk-meta { margin-top: 10px; }
.msg { min-height: 20px; margin-top: 12px; font-size: 15px; }
.msg.ok { color: #7FD9B0; }
.msg.err { color: #FF8A80; }
.invite.done .row, .invite.done label, .invite.done button { display: none; }
.invite.done .msg { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(127, 217, 176, 0.12); }
.steps { margin: 20px 0 14px; padding: 18px 0 0 20px; border-top: 1px solid #2E2A23; color: #D9D1C3; font-size: 15px; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.steps li::marker { color: var(--amber); font-weight: 700; }
.switch { text-align: center; }
.switch button { background: none; border: 0; padding: 6px; font: inherit; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Platform: phones see their own install card; no data-platform (no script) shows both */
.for-ios, .for-android { display: none; }
[data-platform="ios"] .only-android, [data-platform="android"] .only-ios { display: none; }
[data-platform="ios"] .for-ios, [data-platform="android"] .for-android { display: inline; }

/* Desktop */
.desktop-gate { display: none; }
[data-platform="desktop"] body > :not(.desktop-gate) { display: none; }
[data-platform="desktop"] .desktop-gate { display: flex; min-height: 100vh; align-items: center; justify-content: center; gap: 72px; padding: 40px; }
.gate-inner { max-width: 420px; }
.gate-inner .brand { margin-bottom: 30px; }
.gate-inner h1 { font-size: 64px; margin-bottom: 14px; }
.gate-inner p { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.gate-inner .qr { width: 222px; height: 222px; border-radius: 18px; border: 1px solid var(--line); image-rendering: pixelated; margin-bottom: 10px; }
.gate-screens { display: flex; gap: 18px; align-items: flex-start; }
.gate-screens .phone { width: 200px; }
.gate-screens .phone:nth-child(2) { margin-top: 48px; }
.gate-screens .phone:nth-child(3) { margin-top: 96px; }
@media (max-width: 1100px) { .gate-screens { display: none; } }

@media (min-width: 700px) {
  .intro, .features, .install { max-width: 720px; margin: 0 auto; }
  .screens { justify-content: safe center; }
  .features ul { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
