/* ============================================================
   KRENTA . Swiss compliance landing page
   Design language: editorial Swiss precision.
   Warm ivory paper, off-black ink, single oxblood accent.
   Instrument Serif (display) + Inter Tight (UI) + JetBrains Mono (data).
   ============================================================ */

:root {
  /* Tokens . base (Swiss tax authority: off-white, neutral) */
  --paper: #F8F8F6;              /* off-white, neutral */
  --paper-card: #FFFFFF;         /* pure white cards */
  --paper-deep: #EFEFEC;         /* sectional band */
  --ink: #111111;                /* near-black, neutral */
  --ink-2: #2A2A2A;
  --mid: #595959;
  --mid-2: #878787;
  --hairline: #D0D0CC;
  --hairline-soft: #E2E2DE;

  /* Tokens . accent (default true oxblood per spec; overridden by Tweaks) */
  --accent: #9B2226;
  --accent-deep: #791A1D;
  --accent-tint: rgba(155, 34, 38, 0.08);

  /* Status colors for dashboards */
  --ok: #2D5A3A;
  --ok-tint: #DEE9E1;
  --warn: #9A6612;
  --warn-tint: #F1E4C7;
  --bad: var(--accent);
  --bad-tint: rgba(155, 34, 38, 0.10);

  /* Type . Swiss corporate grotesque, no editorial italic */
  --display: "Hanken Grotesk", "Söhne", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Grid */
  --pad: clamp(18px, 4vw, 64px);
  --maxw: 1360px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* No paper texture . Swiss-corporate clean off-white */
#app { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(44px, 7vw, 112px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.8vw, 64px); font-weight: 700; }
h3 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.subdued { color: var(--mid); font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
}

.subhead {
  font-family: var(--sans);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
  font-weight: 400;
}

.lede {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 32ch;
}

.tinytext, .label {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.005em;
  color: var(--mid);
}

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ---------- Layout primitives ---------- */
section {
  position: relative;
  padding: clamp(72px, 9vw, 140px) var(--pad);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.hairline { border: 0; border-top: 0.5px solid var(--hairline); margin: 0; }
.hairline-soft { border-top-color: var(--hairline-soft); }

/* Section heading row */
.sec-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 56px;
}
.sec-head .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.08em;
}
.sec-head .ttl {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.025em;
}

@media (max-width: 700px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 0.5px solid var(--hairline-soft);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
  align-self: center;
}
.nav {
  display: flex; gap: 26px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav a {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--accent); }

/* Language switcher */
.lang {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  border: 0.5px solid var(--hairline);
  background: var(--paper-card);
  border-radius: 1px;
  overflow: hidden;
}
.lang button {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: var(--mid-2);
  padding: 6px 10px;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  text-transform: uppercase;
  border-right: 0.5px solid var(--hairline-soft);
  transition: color 120ms, background 120ms;
}
.lang button:last-child { border-right: 0; }
.lang button:hover { color: var(--ink); }
.lang button.is-active {
  color: var(--paper-card);
  background: var(--ink);
}
.lang button[disabled] { cursor: not-allowed; opacity: 0.55; }
.lang button[disabled]:hover { color: var(--mid-2); }

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600;
  font-size: 13.5px; letter-spacing: -0.005em;
  padding: 10px 16px;
  border-radius: 1px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ink {
  background: var(--ink);
  color: var(--paper-card);
}
.btn-ink:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 0.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-card); }
.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-accent:hover { background: var(--accent-deep); }
.btn .arr { font-family: var(--sans); font-weight: 700; font-size: 13px; }

@media (max-width: 900px) {
  .nav { display: none; }
}
@media (max-width: 560px) {
  .topbar-inner { padding: 12px 18px; gap: 12px; }
  .topbar-inner .btn { padding: 8px 12px; font-size: 12.5px; }
  .lang { font-size: 10px; }
  .lang button { padding: 5px 7px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 64px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.hero-eyebrow-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.hero-eyebrow-row .stamp {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0.5px solid var(--hairline);
  background: var(--paper-card);
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-eyebrow-row .stamp .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(140, 31, 31, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(140, 31, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 31, 31, 0); }
}

.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin: 0 0 32px 0;
  max-width: 14ch;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
  margin: 0 0 40px 0;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: 28px;
}
.email-inline {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--paper-card);
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow 140ms ease, transform 140ms ease;
}
.email-inline:focus-within { box-shadow: 4px 4px 0 var(--accent); }
.email-inline input {
  appearance: none; background: transparent; border: 0; outline: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 0 18px;
  min-width: 280px;
  color: var(--ink);
}
.email-inline input::placeholder { color: var(--mid-2); font-weight: 400; }
.email-inline button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: -0.005em;
  padding: 16px 22px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 120ms ease;
}
.email-inline button:hover { background: var(--accent-deep); }
.email-inline button .arr { font-weight: 800; font-size: 15px; }

@media (max-width: 560px) {
  .email-inline { width: 100%; flex-direction: column; box-shadow: 3px 3px 0 var(--ink); }
  .email-inline input { padding: 14px 16px; min-width: 0; border-bottom: 0.5px solid var(--hairline); }
  .email-inline button { padding: 14px 16px; justify-content: center; }
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 28px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .tick {
  width: 10px; height: 10px;
  display: inline-block;
  background: var(--accent);
  clip-path: polygon(20% 50%, 0 70%, 40% 100%, 100% 20%, 80% 0, 40% 60%);
}

/* Urgency strip below hero */
.urgency-strip {
  margin-top: 48px;
  border: 0.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper-card);
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.urgency-strip .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--paper-card);
}
.urgency-strip .live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.urgency-strip .items {
  display: flex; gap: 18px 32px; flex-wrap: wrap; align-items: center;
  color: rgba(255,255,255,0.78);
}
.urgency-strip .items span strong { color: #FFFFFF; font-weight: 600; }
.urgency-strip .pipe { color: rgba(255,255,255,0.25); }

@media (max-width: 800px) {
  .urgency-strip { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
  .urgency-strip .items { gap: 10px 20px; font-size: 11px; }
}

/* Hero side card: live threshold widget */
.hero-aside {
  border: 0.5px solid var(--hairline);
  background: var(--paper-card);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 22px;
  position: relative;
}
.hero-aside .corner {
  position: absolute;
  top: -1px; right: -1px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 5px 9px;
}
.hero-aside h4 {
  font-family: var(--sans); font-weight: 500;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mid); margin: 0;
}

/* ---------- Regulatory clock ---------- */
.clock-timeline {
  position: relative;
  padding-top: 60px;
}
.clock-rail {
  position: relative;
  height: 1px; background: var(--ink);
  margin: 0 24px 0 24px;
}
.clock-events {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 0;
  position: relative;
}
.clock-event {
  border-right: 0.5px solid var(--hairline);
  padding: 0 16px 0 16px;
  position: relative;
  cursor: default;
}
.clock-event:last-child { border-right: 0; }
.clock-event .tick {
  position: absolute;
  top: -8px; left: -4px;
  width: 8px; height: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.clock-event.is-live .tick { background: var(--accent); border-color: var(--accent); }
.clock-event.is-warning .tick { background: var(--ink); }
.clock-event .date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-top: 18px;
  display: flex; align-items: center; gap: 8px;
}
.clock-event .date .badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border: 0.5px solid var(--hairline);
  letter-spacing: 0.08em;
}
.clock-event.is-live .date .badge {
  background: var(--accent); color: var(--paper); border-color: var(--accent);
}
.clock-event .what {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.clock-event .detail {
  margin-top: 12px;
  font-size: 13px; line-height: 1.45;
  color: var(--mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, margin-top 280ms ease;
}
.clock-event:hover .detail,
.clock-event:focus-within .detail {
  max-height: 200px;
}
.clock-event .stake {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 1000px) {
  .clock-events { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .clock-event { border-right: 0; border-top: 0.5px solid var(--hairline); padding-top: 20px; }
  .clock-event .tick { top: -5px; left: 0; }
  .clock-rail { display: none; }
}

/* ---------- Thresholds ---------- */
.thresholds {
  background: var(--paper-deep);
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
}
.thresholds-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--ink);
  border-left: 0.5px solid var(--ink);
}
.thresh-cell {
  border-right: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
  background: var(--paper-card);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  position: relative;
}
.thresh-cell .threshlabel {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.thresh-cell .value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.thresh-cell .value .unit {
  font-size: 0.36em; font-family: var(--sans); font-weight: 500;
  letter-spacing: -0.01em; color: var(--mid);
  margin-left: 3px;
}
.thresh-cell .country {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.thresh-cell .desc {
  font-size: 13.5px; line-height: 1.4;
  color: var(--mid); margin-top: auto;
}
.thresh-cell .new {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 2px 6px;
}

/* Gauge variant */
.thresh-cell .gauge {
  position: relative;
  height: 10px; background: var(--paper-deep);
  border: 0.5px solid var(--hairline);
  margin-top: 8px;
}
.thresh-cell .gauge .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
}
.thresh-cell .gauge .pct {
  position: absolute; right: 0; top: -18px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--mid);
}
.thresh-cell .ticks {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--mid-2);
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .thresholds-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .thresholds-grid { grid-template-columns: 1fr; }
  .thresh-cell { min-height: 240px; }
}

/* ---------- Before / After ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--ink);
  border-left: 0.5px solid var(--ink);
}
.ba-col {
  border-right: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
  padding: 36px 32px 40px;
  background: var(--paper-card);
  position: relative;
  min-height: 600px;
}
.ba-col.before { background: var(--paper-deep); }
.ba-col .stamp {
  position: absolute; top: 0; left: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 14px;
}
.ba-col.before .stamp { background: var(--mid); }

.ba-col .ba-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px; line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 56px 0 24px;
}
.ba-col .ba-caption {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--mid);
  margin-top: 24px;
  max-width: 38ch;
  line-height: 1.45;
}

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

/* ---------- Excel chaos visual (Before) ---------- */
.excel-chaos {
  position: relative;
  height: 420px;
}
.excel-paper {
  position: absolute;
  background: #FBFAF6;
  border: 0.5px solid var(--hairline);
  box-shadow: 1px 2px 0 rgba(21,20,15,0.04), 3px 5px 0 rgba(21,20,15,0.025);
  padding: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
}
.excel-paper .title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 8px;
  display: flex; justify-content: space-between;
  border-bottom: 0.5px solid var(--hairline);
  padding-bottom: 5px;
}
.excel-paper table { width: 100%; border-collapse: collapse; }
.excel-paper td {
  padding: 2px 4px;
  border-bottom: 0.5px dotted var(--hairline-soft);
  text-align: right;
  font-size: 9.5px;
}
.excel-paper td:first-child { text-align: left; color: var(--mid); }
.excel-paper td.x { color: var(--accent); font-weight: 600; }

.stickynote {
  position: absolute;
  background: #F0DDA0;
  padding: 10px 12px;
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.18);
  transform: rotate(-3deg);
  width: 150px;
  line-height: 1.2;
}
.email-thread {
  position: absolute;
  background: #FFFFFF;
  border: 0.5px solid var(--hairline);
  padding: 10px;
  font-size: 10px;
  width: 170px;
  box-shadow: 1px 2px 0 rgba(21,20,15,0.04);
}
.email-thread .from { color: var(--mid); font-family: var(--mono); font-size: 9px; margin-bottom: 4px; }
.email-thread .body { color: var(--ink-2); line-height: 1.35; }
.email-thread .body strong { color: var(--accent); }

/* ---------- Dashboard mockup (After) ---------- */
.dash {
  background: #FCFAF3;
  border: 0.5px solid var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  position: relative;
}
.dash-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--hairline);
  background: var(--paper-card);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}
.dash-bar .wm {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 16px;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.dash-bar .wm .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); align-self: center; }
.dash-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 0.5px solid var(--hairline);
}
.dash-summary .stat {
  padding: 14px 14px 16px;
  border-right: 0.5px solid var(--hairline);
}
.dash-summary .stat:last-child { border-right: 0; }
.dash-summary .stat .k {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid);
}
.dash-summary .stat .v {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 8px;
  display: flex; align-items: baseline; gap: 6px;
}
.dash-summary .stat .v small {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0;
}
.dash-summary .stat.bad .v { color: var(--accent); }
.dash-summary .stat.warn .v { color: var(--warn); }
.dash-summary .stat.ok .v { color: var(--ok); }

.dash-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash-table th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--hairline);
  background: var(--paper-card);
}
.dash-table td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--hairline-soft);
  vertical-align: middle;
}
.dash-table tr:hover td { background: var(--paper-card); }

.flag {
  display: inline-block;
  width: 12px; height: 12px;
  border: 0.5px solid var(--hairline);
  margin-right: 6px;
  vertical-align: -2px;
}
.flag.de { background: linear-gradient(to bottom, #000 33%, #D00 33%, #D00 66%, #FFCE00 66%); }
.flag.fr { background: linear-gradient(to right, #0055A4 33%, #FFFFFF 33%, #FFFFFF 66%, #EF4135 66%); }
.flag.it { background: linear-gradient(to right, #008C45 33%, #F4F9FF 33%, #F4F9FF 66%, #CD212A 66%); }
.flag.at { background: linear-gradient(to bottom, #ED2939 33%, #FFFFFF 33%, #FFFFFF 66%, #ED2939 66%); }

.bar {
  position: relative;
  height: 6px;
  background: var(--paper-deep);
  border-radius: 1px;
  min-width: 120px;
}
.bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ok);
}
.bar .fill.warn { background: var(--warn); }
.bar .fill.bad { background: var(--accent); }
.bar .mark {
  position: absolute; top: -3px; bottom: -3px;
  width: 1px; background: var(--ink);
}
.bar .mark::after {
  content: attr(data-label);
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 8.5px; color: var(--ink);
  white-space: nowrap;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 0.5px solid;
}
.pill.ok   { color: var(--ok);  border-color: var(--ok);  background: var(--ok-tint); }
.pill.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-tint); }
.pill.bad  { color: var(--accent); border-color: var(--accent); background: var(--bad-tint); }
.pill.ghost { color: var(--mid); border-color: var(--hairline); background: transparent; }

.dot-status {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
}
.dot-status.warn { background: var(--warn); }
.dot-status.bad  { background: var(--accent); }

/* ---------- Features trio ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--ink);
  border-left: 0.5px solid var(--ink);
}
.feature {
  border-right: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
  padding: 40px 32px;
  background: var(--paper-card);
  min-height: 380px;
  display: flex; flex-direction: column;
  position: relative;
}
.feature .num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--mid);
}
.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px; line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 24px; margin-bottom: 16px;
  text-wrap: balance;
}
.feature p {
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2); margin: 0 0 18px;
}
.feature .feat-visual {
  margin-top: auto;
  padding-top: 24px;
}

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

/* ---------- Quote strip ---------- */
.quotes {
  background: var(--ink);
  color: var(--paper);
}
.quotes .sec-head .num { color: var(--mid-2); }
.quotes .sec-head .ttl { color: var(--paper); }
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 0.5px solid rgba(242,237,227,0.18);
}
.quote-cell {
  padding: 40px 32px 36px;
  border-right: 0.5px solid rgba(242,237,227,0.18);
  position: relative;
}
.quote-cell:last-child { border-right: 0; }
.quote-cell .mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.quote-cell q {
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--paper-card);
  display: block;
  quotes: none;
}
.quote-cell q::before, .quote-cell q::after { content: ""; }
.quote-cell .attr {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-2);
  border-top: 0.5px solid rgba(242,237,227,0.18);
  padding-top: 14px;
}
.quote-cell .attr strong {
  color: var(--paper); font-weight: 500;
}

@media (max-width: 1000px) {
  .quotes-grid { grid-template-columns: 1fr; }
  .quote-cell { border-right: 0; border-bottom: 0.5px solid rgba(242,237,227,0.18); }
}

/* ---------- Treuhänder section ---------- */
.treu-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.treu-grid h2 {
  text-wrap: balance;
}
.treu-list {
  margin-top: 24px;
  list-style: none; padding: 0;
}
.treu-list li {
  border-top: 0.5px solid var(--hairline);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: baseline;
}
.treu-list li:last-child { border-bottom: 0.5px solid var(--hairline); }
.treu-list .n {
  font-family: var(--mono); font-size: 12px;
  color: var(--accent);
}
.treu-list .t {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.treu-list .d {
  grid-column: 2;
  margin-top: 4px;
  font-size: 13.5px; color: var(--mid); line-height: 1.45;
}

@media (max-width: 900px) {
  .treu-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Pricing teaser ---------- */
.price {
  background: var(--paper-card);
  border: 0.5px solid var(--ink);
  padding: 56px clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.price h2 { margin-bottom: 18px; }
.price .pricetag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.04em;
}
.price .pricetag strong {
  color: var(--ink); font-weight: 500;
}
.price .form {
  border: 0.5px solid var(--ink);
  background: var(--paper);
  padding: 24px;
}
.price .form .field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.price .form label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mid);
}
.price .form input, .price .form select {
  appearance: none;
  background: var(--paper-card);
  border: 0; border-bottom: 0.5px solid var(--ink);
  font-family: var(--sans); font-size: 15px;
  padding: 8px 0;
  color: var(--ink);
}
.price .form input:focus, .price .form select:focus {
  outline: 0; border-bottom-color: var(--accent);
}
.price .form button {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
}
.price .form .note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--mid);
}

@media (max-width: 900px) {
  .price { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 0.5px solid var(--ink);
}
.faq-item {
  border-bottom: 0.5px solid var(--hairline);
}
.faq-q {
  width: 100%;
  appearance: none; background: transparent; border: 0; cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  align-items: center;
  text-align: left;
  padding: 24px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq-q .num { font-family: var(--mono); font-size: 12px; color: var(--mid); letter-spacing: 0.08em; }
.faq-q .plus {
  width: 24px; height: 24px;
  position: relative;
  justify-self: end;
  transition: transform 240ms ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--ink);
}
.faq-q .plus::before { left: 0; right: 0; top: 50%; height: 1px; }
.faq-q .plus::after { top: 0; bottom: 0; left: 50%; width: 1px; transition: transform 240ms ease; }
.faq-item.is-open .faq-q .plus::after { transform: scaleY(0); }
.faq-a {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, padding 320ms ease;
}
.faq-item.is-open .faq-a {
  max-height: 400px;
  padding-bottom: 28px;
}
.faq-a .body {
  grid-column: 2;
  font-size: 15.5px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 70ch;
}

@media (max-width: 700px) {
  .faq-q, .faq-a { grid-template-columns: 36px 1fr 28px; gap: 12px; padding: 18px 0; }
  .faq-item.is-open .faq-a { padding-bottom: 22px; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad) 32px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-inner .col h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid-2);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.footer-inner .col a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  opacity: 0.85;
}
.footer-inner .col a:hover { opacity: 1; color: var(--accent); }
.footer-inner .wordmark { color: var(--paper); font-size: 36px; }
.footer-inner .wordmark .dot { background: var(--accent); }
.footer-inner .compliance {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.6);
}
.footer-bottom {
  max-width: var(--maxw); margin: 64px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid rgba(242,237,227,0.15);
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: 10.5px;
  color: rgba(242,237,227,0.5);
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Misc reveal on scroll ----------
   Default to visible; opt-in to hidden state via .js-reveal on <html>
   so the page is always legible without JS / for screenshots / a11y tools. */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}
html.js-reveal .fade-up {
  opacity: 0;
  transform: translateY(18px);
}
html.js-reveal .fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Big country split for FR/DE/IT ---------- */
.contracts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 0.5px solid var(--ink);
  border-left: 0.5px solid var(--ink);
}
.contract {
  border-right: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
  padding: 28px 24px;
  background: var(--paper-card);
}
.contract .flag-big {
  width: 38px; height: 26px;
  border: 0.5px solid var(--hairline);
}
.contract .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin-top: 14px;
  letter-spacing: -0.025em;
}
.contract .row {
  display: flex; justify-content: space-between;
  border-top: 0.5px solid var(--hairline-soft);
  padding: 9px 0;
  font-size: 12.5px;
}
.contract .row:first-of-type { margin-top: 16px; }
.contract .row .k { color: var(--mid); }
.contract .row .v {
  font-family: var(--mono);
  font-weight: 500;
}
.contract .row.is-new .v::after {
  content: " NEU";
  color: var(--accent);
  font-size: 9px;
  margin-left: 4px;
  letter-spacing: 0.08em;
}

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

/* SVG arrows etc */
.arrow-svg {
  display: inline-block;
  vertical-align: middle;
}

/* ──────────────────────────────────────────────────────────────
   MOBILE . additional polish for sub-560px viewports
   The page already uses many max-width breakpoints; these tighten
   the hero / thresholds / FAQ specifically for phone screens.
   ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  section { padding: 56px var(--pad); }

  /* Hero */
  .hero { padding-top: 36px; padding-bottom: 32px; }
  .hero-eyebrow-row { margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
  .hero-eyebrow-row .stamp { font-size: 10px; padding: 4px 8px; }
  .hero-headline { font-size: 52px; line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 24px; max-width: none; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn-ghost { width: 100%; justify-content: center; padding: 12px 16px; }
  .hero-trust { gap: 10px 18px; font-size: 10px; margin-top: 20px; }

  /* Thresholds */
  .thresh-cell { padding: 24px 18px 22px; min-height: 220px; gap: 12px; }
  .thresh-cell .value { font-size: 56px; }
  .thresh-cell .country { font-size: 12px; }
  .thresh-cell .desc { font-size: 12.5px; }
  .thresh-cell .threshlabel { font-size: 10px; }

  /* Section heads */
  .sec-head { margin-bottom: 28px; gap: 12px; }
  .sec-head .ttl { font-size: 32px; letter-spacing: -0.02em; }

  /* FAQ */
  .faq-q { font-size: 18px; padding: 16px 0; line-height: 1.25; }
  .faq-a .body { font-size: 14.5px; line-height: 1.5; }
}

@media (max-width: 420px) {
  .hero-headline { font-size: 44px; }
  .email-inline input { font-size: 14px; padding: 12px 14px; }
  .email-inline button { font-size: 14px; padding: 12px 14px; }
  .thresh-cell .value { font-size: 48px; }
  .urgency-strip { font-size: 11px; padding: 12px 14px; }
  .urgency-strip .items { font-size: 10px; }
}

/* ============================================================
   LEGAL PAGES (datenschutz, impressum)
   ============================================================ */
.legal-page { background: var(--paper); padding-top: clamp(48px, 5vw, 80px); }
.legal-body {
  max-width: 720px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.legal-body p { margin: 0 0 16px; }
.legal-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 0.5px solid var(--hairline);
}
.legal-body h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.legal-body h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 22px 0 8px;
}
.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-body ul li { margin: 4px 0; }
.legal-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-deep);
  padding: 1px 5px;
  border: 0.5px solid var(--hairline-soft);
}
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body a:hover { color: var(--accent-deep); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body .legal-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mid);
  border-left: 2px solid var(--accent);
  padding: 8px 14px;
  background: var(--accent-tint);
  margin: 0 0 32px;
  max-width: 640px;
}
.legal-body .placeholder {
  font-family: var(--mono);
  font-size: 12.5px;
  background: #FFF3CD;
  color: #6B5A12;
  padding: 1px 6px;
  border: 0.5px solid #E6CC80;
  letter-spacing: 0.01em;
}
