/* CSS Variables */
:root {
    /* Colors from brand spec */
    --primary: #00897B;
    --primary-dark: #00695C;
    --accent: #FF8A65;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #546E7A;
    --border: #E0E0E0;
    --success: #43A047;
    --error: #E53935;
    
    /* Demo substance colors */
    --beer: #FFA726;
    --coffee: #8D6E63;
    --cigarette: #9E9E9E;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Font weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Header */
.header {
    background: var(--surface);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary);
}

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

.feedback-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all 0.2s;
    white-space: nowrap;
}

.feedback-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,137,123,0.2);
}

.language-switcher {
    display: flex;
    gap: var(--spacing-sm);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: var(--text-base);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,137,123,0.3);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

/* Mobile: stack and center */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-lg);
}

.hero-headline {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
}

.hero-subheadline {
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-md);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
}
@media (max-width: 1024px) {
  .hero-buttons {
    justify-content: center;
  }
}

/* Ticket Explainer */
.ticket-explainer {
    margin: var(--spacing-sm) 0 var(--spacing-2xl) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--surface);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
}

.ticket-hint {
    margin: 0;
    font-size: var(--text-md);
    color: var(--text-secondary);
}

.ticket-hint strong {
    color: var(--primary);
    font-weight: var(--font-semibold);
}

/* Hero visual container */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Demo wrapper with interactive cues */
.demo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Pointer text above phone */
.demo-pointer {
  text-align: center;
  margin-bottom: 20px;
}

.pointer-text {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Caveat', 'Indie Flower', 'Patrick Hand', 'Permanent Marker', cursive, sans-serif;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  animation: pulse-text 2s ease-in-out infinite;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.pointer-arrow-down {
  display: block;
  margin: 0 auto;
  color: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

/* Phone mockup */
.phone-mockup {
  width: 320px;
  height: 640px;
  background: #0f141a; /* a bit softer than pure black */
  border-radius: 40px;
  padding: 12px; /* bezel thickness */
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
}

/* Optional little speaker/notch */
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
}

/* The actual screen */
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 30px;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* If your demo mounts into #demo-screen, give it breathing room too */
.phone-screen #demo-screen {
  padding: 20px 0;
  padding-bottom: 0;
  border-radius: var(--border-radius-sm);
  background: transparent; /* keep background from screen */
  box-sizing: border-box;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Slightly tighter spacing inside the phone so it feels native */
.phone-screen .substance-card {
  margin-bottom: 10px;
  box-sizing: border-box;
  width: 100%;
}

/* Position nav bar at bottom of phone screen - sticky, doesn't scroll */
.phone-screen .demo-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  margin-bottom: -12px;
  padding: 10px 6px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  flex-shrink: 0;
  z-index: 100;
}

/* Ensure all elements inside phone fit width */
.phone-screen * {
  max-width: 100%;
  box-sizing: border-box;
}

.phone-screen .demo-top,
.phone-screen .cards,
.phone-screen .history-list,
.phone-screen .history-timeline,
.phone-screen .group-feed {
  width: 100%;
  box-sizing: border-box;
  padding-left: 14px;
  padding-right: 14px;
}

.phone-screen .demo-content {
  flex: 1;
  overflow: visible;
  padding-bottom: 10px;
}


/* Problem Section */
.problem-section {
    padding: var(--spacing-3xl) 0;
    background: var(--surface);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    text-align: center;
}

.problem-item h3 {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-4xl) 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.step {
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0 auto var(--spacing-lg);
}

/* Demo Section */
.demo-section {
    padding: var(--spacing-4xl) 0;
    background: var(--surface);
}

.demo-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.demo-container {
    max-width: 400px;
    margin: 0 auto;
}

.demo-phone {
    width: 320px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 8px;
    margin: 0 auto var(--spacing-2xl);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.demo-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.demo-page {
    padding: var(--spacing-lg);
    height: 100%;
    display: none;
    flex-direction: column;
}

.demo-page.active {
    display: flex;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.demo-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}

.substance-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.substance-card {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
}

.substance-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.substance-icon {
    font-size: var(--text-2xl);
    margin-right: var(--spacing-sm);
}

.substance-name {
    flex: 1;
    font-weight: var(--font-semibold);
}

.substance-count {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: var(--beer);
    transition: width 0.3s;
}

.progress-fill.coffee {
    background: var(--coffee);
}

.progress-fill.cigarette {
    background: var(--cigarette);
}

.use-ticket-btn {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: background 0.2s;
}

.use-ticket-btn:hover {
    background: var(--primary-dark);
}

.use-ticket-btn.borrow {
    background: var(--accent);
}

/* Bottom navigation bar (fixed at bottom inside phone) */
.demo-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 2px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 4px;
    font-size: var(--text-sm);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* Make nav buttons even smaller inside phone */
.phone-screen .nav-btn {
    padding: 6px 4px;
    font-size: 0.65rem;
}

/* Make non-selected nav buttons smaller to emphasize active tab */
.nav-btn:not(.active) {
    font-size: 0.8rem;
}

.phone-screen .nav-btn:not(.active) {
    font-size: 0.55rem;
    animation: navHint 2s ease-in-out 1s 2;
}

.nav-btn.active {
    color: var(--primary);
    font-weight: var(--font-semibold);
}

/* Active tab indicator - animated underline */
.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 24px;
        opacity: 1;
    }
}

/* Subtle hint animation on inactive tabs - only on initial load */
@keyframes navHint {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Add spacing for scrollable content above nav */
.demo-content {
    flex: 1;
    overflow: visible;
    padding-bottom: 80px; /* Extra space for FAB and nav */
}

.demo-cta {
    text-align: center;
}

/* Floating Action Button (FAB) for new reservation */
.fab {
    position: fixed;
    bottom: 70px; /* Above the nav bar */
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    padding-bottom: 2px; /* Shift + symbol up slightly for better visual centering */
    transition: all 0.3s ease;
    z-index: 90;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 137, 123, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

/* Position FAB within phone screen */
.phone-screen .fab {
    position: absolute;
    bottom: 60px; /* Above nav bar */
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 24px;
}

/* Truth vs Estimate Section */
.truth-section {
    padding: var(--spacing-4xl) 0;
    background: var(--background);
}

.truth-section .section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-secondary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.comparison-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
}

.estimate, .reality {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.value {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.value.highlight {
    color: var(--accent);
}

.arrow {
    font-size: var(--text-2xl);
    color: var(--primary);
}

.truth-cta {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Evidence-Based Section */
.evidence-section {
    padding: var(--spacing-4xl) 0;
    background: var(--surface);
}

.evidence-section .section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-secondary);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.evidence-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.evidence-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.evidence-name {
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.evidence-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .evidence-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features {
    padding: var(--spacing-4xl) 0;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

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

.feature-card {
    background: var(--surface);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-md);
}

/* Overlay takes full viewport; page behind won't scroll when body has .modal-open */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px; /* breathing room on small screens */
}

/* Scrollable card limited to viewport height */
.modal-card{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 720px;
  max-width: 100%;
  max-height: min(90vh, 760px);  /* 👈 key: limit height to viewport */
  overflow: auto;                 /* 👈 key: make inner scrollable */
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}

.modal-header{
  position: sticky; top: 0;       /* header stays visible while scrolling */
  background: #fff;
  padding-bottom: 8px;
  margin: -24px -24px 12px -24px; /* stretch to card edges */
  padding: 16px 24px 12px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.modal-title{ font-size: 1.5rem; margin: 0; }
.modal-close{ background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; }

.form-grid{ display: grid; gap: 12px; }
.form-group label{ display:block; font-weight:600; margin-bottom:6px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group select, .form-group textarea{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:#fff;
}
.radio-row, .checkbox-grid{ display:flex; flex-wrap:wrap; gap:12px; }
.modal-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:8px; }

/* Lock page scroll while modal is open */
body.modal-open{ overflow: hidden; }

/* === Survey visual hierarchy === */
.survey-form {
  counter-reset: q;
  display: grid;
  gap: 14px;
}

/* Each question as a "card" */
.q-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

/* Title with numbered badge */
.q-title {
  position: relative;
  font-weight: var(--font-semibold);
  margin: 0;
  padding-left: 40px;
  line-height: 1.2;
}
.q-title::before {
  counter-increment: q;
  content: counter(q);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Answers area */
.q-body {
  margin-top: 10px;
}

/* Inputs */
.q-body input[type="text"],
.q-body input[type="email"],
.q-body select,
.q-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

/* Options layout */
.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.q-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

/* Helper copy */
.help-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: 6px;
}

/* Divider before submit buttons for breathing room */
.survey-actions {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}


/* Small screens: use almost-fullscreen sheet */
@media (max-width: 640px){
  .modal-card{
    width: 100%;
    max-height: 100vh;
    border-radius: 12px;
    padding: 20px;
  }
  .modal-header{
    margin: -20px -20px 12px -20px;
    padding: 14px 20px 10px 20px;
  }
}

/* Go to Top Button */
.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 3px; /* Shift arrow up slightly for better visual centering */
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.go-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 137, 123, 0.4);
}

.go-to-top:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .nav-right {
    gap: var(--spacing-sm);
  }

  .feedback-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }

  .lang-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
  }
}


/* Social Proof */
.social-proof {
    padding: var(--spacing-4xl) 0;
    background: var(--surface);
    text-align: center;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4xl);
    margin-bottom: var(--spacing-3xl);
}

.stat h3 {
    font-size: var(--text-4xl);
    color: var(--primary);
}

.testimonial {
    max-width: 600px;
    margin: 0 auto;
}

blockquote {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

cite {
    color: var(--text-secondary);
}

/* Feedback Section */
.feedback {
    padding: var(--spacing-4xl) 0;
    text-align: center;
}

.feedback h2 {
    margin-bottom: var(--spacing-lg);
}

.incentive {
    margin-top: var(--spacing-lg);
    color: var(--accent);
    font-weight: var(--font-semibold);
}

/* Timeline Section */
.timeline {
    padding: var(--spacing-4xl) 0;
    background: var(--surface);
    text-align: center;
}

.perks-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.perk {
    font-size: var(--text-lg);
}

.launch-date {
    font-size: var(--text-xl);
    color: var(--primary);
    font-weight: var(--font-semibold);
}

/* FAQ Section */
.faq {
    padding: var(--spacing-3xl) 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
}

.faq-item summary {
    font-weight: var(--font-semibold);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: var(--text-xl);
    color: var(--primary);
}

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

.faq-item p {
    margin-top: var(--spacing-sm);
}

/* Scroll to demo link */
.scroll-to-demo {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.scroll-to-demo:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Final CTA */
.final-cta {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
}

.final-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-2xl);
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.waitlist-form input {
    padding: var(--spacing-md);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--border-radius-sm);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: var(--text-base);
}

.waitlist-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0;
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--spacing-xl);
}

.footer-nav {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
/* Tablet: 2 columns for features */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .problem-grid,
    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .proof-stats {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    
    .waitlist-form {
        padding: 0 var(--spacing-xl);
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
}

/* ---- Global section heading polish ---- */
.section-title,
.section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.section-title {
  margin-bottom: var(--spacing-xl);         /* clearer gap under H2s */
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 760px;                         /* readable line length */
  margin-bottom: var(--spacing-2xl);
}

/* Features + Feedback: ensure centered + spacing above content */
.features-section {
    padding-top: 25px;
    padding-bottom: 65px;
}
.features-section .section-title,
.features-section .section-subtitle,
.feedback-section .section-title,
.feedback-section .section-subtitle {
  text-align: center;
}

.features-section .features-grid {
  margin-top: var(--spacing-xl);
}

/* Problem/Hook: add space under "Relatable?" / "Kennst du das?" */
.problem-section #problem-title {
  margin-bottom: var(--spacing-2xl);        /* was too tight */
}

.problem-section .problem-grid {
  gap: var(--spacing-lg);
  margin-top: 0;                            /* rely on title margin instead */
}

/* (Optional) ensure cards don’t crowd the headings on small screens */
@media (max-width: 768px) {
  .section-title { margin-bottom: var(--spacing-lg); }
  .section-subtitle { margin-bottom: var(--spacing-xl); }
}

.testimonials-grid{
  display:grid;
  gap: var(--spacing-xl);
  grid-template-columns: 1fr;
}
.testimonial blockquote{ margin:0; }
.testimonial p{
  font-size: var(--text-lg);
  color: var(--text-primary);
}
.testimonial .author{
  display:block;
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}
@media (min-width: 768px){
  .testimonials-grid{ grid-template-columns: 1fr 1fr; }
}

/* --- Unified section spacing (overrides earlier paddings) --- */
:root {
  --section-pad: var(--spacing-4xl); /* single source of truth */
}

/* Apply to all main content sections (keep hero’s own spacing) */
.problem-section,
.how-it-works,
.features-section,
.social-proof,
.feedback-section,
.timeline,
.faq,
.final-cta {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

/* Optional: tighter on small screens for better fit */
@media (max-width: 768px) {
  :root { --section-pad: var(--spacing-3xl); }
}

/* Optional: ensure consistent anchor scrolling if you link to sections */
.problem-section,
.how-it-works,
.features-section,
.social-proof,
.feedback-section,
.timeline,
.faq,
.final-cta {
  scroll-margin-top: calc(var(--spacing-3xl) + 60px); /* header height + breathing */
}
/* Compact buttons only within the phone mockup screen */
.phone-screen .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: var(--text-sm);
  border-radius: 8px;
}

/* PLAN view: padding already handled globally now */

/* PLAN list: styling handled globally now */

/* Compact buttons inside PLAN actions + bottom nav */
.phone-screen #demo-screen .plan-actions .btn,
.phone-screen #demo-screen .demo-nav .nav-btn {
  min-height: 36px;
  padding: 6px 10px;
  font-size: var(--text-sm);
  border-radius: 8px;
}

/* Make the bottom nav less tall on phone */
.phone-screen #demo-screen .demo-nav { margin-top: 2px; padding-top: 2px; }
/* Compact buttons for the demo/plan view */
.btn-compact {
  padding: 6px 10px;
  min-height: 32px;
  font-size: var(--text-sm);
  border-radius: 8px;
}

/* Plan actions layout (smaller gaps) */
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* Plan list: remove bullets inside phone (padding handled globally) */
.phone-screen .history-list {
  list-style: none;
  margin-left: 0;
}

/* Plan cards: reduce padding so content sits closer to the left edge */
.phone-screen .history-list .card {
  padding: 8px 10px;
}

/* Inner row spacing a bit tighter */
.phone-screen .history-list .card > div {
  gap: 6px !important;
}

/* Make the “New reservation” button compact too */
.phone-screen .new-reservation.btn {
  padding: 8px 12px;
  min-height: 36px;
  font-size: var(--text-sm);
}
