/*
 * marianpavel.ro: shared styles for the home page and every app page.
 * Neutral by design: app pages bring their own color by setting --accent on <body>.
 */

:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #eeeeea;
  --ink: #141518;
  --muted: #5e6169;
  --line: rgba(20, 21, 24, 0.1);
  --accent: #141518;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg));
  --radius: 24px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 8px 24px -12px rgba(20, 24, 40, 0.18);
  --shadow-device: 0 40px 70px -30px rgba(20, 28, 60, 0.45), 0 18px 30px -18px rgba(20, 28, 60, 0.35);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17181b;
    --surface-2: #202125;
    --ink: #ededeb;
    --muted: #a2a5ad;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #ededeb;
    --accent-ink: #0e0f11;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-device: 0 40px 70px -30px rgba(0, 0, 0, 0.8), 0 18px 30px -18px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; color: var(--ink); flex: none; }
.brand-mark rect { fill: currentColor; }
.brand-mark path { stroke: var(--bg); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.15s, background 0.15s; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav .btn { margin-left: 8px; color: var(--accent-ink); }
.site-nav .btn:hover { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 640px) { .site-nav .nav-link { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 0.9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

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

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 170px; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: #0b0b0d; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.store-btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn small { font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }
.store-btn strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.store-btn.is-live:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 26px -14px rgba(0, 0, 0, 0.7); }
.store-btn:not(.is-live) { cursor: default; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) {
  .store-btn { background: #fff; color: #0b0b0d; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.6); }
}
/* The visitor's own store goes first. */
html[data-platform="android"] .store-btn[data-store="googlePlay"],
html[data-platform="ios"] .store-btn[data-store="appStore"] { order: -1; }

.qr-card {
  display: none; align-items: center; gap: 14px;
  margin-top: 18px; padding: 12px 18px 12px 12px; max-width: 330px;
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
}
html[data-platform="desktop"] .qr-card { display: flex; }
.qr-card svg { width: 92px; height: 92px; flex: none; padding: 8px; border-radius: 10px; background: #fff; }
.qr-card strong { display: block; font-size: 0.95rem; }
.qr-card span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* ---------- Devices (screens are drawn inside a CSS frame) ---------- */

.device { container-type: inline-size; width: 100%; }
.device-body {
  position: relative; padding: 3.4cqi; border-radius: 15.5cqi;
  background: linear-gradient(145deg, #2a2c31, #0b0c0e 40%);
  box-shadow: inset 0 0 0 0.7cqi rgba(255, 255, 255, 0.12), var(--shadow-device);
}
.device-body::after { /* Dynamic Island */
  content: ""; position: absolute; z-index: 3; top: 6cqi; left: 50%; transform: translateX(-50%);
  width: 27cqi; height: 7.6cqi; border-radius: 99px; background: #050506;
}
.device-screen { position: relative; display: block; overflow: hidden; aspect-ratio: 1026 / 2233; border-radius: 12cqi; background: #f3f5f9; isolation: isolate; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-screen::after { /* glass glare */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 62%);
}

.device.is-tablet .device-body { padding: 3cqi; border-radius: 5.4cqi; }
.device.is-tablet .device-body::after { top: 1.1cqi; width: 1.1cqi; height: 1.1cqi; background: #1b1c20; }
.device.is-tablet .device-screen { aspect-ratio: 1600 / 2560; border-radius: 2.6cqi; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 16px; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }

/* ---------- Home: hero ---------- */

.home-hero { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(48px, 7vw, 90px); }
.home-hero::before { /* dotted backdrop that fades out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 20%, transparent 75%);
}
.home-hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 28px; }
.home-hero h1 em { font-style: normal; color: var(--muted); }
.home-hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 40px; }

.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px clamp(14px, 2vw, 24px); max-width: 380px; justify-self: end; transform: rotate(-6deg); }
.tile { position: relative; aspect-ratio: 1; border-radius: 24%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.55; }
.tile:nth-child(3n + 2) { opacity: 0.35; }
.tile:nth-child(n + 7) { opacity: 0.2; }
.tile-next { display: grid; place-items: center; opacity: 0.7; font-size: 2rem; font-weight: 300; color: var(--muted); background: none; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.shelf .tile-app { opacity: 1; background: none; box-shadow: 0 22px 40px -18px var(--glow, rgba(61, 123, 247, 0.7)); text-decoration: none; }
.tile-app img { width: 100%; height: 100%; border-radius: inherit; }
.tile-app span { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .tile-app { animation: bob 6s ease-in-out infinite; }
  @keyframes bob { 50% { translate: 0 -8px; } }
}

/* ---------- Home: app showcase ---------- */

/* Each card sets --accent-light (and optionally --accent-dark) inline. */
.app-feature {
  --accent: var(--accent-light, #3d7bf7);
  --accent-ink: #fff;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface));
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
@media (prefers-color-scheme: dark) { .app-feature { --accent: var(--accent-dark, var(--accent-light, #3d7bf7)); } }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-id img { width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); }
.app-id h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.app-id p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.app-pitch { font-size: 1.12rem; max-width: 470px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 28px; list-style: none; }
.chips li { padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 550; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.app-feature .store-row { margin-bottom: 22px; }

.fan { position: relative; height: clamp(360px, 44vw, 520px); }
.fan .device { position: absolute; width: clamp(150px, 17vw, 210px); left: 50%; top: 50%; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fan .device:nth-child(1) { transform: translate(-112%, -46%) rotate(-9deg); }
.fan .device:nth-child(2) { transform: translate(-50%, -52%); z-index: 2; }
.fan .device:nth-child(3) { transform: translate(12%, -46%) rotate(9deg); }
.app-feature:hover .fan .device:nth-child(1) { transform: translate(-122%, -47%) rotate(-12deg); }
.app-feature:hover .fan .device:nth-child(3) { transform: translate(22%, -47%) rotate(12deg); }

.app-next {
  display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 26px 30px;
  border-radius: var(--radius); border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent); color: var(--muted);
}
.app-next .plus { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--surface-2); font-size: 1.6rem; color: var(--muted); }
.app-next strong { display: block; color: var(--ink); }

/* ---------- Home: principles, contact ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); }
.card .icon-badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 14px; background: var(--surface-2); }
.card .icon-badge svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 8px);
  background: var(--ink); color: var(--bg);
}
.contact-card h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 12px; }
.contact-card p { margin: 0; color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 520px; }
.contact-card .btn { background: var(--bg); color: var(--ink); font-size: 1.05rem; min-height: 52px; padding-inline: 26px; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 40px 56px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 28px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 40px) 1px no-repeat; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- App page: hero ---------- */

.app-page { --accent-ink: #fff; }
/* Re-derive from the page's own accent (custom properties resolve where they're declared). */
.app-page, .app-feature { --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.app-hero { position: relative; padding-block: clamp(40px, 7vw, 90px) clamp(56px, 8vw, 110px); }
.app-hero::before {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.app-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.app-hero .app-icon { width: 88px; height: 88px; border-radius: 22%; margin-bottom: 24px; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 80%, #000); }
.app-hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.04em; margin-bottom: 18px; }
.app-hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.fineprint { margin: 18px 0 0; font-size: 0.87rem; color: var(--muted); }

.hero-devices { position: relative; aspect-ratio: 1 / 1.02; }
.hero-devices .device.is-tablet { position: absolute; right: 0; top: 0; width: 74%; transform: rotate(3deg); }
.hero-devices .device:not(.is-tablet) { position: absolute; left: 4%; bottom: 0; width: 36%; transform: rotate(-4deg); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-devices .device:not(.is-tablet) { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { translate: 0 -10px; } }
}

/* ---------- App page: features ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; display: flex; flex-direction: column; }
.bento .card.wide { grid-column: span 3; }
.bento .card .icon-badge { background: var(--accent-soft); }
.bento .card .icon-badge svg { stroke: var(--accent); }
.bento .card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); }
.bento .card li { margin-bottom: 4px; }
.bento .card li::marker { color: var(--accent); }

/* ---------- App page: screenshot gallery ---------- */

.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 23vw, 250px); gap: clamp(20px, 3vw, 36px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 20px max(20px, (100vw - var(--wrap)) / 2 + 20px) 36px;
  scroll-padding-inline: max(20px, (100vw - var(--wrap)) / 2 + 20px);
}
.gallery-track::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 32px; transition: transform 0.25s; }
.shot-open:hover { transform: translateY(-6px); }
.shot figcaption { margin-top: 22px; }
.shot figcaption strong { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.shot figcaption span { display: block; color: var(--muted); font-size: 0.92rem; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: opacity 0.2s, background 0.2s;
}
.round-btn:hover { background: var(--surface-2); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(8, 9, 12, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 20px; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lightbox .device { width: min(420px, calc((100dvh - 170px) / 2.25), 78vw); }
.lightbox figcaption { text-align: center; }
.lightbox figcaption span { color: rgba(255, 255, 255, 0.7); }
.lightbox .round-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.lightbox .round-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox .lightbox-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }
@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox .lightbox-prev { justify-self: end; }
}

/* ---------- App page: light / dark comparison ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.split .section-head { margin-bottom: 0; }
.split-art { display: grid; justify-items: center; }

/* Two phones side by side, slightly overlapping (e.g. light and dark mode). */
.pair { display: flex; justify-content: center; width: 100%; }
.pair .device { width: min(250px, 42vw); }
.pair .device:first-child { transform: rotate(-4deg) translateX(8%); z-index: 1; }
.pair .device:last-child { transform: rotate(4deg) translate(-8%, 6%); }

.compare { position: relative; width: min(300px, 70vw); --pos: 50%; }
.compare .device-screen img { position: absolute; inset: 0; }
.compare .compare-dark { clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; }
.compare-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141518' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.compare-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(.compare-range:focus-visible) .compare-line::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare-labels { display: flex; justify-content: space-between; width: 100%; margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* ---------- App page: themes ---------- */

.theme-preview { width: min(280px, 66vw); }
.theme-preview .device-screen img { transition: filter 0.45s ease; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.swatch small { font-weight: 500; color: var(--muted); }
.swatch[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }

/* ---------- App page: support / FAQ ---------- */

.support { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.support-card { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.support-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.support-card p:last-child { margin-bottom: 0; }
.support-card a { color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: var(--muted); }

/* ---------- Prose pages (privacy policies, 404) ---------- */

.prose { max-width: 720px; margin-inline: auto; padding: clamp(40px, 7vw, 80px) 20px 80px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 12px; letter-spacing: -0.035em; }
.prose h2 { font-size: 1.35rem; margin: 2.2em 0 0.6em; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.08rem; margin: 1.6em 0 0.4em; letter-spacing: -0.01em; }
.prose a:not(.btn) { color: var(--accent); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .eyebrow a { text-decoration: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose code { font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .app-feature, .app-hero .wrap, .split, .support, .home-hero .wrap { grid-template-columns: 1fr; }
  .shelf { display: none; }
  .fan { height: clamp(340px, 80vw, 480px); }
  .fan .device { width: clamp(140px, 32vw, 200px); }
  .hero-devices { max-width: 520px; width: 100%; margin-inline: auto; }
  .cards { grid-template-columns: 1fr; }
  .bento .card, .bento .card.wide { grid-column: span 3; }
  .contact-card { grid-template-columns: 1fr; }
  .split-art { order: -1; }
}
@media (max-width: 640px) {
  .bento .card, .bento .card.wide { grid-column: 1 / -1; }
  .site-footer nav { margin-left: 0; }
}
