/* ═══════════════════════════════════════════════════════════════
   CLAUSY WEBSITE — "Fresh Finance" Design System (v2)
   Inspired by Scappa (Dipa Inhouse): light-first, big type, bento
   cards, mint money-accent. Dark mode preserved as a full toggle.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- Design tokens ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --background: 0 0% 100%;
  --surface: 216 24% 97%;
  --foreground: 222 20% 7%;
  --card: 0 0% 100%;
  --card-2: 216 24% 97%;
  --secondary: 216 20% 95%;
  --muted: 216 16% 92%;
  --muted-foreground: 220 10% 40%;
  --border: 216 15% 89%;
  --accent: 220 90% 56%;
  --clausy-accent: 225 73% 50%;
  --clausy-accent-light: 220 91% 60%;
  --mint: 160 84% 32%;
  --mint-bright: 160 84% 39%;
  --destructive: 0 84% 55%;
  --success: 160 84% 32%;
  --warning: 35 95% 48%;
  --navy: 226 55% 11%;

  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-border: rgba(10, 20, 40, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --blob-blue: rgba(58, 110, 240, 0.14);
  --blob-mint: rgba(16, 185, 129, 0.16);
  --shadow-card: 0 2px 6px rgba(15, 25, 50, 0.04), 0 18px 40px -18px rgba(15, 25, 50, 0.12);
  --shadow-elevated: 0 8px 32px -8px rgba(15, 25, 50, 0.16);
  --shadow-xl: 0 30px 80px -24px rgba(15, 25, 50, 0.28);
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: 0 0% 0%;
  --surface: 0 0% 6%;
  --foreground: 0 0% 100%;
  --card: 0 0% 8%;
  --card-2: 0 0% 11%;
  --secondary: 0 0% 12%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 63%;
  --border: 0 0% 17%;
  --accent: 220 90% 56%;
  --clausy-accent: 225 73% 57%;
  --clausy-accent-light: 220 91% 66%;
  --mint: 160 70% 45%;
  --mint-bright: 160 75% 50%;
  --destructive: 0 84% 60%;
  --success: 160 70% 45%;
  --warning: 38 92% 55%;
  --navy: 226 45% 10%;

  --nav-bg: rgba(0, 0, 0, 0.72);
  --nav-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(16, 16, 16, 0.88);
  --blob-blue: rgba(58, 110, 240, 0.18);
  --blob-mint: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 8px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 70px -20px rgba(0, 0, 0, 0.75);
}

:root {
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --maxw: 1140px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.028em; line-height: 1.06; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.35rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.muted { color: hsl(var(--muted-foreground)); }
section { padding-block: clamp(68px, 9vw, 124px); scroll-margin-top: 76px; }
.section-alt { background: hsl(var(--surface)); }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 0.98rem;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: hsl(var(--foreground)); color: hsl(var(--background)); box-shadow: var(--shadow-card); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.btn-ghost:hover { background: hsl(var(--secondary)); }
.btn .apple-glyph { width: 18px; height: 18px; }
.btn-appstore { gap: 12px; padding-block: 11px; }
.btn-appstore small { display: block; font-size: 0.62rem; font-weight: 500; opacity: 0.7; line-height: 1; letter-spacing: 0.02em; text-align: left; }
.btn-appstore b { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.15; text-align: left; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--nav-border); }
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; font-weight: 550; color: hsl(var(--muted-foreground)); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Toggles */
.lang-toggle { display: inline-flex; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 3px; }
.lang-toggle button { padding: 5px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; color: hsl(var(--muted-foreground)); transition: all 0.2s var(--ease); }
.lang-toggle button.active { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); transition: background-color 0.2s; }
.icon-btn:hover { background: hsl(var(--muted)); }
.icon-btn svg { width: 19px; height: 19px; }
/* sun shown in dark (tap → light), moon shown in light (tap → dark) */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.menu-btn { display: none; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px; border-bottom: 1px solid var(--nav-border);
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 8px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; }
.mobile-menu a:hover { background: hsl(var(--secondary)); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: hsl(var(--accent) / 0.1); color: hsl(var(--clausy-accent-light));
  border: 1px solid hsl(var(--accent) / 0.22); font-size: 0.82rem; font-weight: 650; margin-bottom: 20px;
}
[data-theme="light"] .eyebrow { color: hsl(var(--clausy-accent)); }
.eyebrow.mint { background: hsl(var(--mint-bright) / 0.1); border-color: hsl(var(--mint-bright) / 0.25); color: hsl(var(--mint)); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-card);
  font-size: 0.88rem; font-weight: 620;
}
.chip svg { width: 16px; height: 16px; color: hsl(var(--mint)); flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: visible; padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -180px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blob-blue), transparent 72%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; top: 160px; right: 280px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blob-mint), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(100deg, hsl(var(--accent)), hsl(var(--mint-bright)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 36ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 22px; font-size: 0.88rem; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--mint-bright)); }
.hero-visual { display: flex; justify-content: center; position: relative; }

/* Floating metric cards next to the hero device */
.float-card {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 18px; background: var(--glass-bg);
  border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: float 6s ease-in-out infinite;
}
.float-card small { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.float-card b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.float-card .pos { color: hsl(var(--mint)); }
.float-card .grade { display: inline-flex; align-items: center; gap: 8px; }
.float-card .grade i { font-style: normal; font-size: 0.78rem; font-weight: 800; color: #fff; background: hsl(var(--warning)); border-radius: 8px; padding: 2px 7px; }
.fc-score { top: 9%; right: max(-12px, 1%); animation-delay: 0.8s; }
.fc-save  { bottom: 11%; left: max(-16px, 0%); }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 4px 8px; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 700px; margin: 0 auto; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.12rem; margin-top: 16px; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px;
}
.stat {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  padding: 26px 24px 22px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 8px;
}
.stat b { font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.035em; color: hsl(var(--mint)); line-height: 1; }
.stat span { font-size: 0.92rem; color: hsl(var(--foreground)); line-height: 1.4; font-weight: 550; }
.stat small { margin-top: auto; padding-top: 10px; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 46px; }
.problem-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.problem-card h3 { font-size: 1.22rem; }
.problem-card .p-num { font-size: clamp(2.3rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; color: hsl(var(--mint)); line-height: 1; }
.problem-card .p-num small { font-size: 0.5em; font-weight: 700; letter-spacing: -0.01em; }
.problem-card .p-body { color: hsl(var(--muted-foreground)); font-size: 0.98rem; line-height: 1.6; }
.problem-card .p-src { font-size: 0.76rem; color: hsl(var(--muted-foreground)); }
.problem-card .p-src a { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.problem-card .p-fix {
  margin-top: auto; padding-top: 16px; border-top: 1px solid hsl(var(--border));
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; font-weight: 600; line-height: 1.5;
}
.problem-card .p-fix .arr { color: hsl(var(--mint)); font-weight: 800; flex-shrink: 0; }

/* Sources */
.sources { margin-top: 40px; }
.sources h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 12px; }
.sources ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; font-size: 0.82rem; color: hsl(var(--muted-foreground)); line-height: 1.9; }
.sources a { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.sources a:hover { color: hsl(var(--foreground)); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.step {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-card);
}
.step .step-num { font-size: 1rem; font-weight: 800; color: hsl(var(--mint)); letter-spacing: 0.04em; margin-bottom: 14px; display: block; }
.step h3 { margin-bottom: 8px; }
.step p { color: hsl(var(--muted-foreground)); font-size: 0.97rem; line-height: 1.6; }

/* ---------- Feature rows (screenshot + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: clamp(44px, 6vw, 76px); }
.feature.reverse .feature-text { order: 2; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.feature-icon svg { width: 25px; height: 25px; }
.tint-blue { background: hsl(var(--accent) / 0.12); color: hsl(var(--accent)); }
.tint-mint { background: hsl(var(--mint-bright) / 0.12); color: hsl(var(--mint)); }
.tint-amber { background: hsl(var(--warning) / 0.14); color: hsl(var(--warning)); }
.tint-navy { background: hsl(var(--clausy-accent) / 0.12); color: hsl(var(--clausy-accent-light)); }
.feature h2 { margin-bottom: 16px; }
.feature-text p { color: hsl(var(--muted-foreground)); font-size: 1.08rem; line-height: 1.62; }
.feature-list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; }
.feature-list svg { width: 20px; height: 20px; color: hsl(var(--mint)); flex-shrink: 0; margin-top: 2px; }

/* Stat pill coupled to a money feature */
.stat-pill {
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px;
  padding: 10px 16px; border-radius: 14px;
  background: hsl(var(--mint-bright) / 0.09); border: 1px solid hsl(var(--mint-bright) / 0.22);
  font-size: 0.88rem; color: hsl(var(--foreground));
}
.stat-pill b { color: hsl(var(--mint)); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-pill small { color: hsl(var(--muted-foreground)); font-size: 0.72rem; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.bento-card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  padding: 30px 30px 0; box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.bento-card .feature-icon { width: 46px; height: 46px; margin-bottom: 16px; }
.bento-card .feature-icon svg { width: 22px; height: 22px; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card > p { color: hsl(var(--muted-foreground)); font-size: 0.97rem; line-height: 1.6; padding-bottom: 30px; }
.bento-card.text-only > p { padding-bottom: 30px; }
.bento-shot { margin-top: auto; display: flex; justify-content: center; align-items: flex-start; max-height: 300px; overflow: hidden; }
.bento-shot img { width: 250px; height: auto; align-self: flex-start; flex: 0 0 auto; }
[data-theme="dark"] .bento-card.shot-card { background: #000; }
[data-theme="light"] .bento-shot img { filter: drop-shadow(0 18px 36px rgba(15, 25, 50, 0.16)); }

/* ---------- App screenshots (real iPhone images, already framed) ---------- */
.shot { display: flex; justify-content: center; margin: 0; }
.shot img { width: 300px; max-width: 100%; height: auto; }
[data-theme="light"] .shot img { filter: drop-shadow(0 26px 52px rgba(15, 25, 50, 0.2)); }
[data-theme="dark"] .shot img { filter: none; } /* dark mockups carry their own baked glow on pure black */
.hero .shot img { width: 340px; animation: float 6s ease-in-out infinite; }
.shot figcaption { display: none; }
/* Graceful placeholder if a screenshot file is missing */
.shot.missing img { display: none; }
.shot.missing { width: 280px; max-width: 100%; min-height: 560px; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 2px dashed hsl(var(--border)); border-radius: 42px; background: hsl(var(--card)); color: hsl(var(--muted-foreground)); text-align: center; padding: 24px; }
.shot.missing::before { content: "📱"; font-size: 2.6rem; }
.shot.missing figcaption { display: block; font-size: 0.9rem; font-weight: 600; }
.shot.missing figcaption::before { content: "Add "; }
.shot.missing figcaption::after { content: " to assets/img/screenshots/"; font-weight: 400; display: block; font-size: 0.78rem; margin-top: 4px; opacity: 0.7; }

/* ---------- Security band (navy) ---------- */
.security-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(150deg, hsl(var(--navy)), hsl(226 50% 16%));
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.08);
}
.security-band::after {
  content: ""; position: absolute; right: -160px; bottom: -240px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.22), transparent 70%); pointer-events: none;
}
.security-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.security-band h2 { color: #fff; margin-bottom: 14px; }
.security-band .sec-lead { color: rgba(255, 255, 255, 0.68); font-size: 1.06rem; line-height: 1.65; }
.security-band .trust-strip { justify-content: flex-start; margin-top: 24px; }
.security-band .chip { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none; }
.security-band .chip svg { color: hsl(160 75% 55%); }
.sec-list { display: flex; flex-direction: column; }
.sec-row { display: flex; gap: 16px; padding: 20px 4px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sec-row:first-child { border-top: 0; }
.sec-row svg { width: 22px; height: 22px; color: hsl(160 75% 55%); flex-shrink: 0; margin-top: 3px; }
.sec-row b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.sec-row p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Closing CTA (navy gradient) ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(44px, 7vw, 84px); text-align: center;
  background: linear-gradient(150deg, hsl(var(--navy)), hsl(226 48% 17%));
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-band::before {
  content: ""; position: absolute; left: -180px; top: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 110, 240, 0.3), transparent 70%); pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; right: -160px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.24), transparent 70%); pointer-events: none;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto 14px; position: relative; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.68); max-width: 52ch; margin: 0 auto 30px; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn-primary { background: #fff; color: hsl(var(--navy)); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 650; font-size: 1.05rem; text-align: left; }
.faq-q .chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s var(--ease); color: hsl(var(--muted-foreground)); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a-inner { padding: 0 20px 20px; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 40px auto 0; }
.contact-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.contact-card .feature-icon { background: hsl(var(--accent) / 0.12); color: hsl(var(--accent)); margin-bottom: 16px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin-bottom: 14px; }
.contact-card a { color: hsl(var(--clausy-accent)); font-weight: 650; }
[data-theme="dark"] .contact-card a { color: hsl(var(--clausy-accent-light)); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 90px) 24px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 780px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blob-blue), transparent 72%); pointer-events: none;
}
.page-hero h1 { position: relative; font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { position: relative; color: hsl(var(--muted-foreground)); max-width: 56ch; margin: 0 auto; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin-inline: auto; padding-bottom: 100px; }
.legal-meta { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 16px; padding: 18px 20px; margin-bottom: 28px; font-size: 0.92rem; color: hsl(var(--muted-foreground)); box-shadow: var(--shadow-card); }
.legal-banner { background: hsl(var(--clausy-accent) / 0.08); border: 1px solid hsl(var(--clausy-accent) / 0.22); color: hsl(var(--clausy-accent)); border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; font-size: 0.9rem; }
[data-theme="dark"] .legal-banner { color: hsl(var(--clausy-accent-light)); }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-section h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-section p { color: hsl(var(--muted-foreground)); margin-bottom: 12px; white-space: pre-line; line-height: 1.65; }
.legal-section ul { color: hsl(var(--muted-foreground)); padding-left: 20px; margin-bottom: 12px; line-height: 1.7; }
[data-lang-block] { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid hsl(var(--border)); padding-block: 56px 32px; background: hsl(var(--surface)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: hsl(var(--muted-foreground)); font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: hsl(var(--muted-foreground)); margin-bottom: 14px; }
.footer-col a, .footer-col address { display: block; color: hsl(var(--muted-foreground)); font-size: 0.92rem; margin-bottom: 10px; font-style: normal; line-height: 1.5; transition: color 0.2s; }
.footer-col a:hover { color: hsl(var(--foreground)); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid hsl(var(--border)); font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* Hidden state only when JS confirmed it will animate (html.has-js-anim);
   without JS the content is always visible. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.has-js-anim .reveal { opacity: 0; transform: translateY(22px); }
html.has-js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .float-card { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-actions .desktop-cta { display: none; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-text { order: 0; }
  .feature-icon { margin-inline: auto; } .feature-text { text-align: center; }
  .feature-list { text-align: left; max-width: 380px; margin-inline: auto; }
  .security-grid { grid-template-columns: 1fr; }
  .sources ol { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .container { padding-inline: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Keep the EN/DE language switch visible on phones */
  .nav { gap: 10px; }
  .nav-actions { gap: 7px; }
  .lang-toggle button { padding: 5px 9px; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px 16px; }
  .hero .shot img { width: 290px; }
}
