/* =========================================================================
   Pulse Chat — Gen 2.0 shared design system
   Light + dark (auto via prefers-color-scheme). Soft blue gradients,
   glassmorphism, 20–24px cards, subtle shadows, premium typography.
   Reusable component classes shared across all marketing pages.
   ========================================================================= */

:root {
  /* Brand */
  --brand-1: #2d6bff;
  --brand-2: #665dff;
  --brand-3: #4f8eff;
  --brand-gradient: linear-gradient(135deg, #2d6bff 0%, #665dff 100%);
  --brand-soft: rgba(45, 107, 255, 0.12);

  /* Light theme (default) */
  --bg-1: #eef3ff;
  --bg-2: #f7f9ff;
  --bg-3: #ffffff;
  --text: #0d1524;
  --text-strong: #060b16;
  --muted: #55617a;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --line: rgba(15, 30, 70, 0.1);
  --line-strong: rgba(15, 30, 70, 0.16);
  --glow-1: rgba(45, 107, 255, 0.18);
  --glow-2: rgba(102, 93, 255, 0.16);
  --glow-3: rgba(79, 142, 255, 0.14);
  --shadow-sm: 0 4px 14px rgba(20, 40, 90, 0.08);
  --shadow-md: 0 14px 34px rgba(20, 40, 90, 0.12);
  --shadow-lg: 0 30px 70px rgba(20, 40, 90, 0.16);
  --shadow-brand: 0 18px 42px rgba(45, 107, 255, 0.32);
  --on-brand: #ffffff;

  /* Radii */
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* Spacing scale (8pt) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;

  --max-width: 1180px;
  --max-reading: 820px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #0d1117;
    --bg-2: #0b0f16;
    --bg-3: #161b2b;
    --text: #f4f7fb;
    --text-strong: #ffffff;
    --muted: #98a7c2;
    --surface: rgba(28, 37, 57, 0.72);
    --surface-strong: rgba(28, 37, 57, 0.92);
    --surface-solid: #161b2b;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --glow-1: rgba(45, 107, 255, 0.26);
    --glow-2: rgba(102, 93, 255, 0.24);
    --glow-3: rgba(79, 142, 255, 0.2);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 34px 74px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 18px 44px rgba(45, 107, 255, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -5%, var(--glow-1), transparent 34%),
    radial-gradient(circle at 88% 4%, var(--glow-2), transparent 30%),
    radial-gradient(circle at 50% 108%, var(--glow-3), transparent 30%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 42%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

a {
  color: var(--brand-1);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.link-reset {
  color: inherit;
  text-decoration: none;
}
.link-reset:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ------------------------------------------------------------------ Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-strong);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.brand-mark span {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* PulseChat logo image in the nav */
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  /* Soft blue glow matching the hero buttons (same brand color). */
  box-shadow: 0 6px 18px rgba(45, 107, 255, 0.42);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--text-strong);
  text-decoration: none;
}
.nav-support-link {
  display: none;
}
.lang-switch {
  display: inline-flex;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.25rem;
  background: var(--surface-strong);
}
.lang-switch a {
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-switch a:hover {
  text-decoration: none;
  color: var(--text-strong);
}
.lang-switch a[aria-current="true"],
.lang-switch a.active {
  background: var(--brand-soft);
  color: var(--brand-1);
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(45, 107, 255, 0.42);
}
.btn-secondary {
  background: var(--surface-strong);
  color: var(--text-strong);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--brand-1);
}

/* ------------------------------------------------------------ Glass card */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* --------------------------------------------------------- Section header */
section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section-header {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-header > span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-1);
  background: var(--brand-soft);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.9rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 0.7rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.03rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-1);
  background: var(--brand-soft);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  /* Reduced height so the sovereignty trust banner enters the first viewport. */
  padding: clamp(1.3rem, 3.5vw, 2.6rem) 0 clamp(1.3rem, 3vw, 2rem);
}
.hero-grid {
  display: grid;
  /* Phone column is sized to the device (auto), so it sits right next to the
     copy with no empty gutter floating around it. */
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.6rem, 3.2vw, 2.8rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(1.78rem, 4.05vw, 2.68rem);
  margin-bottom: 0.8rem;
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-1);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Hero device mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
/* ------- Interactive hero phone mockup (CSS, styled after app screenshot).
   The image includes its own frame; here we rebuild it in HTML/CSS so the
   chat bubbles and feature cards stay hoverable/interactive. The screen uses
   fixed light colors so it reads like a real phone on both site themes. */
.device-frame {
  /* Faithful reproduction of the PulseChat Gen 2.0 chat screen (light theme).
     Values are the app's exact design tokens (px == Flutter dp). */
  --pc-primary: #1a6bff;
  --pc-grad-start: #4f8eff;
  --pc-grad-end: #1a6bff;
  --pc-bg: #f6f8fc;
  --pc-surface: #ffffff;
  --pc-bubble-other: #f1f3f7;
  --pc-divider: #e6eaf2;
  --pc-text: #0f172a;
  --pc-text2: #64748b;
  --pc-text3: #94a3b8;
  --pc-input: #eef2f9;
  --pc-green: #10b981;
  --pc-yellow: #f59e0b;
  position: relative;
  width: min(412px, 92vw);
  border-radius: 60px;
  padding: 16px;
  background: linear-gradient(155deg, #2b3242 0%, #0a0d15 55%, #04060c 100%);
  box-shadow: 0 42px 84px rgba(20, 40, 90, 0.34),
    0 12px 28px rgba(20, 40, 90, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 0 6px rgba(0, 0, 0, 0.55);
}
.device-frame::before {
  content: "";
  position: absolute;
  inset: 5% -3%;
  z-index: -1;
  border-radius: 64px;
  background: radial-gradient(circle at 50% 35%, var(--glow-1), transparent 68%);
  filter: blur(54px);
}
.device-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 33px;
  border-radius: 18px;
  background: #04060c;
  z-index: 4;
}
.screen {
  position: relative;
  border-radius: 42px;
  background: var(--pc-bg);
  color: var(--pc-text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* iOS status bar (part of the white app-bar surface) */
.ios-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pc-surface);
  padding: 0.65rem 1.35rem 0.35rem;
  color: var(--pc-text);
}
.ios-time {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ios-status-icons svg {
  display: block;
}
/* Chat header (AppBar: toolbarHeight 58, bottom hairline) */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--pc-surface);
  padding: 0.25rem 0.5rem 0.7rem;
  border-bottom: 0.5px solid rgba(230, 234, 242, 0.6);
}
.chat-back {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--pc-text);
}
.chat-back svg {
  display: block;
}
.chat-user {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
  padding-left: 2px;
}
.chat-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
/* Title: PulseTypography.titleSmall (14px) w700 ls -0.2 */
.chat-user strong {
  color: var(--pc-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Subtitle: metadata (11px) tertiary — @username */
.chat-status {
  font-size: 11px;
  font-weight: 400;
  color: var(--pc-text3);
}
/* Avatar radius 20 -> 40px, presence dot 12px, 2px bg-colored ring */
.chat-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* subtle white border around the profile photo */
  border: 2px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.12);
}
/* Real chat profile photo — circular crop, cover fit */
.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.chat-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pc-green);
  border: 2px solid var(--pc-bg);
  z-index: 2;
}
.chat-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--pc-text);
}
.chat-header-actions svg {
  display: block;
  width: auto;
  height: 21px;
  padding: 0 8px;
  box-sizing: content-box;
}
.chat-header-actions svg:last-child {
  padding-right: 2px;
}
/* Chat info context pill: height 30, info + label + chevron, centered */
.chat-info-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  margin: 12px 0 4px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0.5px solid var(--pc-divider);
  background: var(--pc-surface);
  color: var(--pc-text2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 3px rgba(20, 40, 90, 0.05);
}
.chat-info-pill svg {
  display: block;
}
/* Date separator: hairline — pill — hairline (vertical padding 16) */
.chat-date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 8px;
}
.chat-date::before,
.chat-date::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--pc-divider);
}
.chat-date span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 0.5px solid var(--pc-divider);
  background: var(--pc-bg);
  color: var(--pc-text3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
/* Messages */
.chat-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 16px 8px;
}
.chat-bubble-row {
  display: flex;
}
.chat-bubble-row.right {
  justify-content: flex-end;
}
/* Bubble: padding H14 / V11-10, first-in-group radius 20, tail corner 0 */
.bubble {
  position: relative;
  max-width: 74%;
  display: flex;
  flex-direction: column;
  padding: 11px 14px 10px;
  font-size: 15px;
  line-height: 1.45;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bubble .bubble-text {
  display: block;
}
.bubble.secondary {
  background: var(--pc-bubble-other);
  color: var(--pc-text);
  border-radius: 20px 20px 16px 0; /* tail corner (bottom-left) = 0 */
  border: 0.5px solid var(--pc-divider);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.bubble.primary {
  background: linear-gradient(135deg, var(--pc-grad-start), var(--pc-grad-end));
  color: #fff;
  border-radius: 20px 20px 0 16px; /* tail corner (bottom-right) = 0 */
  box-shadow: 0 4px 12px rgba(26, 107, 255, 0.18);
}
.bubble:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.bubble.secondary:hover {
  box-shadow: 0 6px 16px rgba(20, 40, 90, 0.12);
}
.bubble.primary:hover {
  box-shadow: 0 8px 20px rgba(26, 107, 255, 0.28);
}
/* Speech tail — small reliable border-triangle wedge at the sharp corner */
.bubble.secondary::before,
.bubble.primary::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
}
.bubble.secondary::before {
  left: -6px;
  border-width: 0 7px 11px 0; /* top right bottom left */
  border-color: transparent var(--pc-bubble-other) transparent transparent;
}
.bubble.primary::before {
  right: -6px;
  border-width: 0 0 11px 7px; /* top right bottom left */
  border-color: transparent transparent transparent var(--pc-grad-end);
}
/* Translate action (translate_rounded + label, primary color) */
.bubble-translate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--pc-primary);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1px;
}
.bubble-translate svg {
  display: block;
}
/* Footer timestamp (11px), right-aligned */
.bubble-time {
  align-self: flex-end;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.15px;
  color: var(--pc-text3);
}
.bubble-meta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.55);
}
.bubble-meta svg {
  display: block;
  color: rgba(255, 255, 255, 0.92);
}
/* Feature cards — built from the app's own-bubble gradient + card tokens */
.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr; /* equal card heights across both rows */
  gap: 8px;
  padding: 4px 16px 10px;
}
.feature-tile {
  position: relative;
  background: linear-gradient(135deg, var(--pc-grad-start), var(--pc-grad-end));
  color: #fff;
  border-radius: 20px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(26, 107, 255, 0.18),
    0 12px 24px rgba(26, 107, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-tile:hover {
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(26, 107, 255, 0.26),
    0 22px 40px rgba(26, 107, 255, 0.3);
}
.tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile-ic {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--pc-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.tile-ic svg {
  display: block;
}
.feature-tile strong {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.2;
}
.tile-chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.tile-chevron svg {
  display: block;
}
.tile-desc {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.tile-time {
  align-self: flex-end;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.15px;
}
/* Composer bar (surface, top hairline; H12 V10) */
.chat-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pc-surface);
  padding: 10px 12px;
  border-top: 0.5px solid var(--pc-divider);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}
/* Attach (+) & Send: 42px circular gradient buttons */
.composer-plus,
.composer-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pc-grad-start), var(--pc-grad-end));
  color: #fff;
}
.composer-plus {
  box-shadow: 0 2px 8px rgba(26, 107, 255, 0.3);
}
.composer-send {
  box-shadow: 0 3px 10px rgba(26, 107, 255, 0.35);
}
.composer-plus svg,
.composer-send svg {
  display: block;
}
/* Input field: inputBackground fill, composer radius 24, sparkle inside */
.composer-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pc-input);
  border: 0.5px solid var(--pc-divider);
  color: var(--pc-text2);
  border-radius: 24px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  font-size: 15px;
}
.composer-input > span:first-child {
  flex: 1;
  color: rgba(15, 23, 42, 0.45);
}
.composer-ai {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--pc-yellow);
}
.composer-ai svg {
  display: block;
}
@media (max-width: 720px) {
  .device-frame {
    width: min(352px, 88vw);
  }
}

/* -------------------------------------------------------- Generic grids */
.features-grid,
.viral-grid,
.highlight-grid,
.tab-grid,
.platform-grid {
  display: grid;
  gap: 1.2rem;
}
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.viral-grid,
.highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.tab-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.platform-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards that share a padded look */
.feature-card,
.viral-card,
.highlight-card,
.tab-card,
.platform-card,
.support-card,
.info-card {
  padding: 1.6rem;
  border-radius: var(--r-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover,
.viral-card:hover,
.highlight-card:hover,
.tab-card:hover,
.platform-card:hover,
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.feature-card h3,
.viral-card h3,
.highlight-card h3,
.tab-card h3,
.platform-card h3,
.support-card h3,
.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.feature-card p,
.viral-card p,
.highlight-card p,
.tab-card p,
.platform-card p,
.support-card p,
.info-card p {
  color: var(--muted);
  font-size: 0.98rem;
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--brand-soft);
  margin-bottom: 1rem;
}
.feature-icon.solid {
  background: var(--brand-gradient);
}

.viral-badge,
.highlight-badge,
.tab-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand-1);
  background: var(--brand-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.8rem;
}
.viral-card ul,
.highlight-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.viral-card li {
  margin-bottom: 0.35rem;
}
.tab-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--brand-1);
}

/* Screenshot gallery */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.7rem;
}
.shot {
  padding: 0.9rem;
  border-radius: var(--r-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.shot-ui {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.shot-label {
  font-weight: 800;
  color: var(--brand-1);
  font-size: 0.9rem;
}
.shot-image {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface-solid);
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}
.shot-foot {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Positioning callout */
.positioning-card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.positioning-quote {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  font-size: 1.05rem;
  line-height: 1.7;
}
.positioning-quote strong {
  color: var(--brand-1);
}

/* Security split panel */
.security-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: stretch;
}
.security-copy,
.security-points {
  padding: 1.8rem;
}
.security-points ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.security-points li {
  margin-bottom: 0.9rem;
  line-height: 1.55;
}

/* CTA banner */
.cta-panel,
.cta-banner {
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 20% 0%, var(--glow-1), transparent 60%),
    var(--surface-strong);
}
.cta-panel h2,
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 0.8rem;
}
.cta-panel p,
.cta-banner p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.05rem;
}
.cta-panel .hero-actions,
.cta-banner .hero-actions {
  justify-content: center;
  margin-top: 1.6rem;
}

/* --------------------------------------------------- Store badges (download) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  text-decoration: none;
  filter: drop-shadow(0 10px 22px rgba(20, 40, 90, 0.25));
}
/* Normalize visual button height across both stores. The Google generic
   badge ships with built-in transparent padding, so it is sized slightly
   taller than the Apple badge to make the visible buttons the same height. */
.store-badge img {
  width: auto;
  display: block;
}
.store-badge.badge-apple img {
  height: 48px;
}
.store-badge.badge-google img {
  height: 58px;
}

/* ------------------------- European sovereignty (primary trust section) */
.sovereignty {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}
.sovereignty-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.9rem, 4vw, 3.2rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 0%, var(--glow-1), transparent 55%),
    radial-gradient(circle at 100% 100%, var(--glow-2), transparent 55%),
    var(--surface-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.sovereignty-illustration {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.sovereignty-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}
.sovereignty-illustration img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: block;
}
.trust-badge-primary {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
  font-weight: 700;
}
.sovereignty-copy .eyebrow {
  margin-bottom: 0.7rem;
}
.sovereignty-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 0.55rem;
}
.sovereignty-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.6rem;
}
.sovereignty-body {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.trust-badge svg {
  width: 15px;
  height: 15px;
  color: #16a34a;
  flex: 0 0 auto;
}
@media (max-width: 860px) {
  .sovereignty-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .trust-badges {
    justify-content: center;
  }
  .sovereignty-body {
    margin-left: auto;
    margin-right: auto;
  }
  .sovereignty-illustration {
    max-width: 300px;
    order: -1;
  }
}

/* --------------------------------------------------------- FAQ accordion */
.faq,
.faq-accordion {
  max-width: var(--max-reading);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--brand-1);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------- Warning card */
.warning-card {
  padding: 1.6rem;
  border-radius: var(--r-xl);
  border: 1px solid rgba(240, 90, 90, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 90, 90, 0.12), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
.warning-card .warning-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #e5484d;
  background: rgba(240, 90, 90, 0.14);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.8rem;
}
.warning-card h3 {
  margin-bottom: 0.55rem;
}
.warning-card p,
.warning-card li {
  color: var(--muted);
}

/* Contact directory rows (support page) */
.contact-directory {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-directory strong {
  color: var(--text-strong);
}

/* ---------------------------------------------------- Legal / doc layout */
/* Wrapper for legal/policy documents (privacy, terms) — comfortable reading
   measure, calm spacing, and consistent section rhythm. */
.legal-page .hero {
  padding-bottom: 0;
}
.legal-page .hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}
.legal-page .hero p {
  color: var(--muted);
  max-width: 62ch;
}
.legal-page section {
  padding-top: 1.5rem;
}

.legal-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}
.legal-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}
.legal-hero p {
  color: var(--muted);
  margin-top: 0.6rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}
.legal-toc {
  position: sticky;
  top: 88px;
  padding: 1.3rem;
  border-radius: var(--r-lg);
  align-self: start;
}
.legal-toc strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-toc a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.legal-toc a:hover {
  color: var(--brand-1);
  text-decoration: none;
}
.legal-body {
  max-width: var(--max-reading);
}
.legal-body section,
.legal-section {
  padding: 0 0 1.6rem;
  scroll-margin-top: 90px;
}
.legal-body h2,
.legal-section h2 {
  font-size: 1.35rem;
  margin: 1.6rem 0 0.7rem;
}
.legal-body h3 {
  font-size: 1.08rem;
  margin: 1.2rem 0 0.5rem;
}
.legal-body p,
.legal-body li {
  color: var(--text);
  opacity: 0.92;
}
.legal-body ul,
.legal-body ol {
  padding-left: 1.3rem;
}
.legal-body li {
  margin-bottom: 0.45rem;
}
.legal-card {
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--r-xl);
}

/* ---------------------------------------------------------------- Footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  padding: 2.6rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--brand-1);
  text-decoration: none;
}
.footer-contact a {
  color: var(--brand-1);
}

/* -------------------------------- Legacy legal-page class aliases (kept
   so existing legal markup renders Gen 2.0 without altering any wording) */
.nav .links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav .links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav .links a:hover {
  color: var(--text-strong);
  text-decoration: none;
}
.hero .meta,
.meta {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-1);
  background: var(--brand-soft);
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: var(--max-reading);
  margin: 0 auto;
}
.panel.section-list .section {
  padding: 1.6rem 0;
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
}
.panel.section-list .section:first-child {
  padding-top: 0;
  border-top: 0;
}
.panel .section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}
.panel .section h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}
.panel .section p,
.panel .section li {
  color: var(--text);
  opacity: 0.9;
  line-height: 1.65;
}
.panel .section ul,
.panel .section ol {
  padding-left: 1.3rem;
}
.panel .section li {
  margin-bottom: 0.4rem;
}
.contact-box {
  margin-top: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  line-height: 1.7;
}
.contact-row {
  margin-bottom: 0.4rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.hero-contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}
.hero-contact-card strong {
  color: var(--text-strong);
  font-size: 0.9rem;
}

/* Table of contents for legal docs (terms) */
.legal-toc-card {
  max-width: var(--max-reading);
  margin: 0 auto 1.3rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-xl);
}
.legal-toc-card strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.legal-toc-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.4rem;
}
.legal-toc-card li {
  counter-increment: toc;
}
.legal-toc-card li a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.legal-toc-card li a::before {
  content: counter(toc) ". ";
  color: var(--brand-1);
  font-weight: 800;
}
.legal-toc-card li a:hover {
  color: var(--brand-1);
  text-decoration: none;
}

/* ------------------------------------------------- Reveal animation (JS) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 940px) {
  .hero-grid,
  .security-panel {
    grid-template-columns: 1fr;
  }
  .hero-copy p {
    max-width: none;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-support-link {
    display: inline-flex;
    color: var(--text-strong);
    font-weight: 700;
    font-size: 0.9rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .container {
    width: min(var(--max-width), calc(100% - 1.75rem));
  }
  .store-badge.badge-apple img {
    height: 44px;
  }
  .store-badge.badge-google img {
    height: 53px;
  }
  section {
    padding: 2.6rem 0;
  }
}
