/* Zinova Website & Interactive Demo Styles
   Design tokens mirror src/ui/theme.tsx (dark & light palettes, type scale, radii). */

:root {
  /* Raw Light Tokens (src/ui/theme.tsx -> light) */
  --bg-light: #F2F3F7;
  --bg-elevated-light: #FAFAFC;
  --card-light: #FFFFFF;
  --raised-light: #EAECEF;
  --border-light: #D4D6DD;
  --border-subtle-light: #DDDEE3;
  --text-light: #0B0B0F;
  --muted-light: #5C5C66;
  --silver-light: #18181B;
  --green-light: #008542;
  --green-soft-light: #E2F4E9;
  --blue-light: #2563EB;
  --blue-soft-light: #E6EDFE;
  --orange-light: #C93F08;
  --orange-soft-light: #FCE9DF;
  --header-glass-light: rgba(242, 243, 247, 0.82);
  --tabbar-glass-light: rgba(255, 255, 255, 0.78);
  --tabbar-active-light: rgba(0, 0, 0, 0.07);
  --shadow-phone-light: 0 28px 70px rgba(11, 11, 15, 0.14);
  --shadow-card-light: 0 8px 24px rgba(11, 11, 15, 0.04);

  /* Raw Dark Tokens (src/ui/theme.tsx -> dark) */
  --bg-dark: #000000;
  --bg-elevated-dark: #09090B;
  --card-dark: #141416;
  --raised-dark: #1F1F23;
  --border-dark: #2C2C32;
  --border-subtle-dark: #27272B;
  --text-dark: #FFFFFF;
  --muted-dark: #9898A0;
  --silver-dark: #E4E4E7;
  --green-dark: #00D66C;
  --green-soft-dark: #062D18;
  --blue-dark: #60A5FA;
  --blue-soft-dark: #152438;
  --orange-dark: #FF6B2C;
  --orange-soft-dark: #321B12;
  --header-glass-dark: rgba(0, 0, 0, 0.78);
  --tabbar-glass-dark: rgba(24, 24, 28, 0.76);
  --tabbar-active-dark: rgba(255, 255, 255, 0.14);
  --shadow-phone-dark: 0 32px 90px rgba(0, 0, 0, 0.78);
  --shadow-card-dark: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* Fallback defaults (Light) for browsers without light-dark() */
  --bg: var(--bg-light);
  --bg-elevated: var(--bg-elevated-light);
  --card: var(--card-light);
  --raised: var(--raised-light);
  --border: var(--border-light);
  --border-subtle: var(--border-subtle-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --silver: var(--silver-light);
  --green: var(--green-light);
  --green-soft: var(--green-soft-light);
  --blue: var(--blue-light);
  --blue-soft: var(--blue-soft-light);
  --orange: var(--orange-light);
  --orange-soft: var(--orange-soft-light);
  --header-glass: var(--header-glass-light);
  --tabbar-glass: var(--tabbar-glass-light);
  --tabbar-active: var(--tabbar-active-light);
  --shadow-phone: var(--shadow-phone-light);
  --shadow-card: var(--shadow-card-light);

  /* Non-color branches (logo filter & theme toggle icon visibility) */
  --logo-filter: none;
  --show-when-light: inline-flex;
  --show-when-dark: none;

  /* Radii & typography */
  --radius-card: 22px;
  --radius-tile: 16px;
  --radius-pill: 999px;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;

  /* MANDATORY: Apply color-scheme to :root for viewport-wide native UI theming */
  color-scheme: light dark;
  accent-color: var(--green);
}

/* Fallback for browsers without light-dark() when OS prefers dark (unless pinned to light) */
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
    --bg: var(--bg-dark);
    --bg-elevated: var(--bg-elevated-dark);
    --card: var(--card-dark);
    --raised: var(--raised-dark);
    --border: var(--border-dark);
    --border-subtle: var(--border-subtle-dark);
    --text: var(--text-dark);
    --muted: var(--muted-dark);
    --silver: var(--silver-dark);
    --green: var(--green-dark);
    --green-soft: var(--green-soft-dark);
    --blue: var(--blue-dark);
    --blue-soft: var(--blue-soft-dark);
    --orange: var(--orange-dark);
    --orange-soft: var(--orange-soft-dark);
    --header-glass: var(--header-glass-dark);
    --tabbar-glass: var(--tabbar-glass-dark);
    --tabbar-active: var(--tabbar-active-dark);
    --shadow-phone: var(--shadow-phone-dark);
    --shadow-card: var(--shadow-card-dark);
    --logo-filter: invert(1);
    --show-when-light: none;
    --show-when-dark: inline-flex;
  }
}

/* Reflect <meta name="color-scheme"> override back onto :root */
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
  --bg: var(--bg-dark);
  --bg-elevated: var(--bg-elevated-dark);
  --card: var(--card-dark);
  --raised: var(--raised-dark);
  --border: var(--border-dark);
  --border-subtle: var(--border-subtle-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --silver: var(--silver-dark);
  --green: var(--green-dark);
  --green-soft: var(--green-soft-dark);
  --blue: var(--blue-dark);
  --blue-soft: var(--blue-soft-dark);
  --orange: var(--orange-dark);
  --orange-soft: var(--orange-soft-dark);
  --header-glass: var(--header-glass-dark);
  --tabbar-glass: var(--tabbar-glass-dark);
  --tabbar-active: var(--tabbar-active-dark);
  --shadow-phone: var(--shadow-phone-dark);
  --shadow-card: var(--shadow-card-dark);
  --logo-filter: invert(1);
  --show-when-light: none;
  --show-when-dark: inline-flex;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
  --logo-filter: none;
  --show-when-light: inline-flex;
  --show-when-dark: none;
}

/* Native light-dark() token resolution where supported */
@supports (color: light-dark(white, black)) {
  :root {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --bg-elevated: light-dark(var(--bg-elevated-light), var(--bg-elevated-dark));
    --card: light-dark(var(--card-light), var(--card-dark));
    --raised: light-dark(var(--raised-light), var(--raised-dark));
    --border: light-dark(var(--border-light), var(--border-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --text: light-dark(var(--text-light), var(--text-dark));
    --muted: light-dark(var(--muted-light), var(--muted-dark));
    --silver: light-dark(var(--silver-light), var(--silver-dark));
    --green: light-dark(var(--green-light), var(--green-dark));
    --green-soft: light-dark(var(--green-soft-light), var(--green-soft-dark));
    --blue: light-dark(var(--blue-light), var(--blue-dark));
    --blue-soft: light-dark(var(--blue-soft-light), var(--blue-soft-dark));
    --orange: light-dark(var(--orange-light), var(--orange-dark));
    --orange-soft: light-dark(var(--orange-soft-light), var(--orange-soft-dark));
    --header-glass: light-dark(var(--header-glass-light), var(--header-glass-dark));
    --tabbar-glass: light-dark(var(--tabbar-glass-light), var(--tabbar-glass-dark));
    --tabbar-active: light-dark(var(--tabbar-active-light), var(--tabbar-active-dark));
  }
}

/* Forced Colors Mode (Windows High Contrast) fallbacks */
@media (forced-colors: active) {
  :root {
    --border: CanvasText;
    --border-subtle: GrayText;
  }
  .btn-primary,
  .z-seg-thumb,
  .z-tab[aria-selected="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus {
  top: 14px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Cropped [Z]INOVA lockup matching assets/zinova-lockup.png (1896x724) */
.brand-lockup {
  display: inline-block;
  width: 132px;
  height: 27px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.brand-lockup img {
  position: absolute;
  width: 145.8px;
  height: auto;
  left: -11px;
  top: -14.5px;
  filter: var(--logo-filter);
  user-select: none;
  pointer-events: none;
}
.brand-lockup--sm {
  width: 106px;
  height: 21.7px;
}
.brand-lockup--sm img {
  width: 117.1px;
  left: -8.8px;
  top: -11.7px;
}

/* Sticky Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav-link:hover {
  color: var(--text);
  background: var(--raised);
}

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

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.14s ease, background-color 0.16s ease;
}
.icon-pill:hover {
  background: var(--raised);
}
.icon-pill:active {
  transform: scale(0.97);
}

.theme-when-light {
  display: var(--show-when-light);
  align-items: center;
  gap: 6px;
}
.theme-when-dark {
  display: var(--show-when-dark);
  align-items: center;
  gap: 6px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: opacity 0.16s ease, transform 0.14s ease;
}
.btn-header-cta:hover {
  opacity: 0.88;
}
.btn-header-cta:active {
  transform: scale(0.97);
}

@media (max-width: 820px) {
  .site-nav--desktop {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 28px 0 54px;
}

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

@media (max-width: 960px) {
  .hero {
    padding: 28px 0 48px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__lead {
  margin: 0 0 26px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 9px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform 0.14s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.store-btn:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.store-btn:active {
  transform: scale(0.985);
}
.store-btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.store-btn--primary:hover {
  background: var(--silver);
  color: var(--bg);
}
.store-btn__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.18;
}
.store-btn__kicker {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.78;
}
.store-btn__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.trust-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Interactive Demo Showcase Column */
.demo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.demo-badge-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.demo-live-pill__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.demo-try-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 400px;
}

.demo-try-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.demo-try-chip:hover {
  color: var(--text);
  border-color: var(--blue);
  background: var(--blue-soft);
}
.demo-try-chip:active {
  transform: scale(0.97);
}

/* Phone Bezel & Interactive Zinova App */
.phone-frame {
  width: 100%;
  max-width: 388px;
  background: #111115;
  border-radius: 46px;
  padding: 11px;
  border: 2px solid #2A2A32;
  box-shadow: var(--shadow-phone);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 688px;
  max-height: 76vh;
  min-height: 590px;
  border-radius: 36px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  border-radius: 99px;
  background: #070709;
  z-index: 25;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Inside-Phone Zinova UI */
.z-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 16px 104px;
  scrollbar-width: none;
}
.z-scroll::-webkit-scrollbar {
  display: none;
}

.z-topbar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 6px;
}

.z-avatar {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.z-avatar:active {
  transform: scale(0.95);
  opacity: 0.75;
}

.z-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.z-updated {
  background: transparent;
  border: 0;
  padding: 4px 0;
  text-align: right;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.z-updated:active {
  transform: scale(0.95);
}
.z-updated--pulse {
  transform: scale(1.1);
}
.z-updated__lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.z-updated__time {
  font-size: 12px;
  font-weight: 600;
}

.z-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* HeroAmount inside phone (src/ui/Money.tsx) */
.z-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 14px;
}

.z-hero__btn {
  background: transparent;
  border: 0;
  padding: 4px 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.z-hero__btn:hover {
  opacity: 0.88;
}
.z-hero__btn:active {
  transform: scale(0.98);
}

.z-hero__num-wrap {
  position: relative;
  display: inline-block;
}

.z-hero__mark {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  padding-right: 5px;
  font-size: 24px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.z-hero__mark--code {
  font-size: 17px;
}

.z-hero__num {
  font-size: 46px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -1.6px;
}

.z-hero__detail {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* Daily Note Pill (Günün notu) */
.z-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 17px;
  max-width: 100%;
}
.z-note__main {
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 8px 6px 8px 14px;
  flex: 1;
  min-width: 0;
}
.z-note__kicker {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.z-note__text {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}
.z-note__close {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cards & 3 Bento Tiles */
.z-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 14px;
}

.z-bento-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.z-tile {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 11px 10px;
  min-height: 98px;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.13s ease, border-color 0.15s ease;
}
.z-tile:hover {
  border-color: var(--muted);
}
.z-tile:active {
  transform: scale(0.98);
}
.z-tile__lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.z-tile__val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 4px 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.z-tile__sub {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted);
}
.z-tile__sub--blue {
  color: var(--blue);
}

/* Change Badge */
.z-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}
.z-change--up {
  background: var(--green-soft);
  color: var(--green);
}
.z-change--down {
  background: var(--orange-soft);
  color: var(--orange);
}

/* Segmented Control (src/ui/Segmented.tsx) */
.z-seg {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.z-seg--on-card {
  background: var(--raised);
  border-color: transparent;
}
.z-seg__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--seg-count, 4), minmax(0, 1fr));
}
.z-seg-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / var(--seg-count, 4));
  border-radius: var(--radius-pill);
  background: var(--raised);
  transform: translateX(calc(var(--seg-index, 0) * 100%));
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.z-seg--on-card .z-seg-thumb {
  background: var(--card);
}
.z-seg__btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.16s ease;
}
.z-seg__btn[aria-selected="true"] {
  color: var(--text);
  font-weight: 700;
}

/* 2x2 Hairline Metrics Grid */
.z-metrics-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.z-metric-cell {
  background: transparent;
  border: 0;
  padding: 14px;
  min-height: 92px;
  text-align: left;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.14s ease;
}
.z-metric-cell:hover {
  background: var(--raised);
}
.z-metric-cell:nth-child(2),
.z-metric-cell:nth-child(4) {
  border-left: 1px solid var(--border-subtle);
}
.z-metric-cell:nth-child(3),
.z-metric-cell:nth-child(4) {
  border-top: 1px solid var(--border-subtle);
}
.z-metric-cell__lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.z-metric-cell__val {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 2px 0;
}
.z-metric-cell__sub {
  font-size: 12px;
  color: var(--muted);
}
.z-metric-cell__sub strong {
  color: var(--text);
  font-weight: 600;
}
.z-metric-cell__sub strong.is-warn {
  color: var(--orange);
}

/* Breakdowns (GroupList) */
.z-sec-title {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 0;
}

.z-group-row {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 11px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.z-group-row:first-of-type {
  border-top: 0;
}
.z-group-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--raised);
  color: var(--silver);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.z-group-body {
  flex: 1;
  min-width: 0;
}
.z-group-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.z-group-row.is-selected .z-group-name {
  color: var(--blue);
  font-weight: 700;
}
.z-group-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}
.z-share-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}
.z-share-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--raised);
  overflow: hidden;
}
.z-share-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--silver);
  opacity: 0.55;
}
.z-group-row.is-selected .z-share-fill {
  background: var(--blue);
  opacity: 1;
}
.z-share-pct {
  font-size: 11px;
  color: var(--muted);
  min-width: 34px;
  text-align: right;
}
.z-group-amt {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

/* Interactive MetricChart inside Phone */
.z-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.z-chart-title {
  font-size: 15px;
  font-weight: 700;
}
.z-chart-hint {
  font-size: 11.5px;
  color: var(--muted);
}
.z-chart-readout {
  text-align: right;
}
.z-chart-val {
  font-size: 15px;
  font-weight: 700;
}
.z-chart-date {
  font-size: 11.5px;
  color: var(--muted);
}
.z-chart-plot {
  display: flex;
  align-items: stretch;
  gap: 6px;
  touch-action: pan-y;
}
.z-chart-yaxis {
  width: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0 8px;
  font-size: 10.5px;
  color: var(--muted);
}
.z-chart-svg-wrap {
  flex: 1;
  cursor: crosshair;
  user-select: none;
}
.z-chart-svg-wrap svg {
  display: block;
  width: 100%;
  height: 134px;
}
.z-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
  padding-left: 54px;
  font-size: 11px;
  color: var(--muted);
}
.z-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Diagnosis Funnel & AI Preview inside Phone */
.z-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.z-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.z-ai-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
}
.z-ai-answer {
  background: var(--raised);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.z-ai-q {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
}
.z-ai-bullet {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.48;
}
.z-ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 7px;
  flex-shrink: 0;
}
.z-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.z-ai-chip {
  flex: 1 1 46%;
  background: var(--raised);
  border: 1.5px solid transparent;
  color: var(--text);
  border-radius: 13px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.z-ai-chip--main {
  flex-basis: 100%;
  background: var(--blue-soft);
  color: var(--blue);
}
.z-ai-chip.is-active {
  border-color: var(--blue);
}

.z-funnel-step {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}
.z-funnel-track {
  height: 8px;
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
}
.z-funnel-fill {
  height: 100%;
  border-radius: 4px;
}
.z-funnel-drop {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 4px;
}
.z-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}
.z-stat-box {
  background: var(--raised);
  border-radius: 13px;
  padding: 9px;
}
.z-stat-box__lbl {
  font-size: 11px;
  color: var(--muted);
}
.z-stat-box__val {
  font-size: 15.5px;
  font-weight: 700;
  margin-top: 2px;
}

/* Floating Frosted TabBar inside Phone (src/ui/TabBar.tsx) */
.z-tabbar-wrap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  pointer-events: none;
}

.z-tabbar {
  pointer-events: auto;
  height: 58px;
  border-radius: 29px;
  background: var(--tabbar-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.z-tab {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.z-tab[aria-selected="true"] {
  background: var(--tabbar-active);
  color: var(--text);
  font-weight: 700;
}
.z-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  top: 11px;
  left: calc(50% - 17px);
}

/* Bottom Sheet Overlay inside Phone (InfoSheet.tsx) */
.z-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: flex-end;
  animation: zFadeIn 0.18s ease;
}
.z-sheet {
  width: 100%;
  max-height: 82%;
  overflow-y: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 16px 18px 22px;
  animation: zSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.z-sheet__grabber {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 12px;
}
.z-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.z-sheet__title {
  font-size: 17px;
  font-weight: 700;
}
.z-sheet__close {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  border: 0;
  background: var(--raised);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.z-sheet__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}
.z-sheet__row:first-of-type {
  border-top: 0;
}
.z-sheet__row span:first-child {
  color: var(--muted);
}
.z-sheet__row.is-strong span:first-child {
  color: var(--text);
  font-weight: 700;
}
.z-sheet__row.is-strong span:last-child {
  font-size: 15px;
  font-weight: 800;
}
.z-sheet__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

@keyframes zFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zSlideUp {
  from { transform: translateY(36px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

/* Content Sections Below Hero */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* 6-Card Bento Features Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 920px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-icon--green {
  background: var(--green-soft);
  color: var(--green);
}
.feature-icon--blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.feature-icon--orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.feature-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Privacy Architecture Flow Card */
.arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

.arch-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-node {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flow-node__title {
  font-size: 14.5px;
  font-weight: 700;
}
.flow-node__sub {
  font-size: 12.5px;
  color: var(--muted);
}
.flow-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.flow-tag--green {
  background: var(--green-soft);
  color: var(--green);
}
.flow-tag--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.check-list li strong {
  color: var(--text);
}
.check-list svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--raised);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.legal-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Download Banner */
.download-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
@media (max-width: 820px) {
  .download-box {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
}

.download-platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.platform-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.platform-card__title {
  font-size: 15px;
  font-weight: 700;
}
.platform-card__status {
  font-size: 12.5px;
  color: var(--muted);
}
.platform-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
}
.platform-card__link--muted {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item__body {
  padding: 0 22px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.faq-item__body a {
  color: var(--blue);
  text-decoration: underline;
}

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

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-disclaimer {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Legal Document Pages (/privacy, /terms, /data-deletion) */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}
.legal-header {
  margin-bottom: 24px;
}
.legal-title {
  margin: 8px 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.legal-meta {
  font-size: 13.5px;
  color: var(--muted);
}
.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}
.legal-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.legal-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.legal-card p + h2 {
  margin-top: 20px;
}
.legal-card a {
  color: var(--blue);
  text-decoration: underline;
}
