/*
 * amoled.in home page. Same language as alfaz.io (flat 2D glass, capsule
 * controls, one quiet accent, real imagery), retuned for this brand:
 *
 * - The ground is pure #000. That is the product, so it is not softened.
 * - The accent is near-white ink, as in the app (Theme.accent): artwork is the
 *   only thing on the page that carries colour. Gold means Pro and nothing else.
 * - Dark only, like the app's marketing: the brand is the black screen.
 *
 * Shape rule: controls are capsules; panels 28px; wallpaper tiles 20px (the
 * app's card radius); what sits inside a panel 14px; phones the device radius.
 */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #f5f5f7;
  --muted: #a1a1aa;       /* 8.3:1 on black */
  --faint: #63636b;       /* decoration only */
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.2);
  --on-ink: #0a0a0b;
  --gold: #f2b84d;        /* Pro only, Theme.premiumGold */
  --radius-card: 28px;
  --radius-tile: 20px;
  --radius-ui: 14px;
  --device: 2.6rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: rgb(255 255 255 / 0.25); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.skip:focus { left: 16px; }
.sentinel { position: absolute; top: 0; height: 8px; width: 100%; }

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.body { margin-top: 18px; max-width: 36rem; color: var(--muted); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }

/* ----------------------------------------------------------------- glass */

.glass {
  --alpha: 0.06;
  --blur: 16px;
  background: rgb(255 255 255 / var(--alpha));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
}
.glass-thick { --alpha: 0.075; --blur: 28px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: #121214; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #141416; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { box-shadow: inset 0 0 0 1px var(--line-strong); }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn svg { font-size: 1.1em; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-md { height: 46px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-primary, .btn-light { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover, .btn-light:hover { background: #fff; }
.btn-glass { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09); }
.btn-glass:hover { background: rgb(255 255 255 / 0.13); }
.btn-glass:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.round {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
  background: rgb(255 255 255 / 0.08); font-size: 16px;
  transition: background-color .2s, transform .2s var(--ease);
}
.round:hover { background: rgb(255 255 255 / 0.14); }
.round:active { transform: scale(0.95); }

/* Store badges: glass capsules with the store mark, as on alfaz.io. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 24px 0 20px;
  border-radius: 999px; text-decoration: none; line-height: 1.15;
  transition: background-color .2s, transform .2s var(--ease);
}
.store:hover { --alpha: 0.12; }
.store:active { transform: scale(0.98); }
.store svg { font-size: 24px; }
.store small { display: block; font-size: 0.6875rem; color: var(--muted); }
.store b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

/* ------------------------------------------------------------------- nav */

.nav-wrap { position: sticky; top: 0; z-index: 40; padding: 12px 12px 0; }
@media (min-width: 640px) { .nav-wrap { padding: 16px 20px 0; } }
.nav {
  --alpha: 0.04;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; height: 60px; margin-inline: auto; padding: 0 8px 0 18px;
  border-radius: 999px; transition: background-color .3s;
}
.scrolled .nav, .menu-open .nav { --alpha: 0.1; background: rgb(18 18 20 / 0.72); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: rgb(255 255 255 / 0.07); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.nav-cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 22px; cursor: pointer; }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.menu {
  max-width: 1100px; margin: 8px auto 0; padding: 8px; border-radius: var(--radius-card);
  display: flex; flex-direction: column; background: rgb(18 18 20 / 0.92);
}
.menu[hidden] { display: none; }
.menu a:not(.btn) { padding: 14px 16px; border-radius: 20px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.menu a:not(.btn):active { background: rgb(255 255 255 / 0.07); }
.menu .btn { margin-top: 8px; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid; gap: 48px; align-items: center;
  padding-top: 40px; padding-bottom: 72px;
}
.chip { display: inline-flex; padding: 6px 16px; border-radius: 999px; font-size: 0.875rem; color: var(--muted); }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 4.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.055em;
}
.lede { margin-top: 22px; max-width: 32rem; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero .stores { margin-top: 36px; }
.hero-media { position: relative; display: grid; justify-items: center; padding: 8px 0 0; }
.hero-glow {
  position: absolute; inset: 6% 12% 10%; width: 76%; height: 84%; object-fit: cover;
  filter: blur(60px) saturate(1.4); opacity: 0.38; pointer-events: none;
}
.phone {
  position: relative; overflow: hidden; border-radius: var(--device);
  background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 0 0 7px #0d0d0f, 0 0 0 8px rgb(255 255 255 / 0.1);
}
.phone img { width: 100%; height: auto; }
.phone-front { width: min(68vw, 290px); }
.phone-back { display: none; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 24px; min-height: calc(100dvh - 92px); padding-top: 24px; padding-bottom: 56px; }
  .hero-media { justify-items: end; padding-right: 8%; }
  .phone-front { width: clamp(250px, 21vw, 292px); }
  .phone-back {
    display: block; position: absolute; width: clamp(215px, 18vw, 250px);
    right: calc(8% + clamp(150px, 13vw, 190px)); top: 13%; opacity: 0.85;
  }
}

/* ------------------------------------------------------------------ proof */

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px;
  padding: 28px 0 8px; border-top: 1px solid var(--line);
}
.stats dt { display: flex; align-items: center; gap: 6px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.star { font-size: 0.6em; color: var(--ink); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- library */

.library { padding: 96px 0 40px; }
.strip { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* Tiles carry their own right margin (not flex gap) so -50% is exactly one set. */
.strip-track { display: flex; width: max-content; padding-block: 4px; }
.strip-track li { width: clamp(132px, 13vw, 176px); flex: none; margin-right: 14px; }
.strip-track img {
  width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: var(--radius-tile);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
/* Without motion the strip is a plain swipeable row. */
.no-motion .strip { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
.no-motion .strip-track li { scroll-snap-align: start; }
.no-motion .strip-track li[aria-hidden="true"] { display: none; }

/* ------------------------------------------------- why: the pixel matrix */

.why { padding: 72px 0; }
.why-pin { min-height: 0; display: flex; align-items: center; }
.why-inner { display: grid; gap: 40px; align-items: center; }
.readout { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 36px; max-width: 30rem; padding-top: 20px; border-top: 1px solid var(--line); }
.readout-num { display: block; font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.readout-label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.readout-state { color: var(--muted); font-size: 0.875rem; text-align: right; font-variant-numeric: tabular-nums; }
.matrix-frame {
  justify-self: center; width: min(72vw, 300px); aspect-ratio: 9 / 19.5;
  border-radius: var(--device); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 0 0 7px #0d0d0f, 0 0 0 8px rgb(255 255 255 / 0.1);
}
.matrix { width: 100%; height: 100%; display: block; }
@media (min-width: 960px) {
  .why { padding: 0; }
  .why-pin { min-height: 100dvh; }
  .why-inner { grid-template-columns: 1fr 0.8fr; gap: 64px; }
  .matrix-frame { width: clamp(250px, 21vw, 300px); }
}

/* --------------------------------------------------------------- measured */

.measured { display: grid; gap: 48px; align-items: center; padding-block: 96px; }
.phone-solo { width: min(68vw, 280px); justify-self: center; }
.points { margin-top: 32px; display: grid; gap: 20px; max-width: 32rem; }
.points li { display: flex; gap: 14px; }
.point-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-ui); background: rgb(255 255 255 / 0.07); font-size: 20px; }
.points strong { display: block; font-weight: 600; }
.points span:not(.point-icon) { display: block; color: var(--muted); }
@media (min-width: 960px) {
  .measured { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
}

/* -------------------------------------------------------------- amoledify */

.ify { padding-block: 40px 96px; }
.ify-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 32px; padding: 20px; border-radius: var(--radius-card);
}
.ify-glow { position: absolute; z-index: -1; left: 0; top: 0; width: 60%; height: 100%; object-fit: cover; filter: blur(80px); opacity: 0.22; pointer-events: none; }
.ify-stage { justify-self: center; width: min(70vw, 300px); aspect-ratio: 9 / 19.5; border-radius: var(--radius-tile); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.ify-canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.ify-controls { align-self: center; padding: 4px 4px 8px; }
.ify-readout { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 32px; }
.ify-num { display: block; font-size: 3.25rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.ify-num-sm { font-size: 1.75rem; letter-spacing: -0.03em; }
.ify-label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.ify-right { text-align: right; }
.ify-slider { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ify-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ify-status { min-height: 1.5em; margin-top: 12px; color: var(--muted); font-size: 0.875rem; }
@media (min-width: 900px) {
  .ify-panel { grid-template-columns: auto 1fr; gap: 64px; padding: 40px 56px 40px 40px; }
  .ify-stage { width: clamp(240px, 22vw, 300px); }
}

.slider { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), rgb(255 255 255 / 0.14) var(--p, 0%)); }
.slider::-moz-range-track { height: 8px; border-radius: 999px; background: rgb(255 255 255 / 0.14); }
.slider::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 24px; margin-top: -8px; border-radius: 999px; background: var(--ink); border: 0; }
.slider::-moz-range-thumb { width: 34px; height: 24px; border-radius: 999px; background: var(--ink); border: 0; }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ----------------------------------------------------------------- bento */

.features { padding-block: 56px 96px; }
.bento { display: grid; gap: 14px; margin-top: 40px; }
.cell { position: relative; overflow: hidden; border-radius: var(--radius-card); padding: 26px; min-height: 220px; display: flex; flex-direction: column; }
.cell p { margin-top: 8px; color: var(--muted); max-width: 30rem; }
.cell-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: auto; border-radius: var(--radius-ui); background: rgb(255 255 255 / 0.08); font-size: 22px; }
.cell-search h3, .cell-saver h3 { margin-top: 40px; }
.cell-cats { padding-bottom: 0; }
.cell-shot { margin-top: 24px; width: 100%; max-width: 460px; align-self: center; border-radius: 18px 18px 0 0; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.cell-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cell-trend, .cell-4k { isolation: isolate; justify-content: flex-end; min-height: 380px; padding: 12px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.cell-over { --alpha: 0.5; padding: 18px; border-radius: 20px; background: rgb(0 0 0 / 0.55); }
.cell-over .cell-icon { margin-bottom: 14px; }
.badge-4k { position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 999px; background: rgb(0 0 0 / 0.6); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); }
.fav-row { display: flex; gap: 10px; margin-bottom: auto; padding-bottom: 24px; }
.fav-row span { position: relative; width: 66px; }
.fav-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.fav-row i { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #ff4561; font-size: 13px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-cats { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); }
  .cell-cats { grid-column: span 4; flex-direction: row; gap: 24px; padding: 32px 0 0 32px; }
  .cell-cats .cell-text { flex: 1; padding-bottom: 32px; }
  .cell-cats .cell-shot { margin-top: 0; width: 56%; align-self: flex-end; }
  .cell-trend { grid-column: span 2; grid-row: span 2; }
  .cell-search, .cell-fav { grid-column: span 2; }
  .cell-saver, .cell-4k { grid-column: span 3; }
  .cell-4k { min-height: 300px; }
}

/* ------------------------------------------------------------------ plans */

.plans { padding-block: 56px 96px; }
.plan-grid { display: grid; gap: 14px; margin-top: 40px; }
.plan { padding: 32px; border-radius: var(--radius-card); }
.plan h3 { display: flex; align-items: center; gap: 12px; font-size: 1.75rem; letter-spacing: -0.04em; }
.checks { margin-top: 24px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.checks svg { font-size: 16px; color: var(--ink); }
.plan-pro { box-shadow: inset 0 0 0 1px rgb(242 184 77 / 0.35); }
.plan-pro .checks li { color: var(--ink); }
.plan-pro .checks svg { color: var(--gold); }
.pro-tag { padding: 4px 10px; border-radius: 999px; background: rgb(242 184 77 / 0.14); color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; }
.plan-note { margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ------------------------------------------------------------- final cta */

.get { padding-block: 24px 96px; }
.get-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 40px; padding: 12px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.get-wall { position: absolute; inset: -40px; z-index: -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; opacity: 0.8; transform: rotate(-8deg) scale(1.15); }
.get-wall img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 16px; }
.get-body { --alpha: 0.55; background: rgb(0 0 0 / 0.5); display: grid; gap: 32px; align-items: center; padding: 36px 24px; border-radius: 30px; }
.get-copy .stores { margin-top: 28px; }
.qr { display: none; }
@media (min-width: 640px) { .get-wall { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px) {
  .get-panel { padding: 16px; }
  .get-wall { grid-template-columns: repeat(8, 1fr); }
  .get-body { grid-template-columns: 1fr auto; padding: 56px; }
  .qr { display: grid; justify-items: center; gap: 10px; }
  .qr img { width: 132px; height: 132px; padding: 10px; border-radius: 18px; background: #f5f5f7; }
  .qr figcaption { color: var(--muted); font-size: 0.8125rem; }
}

/* ----------------------------------------------------------------- footer */

.footer { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.foot-brand p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.foot-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.foot-links h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 10px; }
.foot-links a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-links a:hover { color: var(--ink); }
.copy { color: var(--faint); font-size: 0.875rem; }
@media (min-width: 768px) {
  .footer { grid-template-columns: 1fr auto; }
  .foot-links { grid-template-columns: repeat(3, auto); gap: 56px; }
  .copy { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ motion prep */

/* Hidden only once JS has said motion is on, so the page never depends on it. */
.motion [data-hero], .motion [data-phone], .motion .reveal { opacity: 0; }
