/* ============================================================
   TRAWERS — Biuro Rachunkowe
   Static site styles. Mobile-first, responsive.
   ============================================================ */

:root {
  /* Color tokens — overridable by Tweaks */
  --accent: #ea8a3b;            /* primary accent (orange/gold/navy variants) */
  --accent-hover: #d77623;
  --accent-ink: #ffffff;        /* text color on top of accent */

  --ink: #1c2230;               /* near-black text */
  --ink-soft: #4b5566;
  --ink-mute: #8c95a4;
  --rule: #e6e8ec;

  --bg: #ffffff;
  --bg-alt: #f5f3ee;            /* cream alternating */
  --bg-dark: #1a2433;           /* navy section */
  --bg-dark-soft: #243142;

  --ghost: rgba(28, 34, 48, 0.07);
  --ghost-on-dark: rgba(255, 255, 255, 0.08);

  /* Typography — overridable by Tweaks */
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-accent: "Newsreader", Georgia, serif; /* italic intro paragraphs */

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 68px;
  --radius: 10px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Navigation (sticky top)
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 14px;
  color: var(--ink);
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}
.brand--footer img {
  height: 44px;
  max-width: 160px;
}
@media (max-width: 480px) {
  .brand img { height: 32px; }
}

.nav__links {
  display: none;
  gap: 4px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  display: inline-block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
@media (min-width: 1040px) {
  .nav__links a { padding: 10px 14px; }
}
.nav__links a:hover { color: var(--ink); background: var(--ghost); }
.nav__links a.is-active { color: var(--accent); }

.nav__cta {
  display: none;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav__cta:hover { background: var(--accent-hover); }

/* Language switcher */
.lang-switch {
  display: none;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  background: white;
}
.lang-switch a {
  display: inline-block;
  padding: 5px 11px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-mute);
  border-radius: 999px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active {
  background: var(--ink);
  color: white;
}

.nav__toggle {
  width: 42px; height: 42px;
  border: 1px solid var(--rule);
  background: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .icon-close { display: none; }
body.menu-open .nav__toggle .icon-open { display: none; }
body.menu-open .nav__toggle .icon-close { display: block; }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: white;
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 40;
  border-bottom: 1px solid var(--rule);
}
body.menu-open .nav__drawer {
  opacity: 1; transform: none; pointer-events: auto;
}
.nav__drawer a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav__drawer a:last-of-type { border-bottom: 0; }
.nav__drawer .nav__cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  align-self: flex-start;
  color: var(--accent-ink);
  border-bottom: 0;
  font-size: 14px;
}

/* Mobile drawer language switcher */
.nav__drawer .lang-switch {
  display: inline-flex;
  margin-top: 24px;
  align-self: flex-start;
  background: transparent;
  border-color: var(--rule);
}
.nav__drawer .lang-switch a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 0;
  border-radius: 999px;
}
.nav__drawer .lang-switch a.is-active { color: white; }

@media (min-width: 940px) {
  .nav__links, .nav__cta, .lang-switch { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */

section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: rgba(255,255,255,.86); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: white; }

/* Big translucent section name behind subtitle */
.section__eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 120px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(28, 34, 48, 0.08);
  margin: 0 0 -0.12em;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}
.section--dark .section__eyebrow { color: rgba(255, 255, 255, 0.10); }
.section--dark.section--accent-eyebrow .section__eyebrow { color: rgba(255,255,255,.12); }

.section__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-top: 12px;
}
.section__subtitle::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--accent);
}

.section__lede {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  margin: 20px 0 28px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.section--dark .section__lede { color: rgba(255,255,255,.74); }
.section__body { max-width: 64ch; color: var(--ink-soft); }
.section--dark .section__body { color: rgba(255,255,255,.72); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: clamp(540px, 80vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f1ede6;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero__image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(26, 36, 51, .82) 0%,
    rgba(26, 36, 51, .58) 38%,
    rgba(26, 36, 51, .18) 70%,
    rgba(26, 36, 51, 0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 15vw, 140px);
  color: white;
  max-width: 720px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
}
.hero__kicker::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(255,255,255,.92);
  margin-bottom: 36px;
}
.hero__subtitle b { font-weight: 600; color: white; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.32);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--block { width: 100%; justify-content: center; }
.btn .chev { width: 12px; height: 12px; }

/* ============================================================
   Two-column layouts for O nas / Doświadczenie
   ============================================================ */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 920px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse { grid-template-columns: 1fr 1.05fr; }
  .split--reverse .split__media { order: -1; }
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ghost);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Certificate badge */
.cert {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  max-width: 360px;
}
.cert__seal {
  width: 56px; height: 56px; flex: 0 0 56px;
  background: #c91f1f;
  color: white;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: .04em;
  text-align: center;
  padding: 4px;
}
.cert__seal--lang {
  background: var(--bg-dark);
  font-size: 17px;
  letter-spacing: .08em;
}
.cert__text {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.cert__text b { font-weight: 700; }
.cert__text small {
  display: block;
  color: var(--ink-mute);
  font-size: 11px;
  margin-top: 2px;
}

/* ============================================================
   Numbered list (Doświadczenie)
   ============================================================ */

.numbers {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}
.numbers__item h4 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}
.numbers__item h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--accent);
}
.numbers__item p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============================================================
   Offer list (Oferta)
   ============================================================ */

.offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
  margin: 32px 0;
}
@media (min-width: 720px) { .offer { grid-template-columns: 1fr 1fr; } }

.offer li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  list-style: none;
  font-size: 15px;
  color: var(--ink);
}
.offer__check {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.offer__check svg { width: 12px; height: 12px; }

.offer-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: white;
  border-left: 3px solid var(--accent);
  font-size: 15px;
  color: var(--ink-soft);
}
.section--alt .offer li { border-bottom-color: rgba(28,34,48,.08); }

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 780px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -16px rgba(28,34,48,.18);
  border-color: rgba(0,0,0,.12);
}
.price-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 58px;
}
.price-card__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  margin-block: 2px 8px;
}
.price-card__amount .from {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 4px;
}
.price-card__amount .num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
}
.price-card__amount .unit {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--ink-mute);
}
.price-card__note {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: -4px;
  min-height: 58px;
}
.price-card__note b { color: var(--ink); font-weight: 700; }
.price-card__scope {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.price-card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.price-card ul li {
  position: relative;
  padding-left: 24px;
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 3px; top: .3em;
  width: 6px; height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-foot {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

/* ============================================================
   Tech / dark section feature row
   ============================================================ */

.feature-row {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 720px) { .feature-row { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.feature__icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14.5px;
  color: rgba(255,255,255,.66);
  line-height: 1.55;
}
.feature__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .18s ease;
}
.feature__link:hover { opacity: .7; }
.feature__link span { font-size: 12px; }

/* ============================================================
   Biuro / contact info
   ============================================================ */

.office {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) { .office { grid-template-columns: 1fr 1.3fr; } }

.office__info dl {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
}
.office__info dt {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.office__info dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.office__info dd a:hover { color: var(--accent); }

.office__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--rule);
  background: var(--ghost);
}
.office__map iframe {
  width: 100%; height: 100%; border: 0;
}
/* Click-to-load consent placeholder (keeps Google cookies off until requested) */
.map-consent {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; cursor: pointer;
  border: 0; background: var(--bg-alt); color: var(--ink-soft);
  font-family: var(--font-body); transition: background .2s var(--ease);
}
.map-consent:hover { background: var(--ghost); }
.map-consent__pin { color: var(--accent); }
.map-consent__title { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.map-consent__note { font-size: .82rem; max-width: 34ch; line-height: 1.5; }
.office__map-cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: white;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.office__map-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

/* ============================================================
   Contact form
   ============================================================ */

.contact {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) { .contact { grid-template-columns: 1fr 1.1fr; } }

.contact__chans {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.chan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.chan:hover { border-color: var(--accent); }
.chan__icon {
  width: 40px; height: 40px;
  background: var(--ghost);
  color: var(--accent);
  border-radius: 999px;
  display: grid; place-items: center;
  flex: 0 0 40px;
}
.chan__text small {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.chan__text b {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 15.5px;
}

.form {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label .req { color: var(--accent); }
.field input,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fafaf8;
  color: var(--ink);
  outline: 0;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: white;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.form__consent input { margin-top: 3px; accent-color: var(--accent); }
.form__consent a { color: var(--ink); border-bottom: 1px solid var(--rule); }

.form__status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.form__status.is-ok { display: block; background: #e8f5ec; color: #1d6e3a; border: 1px solid #b9e0c4; }
.form__status.is-err { display: block; background: #fde8e6; color: #9a2a1f; border: 1px solid #f1c5c1; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: #11192a;
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
  font-size: 13.5px;
}
.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  margin-bottom: 14px;
}
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
}
.footer__brand p { color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.6; }

.footer__legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.footer__legal a { color: rgba(255,255,255,.7); }

/* ============================================================
   Fade-in observer (toggled via main.js)
   ============================================================ */

.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.tweak-fade .fade-in {
  opacity: 0;
  transform: translateY(18px);
}
html.tweak-fade .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Tweaks panel slot (mounted by tweaks-panel.jsx)
   ============================================================ */
#tweaks-root { position: fixed; z-index: 2147483646; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html.tweak-fade .fade-in { opacity: 1; transform: none; }
}

/* ============================================================
   Legal pages (privacy / cookies)
   ============================================================ */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal .container { max-width: 820px; }
.legal__meta { color: var(--ink-mute); font-size: .9rem; margin: 6px 0 0; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.legal h2 {
  font-size: 1.2rem; margin: 2.4em 0 .6em;
  padding-top: 1.4em; border-top: 1px solid var(--rule);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.02rem; margin: 1.4em 0 .4em; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal p { margin: .7em 0; }
.legal ul, .legal ol { margin: .7em 0; padding-left: 1.3em; }
.legal li { margin: .35em 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-hover); }
.legal strong { color: var(--ink); }
.legal table {
  width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem;
  display: block; overflow-x: auto;
}
.legal th, .legal td {
  border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.legal__todo {
  background: #fff7ed; border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin: 1.4em 0;
}
.legal__todo strong { color: var(--accent-hover); }
.legal__back { display: inline-block; margin-top: 2.5em; font-family: var(--font-display); font-weight: 600; }

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(28, 34, 48, .20);
  padding: 18px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 340px; margin: 0;
  font-size: .88rem; line-height: 1.6; color: var(--ink-soft);
}
.cookie-banner__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 11px 22px; }
/* Reject button lives on a light background here, so override the dark-hero ghost style */
.cookie-banner__actions .btn--ghost {
  color: var(--ink);
  border-color: var(--rule);
}
.cookie-banner__actions .btn--ghost:hover { background: var(--ghost); }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
