/* ============================================
   SITAVIO – Clean white + pastel design system
   ============================================ */

:root {
  color-scheme: light dark;

  /* Base */
  --bg: #ffffff;
  --bg-soft: #fafafc;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.85);
  --text: #1e1b33;
  --text-muted: #64607a;
  --border: #ececf3;

  /* Primary — everything interactive */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --on-primary: #ffffff;
  --accent-2: #8b5cf6;
  --primary-glow: rgba(79, 70, 229, 0.28);
  --primary-glow-hover: rgba(79, 70, 229, 0.38);

  /* Pastel tints — backgrounds only */
  --lavender: #e7e3fb;
  --mint: #dcf3ea;
  --peach: #fdeadd;
  --sky: #ddeffa;
  --rose: #fbe4ec;

  /* Inks — readable text/marks sitting on those tints */
  --mint-ink: #0f7a5a;
  --peach-ink: #a85416;
  --sky-ink: #1e6fa8;
  --rose-ink: #b04a76;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(80, 70, 140, 0.08);
  --shadow-hover: 0 14px 40px rgba(80, 70, 140, 0.14);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- Dark theme ----------
   Same design system, dark surfaces. The pastels stay as tints — just
   dark, desaturated versions — and each ink is lightened so it keeps
   its 4.5:1 contrast against the tint it sits on. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131c;
    --bg-soft: #1a1924;
    --surface: #1d1c29;
    --header-bg: rgba(20, 19, 28, 0.85);
    --text: #f1f0f7;
    --text-muted: #a9a6bd;
    --border: #2f2d40;

    /* Lightened so it reads as the accent against a dark background */
    --primary: #9d95f5;
    --primary-dark: #b3adff;
    --on-primary: #14131c;
    --accent-2: #c4a6ff;
    --primary-glow: rgba(157, 149, 245, 0.22);
    --primary-glow-hover: rgba(157, 149, 245, 0.32);

    /* Pastel tints, dark edition */
    --lavender: #2a2545;
    --mint: #16332a;
    --peach: #3a2616;
    --sky: #15293b;
    --rose: #35202c;

    /* Inks, lightened to sit on the dark tints */
    --mint-ink: #5fd6a8;
    --peach-ink: #f2a869;
    --sky-ink: #7dc1eb;
    --rose-ink: #f28cb5;

    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.55);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--lavender);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 640px;
  margin: 0.8rem auto 0;
  color: var(--text-muted);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--primary-glow-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

/* :not(.btn) so these never outrank .btn-primary's own colour —
   the CTA in the nav is an <a class="btn btn-primary"> and would
   otherwise inherit the muted link colour on top of its fill. */
.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--primary);
}

.nav-cta { margin-left: 0.5rem; }

/* Language switch – a segmented pill listing every language at all times,
   in the same order on every page. The current one is an inert segment
   (marked aria-current), the others link to this page's counterpart. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.lang-switch > * {
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

/* :not(.btn) mirrors .nav-links above – the nav CTA must keep its own fill. */
.nav-links .lang-switch a:not(.btn) {
  font-size: inherit;
  font-weight: inherit;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links .lang-switch a:not(.btn):hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.lang-switch .lang-current {
  background: var(--primary);
  color: var(--on-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
  text-align: center;
  background:
    radial-gradient(600px 400px at 15% 20%, var(--lavender) 0%, transparent 70%),
    radial-gradient(500px 380px at 85% 15%, var(--mint) 0%, transparent 70%),
    radial-gradient(550px 420px at 70% 90%, var(--peach) 0%, transparent 70%),
    var(--bg);
}

.hero h1 { max-width: 800px; margin: 0 auto 1.2rem; }

.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badges span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 3.2rem; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.card-link:hover { color: var(--primary-dark); text-decoration: underline; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.icon-lavender { background: var(--lavender); }
.icon-mint { background: var(--mint); }
.icon-peach { background: var(--peach); }
.icon-sky { background: var(--sky); }
.icon-rose { background: var(--rose); }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}

.steps-2 { grid-template-columns: repeat(2, 1fr); }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2rem;
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.step:nth-child(1) .step-number { background: var(--lavender); color: var(--primary); }
.step:nth-child(2) .step-number { background: var(--mint); color: var(--mint-ink); }
.step:nth-child(3) .step-number { background: var(--peach); color: var(--peach-ink); }
.step:nth-child(4) .step-number { background: var(--sky); color: var(--sky-ink); }

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.why-item {
  text-align: center;
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.why-item .big {
  font-size: 1.9rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.4rem;
}

.why-item:nth-child(1) .big { color: var(--primary); }
.why-item:nth-child(2) .big { color: var(--mint-ink); }
.why-item:nth-child(3) .big { color: var(--peach-ink); }
.why-item:nth-child(4) .big { color: var(--sky-ink); }

.why-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--lavender) 0%, var(--surface) 35%);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card .tier { font-size: 1.15rem; font-weight: 700; }

.price-card .price {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0.6rem 0 0.2rem;
  letter-spacing: -0.03em;
}

.price-card .price-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}

.price-card ul {
  list-style: none;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.price-card li {
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.price-card li::before {
  content: "✓";
  color: var(--mint-ink);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card .btn { width: 100%; text-align: center; }

.pricing-note {
  margin-top: 2.5rem;
  text-align: center;
  background: var(--mint);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  color: var(--text);
  font-size: 0.98rem;
}

/* ---------- Testimonials ---------- */
.testimonial-placeholder {
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  color: var(--text-muted);
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(500px 300px at 20% 30%, var(--lavender) 0%, transparent 70%),
    radial-gradient(500px 300px at 80% 70%, var(--rose) 0%, transparent 70%),
    var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 2rem; max-width: 560px; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info-card h3 { margin-bottom: 1.2rem; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0;
  color: var(--text-muted);
}

.contact-line .card-icon {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  margin: 0;
  flex-shrink: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* Honeypot. Off-screen rather than display:none — bots skip fields they can
   tell are hidden, and this one needs to look fillable to them. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile injects a fixed-width iframe, so it needs a flex parent to sit
   centred rather than text-align on the form (which would drag the labels
   along with it). */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 1.1rem;
}

/* fit-content keeps the pill at its natural width — a plain display:block
   would stretch it across the whole form. */
.contact-form button[type="submit"] {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

/* Turnstile renders a fixed 300px-wide iframe that cannot be told to shrink.
   On a 360px screen that plus the card's padding is wider than the container,
   which drags the whole page into horizontal scroll. Scale the widget down and
   give it a layout box matching its scaled size, so it stops forcing the card
   open. transform-origin is left/top because the box is clipped from the
   right — centring is then done by the auto margins. */
@media (max-width: 460px) {
  .contact-form { padding: 1.75rem 1.25rem; }

  .cf-turnstile {
    display: block;
    width: 255px;   /* 300 × 0.85 */
    height: 56px;   /* 65 × 0.85 */
    overflow: hidden;
    margin-inline: auto;
  }

  .cf-turnstile > * {
    transform: scale(0.85);
    transform-origin: left top;
  }
}

/* Notice above the submit button, not a gate in front of it — answering an
   enquiry is the purpose the data was volunteered for. */
.form-consent {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: 1.1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Nothing to announce yet — keep the space collapsed. */
.form-status:empty { display: none; }

.form-status.is-success { background: var(--mint); color: var(--mint-ink); }
.form-status.is-error { background: var(--rose); color: var(--rose-ink); }

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Neutralise .btn-primary:hover's lift while the request is in flight. */
.btn[disabled]:hover {
  transform: none;
  background: var(--primary);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }

.footer-grid ul + h4 { margin-top: 1.8rem; }

.footer-grid li { padding: 0.28rem 0; }

.footer-grid a,
.footer-grid .link-btn {
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color 0.15s ease;
}

.footer-grid .link-btn {
  font-family: var(--font);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-grid a:hover,
.footer-grid .link-btn:hover { color: var(--primary); }

.footer-about p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 280px;
  margin-top: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease,
    background 0.15s ease, transform 0.15s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--on-primary);
  background: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(500px 300px at 20% 20%, var(--sky) 0%, transparent 70%),
    radial-gradient(500px 300px at 80% 60%, var(--lavender) 0%, transparent 70%),
    var(--bg);
}

.page-hero p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2.6rem 0 0.8rem;
}

.legal h2:first-child { margin-top: 0; }

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal p { margin-bottom: 1rem; }

.legal ul {
  margin: 0 0 1rem 1.2rem;
}

.legal li { padding: 0.25rem 0; }

.legal .legal-updated {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* Fields the owner must complete before going live */
.legal .todo {
  background: var(--peach);
  color: var(--peach-ink);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.made-in-ch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Cookie banner & settings ----------
   One element serves both jobs: the consent banner on the first visit and
   the settings panel behind the footer link. It is a plain <div> rather than
   a <dialog> because it must not be modal — visitors can keep reading and
   scrolling while it is up. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 1rem 1rem;
  /* The bar spans the viewport so the card can centre in it, but only the
     card itself should swallow clicks. */
  pointer-events: none;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-card {
  pointer-events: auto;
  max-width: 940px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  animation: cookie-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookie-slide-up {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner-card { animation: none; }
}

.cookie-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--lavender);
  font-size: 1.25rem;
}

.cookie-intro h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.cookie-intro p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
}

.cookie-close:hover { color: var(--text); }

.cookie-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.cookie-option h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }

.cookie-option p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Switch — a button with role="switch"; `aria-checked` is the single source
   of truth for both the screen reader and the visual state. */
.cookie-switch {
  flex-shrink: 0;
  /* Pins every switch to the right edge of its row, so the three line up
     instead of each one trailing the end of its own text block. */
  margin-left: auto;
  position: relative;
  width: 44px;
  height: 24px;
  margin-top: 0.15rem;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(10, 9, 16, 0.3);
  transition: transform 0.2s ease;
}

.cookie-switch[aria-checked="true"] { background: var(--primary); }

.cookie-switch[aria-checked="true"]::after { transform: translateX(20px); }

.cookie-switch[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1.4rem;
}

.cookie-btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.92rem;
}

/* Side by side with the text once there is room for it. The :not([hidden])
   matters – a bare `display: flex` here would outrank the hidden attribute
   and show the summary while the settings view is open. */
@media (min-width: 780px) {
  .cookie-view[data-view="summary"]:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .cookie-view[data-view="summary"] .cookie-intro { flex: 1; }

  .cookie-view[data-view="summary"] .cookie-actions {
    margin-top: 0;
    flex-wrap: nowrap;
  }
}

@media (max-width: 560px) {
  .cookie-actions .cookie-btn { flex: 1 1 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps, .steps-2, .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    gap: 1.2rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 5rem; }
  .section { padding: 3.5rem 0; }
}
