/* ==========================================================================
   Kaagaz.net — The Document Keeper Built for Families
   Styles & Design System
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #0f766e;         /* Warm Deep Teal / Emerald */
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --primary-soft: #ccfbf1;
  --primary-gradient: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  
  --accent: #f59e0b;          /* Warm Amber Accent */
  --accent-soft: #fef3c7;
  --accent-dark: #b45309;

  --wa-green: #25d366;        /* Familiar Messenger Green */
  --wa-dark: #128c7e;
  --wa-bubble-user: #dcf8c6;
  --wa-bubble-bot: #ffffff;
  --wa-bg: #efeae2;

  --danger: #dc2626;
  --danger-soft: #fee2e2;

  /* Neutrals */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #0d9488;

  /* Sizing & Senior Accessibility */
  --font-base: 18px;          /* High readability standard for seniors */
  --font-scale: 1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 118, 110, 0.1), 0 2px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 28px -4px rgba(15, 118, 110, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.16);

  /* Layout */
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility: Large Text Mode */
body.large-text-mode {
  --font-base: 21px;
}

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

html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

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

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
}

.badge-amber {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  min-height: 52px; /* Touch target for seniors */
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary-light);
  text-decoration: none;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1eb857;
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  text-decoration: none;
  color: #ffffff;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
  text-decoration: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  text-align: center;
}

.announcement-bar a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.brand-domain {
  color: var(--primary);
  font-weight: 700;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -3px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  /* A nav item breaking across two lines pushes the header out of shape. */
  white-space: nowrap;
}

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

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

/* Accessibility & Language Switches */
.tool-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.tool-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.tool-btn.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.09) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
              #ffffff;
  border-bottom: 1px solid var(--border-color);
}

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

.hero-content h1 {
  font-size: 2.75rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero-content h1 span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 span.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background: var(--primary-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  max-width: 600px;
}

.hero-key-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.2rem;
  margin-bottom: 2.2rem;
}

.key-point {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.key-point-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-guarantee {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Interactive Phone Mockup
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.phone-frame {
  width: 100%;
  background: #0f172a;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.phone-inner {
  background: #efeae2; /* WhatsApp chat wallpaper tone */
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 620px;
  position: relative;
}

/* App Header inside phone */
.app-screen-header {
  background: var(--primary);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 10;
}

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

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.header-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.header-meta span {
  font-size: 0.72rem;
  opacity: 0.85;
}

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

.btn-header-call {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Chat feed */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  position: relative;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.user {
  align-self: flex-end;
  background: #dcf8c6;
  color: #0f172a;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.bubble-meta {
  font-size: 0.68rem;
  color: #64748b;
  text-align: right;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bubble-card {
  margin-top: 6px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.card-doc-preview {
  height: 90px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  position: relative;
}

.card-doc-body {
  padding: 8px;
  font-size: 0.78rem;
}

.card-doc-title {
  font-weight: 700;
  color: #0f172a;
}

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-card-action {
  flex: 1;
  padding: 5px 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
}

.btn-card-action.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.fraud-warning-chip {
  margin-top: 6px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

/* Voice Animation Bubble */
.voice-playing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
  animation: wave 1s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 16px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 10px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 14px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.2); }
}

/* Chat Input Bar */
.chat-bottom-bar {
  background: #f0f2f5;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e2e8f0;
}

.chat-input-fake {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: #64748b;
}

.btn-chat-mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
}

.btn-chat-cam {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Interactive Simulator Controls floating outside phone */
.mockup-tester-tray {
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.tester-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tester-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-scenario {
  text-align: left;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-scenario:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.btn-scenario.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ==========================================================================
   Section: Problem & Comparison (Why Kaagaz)
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-subtle {
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 0.6rem;
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Comparison Table */
.comparison-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

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

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.comparison-table th.col-highlight {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.comparison-table td.col-highlight {
  background: rgba(204, 251, 241, 0.25);
  font-weight: 600;
  color: var(--text-main);
}

.icon-cross {
  color: var(--danger);
  font-weight: bold;
  margin-right: 0.4rem;
}

.icon-check {
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.4rem;
}

/* ==========================================================================
   Section: Real Personas (Who it's for)
   ========================================================================== */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.persona-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.persona-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.persona-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.persona-role {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.persona-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  position: relative;
  padding-left: 0.9rem;
  border-left: 3px solid var(--primary-light);
}

.persona-benefit {
  background: var(--bg-card-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ==========================================================================
   Section: Core Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.feature-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.feature-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Section: Step-by-Step (How It Works)
   ========================================================================== */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.step-emoji {
  font-size: 2.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Section: Security & Privacy Guarantee
   ========================================================================== */
.security-banner {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
}

.security-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.security-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.security-content p {
  color: #ccfbf1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.security-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sec-badge-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sec-badge-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-badge-item p {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

.security-paper-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
}

.paper-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(2px);
  border-radius: 2px;
}

.recovery-code-sample {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.code-word {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

/* ==========================================================================
   Section: FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   Section: Download CTA Banner
   ========================================================================== */
.download-banner {
  background: radial-gradient(circle at 10% 20%, #134e4a 0%, #0f766e 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.download-banner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.download-banner p {
  font-size: 1.15rem;
  color: #ccfbf1;
  max-width: 600px;
  margin: 0 auto 2.2rem;
}

.download-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.5;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Legal / Policy Pages Layout (privacy, delete-account, etc)
   ========================================================================== */
.legal-page {
  padding: 3.5rem 0 5rem;
  background: #ffffff;
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.legal-content {
  max-width: 820px;
  color: #334155;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
  margin-bottom: 1.2rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.8rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content blockquote {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.legal-table th, .legal-table td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.legal-table th {
  background: #f8fafc;
  font-weight: 700;
}

/* Deletion Form */
.deletion-box {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-help {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

/* ==========================================================================
   Utility & Component Classes
   (replaces the inline styles the markup used to carry)
   ========================================================================== */
.lang-switch {
  display: flex;
  gap: 4px;
}

.btn-nav-cta {
  padding: 0.5rem 1.1rem;
  min-height: 40px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Simulator tray --- */
.tester-badge {
  font-size: 0.7rem;
}

.chat-day-divider {
  text-align: center;
  margin-bottom: 8px;
}

.chat-day-divider span {
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-light);
}

.typing-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}

.bubble-subtext {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-doc-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* --- Comparison table column widths --- */
.comparison-table th.col-challenge { width: 32%; }
.comparison-table th.col-others,
.comparison-table th.col-highlight { width: 34%; }

/* --- Personas --- */
.personas-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* --- Security section --- */
.sec-badge-label {
  margin-bottom: 1rem;
}

.paper-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  margin-top: 0.5rem;
}

.paper-card-lead {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}

.paper-card-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
}

/* --- Early access / download banner --- */
.btn-dl {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.download-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #a7f3d0;
}

.download-note code {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

/* --- Footer --- */
.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.footer-brand-head h3 {
  margin: 0;
}

.footer-logo {
  border-radius: 8px;
}

.footer-domain {
  margin-top: 1rem;
  color: #38bdf8;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Deletion request status panel --- */
.deletion-status {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.6;
}

.deletion-status p + p {
  margin-top: 0.6rem;
}

.deletion-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.deletion-status.error {
  background: var(--danger-soft);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Hidden until the form reports back. */
#deletion-status:empty {
  display: none;
}

/* --- 404 page --- */
.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.25;
  letter-spacing: -0.04em;
}

.error-links {
  list-style: none;
  margin: 2rem auto;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 0.6rem;
}

.error-links a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary-dark);
}

.error-links a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-key-points {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-guarantee {
    justify-content: center;
  }

  .personas-grid, .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* The full nav needs ~1100px before the links start wrapping onto a
   second line, so it collapses into the hamburger well above phone width. */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  /* Dropdown panel, opened by the hamburger button. */
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.is-open a {
    font-size: 1.05rem;
    padding: 0.35rem 0;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }

  /* Keep the nav controls from crowding the brand on narrow screens. */
  .brand-tagline {
    display: none;
  }

  .btn-nav-cta {
    display: none;
  }

  .download-actions {
    flex-direction: column;
  }

  .btn-dl {
    width: 100%;
    justify-content: center;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .security-banner, .download-banner {
    padding: 2.5rem 1.5rem;
  }

  .security-badges {
    grid-template-columns: 1fr;
  }
}
