/* ============================================================
   PATI — Website Styles
   Design-System abgeleitet aus Media/Branding/PATI_Branding_Guide.md
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Primary brand (Teal) */
  --pati-teal: #0583A4;
  --pati-teal-light: #47A4BE;
  --pati-teal-dark: #045C74;

  /* Neutrals */
  --pati-deep: #18181B;
  --pati-graphite: #27272A;
  --pati-graphite-2: #1E1E21;
  --pati-slate: #52525B;
  --pati-mist: #A1A1AA;
  --pati-cloud: #F4F4F5;
  --pati-snow: #FFFFFF;

  /* Accents */
  --pati-amber: #F59E0B;
  --pati-mint: #10B981;
  --pati-rose: #F43F5E;

  /* Semantic (dark mode default) */
  --bg: var(--pati-deep);
  --bg-elevated: var(--pati-graphite);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #F4F4F5;
  --text-muted: #A1A1AA;
  --text-subtle: #71717A;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0583A4 0%, #47A4BE 100%);
  --gradient-night: linear-gradient(135deg, #18181B 0%, #045C74 100%);
  --gradient-text: linear-gradient(135deg, #47A4BE 0%, #F59E0B 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(5, 131, 164, 0.25);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

/* Light mode */
[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text: #18181B;
  --text-muted: #52525B;
  --text-subtle: #71717A;
  --shadow-glow: 0 0 80px rgba(5, 131, 164, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--pati-teal-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pati-teal);
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--pati-teal);
  color: white;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(24, 24, 27, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.75);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.nav-monogram {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-card);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(5, 131, 164, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 131, 164, 0.5);
  color: white;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-24);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--pati-teal);
  top: -150px;
  left: -200px;
}

.hero-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--pati-teal-dark);
  top: 100px;
  right: -250px;
  opacity: 0.3;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(5, 131, 164, 0.12);
  border: 1px solid rgba(5, 131, 164, 0.3);
  border-radius: var(--radius-full);
  color: var(--pati-teal-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pati-teal-light);
  box-shadow: 0 0 12px var(--pati-teal-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--text);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-title-accent {
  color: var(--pati-teal-light);
}

.hero-lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.phone-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  background: #0a0a0c;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 40px 100px rgba(0, 0, 0, 0.5),
    var(--shadow-glow);
  transform: rotate(-2deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup:hover {
  transform: rotate(0) translateZ(0) scale(1.02);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--pati-deep);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 8px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.phone-app {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 42px);
}

.app-header {
  margin-bottom: var(--space-6);
}

.app-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.app-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}

.timeline-hour {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  width: 36px;
  padding-top: 10px;
  font-weight: 500;
}

.event {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
}

.event-title {
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
  font-size: 13px;
}

.event-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.event-teal {
  background: linear-gradient(135deg, rgba(5, 131, 164, 0.8), rgba(71, 164, 190, 0.6));
  border-left: 3px solid var(--pati-teal-light);
}

.event-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
  border-left: 3px solid var(--pati-amber);
}

.event-rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(244, 63, 94, 0.1));
  border-left: 3px solid var(--pati-rose);
}

.event-mint {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  border-left: 3px solid var(--pati-mint);
}

.timeline-hour.current::before {
  content: '';
  position: absolute;
  left: 36px;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--pati-rose);
  z-index: 2;
  opacity: 0.9;
}

.now-line {
  display: none;
}

.tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 12px 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 -20px -16px;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 500;
}

.tab.active {
  color: var(--pati-teal-light);
}

@media (max-width: 640px) {
  .phone-mockup {
    width: 260px;
    height: 540px;
    transform: rotate(0);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-problem {
  background: linear-gradient(180deg, transparent, rgba(5, 131, 164, 0.03));
}

.section-how {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-principles {
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.03));
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--pati-teal-light);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.section-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-12);
  align-items: start;
}

.two-col .section-lead {
  margin-bottom: var(--space-5);
  max-width: none;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 131, 164, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(5, 131, 164, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 16px rgba(5, 131, 164, 0.3);
}

.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.feature-tags li {
  padding: 0.25rem 0.625rem;
  background: rgba(5, 131, 164, 0.12);
  border: 1px solid rgba(5, 131, 164, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--pati-teal-light);
  font-weight: 500;
  font-family: var(--font-mono);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-5);
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Platforms ---------- */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

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

.platform-card {
  padding: var(--space-10);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: all 0.3s ease;
}

.platform-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.platform-icon {
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  background: var(--gradient-night);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
}

.platform-icon-android {
  color: #3DDC84;
}

.platform-meta {
  margin-bottom: var(--space-3);
}

.platform-status {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.status-beta {
  background: rgba(245, 158, 11, 0.15);
  color: var(--pati-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-bootstrap {
  background: rgba(161, 161, 170, 0.1);
  color: var(--pati-mist);
  border: 1px solid rgba(161, 161, 170, 0.25);
}

.platform-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.platform-card > p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.platform-list {
  list-style: none;
  margin-bottom: var(--space-6);
}

.platform-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.platform-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347A4BE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.principle {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.principle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.principle-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(5, 131, 164, 0.12);
  color: var(--pati-teal-light);
  border: 1px solid rgba(5, 131, 164, 0.25);
  margin-bottom: var(--space-4);
}

.principle h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.principle p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.section-cta {
  padding: var(--space-16) 0 var(--space-24);
}

.cta-card {
  padding: var(--space-16) var(--space-12);
  background:
    radial-gradient(ellipse at top left, rgba(5, 131, 164, 0.2), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.15), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 0h1v60H0zM0 0h60v1H0z' fill='%23ffffff' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-card > * {
  position: relative;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: var(--pati-amber);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.cta-badge .chip-dot {
  background: var(--pati-amber);
  box-shadow: 0 0 12px var(--pati-amber);
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  color: var(--text);
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cta-card {
    padding: var(--space-10) var(--space-6);
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-6);
  }
  .footer-brand {
    grid-column: span 2;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.footer-logo img {
  border-radius: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: var(--space-2) 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--pati-teal-light);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--pati-teal-light);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Nav scrolled state ---------- */
.nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-links a.is-active {
  color: var(--text);
  position: relative;
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pati-teal-light);
  border-radius: 2px;
}

/* ---------- Personas ---------- */
.section-personas {
  background: linear-gradient(180deg, transparent, rgba(71, 164, 190, 0.03));
}

.personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.persona {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.persona:hover {
  background: var(--bg-card-hover);
  border-color: rgba(5, 131, 164, 0.3);
  transform: translateY(-3px);
}

.persona-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.persona h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.persona p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.section-faq {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.faq-item[open] {
  background: var(--bg-card-hover);
  border-color: rgba(5, 131, 164, 0.3);
}

.faq-q {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  user-select: none;
}

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

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pati-teal-light);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 var(--space-6) var(--space-6);
}

.faq-a p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-a a {
  color: var(--pati-teal-light);
  border-bottom: 1px solid rgba(71, 164, 190, 0.3);
}

.faq-a a:hover {
  border-bottom-color: var(--pati-teal-light);
}

/* ---------- Legal pages shared styles ---------- */
.legal-page {
  min-height: 100vh;
  padding: var(--space-24) 0;
}

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

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.legal-page .eyebrow {
  margin-bottom: var(--space-4);
}

.legal-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--text);
}

.legal-page h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.legal-page ul,
.legal-page ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.legal-page li {
  margin-bottom: var(--space-2);
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-10) 0;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-8);
  transition: color 0.2s ease;
}

.legal-page .back-link:hover {
  color: var(--pati-teal-light);
}
