/* =========================================================================
   DeviceShelf — Marketing site stylesheet
   Apple-inspired: bold typography, big spacing, dark hero, light sections.
   No framework, no preprocessor — drop-in CSS.
   ========================================================================= */

/* -----  RESET / TOKENS  ----- */

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
  /* Palette */
  --bg-page: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #0b1220;
  --bg-darker: #060912;
  --text: #1a1f2e;
  --text-soft: #4a5568;
  --text-on-dark: #f1f5fa;
  --text-on-dark-soft: #94a3b8;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ok: #22c55e;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Fluid type — Apple-style massive headings */
  --fs-mega:   clamp(2.6rem, 7.5vw, 5.6rem);
  --fs-h1:     clamp(2.2rem, 5.5vw, 4.2rem);
  --fs-h2:     clamp(1.8rem, 4vw, 3rem);
  --fs-h3:     clamp(1.15rem, 2vw, 1.4rem);
  --fs-lead:   clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:   1rem;
  --fs-small:  0.85rem;
  --fs-tiny:   0.75rem;

  /* Spacing */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 8rem;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --nav-h: 64px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* -----  NAV  ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* FIX(Round2-#2): added via JS toggle when window.scrollY > 8 to replace the
   prior inline-style box-shadow write — keeps the page free of runtime
   inline-style mutations. */
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-icon { border-radius: 7px; }

/* Beefed-up nav brand — bigger icon + heavier wordmark so the marque
   doesn't disappear next to the link list. */
.brand-prominent {
  gap: 0.6rem;
}
.brand-prominent .brand-icon {
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.brand-prominent .brand-wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e3a8a 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero brand lockup — DOMINANT: icon + wordmark as the *first* element the
   user reads, sized like an Apple "Hello, iPhone" header. Stacked vertical
   on every viewport so the wordmark always reads big. */
.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2.2rem;
}
.hero-brand-icon {
  width: 112px !important;
  height: 112px !important;
  border-radius: 26px;
  box-shadow:
    0 24px 60px -12px rgba(59, 130, 246, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-brand-wordmark {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  /* Subtle blue→violet glow underneath, NOT a gradient *on* the text
     (gradient text becomes washed-out on dark BG). Solid white + subtle
     drop-shadow keeps it legible AND brandy. */
  text-shadow:
    0 2px 16px rgba(96, 165, 250, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.4);
}
@media (max-width: 640px) {
  .hero-brand-icon { width: 88px !important; height: 88px !important; border-radius: 21px; }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  /* FIX(#9): use logical property so RTL mirrors correctly. */
  margin-inline-start: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  /* FIX(#9): logical property for RTL. */
  margin-inline-start: auto;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* -----  BUTTONS  ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 20px -8px rgba(37, 99, 235, 0.5);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm  { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg  { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Dark-section buttons */
.hero .btn-ghost { color: var(--text-on-dark); border-color: rgba(255,255,255,0.25); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* -----  HERO  ----- */

.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #1e3a8a 0%, var(--bg-darker) 60%) ,
              linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-on-dark);
  /* Apple uses 64–80px top on hero blocks, not 144px. The image/mockup
     handles the vertical real-estate, not padding. */
  padding: clamp(4rem, 7vw, 5rem) 0 0;
  overflow: hidden;
  text-align: center;
}

.eyebrow {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }

.hero-title {
  font-size: var(--fs-mega);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  /* Apple: tagline hugs the title at 12px. We had 24px. */
  margin-bottom: 0.75rem;
}
.grad {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: var(--fs-lead);
  color: var(--text-on-dark-soft);
  max-width: 720px;
  /* Apple: subtitle → CTAs is 24px (slightly more than title→subtitle). */
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  /* CTAs → mockup: 48px on Apple's product pages. */
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: var(--fs-small);
  color: var(--text-on-dark-soft);
  margin-top: 1rem;
}

/* Shown (via script.js) only to non-macOS visitors: explains the DMG is a
   Mac desktop download and the mobile companion is coming. */
.platform-note {
  max-width: 640px;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.1rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
}

.hero-sub-2 {
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  margin: -0.5rem 0 1.4rem;
}
.pill-info {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #cfe2ff;
  font-size: 0.8rem;
  font-weight: 500;
}

.break-md { display: none; }
@media (min-width: 768px) { .break-md { display: inline; } }

/* Mock window for hero + AI section */
.hero-art {
  margin: 4rem auto -8rem;
  max-width: 1040px;
  position: relative;
  z-index: 1;
}
.window {
  background: #11182a;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  /* FIX(#9): mock-window content (terminal-style) reads LTR even in RTL. */
  text-align: start;
  font-size: 0.85rem;
  color: var(--text-on-dark);
}
.window-bar {
  height: 36px;
  background: linear-gradient(180deg, #1a2336, #131a2a);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--text-on-dark-soft);
}
.window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 340px;
}
.sidebar {
  background: #0d1422;
  /* FIX(#9): logical border that mirrors in RTL. */
  border-inline-end: 1px solid rgba(255,255,255,0.04);
  padding: 0.6rem;
  font-size: 0.82rem;
}
.side-item {
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  color: var(--text-on-dark-soft);
  margin-bottom: 1px;
}
.side-item.active {
  background: rgba(96,165,250,0.14);
  color: #cfe2ff;
}
.content { padding: 1rem 1.2rem; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.kpi {
  padding: 0.6rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 9px;
}
.kpi .lbl { display: block; font-size: 0.65rem; color: var(--text-on-dark-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi .val { display: block; font-size: 1.3rem; font-weight: 600; margin-top: 0.15rem; }
.kpi.warn { border-color: rgba(245, 158, 11, 0.35); }
.kpi.warn .val { color: var(--warn); }
.kpi.danger { border-color: rgba(239, 68, 68, 0.35); }
.kpi.danger .val { color: var(--danger); }
.server-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
/* FIX(#9): logical margin so the badge slides to the trailing edge in RTL too. */
.server-row .muted { color: var(--text-on-dark-soft); margin-inline-end: auto; font-size: 0.78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.danger { background: var(--danger); }
.badge { font-size: 0.66rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 600; }
.badge.ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.badge.warn { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.badge.danger { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }

/* -----  SECTIONS  -----
   Spacing scale based on Apple's 8-px base. Section default is 80px each
   side (160px combined) — half of what we had before. Title → subtitle is
   12px (tight, like Apple), subtitle → grid is 32px, grid item gaps 24px.
   Net effect: the hierarchy reads cleanly, not crowded — because
   in-section gaps are visibly smaller than section-to-section gaps. */

.section {
  /* 48px on mobile → 80px on desktop. Was 80 → 144 (too generous). */
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  /* Apple: 12px under title to subtitle. */
  margin-bottom: 0.75rem;
}
.section-sub.warn-note {
  font-size: 0.95rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  max-width: 760px;
}
.section-sub.warn-note strong { color: var(--text); }
.section-sub {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  text-align: center;
  max-width: 700px;
  /* Apple: 24px from subtitle to body content (was 48px = double). */
  margin: 0 auto 1.5rem;
}

/* Statement: same 80px section padding, not 224. The hero-art mockup
   already supplies ~64px of overlap via -8rem negative margin. */
.statement {
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}
@media (min-width: 1440px) {
  .statement { padding: 7.5rem 0; }  /* 120px only on very wide */
}
.statement .display {
  font-size: var(--fs-mega);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  /* Explicit center to override any inherited left-align on h2 in narrow viewports. */
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.statement .grad { display: inline; }
.statement-sub {
  margin: 1.4rem auto 0;  /* center the constrained block */
  max-width: 680px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: center;
}
@media (min-width: 900px) {
  .statement-sub { font-size: 1.32rem; }
}

/* -----  FEATURES  ----- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.12); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.feature p { color: var(--text-soft); font-size: 0.95rem; }

/* -----  AI SECTION  ----- */

.ai-section { background: var(--bg-soft); }
.ai-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ai-text h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; margin: 0.5rem 0 1.5rem; }
.lead { font-size: var(--fs-lead); color: var(--text-soft); margin-bottom: 1.5rem; line-height: 1.6; }
.check-list { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; }
.check-list li {
  /* FIX(#9): logical padding + inset for RTL. */
  padding-inline-start: 1.7rem;
  position: relative;
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}
.muted { color: var(--text-soft); font-size: 0.9rem; }

.ai-art .window { font-size: 0.85rem; }
.chat { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; min-height: 320px; }
.msg { padding: 0.7rem 0.95rem; border-radius: 14px; max-width: 85%; font-size: 0.85rem; line-height: 1.4; }
.msg.user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  /* FIX(#9): logical border-radius mirrors in RTL. */
  border-end-end-radius: 4px;
}
.msg.bot {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-on-dark);
  align-self: flex-start;
  /* FIX(#9): logical border-radius mirrors in RTL. */
  border-end-start-radius: 4px;
}
.msg.mono {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 0.78rem;
}

/* -----  PROVIDERS  ----- */

.providers-section { background: white; }
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-top: 2rem;
}
.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: all 0.15s ease;
}
.provider:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }

/* -----  MOBILE  ----- */

.mobile-section { background: linear-gradient(135deg, #fafbfd 0%, #eef2f8 100%); }
.mobile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mobile-text h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; margin: 0.5rem 0 1.5rem; }

.mobile-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
  position: relative;
  perspective: 1400px;
}
.phone-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -50px; /* overlap intentionally */
  width: 100%;
}
.phone {
  width: 240px;
  height: 510px;
  background: #0b1220;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 70px -20px rgba(11, 18, 32, 0.55), 0 0 0 2px #1f2937;
  flex-shrink: 0;
}
.phone-center {
  z-index: 3;
  position: relative;
  transform: translateY(-10px) scale(1.05);
}
.phone-back {
  z-index: 1;
  opacity: 0.92;
  transform: translateY(20px) scale(0.92);
}
/* FIX(Round2-LOW): use logical margin-inline-end/-start so RTL flips this without a separate override. */
.phone-row > .phone:first-child { margin-inline-end: -40px; transform: translateY(20px) rotate(-3deg) scale(0.92); }
.phone-row > .phone:last-child  { margin-inline-start: -40px; transform: translateY(20px) rotate(3deg)  scale(0.92); }

.phone-screen {
  background: white;
  border-radius: 26px;
  height: 100%;
  padding: 0.7rem 0.8rem 0.4rem;
  display: flex;
  flex-direction: column;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.62rem; font-weight: 600; padding: 0 .2rem .4rem;
  color: var(--text);
}
.phone-status .status-icons { letter-spacing: -0.05em; font-size: 0.55rem; color: var(--text-soft); }

.phone-nav-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: .55rem;
}
.phone-nav-top h4 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.phone-pill {
  font-size: 0.6rem; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-soft); font-weight: 600;
}

.phone-search {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 0.32rem 0.55rem;
  font-size: 0.62rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.phone-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.phone-tile {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  display: flex; flex-direction: column;
}
.phone-tile span { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.phone-tile small { font-size: 0.55rem; color: var(--text-soft); margin-top: 0.05rem; }
.phone-tile.warn { border-color: rgba(245, 158, 11, 0.4); }
.phone-tile.warn span { color: var(--warn); }
.phone-tile.danger { border-color: rgba(239, 68, 68, 0.4); }
.phone-tile.danger span { color: var(--danger); }

.phone-section-title {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-soft);
  margin: 0.25rem 0 0.3rem;
}

.phone-list { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; overflow: hidden; }
.phone-list.compact { gap: 0.05rem; }
.phone-row-item {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.1rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.66rem;
}
.phone-row-item:last-child { border-bottom: none; }
.phone-row-item > div { flex: 1; min-width: 0; line-height: 1.15; }
.phone-row-item strong { display: block; font-size: 0.68rem; font-weight: 600; }
.phone-row-item small { font-size: 0.55rem; color: var(--text-soft); }
.dot-mini { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-mini.ok { background: var(--ok); }
.dot-mini.warn { background: var(--warn); }
.dot-mini.danger { background: var(--danger); }
.row-badge {
  font-size: 0.5rem; padding: 0.08rem 0.32rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-soft); font-weight: 600;
  letter-spacing: 0.02em;
}
.row-badge.ok { background: rgba(34,197,94,0.16); color: #16a34a; }
.row-badge.warn { background: rgba(245,158,11,0.18); color: #d97706; }
.row-badge.danger { background: rgba(239,68,68,0.18); color: #dc2626; }

.phone-triage { display: flex; flex-direction: column; gap: 0.32rem; flex: 1; overflow: hidden; }
.phone-triage-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  position: relative;
}
.phone-triage-item.danger { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.25); }
.phone-triage-item.warn { background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.25); }
.phone-triage-item strong { display: block; font-size: 0.66rem; margin-top: 0.15rem; }
.phone-triage-item small { font-size: 0.55rem; color: var(--text-soft); }
.sev-mini {
  font-size: 0.48rem; padding: 0.08rem 0.32rem; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.04em;
}
.sev-mini.high { background: rgba(239,68,68,0.2); color: #dc2626; }
.sev-mini.med { background: rgba(245,158,11,0.2); color: #d97706; }
.sev-mini.low { background: rgba(148,163,184,0.18); color: var(--text-soft); }

.phone-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.55rem;
  color: var(--text-soft);
}
.phone-tabs span { white-space: nowrap; }
.phone-tabs .active { color: var(--accent); font-weight: 600; }

@media (max-width: 880px) {
  .mobile-art { min-height: 540px; }
  .phone { width: 200px; height: 430px; padding: 8px; border-radius: 30px; }
  .phone-screen { padding: 0.5rem 0.6rem 0.3rem; border-radius: 22px; }
  .phone-row > .phone:first-child, .phone-row > .phone:last-child {
    margin: 0 -30px; transform: translateY(15px) scale(0.85);
  }
  .phone-center { transform: translateY(-5px) scale(1.0); }
}
@media (max-width: 540px) {
  /* On narrow phones, only show the centered one — the side ones overlap too tightly */
  .phone-row > .phone:first-child, .phone-row > .phone:last-child { display: none; }
  .mobile-art { min-height: 460px; }
  .phone { width: 220px; height: 460px; }
  .phone-center { transform: none; }
}

/* -----  SCREENSHOT GALLERY  ----- */

.gallery-section { background: var(--bg-soft); }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 760px) {
  .shot-grid { grid-template-columns: 1fr; }
}
.shot { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.shot .window {
  min-width: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shot .window:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(37, 99, 235, 0.35);
}
/* Real screenshots: locked 16:10 frame, top-anchored crop → even rows
   regardless of each screenshot's native aspect ratio. Full image on click
   via the lightbox. */
.shot .window img.shot-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.15s ease;
}
.shot .window:hover img.shot-img { transform: scale(1.03); filter: brightness(1.05); }
/* Captions clamped to 2 lines so every card block is the same height. */
.shot-cap {
  font-size: var(--fs-small); color: var(--text-soft); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}

/* Origin story */
.story-wrap { max-width: 780px; margin: 0 auto; }
.story-prose { max-width: 640px; margin: 1.6rem auto 0; text-align: left; }
.story-prose p {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--text-soft);
  margin: 0 0 1.15rem;
}
.story-prose p:last-child { margin-bottom: 0; }
.story-prose strong, .story-prose em { color: var(--text); }
.story-sign {
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: right;
  font-style: italic;
  color: var(--text-soft);
}

/* Click-to-enlarge lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 9, 16, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.lightbox-close {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.6rem);
  right: clamp(0.8rem, 2vw, 1.6rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }
.window-body.single { display: block; padding: 1rem 1.2rem; min-height: 260px; }

.detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.6rem;
}
.detail-head h4 { font-size: 1.05rem; color: white; margin: 0; }
.detail-head .badges { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.badge.accent { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.tab-bar {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  padding: 0.4rem 0 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.7rem;
}
.tab { font-size: 0.72rem; color: var(--text-on-dark-soft); padding: 0.2rem 0.55rem; border-radius: 5px; }
.tab.active { background: rgba(59, 130, 246, 0.15); color: #cfe2ff; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 0.6rem; }
.detail-section { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.78rem; }
.detail-section strong { color: white; font-weight: 500; }
.detail-section .muted { color: var(--text-on-dark-soft); font-size: 0.74rem; }
.ai-strip {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 7px;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: flex; gap: 0.4rem; align-items: flex-start;
}
.ai-strip .muted { color: var(--text-on-dark-soft); }

.scan-step {
  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--text-on-dark-soft);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: ui-monospace, SF Mono, Menlo, monospace;
}
.scan-step:first-letter { color: var(--ok); font-weight: 700; }
.scan-step.running { color: #cfe2ff; }
.scan-step.running:first-letter { color: var(--accent-2); }

.live-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.78rem;
}
.live-row strong { color: white; font-weight: 500; }
.live-row > span { color: var(--text-on-dark-soft); text-align: right; }
.bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bar .fill.warn { background: var(--warn); }
.bar .fill.danger { background: var(--danger); }

.terminal { font-family: ui-monospace, SF Mono, Menlo, monospace; font-size: 0.75rem; padding: 1rem 1.2rem; }
.term-line { padding: 0.1rem 0; color: var(--text-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* FIX(#9): logical margin (terminal still reads LTR via .terminal { direction: ltr }). */
.term-line .prompt { color: #86efac; margin-inline-end: 0.4rem; }
.term-line.muted { color: var(--text-on-dark-soft); }
.cursor { background: white; color: #11182a; animation: blink 1s steps(2) infinite; padding: 0 1px; }
@keyframes blink { 50% { opacity: 0; } }

.cs-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
.cs-row span { color: var(--text-on-dark-soft); }
.cs-row strong { color: white; font-weight: 500; }
.ok-text { color: #86efac !important; }
.cs-actions { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.mini-btn {
  font-size: 0.72rem; padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: white; }

.triage-row {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.triage-row strong { color: white; font-weight: 500; display: block; font-size: 0.85rem; }
.triage-row .muted { color: var(--text-on-dark-soft); font-size: 0.72rem; margin-top: 0.15rem; display: block; }
.sev { font-size: 0.6rem; padding: 0.15rem 0.4rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.05em; }
.sev.high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.sev.med { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.sev.low { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.triage-row.danger { background: rgba(239, 68, 68, 0.03); }
.triage-row.warn { background: rgba(245, 158, 11, 0.03); }

/* ---- Log-triage mockup (auto-fetch panel, chip row, log dump, AI output) ---- */
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-inline-start: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.logtriage-autofetch {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.75rem;
}
.lt-fetch-head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.lt-fetch-head strong {
  color: white; font-size: 0.85rem; font-weight: 600;
}
.lt-fetch-head .lt-icon { color: var(--warn); }
.lt-fetch-head .muted { font-size: 0.72rem; color: var(--text-on-dark-soft); }
.lt-fetch-grid {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.lt-field label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-soft);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.lt-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: white;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.lt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.lt-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-on-dark-soft);
}
.lt-chip.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
  font-weight: 600;
}
.lt-status {
  font-size: 0.7rem;
  color: #86efac;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.logtriage-paste { margin-bottom: 0.75rem; }
.log-snippet {
  background: #0a0f1f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.log-snippet pre {
  margin: 0;
  padding: 0.7rem 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #f87171;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-out {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.ai-out-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c4b5fd;
  margin-bottom: 0.25rem;
}
.ai-out-head + .ai-out-head { margin-top: 0.65rem; }
.ai-out p, .ai-out ol {
  color: var(--text-on-dark); font-size: 0.78rem; line-height: 1.55;
}
.ai-out p { margin: 0; }
.ai-out ol { margin: 0; padding-inline-start: 1.1rem; }
.ai-out ol li { margin: 0.18rem 0; }
.ai-out code {
  background: rgba(255,255,255,0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

/* -----  REQUIREMENTS  ----- */

.reqs-section { background: white; }
.reqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.reqs-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.reqs-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.reqs-card ul { display: grid; gap: 0.7rem; }
.reqs-card li { font-size: 0.93rem; color: var(--text-soft); line-height: 1.5; }
.reqs-card li strong { color: var(--text); }
.reqs-card.ok { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.03); }
.reqs-card.warn { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.03); }
.reqs-card.info { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.03); }

.center { text-align: center; }

/* code inline */
code {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(0,0,0,0.05);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
.privacy-section code, .window-body code, .reqs-card code {
  background: rgba(255,255,255,0.08);
  color: inherit;
}
.reqs-card code {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

/* Launch-price banner */
.launch-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ok);
  margin: 0 auto 1rem;
}
.launch-banner::before { content: "🎉"; font-size: 1rem; }
.launch-banner-wrap { text-align: center; margin-bottom: 1rem; }

/* -----  STORE BADGES  ----- */

.store-badges {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem;
  background: var(--bg-dark);
  color: white !important;
  border-radius: 11px;
  transition: transform 0.1s ease, background 0.15s ease;
  border: 1px solid var(--bg-darker);
}
.store-badge:hover:not(.disabled) { transform: translateY(-2px); background: #1a2336; }
.store-badge.disabled { opacity: 0.55; cursor: not-allowed; }
.store-badge.disabled:hover { transform: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 0.62rem; opacity: 0.8; }
.store-badge strong { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.store-note { margin-top: 0.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.store-note a { color: var(--accent); }
.store-note .pill-info {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(217, 158, 58, 0.14);
  color: #d99e3a;
  border: 1px solid rgba(217, 158, 58, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* -----  CONTACT  ----- */

.contact-section { background: white; }
.contact-form {
  max-width: 640px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1rem;
}
.contact-form .form-row {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.contact-form .form-row.two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.contact-form .form-row.two label { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-actions-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.5rem;
}
.contact-status {
  padding: 0.7rem 1rem;
  border-radius: 9px;
  font-size: 0.92rem;
}
.contact-status.sending { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.contact-status.ok { background: rgba(34, 197, 94, 0.1); color: var(--ok); }
.contact-status.err { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
@media (max-width: 540px) {
  .contact-form .form-row.two { grid-template-columns: 1fr; }
}

/* -----  FAQ  ----- */

.faq-section { background: var(--bg-soft); }
.faq-grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
  max-width: 800px;
  /* FIX(#9): logical inline margins (centering is symmetric, but stay consistent). */
  margin-inline: auto;
}
.faq {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  transition: border-color 0.15s ease;
}
.faq[open] { border-color: var(--border-strong); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-soft);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin-top: 0.8rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -----  PRIVACY  ----- */

.privacy-section { background: var(--bg-dark); color: var(--text-on-dark); }
.privacy-section .section-title { color: white; }
.privacy-section .eyebrow { color: #86efac; }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.privacy-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}
.privacy-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: white; }
.privacy-card p { color: var(--text-on-dark-soft); font-size: 0.92rem; line-height: 1.55; }

/* -----  PRICING  ----- */

.pricing-section { background: white; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}
/* Single-tier layout — centers the lone card with a comfortable max width
   so it doesn't stretch across the full container on big screens. */
.pricing-grid--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  transform: scale(1.02);
  box-shadow: 0 20px 50px -16px rgba(37, 99, 235, 0.25);
}
.price-card h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.tag {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-soft);
  color: var(--text-soft);
  border-radius: 999px;
  font-weight: 600;
  /* FIX(#9): logical margin. */
  margin-inline-start: 0.3rem;
  vertical-align: middle;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.price .amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.price .period { color: var(--text-soft); }
.price .strike {
  color: var(--text-soft);
  text-decoration: line-through;
  font-size: 1rem;
  /* FIX(#9): logical margin so the strike-price sits after the live price in RTL too. */
  margin-inline-start: 0.4rem;
}
.badge-pill.subtle {
  background: var(--text-soft);
  color: white;
}
.card-sub { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }
.price-card ul { display: grid; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.95rem; flex: 1; }
.price-card ul li { color: var(--text); }

.trial-cta {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.trial-cta h3 { font-size: 1.6rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.trial-cta p { color: var(--text-soft); margin-bottom: 1.5rem; }
.trial-cta .small { font-size: var(--fs-small); margin-top: 1rem; margin-bottom: 0; }

/* ---- Beta-Preview CTA ---- */
/* FIX(#9): text-align start, not left, so RTL languages flip correctly. */
.beta-cta { text-align: start; max-width: 720px; margin: 0 auto; }
.beta-cta h3 { text-align: center; }
.beta-cta > p { text-align: center; margin-bottom: 1.8rem; }
.beta-pill {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(180deg, #d99e3a, #b6802b);
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 auto 1rem;
  display: block;
  width: fit-content;
}
.beta-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.4rem; }
.beta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.beta-row input[type="email"] {
  flex: 1 1 280px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.beta-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 111, 216, 0.2);
}
.beta-row button { flex: 0 0 auto; min-height: 48px; }
.beta-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
  cursor: pointer;
}
.beta-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.beta-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
}
.beta-status.sending { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.beta-status.ok { background: rgba(34, 197, 94, 0.1); color: var(--ok); }
.beta-status.err { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.beta-bullets {
  list-style: none;
  padding: 0;
  margin: 1.4rem auto 1rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--text);
  max-width: 540px;
}
.beta-bullets li { padding-left: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -----  FOOTER  ----- */

.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark-soft);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer .brand { color: white; }
.footer h4 {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.footer a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--text-on-dark-soft);
  transition: color 0.15s;
}
.footer a:hover { color: white; }
.copyright {
  padding-top: 2rem;
  font-size: var(--fs-small);
  color: var(--text-on-dark-soft);
}

/* -----  SCROLL ANIMATIONS  ----- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* -----  RESPONSIVE  ----- */

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-inner > .btn { display: none; }

  .ai-row, .mobile-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .ai-art .window, .hero-art .window {
    margin: 0;
  }
  .window-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sidebar { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }

  .price-card.featured { transform: none; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .hero-art { margin-top: 2.5rem; margin-bottom: -3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-card { padding: 1.5rem; }
  .shot-grid { gap: 1rem; }
  .window-body.single { padding: 0.6rem 0.8rem; min-height: auto; }
  .scan-step, .live-row, .cs-row, .triage-row, .detail-grid > div { font-size: 0.72rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .ai-strip { font-size: 0.68rem; }
  .terminal { font-size: 0.62rem; padding: 0.6rem 0.7rem; }
  .live-row { grid-template-columns: 80px 1fr auto; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .pricing-grid { gap: 1rem; margin-bottom: 2rem; }
  .price-card { padding: 1.2rem; }
  .price-card.featured { transform: none; }
  .price .amount { font-size: 2.1rem; }
  .form-grid.two, .contact-form .form-row.two { grid-template-columns: 1fr; }
  .hero-meta { padding: 0 1rem; line-height: 1.6; }
  /* Tighter rhythm on phones: 40px section padding (Apple's smallest). */
  .section, .statement { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 0; }
  .feature-grid, .shot-grid, .pricing-grid,
  .provider-grid, .reqs-grid, .faq-grid, .privacy-grid { margin-top: 1.5rem; }
}

/* Universal: anything ending up in a tight grid needs to be able to shrink.
   Without `min-width: 0`, content with `white-space: nowrap` or large text
   forces parent overflow on narrow viewports. */
.feature, .price-card, .privacy-card, .reqs-card, .faq, .provider {
  min-width: 0;
}
.feature h3, .feature p,
.price-card ul, .privacy-card p, .reqs-card li,
.faq p, .faq summary {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
img, code, pre { max-width: 100%; }
code { word-break: break-word; }
pre { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* -----  RTL OVERRIDES  ----- */
/* FIX(#9): catch-all overrides for spots that can't trivially switch to logical
   properties. Most rules above use start/end already; this block handles the
   leftovers (negative margins on overlapping phones, terminal mocks, etc.). */

[dir="rtl"] .phone-row > .phone:first-child {
  /* mirror the rotational tilt */
  margin-inline-end: -40px;
  margin-inline-start: 0;
  transform: translateY(20px) rotate(3deg) scale(0.92);
}
[dir="rtl"] .phone-row > .phone:last-child {
  margin-inline-start: -40px;
  margin-inline-end: 0;
  transform: translateY(20px) rotate(-3deg) scale(0.92);
}

/* Terminal output and code blocks must read LTR even in RTL pages. */
[dir="rtl"] .terminal,
[dir="rtl"] .term-line,
[dir="rtl"] code,
[dir="rtl"] .scan-step,
[dir="rtl"] .msg.mono {
  direction: ltr;
  text-align: left;
}

/* The hero-art window-title centered via auto margins keeps working;
   but if we ever swap to logical-margin auto, this stays correct. */
[dir="rtl"] .window-title {
  margin-inline: auto;
}

/* FAQ marker stays right of text in LTR — flip it. */
[dir="rtl"] .faq summary::after {
  /* "+" / "×" rotated marker — no horizontal asymmetry, fine as-is */
}

/* Pricing strike-through price: small visual mirror handled by margin-inline-start above. */

/* =========================================================================
   2026-05 content overhaul additions:
   - Language switcher in nav
   - Feature highlights (top three cards)
   - AI providers grid
   - Dedicated security section
   - Mobile "coming soon" calmer layout
   ========================================================================= */

/* ---- Language switcher ---- */
.lang-switcher {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  /* Match .btn-sm shape so the switcher reads as a peer of the Buy button,
     not a tiny dropdown stuck next to it. */
  padding: 0.5rem 2.1rem 0.5rem 2.4rem;
  margin-inline-start: 0.4rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* Globe icon on the left + chevron on the right, both inline SVG so we
     don't need an extra asset file. */
  background-image:
    /* globe (left) — UTF-8 SVG */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1f2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18'/><path d='M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>"),
    /* chevron (right) */
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    0.7rem center,
    calc(100% - 0.95rem) center,
    calc(100% - 0.6rem)  center;
  background-size:
    1.05rem 1.05rem,
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  min-height: 36px;
}
.lang-switcher:hover {
  border-color: var(--accent-2);
  background-color: rgba(96, 165, 250, 0.08);
}
.lang-switcher:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .lang-switcher {
    font-size: 0.85rem;
    padding: 0.45rem 1.9rem 0.45rem 2.1rem;
    background-position: 0.55rem center, calc(100% - 0.85rem) center, calc(100% - 0.5rem) center;
    background-size: 0.95rem 0.95rem, 5px 5px, 5px 5px;
  }
}

/* ---- Feature highlights (first three) ---- */
.feature.feature-highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 30px -20px rgba(37, 99, 235, 0.4);
}
.feature.feature-highlight h3 { color: var(--text); }

/* ---- AI providers grid ---- */
.ai-providers-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.2rem 0 0.7rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.ai-providers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.ai-provider {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ai-provider strong { font-size: 0.92rem; color: var(--text); }
.ai-provider small { font-size: 0.78rem; color: var(--text-soft); line-height: 1.35; }
.ai-provider.local {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
  border-color: rgba(34, 197, 94, 0.3);
}
.ai-no-lockin { margin-top: 0.3rem; }

/* ---- Security section ---- */
.security-section {
  background: linear-gradient(180deg, #0b1220 0%, #060912 100%);
  color: var(--text-on-dark);
}
.security-section .section-title { color: white; }
.security-section .section-sub { color: var(--text-on-dark-soft); }
.security-section .eyebrow { color: #86efac; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.security-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.security-card h3 {
  font-size: 1.05rem;
  color: white;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.security-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-on-dark-soft);
}

/* ---- Mobile "coming soon" calmer block ---- */
.mobile-coming {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 1.8rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -24px rgba(0,0,0,0.12);
}
.mobile-feature-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.mobile-feature-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.mobile-feature-list li::before {
  content: "→";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 600;
}
.mobile-feature-list strong { color: var(--text); }
.mobile-note { margin-top: 0.5rem; }

/* hide the legacy phone-mock block; we keep markup intact for future re-enable */
.legacy-mobile-art[hidden] { display: none !important; }

