/* ============================================
   SERVICEBOKEN — HEMSIDA
   Refined Scandinavian Warmth
   Trygg, modern, premium — varje detalj omsorgsfullt utförd
   ============================================ */

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

:root {
  --primary: #FACC55;
  --primary-dark: #E0B840;
  --primary-light: #FFF8E1;
  --on-primary: #1A1200;
  --tertiary: #E85D04;
  --tertiary-soft: #FFF0E6;
  --background: #FEFBF4;
  --surface: #FFFFFF;
  --surface-dim: #F8F5EE;
  --dark: #151515;
  --dark-surface: #1C1C1C;
  --dark-card: #242424;
  --text: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #6B6B6B;
  --border: #E8E0D4;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-glow: 0 6px 20px rgba(0, 0, 0, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 0.7s var(--transition-slow) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }
.reveal-delay-5 { animation-delay: 0.5s; }

/* ---------- SUBTLE NOISE TEXTURE ---------- */
.hero::before,
.section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(254, 251, 244, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 12px 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.navbar-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links .btn + .btn {
  margin-left: -16px;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.navbar-links a:not(.btn):hover { color: var(--text); }

.navbar-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tertiary);
  border-radius: 1px;
  transition: width var(--transition);
}

.navbar-links a:not(.btn):hover::after { width: 100%; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(250, 204, 85, 0.08);
}

.btn-sm { padding: 10px 22px; font-size: 0.86rem; }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 150px 0 110px;
  background: var(--background);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
  opacity: 0;
  animation: fadeInUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-footnote {
  font-size: 0.75rem;
  opacity: 0.55;
  margin-top: 0.75rem;
}

/* Hero screenshot */
.hero-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: scaleIn 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-screenshot {
  /* 445 = 320 x (1514/1088). Ramen ligger utanför skärmytan, så utan
     uppräkningen skulle appinnehållet krympa från 320 till 230 px. */
  max-width: 445px;
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.hero-screenshot:hover {
  transform: translateY(-6px) scale(1.01);
}

/* ---------- SECTIONS ---------- */
/* Avsiktligt olika vertikal rytm per sektion – inte en global konstant. */
.section-light {
  position: relative;
  padding: 92px 0;
  background: var(--surface);
  overflow: hidden;
}

.section-alt {
  position: relative;
  padding: 124px 0;
  background: var(--background);
}

.section-warm {
  position: relative;
  padding: 104px 0;
  background: var(--surface-dim);
}

/* Per-sektion-finjustering så rytmen följer innehållet, inte en mall. */
#for-bilagare { padding: 132px 0; }
#om-oss { padding: 108px 0; }
#faq { padding: 78px 0; }
#ladda-ner { padding: 116px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}


.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tertiary);
  margin-bottom: 14px;
}


/* ---------- FEATURE FLOWS (Bilagare) ---------- */

/* Section-header ovanför flows: måste ligga över sticky-korten */
.flow-scroll-area ~ .container,
.flow-scroll-area ~ .more-features {
  position: relative;
  z-index: 3;
}

#for-bilagare > .container:first-child {
  position: relative;
  z-index: 3;
}

/* Yttre wrapper: höjden ger sticky scroll-utrymme.
   Kortleken animerar deterministiskt medan arean scrollas igenom
   (samma scrollposition ⇒ samma animationsläge, se main.js). */
.flow-scroll-area {
  height: 180vh;
}

/* Sticky: fyller viewporten och centrerar flow-section i den.
   Ingen transform här – det skapar ny stacking context och förstör z-index.
   Ingen hårdkodad offset – flexbox centrerar oavsett korthöjd/breakpoint. */
.flow-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.flow-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: var(--max-width, 1120px);
  padding: 0 24px;
}

.flow-section.flow-reverse .flow-text {
  order: 2;
}

.flow-section.flow-reverse .flow-card-stack {
  order: 1;
}

.flow-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tertiary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.flow-text h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.flow-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* Kortlek-shuffle */
.flow-card-stack {
  position: relative;
  /* 421x764 = 320x640 uppräknat med 1514/1088, så skärminnehållet behåller
     sin tidigare storlek nu när ramen ligger utanför det. */
  width: 421px;
  height: 764px;
  margin: 0 auto;
}

.flow-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  will-change: transform, opacity;
}

/*
  --s  = shuffle progress (0 to 1), driven by JS scroll
  --sx = arc value (peaks at 1 when s=0.5), driven by JS
  Symmetrisk shuffle:
    Front: center -> arc ut at vanster -> bakom at vanster (-10px, +14px)
    Back:  bakom at hoger (+10px, +14px) -> arc in fran hoger -> center
*/
.flow-card--front {
  z-index: 2;
  transform:
    translateX(calc(var(--sx, 0) * -140px - var(--s, 0) * 10px))
    translateY(calc(var(--s, 0) * 14px))
    scale(calc(1 - var(--s, 0) * 0.03));
  opacity: calc(1 - var(--s, 0));
}

.flow-card--back {
  z-index: 1;
  transform:
    translateX(calc(var(--sx, 0) * 140px + (1 - var(--s, 0)) * 10px))
    translateY(calc((1 - var(--s, 0)) * 14px))
    scale(calc(0.97 + var(--s, 0) * 0.03));
  opacity: var(--s, 0);
}

/* Halvvags: bild 2 lagger sig ovanpa */
.flow-card-stack.is-past-half .flow-card--front {
  z-index: 1;
}

.flow-card-stack.is-past-half .flow-card--back {
  z-index: 2;
}

.flow-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Screenshot-kort — bilden innehåller telefonram (mockup), ingen egen
   ram/shadow behövs. Måtten följer .flow-card-stack. */
.flow-screenshot {
  width: 421px;
  height: 764px;
}

picture.flow-screenshot {
  display: block;
}

picture.flow-screenshot img,
.flow-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* &#214;vriga funktioner (kompakt) */
.more-features {
  margin-top: 24px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.more-features h3 {
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 32px;
}

/* Ren funktionslista: monokroma ikoner, inga färgrutor, luftigt. */
.more-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 48px;
}

.mini-feature {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.mini-feature:hover {
  transform: none;
  box-shadow: none;
}

.mini-feature-icon {
  width: 24px;
  height: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mini-feature-icon svg {
  width: 22px;
  height: 22px;
}

.mini-feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.mini-feature span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- WORKSHOP GRID (Verkstader) ---------- */
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.workshop-card {
  padding: 30px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.workshop-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Monokrom ikon utan färgruta. */
.workshop-icon {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 0;
}

.workshop-icon svg {
  width: 28px;
  height: 28px;
}

.workshop-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.workshop-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.workshop-cta {
  text-align: center;
  margin-top: 52px;
}

.workshop-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.workshop-hint {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  max-width: 520px;
  margin: 22px auto 0;
  line-height: 1.65;
}

.workshop-hint a {
  color: var(--tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- STEPS ---------- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover .step-number {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.step-content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
  border-radius: 1px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition), color var(--transition);
}

.faq-item[open] summary::after {
  content: '\2212';
  color: var(--tertiary);
}

.faq-item summary:hover { color: var(--tertiary); }

.faq-item p {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.faq-item p a {
  color: var(--tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- ABOUT / OM OSS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-text:last-of-type { margin-bottom: 0; }

.trust-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 93, 4, 0.2);
}

.trust-badge-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.trust-badge span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---------- DOWNLOAD ---------- */
.download-inner {
  text-align: center;
  padding: 24px 0;
}

.download-inner h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.download-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* BankID-logotypen är vit i filen, så den mörkfärgas för att synas på ljust kort. */
.bankid-logo {
  filter: brightness(0);
  width: 46px;
  height: 40px;
}

.store-badge {
  display: block;
  transition: transform var(--transition);
}

.store-badge:hover { transform: translateY(-3px); }

.store-badge-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  min-width: 180px;
  transition: background var(--transition);
}

.store-badge:hover .store-badge-inner {
  background: #2A2A2A;
}

.store-badge-inner small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
  line-height: 1;
}

.store-badge-inner strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: #bbb;
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #666;
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.55;
}

.footer-columns {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #888;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #252525;
  padding-top: 22px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #555;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero h1 { font-size: 2.7rem; }
  .hero-inner { gap: 48px; }
  .flow-section { gap: 36px; }
  .flow-card-stack { width: 230px; height: 470px; }
  .flow-screenshot { width: 230px; height: 440px; }
  .more-features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-columns { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(254, 251, 244, 0.96);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 24px 28px;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .navbar-links a:not(.btn)::after { display: none; }
  .navbar-links.open { display: flex; }
  .navbar-toggle { display: flex; }

  .hero { padding: 130px 0 70px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero h1 { font-size: 2.3rem; }
  .hero-subtitle { max-width: 100%; margin: 0 auto 28px; }
  .hero-cta { justify-content: center; }
  .hero-trust { align-items: center; }
  .hero-visual { order: 1; }
  .hero-screenshot { max-width: 240px; }

  .section-header h2 { font-size: 1.8rem; }

  .flow-section,
  .flow-section.flow-reverse { grid-template-columns: 1fr; gap: 32px; }
  .flow-section.flow-reverse .flow-text { order: 0; }
  .flow-section.flow-reverse .flow-card-stack { order: 0; }
  .flow-text { text-align: center; }
  .flow-card-stack { width: 220px; height: 440px; }
  .flow-screenshot { width: 220px; height: 410px; border-radius: 22px; }
  .more-features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }

  .workshop-grid { grid-template-columns: 1fr; gap: 12px; }
  .workshop-card { padding: 24px; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .step { padding: 14px 0; }

  .step-connector {
    width: 2px;
    height: 28px;
    margin: 0;
  }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-badge-grid { grid-template-columns: 1fr 1fr; }

  .section-light, .section-alt, .section-warm { padding: 72px 0; }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }

  .download-inner h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 1.9rem; }

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

  .btn-lg { padding: 16px 24px; width: 100%; }
  .hero-trust { align-items: flex-start; }
  .trust-badge-grid { grid-template-columns: 1fr; }

  .flow-card-stack { width: 180px; height: 370px; }
  .flow-screenshot { width: 180px; height: 340px; border-radius: 18px; }
  .more-features-grid { grid-template-columns: 1fr; }
  .flow-text h3 { font-size: 1.25rem; }

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

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero h1,
  .hero-subtitle,
  .hero-cta,
  .hero-trust,
  .hero-visual,
  .reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* ---------- CONTENT-VISIBILITY (PAINT-ON-DEMAND) ---------- */
.section-alt,
.section-warm,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
