@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-subtle: #EEEEF2;
  --surface-elevated: rgba(245, 245, 247, 0.82);
  --text: #18181C;
  --text-muted: #5B5C66;
  --red: #FB3640;
  --red-deep: #D9252F;
  --red-text: #D41F2B;
  --red-soft: rgba(251, 54, 64, 0.1);
  --cerulian: #1F6F91;
  --cerulian-soft: rgba(36, 123, 160, 0.12);
  --green: #1E9E55;
  --green-soft: rgba(46, 204, 113, 0.16);
  --yellow: #B98A00;
  --border: rgba(24, 24, 28, 0.1);
  --border-strong: rgba(24, 24, 28, 0.18);
  --shadow-sm: 0 1px 2px rgba(20, 20, 26, 0.04), 0 2px 8px rgba(20, 20, 26, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 20, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 20, 26, 0.12);
  --hero-glow: rgba(251, 54, 64, 0.14);
  --hero-glow-2: rgba(36, 123, 160, 0.08);
  --phone-bg: #FFFFFF;
  --switch-active: #FFFFFF;
  color-scheme: light;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1200px;
  --header-h: 68px;
}

/* No-JS fallback follows the OS; the head script sets data-theme otherwise */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  --bg: #131316;
  --surface: #1C1C21;
  --surface-subtle: #26262D;
  --surface-elevated: rgba(19, 19, 22, 0.8);
  --text: #F2F2F5;
  --text-muted: #A3A4B0;
  --red: #FB3640;
  --red-deep: #E02E38;
  --red-text: #FF5A63;
  --red-soft: rgba(251, 54, 64, 0.16);
  --cerulian: #4FA9CF;
  --cerulian-soft: rgba(66, 159, 196, 0.16);
  --green: #34C46F;
  --green-soft: rgba(39, 174, 96, 0.18);
  --yellow: #FFD600;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.46);
  --hero-glow: rgba(251, 54, 64, 0.2);
  --hero-glow-2: rgba(36, 123, 160, 0.1);
  --phone-bg: #FFFFFF;
  --switch-active: #3A3A44;
  color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131316;
  --surface: #1C1C21;
  --surface-subtle: #26262D;
  --surface-elevated: rgba(19, 19, 22, 0.8);
  --text: #F2F2F5;
  --text-muted: #A3A4B0;
  --red: #FB3640;
  --red-deep: #E02E38;
  --red-text: #FF5A63;
  --red-soft: rgba(251, 54, 64, 0.16);
  --cerulian: #4FA9CF;
  --cerulian-soft: rgba(66, 159, 196, 0.16);
  --green: #34C46F;
  --green-soft: rgba(39, 174, 96, 0.18);
  --yellow: #FFD600;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.46);
  --hero-glow: rgba(251, 54, 64, 0.2);
  --hero-glow-2: rgba(36, 123, 160, 0.1);
  --phone-bg: #FFFFFF;
  --switch-active: #3A3A44;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Thai", "Noto Sans Devanagari", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Language suggestion banner */
.lang-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  padding-block: 10px;
}

.lang-banner[hidden] {
  display: none;
}

.lang-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.lang-banner-btn {
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.lang-banner-dismiss {
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

/* Theme switch */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-checked="true"] {
  background: var(--switch-active);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.theme-switch--menu button {
  height: 36px;
  padding: 0 12px;
}

/* Menu button */
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.menu-btn-bars,
.menu-btn-bars::before,
.menu-btn-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn-bars {
  position: relative;
}

.menu-btn-bars::before,
.menu-btn-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.menu-btn-bars::before { top: -5px; }
.menu-btn-bars::after { top: 5px; }

.menu-btn[aria-expanded="true"] .menu-btn-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding-block: 8px 20px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-links {
  display: grid;
}

.mobile-menu-links a {
  padding: 14px 2px;
  font-size: 1.08rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.mobile-menu-row .icon-btn {
  padding: 9px 14px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(251, 54, 64, 0.26);
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.header-cta .apple-logo {
  margin-top: -2px;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--red-deep);
}

/* Hero */
.hero {
  position: relative;
  padding-block: 88px 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -240px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: min(1100px, 160vw);
  height: 720px;
  background: radial-gradient(closest-side, var(--hero-glow) 0%, var(--hero-glow-2) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-text);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  background: #000000;
  color: #FFFFFF;
  padding: 8px 22px 8px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-md);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .appstore-btn {
    background: #FFFFFF;
    color: #000000;
  }
}

:root[data-theme="dark"] .appstore-btn {
  background: #FFFFFF;
  color: #000000;
}

.appstore-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.appstore-btn .apple-logo {
  width: 26px;
  height: 26px;
  margin-top: -3px;
  flex-shrink: 0;
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: start;
}

.appstore-btn-pre {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.82;
}

.appstore-btn-main {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.hero-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--surface), var(--surface-subtle));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.phone-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.phone-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--phone-bg);
  box-shadow: var(--shadow-md);
}

.phone-frame--offset {
  transform: translateY(20px);
}

.hero-wave-pill {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.waveform-bars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
}

.waveform-bars span {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: var(--red);
  animation: waveBar 1.4s ease-in-out infinite;
}

.waveform-bars span:nth-child(1) { height: 10px; animation-delay: 0s; }
.waveform-bars span:nth-child(2) { height: 20px; animation-delay: 0.15s; }
.waveform-bars span:nth-child(3) { height: 26px; animation-delay: 0.3s; }
.waveform-bars span:nth-child(4) { height: 16px; animation-delay: 0.45s; }
.waveform-bars span:nth-child(5) { height: 22px; animation-delay: 0.6s; }
.waveform-bars span:nth-child(6) { height: 12px; animation-delay: 0.75s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.6); opacity: 0.75; }
  50% { transform: scaleY(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot,
  .waveform-bars span {
    animation: none;
  }
}

/* Stats Bar */
.stats-section {
  padding-block: 24px 40px;
}

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

.stats-grid > .stat-card {
  padding: 6px 24px;
  border-inline-start: 1px solid var(--border);
}

.stats-grid > .stat-card:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.stat-value {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.stat-label {
  line-height: 1.4;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding-block: 80px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red-text);
  margin-bottom: 8px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.section-subtitle {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* Interactive Showcase */
.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.showcase-rec-title {
  font-weight: 800;
  font-size: 1.08rem;
}

.showcase-rec-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.16s ease;
}

.tab-btn[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.tab-panel {
  padding: 28px;
}

.tab-panel[hidden] {
  display: none;
}

.summary-box {
  background: var(--surface-subtle);
  border-inline-start: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.summary-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--red-text);
  margin-bottom: 6px;
}

.speaker-list {
  display: grid;
  gap: 14px;
}

.speaker-item {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.speaker-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.speaker-tag {
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}

.speaker-tag--1 { background: var(--red-soft); color: var(--red-text); }
.speaker-tag--2 { background: var(--cerulian-soft); color: var(--cerulian); }
.speaker-tag--3 { background: var(--green-soft); color: var(--green); }

.speaker-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.template-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.template-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 0.86rem;
  font-weight: 700;
}

.template-pill[aria-pressed="true"] {
  background: var(--cerulian);
  border-color: var(--cerulian);
  color: #FFFFFF;
}

.notes-preview h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.notes-preview ul {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 8px;
}

.chat-thread {
  display: grid;
  gap: 16px;
}

.chat-bubble-user {
  justify-self: end;
  max-width: 78%;
  background: var(--red);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  font-weight: 600;
}

.chat-bubble-ai {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: 18px 18px 18px 4px;
}

.chat-quote {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border-inline-start: 3px solid var(--cerulian);
  font-size: 0.92rem;
}

.chat-quote small {
  display: block;
  color: var(--cerulian);
  font-weight: 700;
  margin-bottom: 4px;
}

.flashcard-box {
  max-width: 680px;
  margin-inline: auto;
}

.flashcard-prompt {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cerulian);
  margin-bottom: 8px;
}

.flashcard-q {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
}

.flashcard-options {
  display: grid;
  gap: 10px;
}

.fc-option {
  text-align: start;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fc-option:hover {
  border-color: var(--cerulian);
}

.fc-option.is-correct {
  background: var(--green-soft);
  border-color: var(--green);
}

.fc-option.is-wrong {
  background: var(--red-soft);
  border-color: var(--red);
}

.fc-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-size: 0.94rem;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red-text);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.role-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cerulian);
  background: var(--cerulian-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.step-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.38fr;
  gap: 20px;
  align-items: stretch;
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-item picture {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gallery-item img {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.gallery-item:last-child img {
  max-width: none;
}

.gallery-item h3 {
  margin: 0 0 4px;
  font-size: 1.04rem;
}

.gallery-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card--featured {
  border-color: rgba(251, 54, 64, 0.45);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-subtle);
  margin-bottom: 14px;
}

.pricing-card--featured .pricing-badge {
  background: var(--red-soft);
  color: var(--red-text);
}

.pricing-card .header-cta,
.pricing-card .btn-secondary {
  justify-content: center;
  min-height: 50px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.check-dot {
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
}

.pricing-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Privacy Strip */
.privacy-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.privacy-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.privacy-points li {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-size: 0.94rem;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 22px;
}

.faq-item summary {
  list-style: none;
  padding-block: 18px;
  font-weight: 800;
  font-size: 1.03rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--red-text);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Final CTA */
.cta-box {
  border-radius: var(--radius-lg);
  padding: 52px 36px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A20 0%, #2C1419 60%, #192630 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.cta-box p {
  margin: 0 auto 28px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.8);
}

.cta-box .appstore-btn {
  background: #FFFFFF;
  color: #000000;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 54px 80px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 42ch;
  margin-top: 12px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.footer-locales {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-locale-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-locale-list a:hover {
  color: var(--text);
}

.footer-locale-list a[aria-current="page"] {
  color: var(--red-text);
  font-weight: 800;
}

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Language Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(12, 12, 16, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 82vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-search-wrap {
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text);
  font: inherit;
}

.modal-grid {
  padding: 16px 22px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.locale-chip {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
}

.locale-chip strong {
  font-weight: 700;
}

.locale-chip span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.locale-chip:hover {
  border-color: var(--border-strong);
}

.locale-chip[aria-current="page"] {
  border-color: var(--red);
  background: var(--red-soft);
}

/* Legal & Support Pages */
.prose-page {
  padding-block: 56px 84px;
}

.prose-card {
  max-width: 820px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.prose-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

.prose-card h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
}

html.modal-open body,
html.menu-open body {
  overflow: hidden;
}

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

/* Responsive */
@media (max-width: 1079px) {
  .nav-links,
  .header-actions .lang-btn,
  .theme-switch--header {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 959px) {
  .hero {
    padding-block: 56px 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-subtitle {
    max-width: 62ch;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:last-child {
    grid-column: 1 / -1;
  }
  .gallery-item:last-child img {
    max-width: 560px;
  }
  .section {
    padding-block: 72px;
  }
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .stats-grid > .stat-card:nth-child(odd) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .grid-2,
  .grid-steps,
  .privacy-points {
    grid-template-columns: 1fr;
  }
  .showcase-topbar {
    padding: 18px 20px;
  }
  .tab-panel {
    padding: 22px 20px;
  }
  .privacy-strip {
    padding: 28px 22px;
  }
  .cta-box {
    padding: 44px 24px;
  }
  .prose-card {
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }
  .container {
    padding-inline: 20px;
  }
  .hero {
    padding-block: 36px 40px;
  }
  .hero-badge {
    font-size: 0.8rem;
  }
  .hero-ctas > a {
    flex: 1 1 100%;
    justify-content: center;
  }
  .phone-stage {
    padding: 14px;
    border-radius: 26px;
  }
  .phone-frame {
    border-radius: 16px;
  }
  .section {
    padding-block: 56px;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .grid-3,
  .grid-4,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .showcase-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .tab-list::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex-shrink: 0;
  }
  .chat-bubble-user {
    max-width: 90%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .header-cta {
    display: none;
  }
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .mobile-sticky-cta a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 14px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
  }
  html.menu-open .mobile-sticky-cta {
    display: none;
  }
}
