/* ============================================
   Bobby Web — Design System (Ember & Ocean)
   Merged from landing, support, and download prototypes
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */

:root {
  /* Brand — Ember & Ocean */
  --ember: #E8725A;
  --ember-light: #F0937F;
  --ember-dark: #D4604A;
  --ember-bg: #FFF0EC;

  --teal: #1A95A2;
  --teal-light: #2DABB5;
  --teal-dark: #0F7A85;
  --teal-bg: #E8F8F5;

  --gold: #F5B84A;
  --gold-light: #F9CA6E;
  --gold-bg: #FFF8E7;

  /* Neutrals */
  --bg: #FEFAF6;
  --bg-card: #FFFFFF;
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-muted: #B2BEC3;
  --border: #F0EBE4;

  /* Urgency (for feature illustration) */
  --fresh: #00B894;
  --soon: #FDCB6E;
  --due: #E17055;
  --overdue: #D63031;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(232, 114, 90, 0.08);
  --shadow-md: 0 4px 16px rgba(232, 114, 90, 0.10);
  --shadow-lg: 0 8px 32px rgba(232, 114, 90, 0.14);
  --shadow-xl: 0 16px 48px rgba(232, 114, 90, 0.18);

  /* Typography */
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;
}

/* ============================================
   Reset
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* ============================================
   Container
   ============================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 250, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ember);
}

.navbar-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.navbar-link:hover {
  color: var(--ember);
}

/* Language selector dropdown */
.lang-select {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.lang-select:hover {
  border-color: var(--ember-light);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

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

.btn-ember {
  background: linear-gradient(135deg, var(--ember), var(--ember-light));
  color: white;
  box-shadow: 0 4px 16px rgba(232, 114, 90, 0.35);
}

.btn-ember:hover {
  box-shadow: 0 6px 20px rgba(232, 114, 90, 0.45);
  transform: translateY(-1px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  box-shadow: 0 4px 16px rgba(26, 149, 162, 0.35);
}

.btn-teal:hover {
  box-shadow: 0 6px 20px rgba(26, 149, 162, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ember);
  border: 2px solid var(--ember);
}

.btn-outline:hover {
  background: var(--ember-bg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
}

/* ============================================
   Store Buttons (shared across landing, download, support)
   ============================================ */

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--text);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-button svg {
  width: 24px;
  height: 24px;
}

.store-button-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-button-small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1;
}

.store-button-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding-top: calc(64px + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(232, 114, 90, 0.08) 0%, rgba(245, 184, 74, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ember-bg);
  color: var(--ember);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--ember), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   Hero Phone Mockup
   ============================================ */

.hero-visual {
  flex: 0 0 320px;
  position: relative;
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 6px solid var(--text);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--text);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  padding: 36px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* Mini task items inside phone mockup */
.mini-header {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  padding: 4px 0 8px;
}

.mini-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mini-task-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mini-task-content {
  flex: 1;
  min-width: 0;
}

.mini-task-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-task-meta {
  font-size: 10px;
  color: var(--text-secondary);
}

.mini-urgency-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border);
  margin-top: 4px;
  overflow: hidden;
}

.mini-urgency-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.mini-urgency-fill.fresh {
  background: linear-gradient(90deg, var(--fresh), #55EFC4);
  width: 20%;
}

.mini-urgency-fill.soon {
  background: linear-gradient(90deg, var(--soon), #F9CA24);
  width: 50%;
}

.mini-urgency-fill.due {
  background: linear-gradient(90deg, var(--due), #FF7675);
  width: 78%;
}

.mini-urgency-fill.overdue {
  background: linear-gradient(90deg, var(--overdue), #FF6B6B);
  width: 100%;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Floating decoration elements */
.hero-visual .float-badge {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  border: 1px solid var(--border);
}

.float-badge.points {
  bottom: 100px;
  left: -30px;
  color: var(--teal);
}

/* ============================================
   Section Titles (shared)
   ============================================ */

.section-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ember);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.6;
}

/* ============================================
   Features Section
   ============================================ */

.features {
  padding: var(--space-4xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: var(--space-md);
}

.feature-icon.ember {
  background: var(--ember-bg);
}

.feature-icon.teal {
  background: var(--teal-bg);
}

.feature-icon.gold {
  background: var(--gold-bg);
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, transparent, rgba(232, 114, 90, 0.03), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.step {
  text-align: center;
  position: relative;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--border);
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto var(--space-md);
}

.step-number.s1 {
  background: var(--ember-bg);
  color: var(--ember);
}

.step-number.s2 {
  background: var(--teal-bg);
  color: var(--teal);
}

.step-number.s3 {
  background: var(--gold-bg);
  color: var(--gold);
}

.step-number.s4 {
  background: #F0E8FF;
  color: #7C5CBF;
}

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   Urgency Preview
   ============================================ */

.urgency-preview {
  padding: var(--space-4xl) 0;
}

.urgency-preview .container {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.urgency-visual {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.urgency-demo-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.urgency-demo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.urgency-demo-content {
  flex: 1;
}

.urgency-demo-name {
  font-size: 15px;
  font-weight: 700;
}

.urgency-demo-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.urgency-demo-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}

.urgency-demo-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.urgency-content {
  flex: 1;
}

/* ============================================
   Family Section
   ============================================ */

.family-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, transparent, rgba(245, 184, 74, 0.04), transparent);
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.family-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.family-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.family-card.household::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.family-card.gamification::before {
  background: linear-gradient(90deg, var(--ember), var(--ember-light));
}

.family-card-icon {
  font-size: 36px;
  margin-bottom: var(--space-md);
}

.family-card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.family-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.family-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.family-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.family-card-features li .check {
  color: var(--fresh);
  font-size: 16px;
  flex-shrink: 0;
}

/* Mini leaderboard inside card */
.mini-leaderboard {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-lb-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
}

.mini-lb-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.mini-lb-rank.gold { background: var(--gold); }
.mini-lb-rank.silver { background: var(--text-muted); }
.mini-lb-rank.bronze { background: #CD7F32; }

.mini-lb-name {
  flex: 1;
  color: var(--text);
}

.mini-lb-pts {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: var(--space-4xl) 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--ember), var(--ember-light), var(--gold));
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-title {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: white;
  color: var(--text);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.cta-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-store-button svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ember);
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Support Page — Page Header
   ============================================ */

.page-header {
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 114, 90, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-header-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   Support Page — Section
   ============================================ */

.support-section {
  padding: var(--space-2xl) 0;
}

/* Support section-title overrides (left-aligned with icon) */
.support-section .section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-align: left;
}

.section-title-icon {
  font-size: 22px;
}

/* Support page uses narrower container */
.support-section .container,
.page-header .container {
  max-width: 800px;
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--ember);
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Topic Cards
   ============================================ */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.topic-card-icon {
  font-size: 28px;
  margin-bottom: var(--space-sm);
}

.topic-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.topic-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   Contact Card
   ============================================ */

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.contact-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--ember-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.contact-content {
  flex: 1;
}

.contact-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.contact-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ember);
  padding: 8px 18px;
  background: var(--ember-bg);
  border-radius: var(--radius-full);
  transition: background 0.2s;
}

.contact-email:hover {
  background: #FFE0D6;
}

/* ============================================
   Account & Data Section
   ============================================ */

.data-info {
  background: var(--teal-bg);
  border: 1px solid rgba(26, 149, 162, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.data-info-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.data-info-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.data-info-text a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(26, 149, 162, 0.3);
  text-underline-offset: 2px;
}

.data-info-text a:hover {
  text-decoration-color: var(--teal);
}

.data-list {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

.data-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.data-list li strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================
   Download Banner (support page)
   ============================================ */

.download-banner {
  background: linear-gradient(135deg, var(--ember), var(--ember-light), var(--gold));
  border-radius: var(--radius-2xl);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  color: white;
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.download-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.download-banner h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: var(--space-sm);
  position: relative;
}

.download-banner p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  position: relative;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  color: var(--text);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

.download-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-btn-small {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1;
}

.download-btn-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

/* ============================================
   Download Page — Centered Card Layout
   ============================================ */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  position: relative;
  /* Push below fixed navbar */
  padding-top: calc(64px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

/* Subtle background decoration */
.page::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(232, 114, 90, 0.06) 0%, rgba(245, 184, 74, 0.03) 40%, transparent 65%);
  pointer-events: none;
}

.download-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* Bobby mascot */
.mascot {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(204, 134, 80, 0.25);
  position: relative;
}

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

/* Subtle floating shadow under mascot */
.mascot::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 8px;
  background: rgba(204, 134, 80, 0.15);
  border-radius: var(--radius-full);
  filter: blur(4px);
}

.download-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.download-title .highlight {
  background: linear-gradient(135deg, var(--ember), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Invitation context card */
.invite-context {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.invite-icon {
  font-size: 36px;
  margin-bottom: var(--space-sm);
}

.invite-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.invite-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Store buttons (download page variant — stacked) */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-xl);
}

/* Download page store button is slightly larger */
.store-buttons .store-button {
  gap: 12px;
  padding: 14px 28px;
  min-width: 220px;
}

.store-buttons .store-button svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-buttons .store-button-small {
  font-size: 11px;
}

.store-buttons .store-button-name {
  font-size: 17px;
}

/* Features mini-list */
.features-mini {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.feature-mini-icon {
  font-size: 16px;
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */

.legal-page {
  padding-top: calc(64px + 40px + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-section ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-section a {
  color: var(--ember);
  text-decoration: underline;
  text-decoration-color: rgba(232, 114, 90, 0.3);
  text-underline-offset: 2px;
}

.legal-section a:hover {
  text-decoration-color: var(--ember);
}

/* ============================================
   Responsive — Desktop (1024px)
   ============================================ */

@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
  }

  .float-badge.streak {
    right: 0;
  }

  .float-badge.points {
    left: 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .urgency-preview .container {
    flex-direction: column;
    text-align: center;
  }

  .urgency-visual {
    flex: none;
    width: 100%;
    max-width: 480px;
  }
}

/* ============================================
   Responsive — Tablet (768px)
   ============================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .step:not(:last-child)::after {
    display: none;
  }

  .phone-mockup {
    width: 240px;
    height: 490px;
  }

  .cta-title {
    font-size: 26px;
  }

  .footer .container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  /* Support page responsive */
  .page-header h1 {
    font-size: 28px;
  }

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

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   Responsive — Mobile (480px)
   ============================================ */

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .navbar-right .lang-select {
    display: none;
  }

  /* Download page mobile */
  .download-title {
    font-size: 26px;
  }

  .mascot {
    width: 96px;
    height: 96px;
  }

  .store-buttons .store-button {
    min-width: 100%;
  }

  .features-mini {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   RTL Support
   ============================================ */

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .section-label {
  text-align: center;
}

[dir="rtl"] .contact-card {
  direction: rtl;
}

[dir="rtl"] .store-button-label,
[dir="rtl"] .download-btn-label {
  align-items: flex-end;
}

/* ============================================
   Coming Soon Banner
   ============================================ */

.coming-soon-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, var(--ember), var(--ember-light), var(--gold));
  color: white;
  text-align: center;
  padding: 10px var(--space-lg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.coming-soon-icon {
  margin-right: 6px;
}

/* Push hero down to account for both navbar + banner */
.hero {
  padding-top: calc(64px + 40px + var(--space-4xl)) !important;
}

/* Push support/legal page headers down too */
.page-header {
  padding-top: calc(64px + 40px + var(--space-3xl)) !important;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(45, 52, 54, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-banner-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  flex: 1;
}

.cookie-banner-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner .btn-outline {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
}
