/* ==========================================================================
   LOYALTY CARD WALLET — OFFICIAL WEBSITE STYLESHEET
   Matches app typography (Space Grotesk, Inter, Space Mono) and exact palette.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* Fallback local @font-face declarations */
@font-face {
  font-family: 'Space Grotesk Local';
  src: url('assets/fonts/space_grotesk.ttf') format('truetype');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Local';
  src: url('assets/fonts/inter.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono Local';
  src: url('assets/fonts/space_mono_regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono Local';
  src: url('assets/fonts/space_mono_bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* App Palette Definitions (from ui/Theme.kt) */
:root {
  --font-display: 'Space Grotesk', 'Space Grotesk Local', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Inter Local', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'Space Mono Local', SFMono-Regular, Consolas, monospace;

  /* Light Theme (Default) */
  --ground: #EBEBE6;
  --surface: #F5F5F0;
  --surface-raised: #FFFFFF;
  --ink: #1A1A1A;
  --ink-muted: #6B6B63;
  --border-line: #D0D0C8;
  --border-line-subtle: #E0E0D8;
  --accent-orange: #FF4500;
  --accent-orange-hover: #E03D00;
  --accent-orange-glow: rgba(255, 69, 0, 0.25);
  --accent-teal: #2C7A7B;
  --accent-teal-hover: #236162;
  --on-ink: #F5F5F0;
  --on-ink-muted: #A0A09B;
  --barcode-surround: #1A1A1A;
  --shadow-subtle: 0 4px 12px rgba(26, 26, 26, 0.05);
  --shadow-medium: 0 8px 24px rgba(26, 26, 26, 0.08);
  --shadow-floating: 0 16px 40px rgba(26, 26, 26, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1200px;
  --transition-standard: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark Theme (Matches Android DarkPalette) */
[data-theme="dark"] {
  --ground: #121210;
  --surface: #1C1C19;
  --surface-raised: #252521;
  --ink: #EBEBE6;
  --ink-muted: #9A9A92;
  --border-line: #33332E;
  --border-line-subtle: #242420;
  --accent-orange: #FF5A1F;
  --accent-orange-hover: #FF703B;
  --accent-orange-glow: rgba(255, 90, 31, 0.3);
  --accent-teal: #3FA1A2;
  --accent-teal-hover: #50B8B9;
  --on-ink: #F5F5F0;
  --on-ink-muted: #A0A09B;
  --barcode-surround: #262622;
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* System Theme Auto-detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121210;
    --surface: #1C1C19;
    --surface-raised: #252521;
    --ink: #EBEBE6;
    --ink-muted: #9A9A92;
    --border-line: #33332E;
    --border-line-subtle: #242420;
    --accent-orange: #FF5A1F;
    --accent-orange-hover: #FF703B;
    --accent-orange-glow: rgba(255, 90, 31, 0.3);
    --accent-teal: #3FA1A2;
    --accent-teal-hover: #50B8B9;
    --on-ink: #F5F5F0;
    --on-ink-muted: #A0A09B;
    --barcode-surround: #262622;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-floating: 0 16px 40px rgba(0, 0, 0, 0.6);
  }
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color var(--transition-standard), color var(--transition-standard);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-standard);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-muted {
  color: var(--ink-muted);
}

.text-accent {
  color: var(--accent-orange);
}

.text-teal {
  color: var(--accent-teal);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid var(--border-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-standard), background var(--transition-standard);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name-title {
  line-height: 1.1;
  color: var(--ink);
}

.brand-name-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color var(--transition-standard);
}

.nav-link:hover {
  color: var(--accent-orange);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pill Toggle Buttons (Lang & Theme) */
.lang-toggle, .theme-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  padding: 0.2rem;
  transition: border-color var(--transition-standard);
}

.lang-btn {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all var(--transition-standard);
}

.lang-btn.active {
  background: var(--ink);
  color: var(--ground);
}

.theme-btn {
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: all var(--transition-standard);
}

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

.theme-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: var(--accent-orange);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px var(--accent-orange-glow);
  transition: transform var(--transition-standard), background var(--transition-standard);
}

.btn-nav-download:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
}

/* Mobile Nav Hamburger */
.mobile-nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--ink);
}

.mobile-nav-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 69, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.85rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero-title span.highlight {
  color: var(--accent-orange);
  display: inline-block;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.65rem;
  background: var(--accent-orange);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px var(--accent-orange-glow);
  transition: all var(--transition-standard);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  transition: all var(--transition-standard);
}

.btn-secondary:hover {
  background: var(--ground);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Feature Badges under CTA */
.hero-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.feature-pill svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent-orange);
}

/* ==========================================================================
   INTERACTIVE WALLET SIMULATOR (HERO RIGHT)
   Simulates exact Compose CardStack and BarcodePanel with 3D Flip
   ========================================================================== */
.simulator-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Phone body — modeled on a Galaxy S: thin brushed-silver rim, slim uniform black
   bezel, 19.5:9 screen. The app "runs" inside .phone-screen */
.simulator-phone-frame {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  padding: 3px;
  border-radius: 46px;
  background: linear-gradient(135deg, #F4F4F6 0%, #B8B9BF 22%, #E9E9EC 45%, #9FA0A7 70%, #DADBDF 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 40px 70px -30px rgba(26, 26, 26, 0.45),
    0 18px 30px -18px rgba(26, 26, 26, 0.25);
  position: relative;
  transition: box-shadow 0.4s ease;
}

.simulator-phone-frame.bright-mode {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 60px rgba(255, 255, 255, 0.55),
    0 40px 70px -30px rgba(26, 26, 26, 0.45);
}

.phone-screen {
  position: relative; /* anchors the add-card sheet */
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 7px solid #0B0B0C;
  border-radius: 43px;
  padding: 0 1rem 0.4rem;
}

.phone-side-btn {
  position: absolute;
  right: -2px;
  width: 3px;
  background: linear-gradient(90deg, #9FA0A7, #D6D7DB);
  border-radius: 0 2px 2px 0;
}
.phone-volume { top: 18%; height: 9%; }
.phone-power { top: 37%; height: 5.5%; }

.phone-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.6rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.phone-camera {
  position: absolute;
  left: 50%;
  top: 0.8rem;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: #0A0A09;
  box-shadow: inset 0 0 0 2px #1F1F1C;
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.phone-home-bar {
  width: 110px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.35;
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 0.9rem;
}

/* Search field — filters the simulator stack, mirrors the real app's wallet screen */
.sim-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  background: var(--ground);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition-standard);
}
.sim-search::placeholder { color: var(--ink-muted); }
.sim-search:focus { border-color: var(--accent-orange); }
.sim-field { margin: 0; }

/* App's floating actions (camera = static example, Add = demo form) */
.sim-fab-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.sim-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(26, 26, 26, 0.18);
}
.sim-fab-camera {
  width: 44px;
  background: var(--ground);
  color: var(--accent-orange);
  cursor: default;
}
.sim-fab-add {
  padding: 0 1.1rem;
  background: var(--accent-orange);
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--transition-standard);
}
.sim-fab-add:hover { background: var(--accent-orange-hover); }

/* Demo add-card sheet, covers the app below the status bar */
.sim-add-sheet {
  position: absolute;
  inset: 2.5rem 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
  background: var(--surface);
  border-radius: 0 0 36px 36px;
}
.sim-add-sheet[hidden] { display: none; }
.sim-add-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.sim-add-sheet > label,
.sim-add-colors legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sim-add-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.sim-add-colors legend { padding: 0; margin-bottom: 0.5rem; }
.sim-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.sim-swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.sim-swatch:has(input:checked) { outline: 3px solid var(--accent-orange); outline-offset: 2px; }
.sim-swatch:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.sim-add-actions { display: flex; gap: 0.75rem; margin-top: auto; }

.card-stack.is-scrolling {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.card-stack.is-scrolling::-webkit-scrollbar { display: none; }

.sim-search-empty {
  position: absolute;
  inset: 0 0 auto;
  padding-top: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.simulator-title-group {
  display: flex;
  flex-direction: column;
}

.simulator-app-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.simulator-card-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-orange);
  font-weight: 700;
}

.simulator-status-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: var(--ground);
  color: var(--ink-muted);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.brightness-bulb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: background 0.3s ease;
}

.simulator-phone-frame.bright-mode .brightness-bulb {
  background: #FFD700;
  box-shadow: 0 0 8px #FFD700;
}

/* Stack Wrapper */
.card-stack {
  position: relative;
  width: 100%;
  height: 370px;
  flex: 1 0 auto; /* grow into the phone screen's free height */
  perspective: 1200px;
}

/* Flippable Card Item */
.sim-card {
  position: absolute;
  width: 100%;
  height: 195px;
  left: 0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, top 0.4s ease;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Card Stack Overlap Offsets (Carefully spaced so last card never overlaps controls) */
.sim-card:nth-child(1) { top: 0px; z-index: 10; }
.sim-card:nth-child(2) { top: 52px; z-index: 9; }
.sim-card:nth-child(3) { top: 104px; z-index: 8; }
.sim-card:nth-child(4) { top: 156px; z-index: 7; }
.sim-card:nth-child(5) { top: 208px; z-index: 6; }
.sim-card:nth-child(6) { top: 260px; z-index: 5; }
/* Expanded / Active Card */
.sim-card.active {
  z-index: 50 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.sim-card.active.flipped {
  transform: rotateY(180deg);
}

/* The open card, alone in the middle of the phone screen over a dimmed wallet —
   as in the app. It is a copy of the card from the stack, flown there from the
   card's own place, so the stack's scrolling and stacking never clip it. */
.sim-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 36px; /* the screen's inner corner: 43px less its 7px bezel */
  perspective: 1200px;
  cursor: pointer;
}
.sim-overlay[hidden] { display: none; }
/* The dimming is its own layer, so only it fades — never the card flying home */
.sim-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sim-overlay.is-open::before { opacity: 1; }
.sim-overlay .sim-card {
  position: relative;
  top: auto;
  flex: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.sim-overlay .sim-card.flipped { transform: rotateY(180deg); }

/* Card Faces */
.sim-card-front, .sim-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Card Gradients (from CardPalette.kt) */
.card-palette-0 { background: linear-gradient(135deg, #2E2E2A 0%, #1A1A18 100%); color: #FFFFFF; }
.card-palette-5 { background: linear-gradient(135deg, #D71920 0%, #9E0B12 100%); color: #FFFFFF; }
.card-palette-6 { background: linear-gradient(135deg, #00965E 0%, #005F3B 100%); color: #FFFFFF; }
.card-palette-4 { background: linear-gradient(135deg, #0050AA 0%, #00337A 100%); color: #FFFFFF; }
.card-palette-9 { background: linear-gradient(135deg, #FF4500 0%, #C63500 100%); color: #FFFFFF; }
.card-palette-10 { background: linear-gradient(135deg, #0058A3 0%, #003E73 100%); color: #FFFFFF; }
.card-palette-13 { background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%); color: #FFFFFF; }

.sim-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sim-card-shop {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sim-card-tier {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.sim-card-chip {
  width: 32px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.sim-card-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sim-card-points {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Card Back (Barcode Panel) */
.sim-card-back {
  background: #FFFFFF;
  color: #1A1A1A;
  transform: rotateY(180deg);
  border: 2px solid var(--barcode-surround);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.sim-barcode-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.sim-barcode-format {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-orange);
  background: #FFF0EB;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sim-barcode-svg {
  width: 88%;
  height: 72px;
}

.sim-barcode-digits {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #1A1A1A;
}

.sim-barcode-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.simulator-controls {
  margin-top: auto; /* sit at the bottom of the (taller) phone screen */
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 370px;
  gap: 0.75rem;
  position: relative;
  z-index: 60;
}

.sim-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  transition: all var(--transition-standard);
}

.sim-btn:hover {
  background: var(--ground);
  border-color: var(--ink);
}

.sim-btn.active {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: var(--accent-orange);
}

.sim-instructions {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ==========================================================================
   WHY NATIVE SECTION (Screen brightness & hardware feature)
   ========================================================================== */
.why-native-section {
  background: var(--surface);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.native-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.native-graphic {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-medium);
}

.native-graphic img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.native-card-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.native-point {
  display: flex;
  gap: 1.15rem;
}

.native-point-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--ground);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-orange);
}

.native-point-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.native-point-title {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.native-point-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FEATURES GRID SECTION
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-medium);
}

.feature-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--ground);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
  transition: background var(--transition-standard), color var(--transition-standard);
}

.feature-card:hover .feature-card-icon {
  background: var(--accent-orange);
  color: #FFFFFF;
}

.feature-card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.feature-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-card-desc {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.feature-card-mono {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SCREENSHOTS SHOWCASE SECTION
   ========================================================================== */
.screenshots-section {
  background: var(--ground);
}

.screenshots-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.screenshots-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border-line);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.screenshots-tab-btn:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.screenshots-tab-btn.active {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
  box-shadow: var(--shadow-subtle);
}

.screenshots-carousel-wrapper {
  position: relative;
  padding: 0 1rem;
}

.screenshots-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-line) transparent;
}

.screenshots-track::-webkit-scrollbar {
  height: 6px;
}

.screenshots-track::-webkit-scrollbar-thumb {
  background: var(--border-line);
  border-radius: 3px;
}

.screenshot-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard), opacity 0.3s ease;
  cursor: pointer;
}

.screenshot-item.item-hidden {
  display: none !important;
}

.screenshot-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-floating);
}

.screenshot-img-box {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ground);
}

.screenshot-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-item:hover .screenshot-img-box img {
  transform: scale(1.02);
}

.screenshot-meta {
  padding: 1.15rem;
  border-top: 1px solid var(--border-line);
}

.screenshot-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.25rem;
}

.screenshot-caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}

.screenshot-subcaption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 18, 16, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.lightbox-content img {
  max-height: 85vh;
  width: auto;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
}

/* ==========================================================================
   BARCODE ENGINE SECTION (Technical transparency)
   ========================================================================== */
.barcode-engine-section {
  background: var(--surface);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.engine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.formats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.format-item {
  background: var(--ground);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.format-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.format-desc {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.code-rule-box {
  background: var(--ground);
  border: 1px solid var(--border-line);
  border-left: 4px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
}

.code-rule-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.code-rule-body {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Palette Swatches Demonstration */
.palette-swatches-box {
  background: var(--ground);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.swatches-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.swatches-subtitle {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.swatches-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.65rem;
}

@media (max-width: 600px) {
  .swatches-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.swatch-demo {
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.swatch-demo:hover {
  transform: scale(1.12);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.swatch-demo.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px var(--accent-orange), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.08);
}

.swatch-demo.swatch-rainbow {
  background: conic-gradient(
    from 0deg,
    #ff0000,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #ff00ff,
    #ff0000
  );
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Interactive Color Studio Live Mixer */
.color-mixer-panel {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mixer-preview-card {
  height: 80px;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: var(--shadow-subtle);
}

.mixer-preview-shop {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.mixer-preview-hex {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mixer-controls-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.mixer-color-picker-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-line);
  cursor: pointer;
  flex-shrink: 0;
}

.mixer-color-picker-wrapper input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 64px;
  height: 64px;
  border: none;
  cursor: pointer;
}

.mixer-hex-input-group {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  background: var(--ground);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  gap: 0.4rem;
}

.mixer-hex-prefix {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-muted);
}

.mixer-hex-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  text-transform: uppercase;
}

.btn-apply-color {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-standard);
  cursor: pointer;
}

.btn-apply-color:hover {
  background: var(--accent-orange-hover);
}

.mixer-wcag-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.wcag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

/* ==========================================================================
   PRIVACY COMPARISON TABLE
   ========================================================================== */
.privacy-table-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin-top: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--border-line);
  vertical-align: middle;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 44%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 28%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 28%;
}

.comparison-table th {
  background: var(--ground);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.comparison-table th.highlight-col {
  color: var(--accent-orange);
  background: var(--surface);
  border-left: 2px solid var(--accent-orange);
  border-right: 2px solid var(--accent-orange);
}

.comparison-table td.highlight-col {
  background: var(--surface);
  border-left: 2px solid var(--accent-orange);
  border-right: 2px solid var(--accent-orange);
  font-weight: 600;
}

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

.badge-yes, .badge-no {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
}

.table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.table-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.badge-yes {
  color: var(--ink);
  font-weight: 600;
}

.badge-yes .table-icon {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-no {
  color: var(--ink);
  font-weight: 500;
}

.badge-no .table-icon {
  background: rgba(239, 68, 68, 0.16);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   PRICING / HONEST TIERS SECTION
   ========================================================================== */
/* Each card spans five rows of the grid and shares them through subgrid, so
   title, description, price, features and button line up across every card
   in a row however long any one description is. The vertical gap between
   stacked cards is the card's own margin, not a row gap, which would
   otherwise open up between the rows inside each card. */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1.25rem;
  row-gap: 0;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* A 2px border would push this card's content 1px off its neighbours'; the
   second pixel is drawn as a ring outside the box instead. */
.pricing-card.featured {
  border-color: var(--accent-orange);
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--accent-orange), var(--shadow-floating);
}

.pricing-card-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-tier-name {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.pricing-tier-desc {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.pricing-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.pricing-feature-item svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pricing-feature-item.muted {
  color: var(--ink-muted);
  opacity: 0.6;
}

.pricing-feature-item.muted svg {
  color: var(--ink-muted);
}

.btn-pricing {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-standard);
}

.faq-item:hover {
  border-color: var(--ink-muted);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--accent-orange);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.35rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-line-subtle);
  padding-top: 1rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   BOTTOM CTA BANNER
   ========================================================================== */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  border: 2px solid var(--border-line);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-floating);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-graphic-img {
  max-width: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--ground);
  border-top: 1px solid var(--border-line);
  padding: 4rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--ink-muted);
  transition: color var(--transition-standard);
}

.footer-link:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges-strip {
    justify-content: center;
  }
  .native-banner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .engine-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .cta-graphic {
    order: -1;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--border-line);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-medium);
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3.75rem 0;
  }
  .card-stack {
    height: 360px;
  }
  .sim-card {
    height: 185px;
  }
  .sim-card:nth-child(2) { top: 46px; }
  .sim-card:nth-child(3) { top: 92px; }
  .sim-card:nth-child(4) { top: 138px; }
  .sim-search { font-size: 16px; } /* < 16px makes iOS Safari zoom on focus */
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .phone-screen {
    padding: 0 0.75rem 0.4rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .formats-list {
    grid-template-columns: 1fr;
  }
}
