/* YSCCI — white template */

:root {
  --bg: #FFFFFF;
  --panel: #F6F7F9;
  --panel-2: #F1F3F5;
  --line: #E6E8EC;
  --line-strong: #D5D9E0;

  --ink: #0B1B33;
  --ink-2: #1F2D45;
  --text: #3A4657;
  --muted: #6B7686;

  --accent: #0F6E56;
  --accent-2: #128A6B;
  --accent-soft: #E8F3EF;
  --accent-line: #BFE0D4;

  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 12px 32px -16px rgba(11, 27, 51, 0.16);
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.lead strong { color: var(--ink-2); font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 7vw, 96px) 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 56px);
}
.panel-white { background: #fff; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center;
  min-height: 72px; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 0.9rem; font-weight: 800;
}
.brand-logo {
  height: 54px; width: auto; display: block;
}
.site-footer .brand-logo {
  height: 46px;
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.primary-nav a:hover { background: var(--panel); }
.primary-nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; color: var(--ink);
}
@media (max-width: 900px) {
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { display: block; padding: 12px; }
  .nav-toggle { display: inline-flex; }
  .hide-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 1.0625rem; border-radius: 12px; }
.btn-link { font-weight: 600; color: var(--accent); }
.btn-link::after { content: ' →'; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
}
.chip::before {
  content: ''; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 56px); }
.hero-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(15, 110, 86, 0.10), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(11, 27, 51, 0.06), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 72px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Portal UI mock (structure only — no data) */
.ui-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.ui-mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.ui-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.ui-mock-bar span { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
.ui-mock-body { display: grid; grid-template-columns: 150px 1fr; }
@media (max-width: 520px) { .ui-mock-body { grid-template-columns: 1fr; } }
.ui-side { border-right: 1px solid var(--line); padding: 14px; display: grid; gap: 6px; align-content: start; }
.ui-side div { font-size: 0.8rem; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.ui-side div.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ui-main { padding: 18px; display: grid; gap: 12px; }
.ui-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.ui-card small { display: block; font-size: 0.7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.ui-bar { height: 8px; border-radius: 999px; background: var(--panel-2); }
.ui-bar.w60 { width: 60%; } .ui-bar.w40 { width: 40%; } .ui-bar.w80 { width: 80%; }
.ui-list { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.ui-list div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); }
.ui-list div:last-child { border-bottom: 0; }
.ui-list b { font-weight: 600; font-size: 0.7rem; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }

/* Section heads */
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.card ul li { padding-left: 22px; position: relative; font-size: 0.9375rem; color: var(--text); }
.card ul li::before {
  content: ''; position: absolute; left: 2px; top: 8px;
  width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.card-num { font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 10px; }

.check-list {
  list-style: none; margin: 20px 0 0; padding: 20px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  display: grid; gap: 14px;
}
.check-list li { padding-left: 26px; position: relative; font-size: 0.9375rem; color: var(--text); line-height: 1.5; }
.check-list li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list-2col { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
@media (max-width: 700px) { .check-list-2col { grid-template-columns: 1fr; } }

/* Impact grid (icon cards) */
.impact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
}
.impact-panel .eyebrow { display: block; margin-bottom: 10px; }
.impact-panel h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 24px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.impact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.impact-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.impact-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.impact-icon svg { width: 20px; height: 20px; }
.impact-card p { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--text); line-height: 1.35; }
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .impact-grid { grid-template-columns: 1fr; } }

/* Feature rows (panel with text + mock) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.6rem; }
.feature p { color: var(--muted); }
.feature-visual {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  min-height: 220px; padding: 20px; display: grid; gap: 10px; align-content: center;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.step-num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.accordion-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.accordion-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.accordion-trigger {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.accordion-trigger::-webkit-details-marker { display: none; }
.accordion-trigger .idx { color: var(--accent); margin-right: 12px; font-size: 0.85rem; letter-spacing: .08em; }
.accordion-trigger .caret {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--ink); font-weight: 500; transition: transform .2s ease;
}
.accordion-item[open] .caret { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.accordion-body { padding: 0 26px 24px; color: var(--text); max-width: 760px; }

/* Tabs pill */
.pills { display: inline-flex; gap: 4px; background: var(--panel-2); border-radius: 999px; padding: 4px; }
.pill { padding: 8px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--muted); background: transparent; border: 0; }
.pill.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11,27,51,.08); }

/* CTA band */
.cta-band { padding-bottom: clamp(56px, 7vw, 96px); }
.cta-box {
  background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-box h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta-box p { color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto 28px; }
.cta-box .btn-primary { background: #fff; color: var(--ink); }
.cta-box .btn-primary:hover { background: var(--panel); }
.cta-box .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-box .btn-secondary:hover { border-color: #fff; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Portal split */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.side { padding: clamp(32px, 5vw, 56px); }
.side.dark { background: var(--ink); color: #fff; }
.side.dark h2, .side.dark label { color: #fff; }
.side.dark p { color: rgba(255,255,255,.72); }
.side.dark .eyebrow { color: #7FD1B7; }
.side.light { background: #fff; }

form { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,110,86,.15);
}
.side.dark .field input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.side.dark .field input::placeholder { color: rgba(255,255,255,.4); }
.side.dark .btn-primary { background: #fff; color: var(--ink); }
.note { font-size: 0.8125rem; color: rgba(255,255,255,.7); margin-top: 18px; padding: 12px 14px; border-left: 2px solid #7FD1B7; background: rgba(255,255,255,.05); border-radius: 0 8px 8px 0; }
.note a { color: #fff; text-decoration: underline; }
.form-status { font-size: 0.875rem; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--accent); }
.form-status[data-state="error"] { color: #B42318; }
.form-status[data-state="note"] { color: rgba(255,255,255,.85); }

/* Legal docs */
.doc { max-width: 760px; margin: 0 auto; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc .meta { color: var(--muted); font-size: 0.9rem; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.doc ul { padding-left: 20px; } .doc li { margin-bottom: 8px; }
.sla-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 16px 0 28px; }
.sla-table th, .sla-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9375rem; vertical-align: top; }
.sla-table th { background: var(--panel); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sla-table tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; }
.tag.p1 { background: #FDECEC; color: #B42318; }
.tag.p2 { background: #FFF4E5; color: #B25E09; }
.tag.p3 { background: var(--accent-soft); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: var(--muted); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 0.85rem; color: var(--muted); }

/* Motion */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-panel > .hero-grid > div:first-child > *,
.hero-panel > div:not(.hero-grid) > *,
.hero .section-head > * {
  animation: fade-up .7s cubic-bezier(.22,.61,.36,1) both;
}
.hero-panel > .hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero-panel > .hero-grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero-panel > .hero-grid > div:first-child > :nth-child(3) { animation-delay: .25s; }
.hero-panel > .hero-grid > div:first-child > :nth-child(4) { animation-delay: .35s; }
.hero-panel > div:not(.hero-grid) > :nth-child(1) { animation-delay: .05s; }
.hero-panel > div:not(.hero-grid) > :nth-child(2) { animation-delay: .15s; }
.hero-panel > div:not(.hero-grid) > :nth-child(3) { animation-delay: .25s; }
.hero-panel > div:not(.hero-grid) > :nth-child(4) { animation-delay: .35s; }

.hero .ui-mock {
  animation: fade-up .8s cubic-bezier(.22,.61,.36,1) .3s both, float 6s ease-in-out 1.2s infinite;
}
.ui-bar { transform-origin: left; animation: bar-grow 1s cubic-bezier(.22,.61,.36,1) .9s both; }
.ui-row .ui-card:nth-child(2) .ui-bar { animation-delay: 1.05s; }
.ui-row .ui-card:nth-child(3) .ui-bar { animation-delay: 1.2s; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.card:hover { transform: translateY(-3px); }
.card, .step { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card.reveal, .step.reveal, .accordion-item.reveal {
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1), border-color .2s ease, box-shadow .2s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .icon { transition: transform .25s ease, background .25s ease; }
.card:hover .icon { transform: scale(1.08); background: var(--accent-line); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.accordion-body { animation: fade-up .35s ease both; }
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(11,27,51,.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: -100%; z-index: 100;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -16px rgba(11,27,51,.16);
  padding: 20px var(--gutter);
  transition: bottom .3s ease;
}
.cookie-banner.show { bottom: 0; }
.cookie-banner-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 360px; }
.cookie-banner-text h4 { margin-bottom: 6px; }
.cookie-banner-text p { margin: 0; color: var(--muted); font-size: .9rem; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(11,27,51,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal-box {
  background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px);
  max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
.cookie-modal-box h3 { margin-bottom: 10px; }
.cookie-modal-box > p { color: var(--muted); font-size: .9375rem; }
.cookie-category { padding: 16px 0; border-top: 1px solid var(--line); }
.cookie-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cookie-category p { margin: 0; color: var(--muted); font-size: .875rem; }
.cookie-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cookie-modal-links { margin-top: 18px; font-size: .8125rem; color: var(--muted); }
.cookie-modal-links a { color: var(--accent); font-weight: 600; }

.cookie-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch span {
  position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer;
  transition: background .15s ease;
}
.cookie-switch span::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform .15s ease;
}
.cookie-switch input:checked + span { background: var(--accent); }
.cookie-switch input:checked + span::before { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}
