/* SaaSphire design system: tokens, layout, components. Shared by every page. */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #07080b;
  --bg-soft: #0b0d12;
  --surface: #0f1117;
  --surface-2: #151821;
  --ink: #f3f4f7;
  --ink-2: #c9ccd4;
  --muted: #8b919e;
  --faint: #5b616d;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #8b8ef9;
  --accent-strong: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --on-accent: #ffffff;
  --glow-1: rgba(99, 102, 241, 0.22);
  --glow-2: rgba(56, 189, 248, 0.10);
  --nav-bg: rgba(7, 8, 11, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  --icon-filter: none;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #fbfaf7;
  --bg-soft: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --ink: #0d0e12;
  --ink-2: #2c2f36;
  --muted: #5d626d;
  --faint: #8d919a;
  --line: rgba(13, 14, 18, 0.08);
  --line-strong: rgba(13, 14, 18, 0.16);
  --accent: #4f46e5;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --glow-1: rgba(99, 102, 241, 0.13);
  --glow-2: rgba(251, 191, 36, 0.10);
  --nav-bg: rgba(251, 250, 247, 0.78);
  --shadow-sm: 0 1px 2px rgba(13, 14, 18, 0.06);
  --shadow-lg: 0 30px 70px -30px rgba(13, 14, 18, 0.25), 0 0 0 1px var(--line);
  --icon-filter: invert(1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }

::selection { background: var(--accent-strong); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Ambient background */
.ambient {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 420px at 18% 0%, var(--glow-1), transparent 70%),
    radial-gradient(520px 380px at 85% 8%, var(--glow-2), transparent 70%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.page { position: relative; isolation: isolate; }
.page > *:not(.ambient) { position: relative; z-index: 1; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), backdrop-filter 240ms;
}
.nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 160ms, background 160ms;
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: 500 14.5px/1 var(--font-sans);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms, border-color 180ms, box-shadow 180ms, color 180ms;
}
.btn svg { width: 16px; height: 16px; transition: transform 180ms var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--glow-1); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* Type helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.display {
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.display .serif { letter-spacing: -0.02em; }
.h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
}

/* Hero */
.hero {
  padding-top: clamp(48px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.console {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 600ms var(--ease);
}
.console:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console-bar span { margin-left: auto; font: 12px var(--font-mono); color: var(--faint); }
.console-body { padding: 22px 22px 18px; font: 13px/1.85 var(--font-mono); color: var(--ink-2); }
.console-body .p { color: var(--faint); }
.console-body .ok { color: #4ade80; }
.console-body .tag { color: var(--faint); }
.console-body .cmd { color: var(--accent); }
.console-body .row { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-body .row b { font-weight: 500; color: var(--ink); }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.metric { padding: 18px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.metric span { font-size: 12.5px; color: var(--muted); }

/* Sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lead { justify-self: end; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 220ms, transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card:hover { border-color: var(--line-strong); }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.tile-icon img { width: 20px; height: 20px; }
.tile-icon img.mono { filter: var(--icon-filter); }
html:not([data-theme="light"]) .tile-icon img.dark-src { filter: invert(1); }

/* Product cards (web) */
.product {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.product-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.product-logo img { width: 44px; height: 44px; }
.product h3 { font-size: 22px; }
.product p { flex: 1; margin-bottom: 24px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 200ms var(--ease); }
.card:hover .link-arrow svg, .link-arrow:hover svg { transform: translate(2px, -2px); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* App cards (mobile) */
.card.app-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
}
.app-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--app-tint, var(--accent-soft)), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.app-stage img.shot {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 200px;
  border-radius: 28px;
  box-shadow: 0 0 0 6px #0c0d10, 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  transition: transform 600ms var(--ease);
}
.app-card:hover .app-stage img.shot { transform: translateX(-50%) translateY(-10px); }
.app-body { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-head img { width: 52px; height: 52px; border-radius: 13px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.app-head h3 { font-size: 19px; margin: 0 0 4px; }
.app-head span { font-size: 13px; color: var(--muted); }
.app-body > p { flex: 1; margin-bottom: 22px; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.platforms { display: flex; gap: 6px; }
.platforms .chip { position: relative; z-index: 2; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 180ms var(--ease), box-shadow 180ms;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.store-badge img { width: 24px; height: 24px; }
.store-badge small { display: block; font-size: 10.5px; line-height: 1.1; opacity: 0.85; letter-spacing: 0.01em; }
.store-badge strong { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }

/* Marquee tags */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { font-size: 13px; padding: 12px 18px; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); color: var(--ink-2); background: var(--surface); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA panel */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: end;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--glow-1), transparent 65%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .actions { justify-content: flex-end; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 48px; }
.footer h3 { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); }
.footer .brand { color: var(--ink); margin-bottom: 14px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ===== App detail pages ===== */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); padding-top: 28px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--faint); }

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
}
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px -10px rgba(0, 0, 0, 0.5); }
.app-id strong { display: block; font-size: 15px; font-weight: 600; }
.app-id span { font-size: 13.5px; color: var(--muted); }
.app-hero h1 { font-size: clamp(38px, 5.8vw, 68px); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 22px; }
.app-hero .lead { margin-bottom: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { width: 15px; height: 15px; color: var(--app-accent, var(--accent)); }

.phones { position: relative; height: 600px; }
.phones::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--app-tint, var(--glow-1)), transparent 65%);
  filter: blur(10px);
}
.phone {
  position: absolute;
  width: 250px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 0 0 7px #0b0c0f, 0 0 0 8px rgba(255, 255, 255, 0.12), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  background: #0b0c0f;
}
.phone img { width: 100%; height: auto; }
.phones .phone:nth-child(1) { left: 6%; top: 60px; transform: rotate(-6deg); }
.phones .phone:nth-child(2) { right: 6%; top: 0; transform: rotate(4deg); }

.app-accent { color: var(--app-accent, var(--accent)); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 30px 28px; }
.feature .num { font: 500 12px/1 var(--font-mono); color: var(--app-accent, var(--accent)); letter-spacing: 0.08em; margin-bottom: 22px; display: block; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature .pro { font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; padding: 4px 6px; border-radius: 6px; background: var(--app-soft, var(--accent-soft)); color: var(--app-accent, var(--accent)); vertical-align: 3px; margin-left: 6px; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 20px;
  overflow-x: auto;
  padding: 10px var(--gutter) 28px;
  margin: 0 calc(var(--gutter) * -1);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 660 / 1434;
  height: auto;
}
.gallery figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gallery figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 14.5px; margin-bottom: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 18px; }
.prose a { color: var(--app-accent, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }

.plan-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .price { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--app-soft, var(--accent-soft)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2L11.5 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan.featured { border-color: var(--app-accent, var(--accent)); }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color 200ms;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 500;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.faq details a { color: var(--app-accent, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }

.notice { font-size: 14px; color: var(--muted); padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.more-apps .app-mini { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.app-mini img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.app-mini strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.app-mini span { font-size: 13.5px; color: var(--muted); }
.app-mini svg { margin-left: auto; width: 18px; height: 18px; color: var(--muted); flex: none; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.rise { animation: rise 900ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .console { transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero, .app-hero, .split { grid-template-columns: 1fr; }
  .console { transform: none; }
  .grid-3, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .cta-panel .actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phones { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .grid-3, .grid-2, .feature-grid, .plan-table { grid-template-columns: 1fr; }
  .metric { padding: 16px 14px; }
  .metric strong { font-size: 20px; }
  .product { min-height: 0; }
  .card { padding: 24px; }
  .app-body { padding: 22px 22px 24px; }
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 30px; box-shadow: 0 0 0 5px #0b0c0f, 0 0 0 6px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
  .phones .phone:nth-child(1) { left: 2%; top: 44px; }
  .phones .phone:nth-child(2) { right: 2%; }
  .gallery { grid-auto-columns: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .nav-right .btn { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .stores { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; }
  .console-body { font-size: 12px; padding: 18px 16px 14px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { padding: 14px 10px; }
  .metric strong { font-size: 18px; }
  .metric span { font-size: 11px; }
  .phones { height: 380px; }
  .phone { width: 160px; }
}
