/* vDNS — Monochrome Apple-Craft Design System (Light & Dark Adaptive)
 * Typography: Instrument Sans (UI/Display), Instrument Serif (editorial italic poise), IBM Plex Mono (IPs/specs)
 * Surface: Pure porcelain alabaster (#FAFAFA) <-> Deep OLED obsidian (#07080A)
 * Zero neon glows, zero indigo defaults, zero decorative card clutter.
 */

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f2f3f5;
  --bg-inset: #eceef1;
  --ink: #0a0b0e;
  --ink-secondary: #4c515c;
  --ink-muted: #767c89;
  --line: rgba(10, 11, 14, 0.09);
  --line-strong: rgba(10, 11, 14, 0.17);
  --cta-bg: #0c0d10;
  --cta-fg: #f7f8fa;
  --cta-hover: #1d2027;
  --status-green: #15803d;
  --status-green-bg: rgba(21, 128, 61, 0.10);
  --status-red: #b91c1c;
  --phone-bezel: #15171c;
  --phone-frame: #272a32;
  --phone-screen: #f5f5f7;
  --phone-card: #ffffff;
  --phone-ink: #0b0c0f;
  --phone-muted: #636875;
  --phone-line: rgba(10, 11, 14, 0.08);
  --shadow-phone: 0 36px 80px -24px rgba(10, 11, 14, 0.24), 0 12px 28px -12px rgba(10, 11, 14, 0.12);
  --shadow-subtle: 0 1px 2px rgba(10, 11, 14, 0.04);
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080a;
    --bg-elevated: #0f1115;
    --bg-subtle: #14171d;
    --bg-inset: #1a1d24;
    --ink: #f5f6f8;
    --ink-secondary: #a1a7b3;
    --ink-muted: #6d7380;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --cta-bg: #f5f6f8;
    --cta-fg: #090a0d;
    --cta-hover: #e2e5ea;
    --status-green: #30d158;
    --status-green-bg: rgba(48, 209, 88, 0.14);
    --status-red: #f87171;
    --phone-bezel: #0b0c0f;
    --phone-frame: #2c303a;
    --phone-screen: #090a0d;
    --phone-card: #14161c;
    --phone-ink: #f5f6f8;
    --phone-muted: #8b919e;
    --phone-line: rgba(255, 255, 255, 0.08);
    --shadow-phone: 0 40px 90px -20px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080a;
  --bg-elevated: #0f1115;
  --bg-subtle: #14171d;
  --bg-inset: #1a1d24;
  --ink: #f5f6f8;
  --ink-secondary: #a1a7b3;
  --ink-muted: #6d7380;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --cta-bg: #f5f6f8;
  --cta-fg: #090a0d;
  --cta-hover: #e2e5ea;
  --status-green: #30d158;
  --status-green-bg: rgba(48, 209, 88, 0.14);
  --status-red: #f87171;
  --phone-bezel: #0b0c0f;
  --phone-frame: #2c303a;
  --phone-screen: #090a0d;
  --phone-card: #14161c;
  --phone-ink: #f5f6f8;
  --phone-muted: #8b919e;
  --phone-line: rgba(255, 255, 255, 0.08);
  --shadow-phone: 0 40px 90px -20px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

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

.wrap-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  color: var(--ink-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-cta:hover {
  background: var(--cta-hover);
}

/* --- Asymmetrical Editorial Hero --- */
.hero {
  padding: 72px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.hero-kicker-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--line-strong);
}

.hero-kicker-sep {
  color: var(--ink-muted);
}

.hero-headline {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 68px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 1.06em;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 490px;
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.appstore-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.appstore-btn-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.appstore-btn-small {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0.01em;
}

.appstore-btn-large {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.secondary-btn:hover {
  background: var(--bg-subtle);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* --- Interactive Machined iPhone Showcase --- */
.device-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Authentic iPhone 16 Pro Titanium Hardware + iOS 26 Liquid Glass UI */
.iphone-shell {
  width: 330px;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(155deg, #52565f 0%, #24272f 22%, #13151a 62%, #2a2e38 100%);
  box-shadow:
    var(--shadow-phone),
    inset 0 0 0 1.2px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3px #090a0d;
  position: relative;
}

.hw-btn {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, #5c616c, #272a32);
  border-radius: 2px;
}

.hw-action { left: -3px; top: 114px; height: 24px; }
.hw-vol-up { left: -3px; top: 158px; height: 46px; }
.hw-vol-down { left: -3px; top: 214px; height: 46px; }
.hw-power { right: -3px; top: 178px; height: 68px; }

.iphone-screen {
  border-radius: 44px;
  background: #f2f2f7;
  color: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 656px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", var(--font-sans);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

:root[data-theme="dark"] .iphone-screen {
  background: #000000;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Pure Apple HIG Canvas (Liquid Glass stays strictly on floating chrome) */
.ios-ambient-bg {
  display: none;
}

/* Authentic Apple iPhone 16 Pro Status Bar */
.iphone-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 20px 8px;
  flex-shrink: 0;
}

.ios-time {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  padding-left: 6px;
}

.iphone-island {
  width: 90px;
  height: 25px;
  border-radius: 999px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  box-shadow: inset 0 0 0 0.6px rgba(255, 255, 255, 0.07);
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2e3b5c 0%, #101524 55%, #05070c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ios-status-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding-right: 2px;
}

.ios-viewport {
  flex: 1;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 4px 16px 6px;
}

.ios-tab-pane {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: none;
}

.ios-tab-pane::-webkit-scrollbar { display: none; }
.ios-tab-pane[data-active="true"] {
  display: flex;
  flex-direction: column;
}

.app-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 2px 2px 0;
}

.app-nav-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(21, 128, 61, 0.12);
  color: var(--status-green);
  border: 1px solid rgba(21, 128, 61, 0.22);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

:root[data-theme="dark"] .status-pill {
  background: rgba(48, 209, 88, 0.14);
  border-color: rgba(48, 209, 88, 0.26);
}

.status-pill[data-state="connecting"] {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.28);
}

.status-pill[data-state="disconnected"] {
  background: rgba(120, 125, 138, 0.14);
  color: var(--phone-muted);
  border-color: rgba(120, 125, 138, 0.20);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Floating Liquid Glass Circular Toolbar Buttons */
.glass-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.glass-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #000000;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255, 255, 255, 0.72);
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

:root[data-theme="dark"] .glass-circle-btn {
  color: #ffffff;
  background: rgba(44, 44, 46, 0.58);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.glass-circle-btn:active { transform: scale(0.93); }

/* Authentic Apple HIG InsetGroupedCard (Opaque #FFFFFF / #1C1C1E) */
.hig-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

:root[data-theme="dark"] .hig-card {
  background: #1c1c1e;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.10);
}

/* 1. Hero InsetGroupedCard */
.hig-hero-card {
  padding: 22px 18px 18px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Quiet Tonal StatusDisc */
.status-disc {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 199, 89, 0.14);
  color: #1e7e34;
  transition: background-color 0.2s ease, color 0.2s ease;
}

:root[data-theme="dark"] .status-disc {
  background: rgba(48, 209, 88, 0.16);
  color: #30d158;
}

.status-disc[data-state="connecting"] {
  background: rgba(255, 159, 10, 0.16);
  color: #ff9f0a;
}

.status-disc[data-state="disconnected"] {
  background: #e5e5ea;
  color: #6c6c70;
}

:root[data-theme="dark"] .status-disc[data-state="disconnected"] {
  background: #2c2c2e;
  color: #98989f;
}

.hig-hero-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 12px;
}

.hig-hero-sub {
  font-size: 12.5px;
  color: #6c6c70;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .hig-hero-sub {
  color: #98989f;
}

/* Authentic Apple Prominent Capsule PrimaryActionButton */
.hig-capsule-btn {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: #0c0d10;
  color: #ffffff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

:root[data-theme="dark"] .hig-capsule-btn {
  background: #f5f6f8;
  color: #090a0d;
}

.hig-capsule-btn[data-state="connected"],
.hig-capsule-btn[data-state="connecting"] {
  background: #e5e5ea;
  color: #000000;
}

:root[data-theme="dark"] .hig-capsule-btn[data-state="connected"],
:root[data-theme="dark"] .hig-capsule-btn[data-state="connecting"] {
  background: #2c2c2e;
  color: #ffffff;
}

.hig-capsule-btn:active {
  transform: scale(0.97);
  opacity: 0.86;
}

/* 2. Authentic Apple Grouped Key-Value Rows with 1px Inset Dividers */
.hig-list[hidden] { display: none; }

.hig-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10.5px 15px;
  font-size: 13.5px;
  position: relative;
  background: transparent;
  border: none;
  text-align: left;
  color: inherit;
}

.hig-row + .hig-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  right: 0;
  height: 0.5px;
  background: rgba(60, 60, 67, 0.22);
}

:root[data-theme="dark"] .hig-row + .hig-row::before {
  background: rgba(84, 84, 88, 0.55);
}

.hig-row-btn { cursor: pointer; }
.hig-row-btn:active { background: rgba(120, 120, 128, 0.12); }

.hig-row-key {
  color: inherit;
}

.hig-row-val {
  color: #6c6c70;
  font-size: 13px;
}

:root[data-theme="dark"] .hig-row-val {
  color: #98989f;
}

.mono-num {
  font-variant-numeric: tabular-nums;
}

/* Settings & Support Tab Inset Grouped Glass Lists */
.ios-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--phone-muted);
  padding: 10px 8px 5px;
}

.ios-group {
  border-radius: 18px;
  overflow: hidden;
}

.ios-cell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--phone-line);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  color: inherit;
}

.ios-cell:last-child { border-bottom: none; }
.ios-cell-btn { cursor: pointer; }
.ios-cell-btn:hover { background: rgba(128, 134, 148, 0.08); }
.ios-cell-val { font-size: 12px; color: var(--phone-muted); }

.ios-switch {
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: rgba(120, 125, 138, 0.28);
  position: relative;
  transition: background-color 0.2s ease;
}

.ios-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.ios-switch[data-on="true"] { background: var(--status-green); }
.ios-switch[data-on="true"]::after { transform: translateX(15px); }

.ios-check-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--status-green-bg);
  color: var(--status-green);
}

/* Frosted Liquid Glass iOS Bottom Sheet */
.ios-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.ios-sheet-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.ios-sheet {
  width: 100%;
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  background: rgba(244, 246, 250, 0.90);
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 8px 14px 16px;
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .ios-sheet {
  background: rgba(20, 22, 28, 0.90);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ios-sheet-backdrop[data-open="true"] .ios-sheet {
  transform: translateY(0);
}

.ios-sheet-grabber {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(128, 134, 148, 0.35);
  margin: 0 auto 10px;
}

.ios-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ios-sheet-done {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.ios-sheet-list {
  background: var(--phone-card);
  border: 1px solid var(--phone-line);
  border-radius: 16px;
  overflow: hidden;
}

.ios-sheet-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--phone-line);
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.ios-sheet-row:last-child { border-bottom: none; }
.ios-sheet-row:hover { background: rgba(128, 134, 148, 0.08); }
.ios-sheet-row strong { display: block; font-size: 12.5px; font-weight: 600; }
.ios-sheet-row small { display: block; font-size: 10px; color: var(--phone-muted); font-family: var(--font-mono); }
.sheet-check { font-size: 13px; font-weight: 700; opacity: 0; color: var(--status-green); }
.ios-sheet-row[data-selected="true"] .sheet-check { opacity: 1; }

/* Authentic iOS 26 Floating Liquid Glass Capsule Tab Bar + Home Indicator */
.ios-tabbar-dock {
  position: relative;
  z-index: 3;
  padding: 2px 16px 8px;
  flex-shrink: 0;
}

.ios-tabbar-glass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.52) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 26px rgba(10, 12, 18, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

:root[data-theme="dark"] .ios-tabbar-glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ios-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--phone-muted);
  font-size: 9.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
}

.ios-tab[aria-selected="true"] {
  color: #000000;
  font-weight: 600;
  background: rgba(10, 12, 18, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .ios-tab[aria-selected="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ios-home-indicator {
  width: 112px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.24;
  margin: 10px auto 2px;
}

.device-caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* --- Hairline Ledger Strip (Replaces generic 3-card feature slop) --- */
.ledger {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ledger-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}

.ledger-cell:first-child { padding-left: 0; }
.ledger-cell:last-child { border-right: none; padding-right: 0; }

.ledger-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ledger-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* --- Editorial Sections --- */
.band {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.035em;
  max-width: 640px;
  text-wrap: balance;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
}

.section-lead {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 16.5px;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

/* --- Architecture Split + Packet Path --- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}

.architecture-points {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.architecture-points li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: baseline;
}

.point-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.point-title {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.015em;
}

.point-desc {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.flow-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--bg);
}

.flow-step-strong {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
}

.flow-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.flow-step-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.flow-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.flow-step-desc {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.flow-connector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.flow-line {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
  margin-left: 8px;
}

/* --- Resolver Compare Table --- */
.resolver-table-wrap {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
}

.resolver-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.resolver-table th {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}

.resolver-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.resolver-table tr:last-child td {
  border-bottom: none;
}

.resolver-row {
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.resolver-row:hover {
  background: var(--bg-subtle);
}

.resolver-row[data-selected="true"] {
  background: var(--bg-inset);
}

.resolver-name-cell {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* --- Privacy & FAQ Split --- */
.nutrition-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 28px;
}

.nutrition-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.nutrition-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nutrition-copy {
  margin: 12px 0 22px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.nutrition-list {
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.nutrition-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.nutrition-list strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 560px;
}

/* --- Closing CTA Band --- */
.closing-band {
  padding: 88px 0;
}

.closing-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.closing-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.closing-sub {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--ink-secondary);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--ink);
}

/* --- Legal & Support Sub-Pages --- */
.doc-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}

.doc-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.doc-meta {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

.prose {
  padding: 44px 0 88px;
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.prose ul {
  padding-left: 20px;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Support Live Feedback Form --- */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  padding: 48px 0 88px;
  align-items: start;
}

.form-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 32px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  padding: 11px 14px;
  font-size: 15px;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover { background: var(--cta-hover); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}

.form-status[data-state="ok"] {
  display: block;
  background: var(--status-green-bg);
  color: var(--status-green);
}

.form-status[data-state="err"] {
  display: block;
  border: 1px solid color-mix(in srgb, var(--status-red) 40%, transparent);
  color: var(--status-red);
}

/* --- Responsive --- */
@media (max-width: 920px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid,
  .split-grid,
  .support-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ledger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ledger-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  .ledger-cell:nth-child(odd) { padding-right: 16px; }
  .ledger-cell:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-links { display: none; }
  .band { padding: 68px 0; }
  .closing-box { padding: 32px 24px; }
  .resolver-table th:nth-child(3),
  .resolver-table td:nth-child(3) { display: none; }
  .iphone-shell { width: 296px; }
}

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