/* Content Patcher — site styles */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-var.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("../fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* metric-matched local fallbacks keep line boxes stable while web fonts load */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 101%;
  ascent-override: 100%;
  descent-override: 35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto Slab Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 112%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Kalam Fallback";
  src: local("Comic Sans MS"), local("Arial");
  size-adjust: 98%;
  ascent-override: 104%;
  descent-override: 52%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --font-ui: "Nunito", "Nunito Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sign: "Roboto Slab", "Roboto Slab Fallback", Georgia, serif;
  --font-hand: "Kalam", "Kalam Fallback", "Comic Sans MS", cursive;

  --ink-950: #121013;
  --ink-900: #1d1b1e;
  --ink-850: #232124;
  --ink-800: #262427;
  --ink-700: #322f33;
  --card: #343135;
  --card-line: #48444a;

  --cream-50: #fff7e6;
  --cream-100: #fbedd0;
  --cream-200: #f6e3bd;
  --cream-300: #efd5a6;
  --cream-line: #dcbb84;
  --brown-900: #2b1d12;
  --brown-700: #5b4632;
  --brown-600: #6e5740;

  --green-400: #5cc236;
  --green-500: #44a524;
  --green-600: #2f8a14;
  --green-700: #226c0b;
  --check: #48b229;

  --gold-300: #ffd56a;
  --gold-400: #f7c244;
  --gold-500: #efae1f;

  --navy: #0b1530;
  --footer: #131c18;
  --footer-2: #0e1612;

  --text-light: #f4efe6;
  --text-muted: #cfc9bf;

  --container: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px #2d7be0;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--footer-2);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-light);
  background: var(--ink-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input { font: inherit; color: inherit; }

.deco { pointer-events: none; user-select: none; -webkit-user-select: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold-400);
  color: var(--brown-900);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: #1f6fd1; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(1, 14, 42, 0.92) 0%, rgba(1, 16, 46, 0.55) 62%, rgba(1, 16, 46, 0) 100%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
}
.brand img { width: 30px; height: 44px; flex: none; }
.brand__accent { color: var(--gold-400); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__link svg { width: 20px; height: 20px; flex: none; opacity: 0.95; }
.nav__link:hover { background: rgba(255, 255, 255, 0.1); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -3px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-400);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 14, 28, 0.72);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .site-header__inner { height: 68px; }
  .brand { font-size: 22px; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 64px; left: 12px; right: 12px;
    display: none;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 24, 20, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; padding: 13px 14px; font-size: 17px; }
  .nav__link[aria-current="page"] { background: rgba(247, 194, 68, 0.12); color: var(--gold-300); }
  .nav__link[aria-current="page"]::after { display: none; }
}

/* ---------- Headings that wrap the wooden sign ---------- */
.sign-wrap { display: flex; justify-content: center; font-size: inherit; line-height: 1; font-weight: inherit; }
.hero__h1 { display: flex; flex-direction: column; align-items: flex-start; font-size: inherit; font-weight: inherit; line-height: 1; }
.hero__title { display: block; }
@media (max-width: 599px) { .hero__h1 { align-items: center; } }

/* ---------- Illustrated scene layer ----------
   High-resolution 16:9 art always covers its band edge to edge (any width, any zoom).
   Band heights grow with the viewport width, so on desktop the art keeps the same framing;
   --fx / --fy set the focal point of the crop per section and breakpoint. */
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.scene picture { display: block; height: 100%; }
.scene__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
}

/* ---------- Wooden sign (title) ---------- */
.sign {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 5px 26px 9px;
  border: 6px solid transparent;
  border-image: url("../img/ui/sign-frame.png") 36 / 12px / 0 stretch;
  background: url("../img/ui/plank.png") repeat 0 0 / 192px 16px;
  background-clip: padding-box;
  color: #4a2310;
  font-family: var(--font-sign);
  font-weight: 800;
  font-size: 58px;
  line-height: 0.93;
  letter-spacing: 0.005em;
  text-align: center;
  -webkit-text-stroke: 1.25px #2e1206;
  text-shadow: 0 2px 0 rgba(255, 224, 160, 0.55);
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.18)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}
.sign__line { display: block; }
.sign__leaf { position: absolute; }
.sign__leaf--l { width: 42px; height: 74px; left: -34px; top: 10px; }
.sign__leaf--r { width: 30px; height: 50px; right: -26px; top: calc(50% - 18px); }
.sign--sm { font-size: 46px; padding: 8px 34px 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 9px 26px 9px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease;
}
.btn svg { width: 28px; height: 28px; flex: none; }
.btn__text { display: flex; flex-direction: column; align-items: flex-start; }
.btn__title { font-size: 17px; }
.btn__sub { font-size: 12.5px; font-weight: 600; opacity: 0.9; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #57bb2f 0%, #3d9a1c 55%, #2c8410 100%);
  border-color: #7ad455;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 8px 18px rgba(10, 40, 4, 0.4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.btn--primary:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 12px 24px rgba(10, 40, 4, 0.45); }

.btn--ghost {
  color: #fff;
  background: rgba(14, 16, 34, 0.78);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.btn--ghost:hover { background: rgba(26, 30, 56, 0.88); border-color: rgba(255, 255, 255, 0.5); }

.btn--pill {
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid var(--gold-400);
  background: rgba(10, 8, 26, 0.55);
  color: #fff;
  font-size: 16px;
  gap: 10px;
}
.btn--pill svg { width: 18px; height: 18px; }
.btn--pill:hover { background: rgba(247, 194, 68, 0.16); }

.btn--wide { width: 100%; justify-content: center; min-height: 72px; font-size: 22px; border-radius: 16px; }
.btn--wide svg { width: 34px; height: 34px; }

/* ---------- Section edges (seamless smooth vector SVG tiles, tools/gen_edges.py) ---------- */
.edge-top::before,
.edge-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  pointer-events: none;
  background-repeat: repeat-x;
}

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sec-head__icon { flex: none; }
.sec-head h2 { font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.sec-head p { font-size: 15px; line-height: 1.35; margin-top: 1px; }

/* =========================================================
   HOME
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: #0b3a8a;
  --fx: 50%; --fy: 64%;
  min-height: 30vw;
  display: flex;
  flex-direction: column;
}
.hero .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  /* darkens the art behind the copy column; follows the centred container at any width */
  background:
    linear-gradient(90deg, rgba(4, 12, 22, 0.55) 0, rgba(4, 12, 22, 0.42) calc(50% - 600px), rgba(4, 12, 22, 0.22) calc(50% - 160px), rgba(4, 12, 22, 0) calc(50% + 140px)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(10, 16, 12, 0.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 82px;
  padding-bottom: 48px;
}
.hero__copy { max-width: 560px; }
.hero .sign { margin-left: 34px; margin-bottom: 14px; }
.hero__title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero__title .hl, .hl { color: var(--gold-400); }
.hero__lead {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.38;
  font-weight: 600;
  color: #fff;
  max-width: 470px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.hero__strip { display: none; }
.br-wide { display: inline; }
@media (max-width: 599px) { .br-wide { display: none; } }

@media (max-width: 899px) {
  .hero { --fx: 46%; --fy: 80%; }
  .hero__content { padding-top: 88px; padding-bottom: 56px; }
  .hero__copy { max-width: 410px; }
  .hero__actions { width: max-content; max-width: calc(100vw - 48px); }
  .hero__actions .btn { padding-inline: 16px 20px; gap: 12px; }
  .hero .sign { font-size: 48px; margin-left: 28px; }
  .hero__title { font-size: 26px; }
  .hero__lead { font-size: 15.5px; max-width: 380px; }
}

/* mobile: centred copy over the forest + a dedicated farm strip below */
@media (max-width: 599px) {
  .hero { --fx: 30%; --fy: 85%; min-height: 0; }
  .hero > .scene { bottom: 256px; }
  .hero .scene::after {
    background: linear-gradient(180deg, rgba(4, 10, 24, 0.3) 0%, rgba(4, 12, 20, 0.5) 45%, rgba(4, 12, 20, 0.42) 100%);
  }
  .hero__content { padding-top: 92px; padding-bottom: 30px; text-align: center; }
  .hero__copy { max-width: none; display: flex; flex-direction: column; align-items: center; }
  .hero .sign { margin-left: 0; font-size: clamp(38px, 11.5vw, 48px); padding: 8px 22px 12px; }
  .hero__title { font-size: clamp(21px, 6.4vw, 25px); max-width: 330px; }
  .hero__lead { font-size: 14.5px; max-width: 330px; }
  .hero__actions { justify-content: center; margin-top: 20px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__strip {
    display: block;
    position: relative;
    z-index: 1;
    height: 256px;
    overflow: hidden;
    --fx: 50%; --fy: 50%;
  }
  .hero__strip .scene__img { z-index: 0; }
  .hero__chicken {
    position: absolute;
    z-index: 1;
    left: calc(50% - 46px);
    bottom: 22px;
    width: 60px; height: 88px;
  }
}

/* ---------- Features ---------- */
.features, .gallery, .install, .site-footer, .page-body, .teaser { overflow-x: clip; }
.features {
  position: relative;
  z-index: 4;
  background:
    radial-gradient(1200px 300px at 50% 0%, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--ink-800) 0%, #211f22 100%);
  padding: 12px 0 42px;
}
.features::before {
  top: -38px; height: 40px;
  background-image: url("../img/ui/edge-dark-up.svg");
  background-size: 1600px 40px;
  background-position: 50% 0;
}
.features .sec-head p { color: var(--text-muted); }
.features__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 212px;
  gap: 16px;
  align-items: stretch;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #3a373b 0%, #312e32 100%);
  border: 1px solid var(--card-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(247, 194, 68, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 22px rgba(0, 0, 0, 0.35); }
.feature-card__icon { height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.feature-card h3 { font-size: 14.5px; font-weight: 800; line-height: 1.25; color: #fff; }
.feature-card p { margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--text-muted); }

.callout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 66px 4px;
}
.callout__text {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--gold-400);
  transform: rotate(-9deg);
  transform-origin: 0 50%;
  margin: 0;
}
.callout__swoosh { width: 150px; height: 22px; margin: 4px 0 0 18px; color: var(--gold-400); transform: rotate(-9deg); }
.callout__chicken { position: absolute; z-index: 8; right: 2px; bottom: 0; width: 44px; height: 65px; }


@media (max-width: 1199px) {
  .features__layout { grid-template-columns: 1fr; }
  .callout { flex-direction: row; align-items: center; justify-content: flex-end; gap: 18px; padding: 8px 64px 0 0; min-height: 80px; }
  .callout__swoosh { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  /* 4 cards in the first row; the callout fills the space next to the 5th card */
  .features__layout { position: relative; }
  .callout { position: absolute; right: 0; bottom: 0; width: calc(75% - 9px); height: calc((100% - 12px) / 2); justify-content: center; padding: 0 70px 0 0; }
}
@media (max-width: 899px) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .features { padding: 18px 0 44px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature-card { padding: 16px 10px 14px; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .callout { justify-content: center; padding: 14px 56px 0 0; }
  .callout__text { font-size: 23px; transform: rotate(-6deg); }
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  z-index: 5;
  color: var(--brown-900);
  background:
    radial-gradient(800px 220px at 20% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--cream-200) 0%, #f3ddb2 60%, var(--cream-300) 100%);
  padding: 14px 0 26px;
}
.gallery::before {
  top: -30px; height: 32px;
  background-image: url("../img/ui/edge-cream-up.svg");
  background-size: 1600px 32px;
}
.gallery::after {
  bottom: -30px; height: 32px;
  background-image: url("../img/ui/edge-cream-down.svg");
  background-size: 1600px 32px;
}
.gallery .sec-head p { color: var(--brown-700); }
.gallery__layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 204px;
  gap: 16px;
  align-items: start;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: #fff3da;
  border: 1px solid var(--cream-line);
  box-shadow: 0 6px 14px rgba(96, 64, 24, 0.18);
}
.compare figure { position: relative; overflow: hidden; border-radius: 8px; }
.compare img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.35s ease; }
.compare figure:hover img { transform: scale(1.04); }
.compare figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 4px 6px;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0) 0%, rgba(20, 16, 14, 0.72) 45%, rgba(20, 16, 14, 0.86) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.checklist-card {
  position: relative;
  padding: 18px 16px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4dcad 0%, #edd09b 100%);
  border: 1px solid var(--cream-line);
  box-shadow: 0 6px 14px rgba(96, 64, 24, 0.16);
}
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--check); }
.gallery__chest { position: absolute; right: -4px; bottom: -78px; width: 69px; height: 63px; z-index: 2; }
.gallery__note { margin-top: 10px; font-size: 12.5px; color: var(--brown-600); }

@media (max-width: 1199px) {
  .gallery__layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checklist-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-right: 100px; }
  .checklist { grid-template-columns: repeat(4, auto); gap: 10px 22px; }
  .gallery__chest { right: 18px; bottom: calc(50% - 32px); }
}
@media (max-width: 899px) {
  .checklist { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 599px) {
  .gallery__layout { grid-template-columns: 1fr; gap: 12px; }
  .checklist-card { padding: 16px 92px 16px 16px; }
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Easy installation ---------- */
.install {
  position: relative;
  z-index: 4;
  background:
    radial-gradient(900px 260px at 50% 100%, rgba(84, 52, 120, 0.22), rgba(84, 52, 120, 0) 70%),
    linear-gradient(180deg, #252326 0%, var(--ink-850) 100%);
  padding: 30px 0 42px;
}
.install::after {
  bottom: -34px; height: 36px;
  background-image: url("../img/ui/edge-dark-down.svg");
  background-size: 1600px 36px;
  background-position: 30% 0;
}
.install .sec-head p { color: var(--text-muted); }
.install__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 222px;
  gap: 28px;
  align-items: center;
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  margin: 0; padding: 0; list-style: none;
}
.step { position: relative; display: grid; grid-template-rows: 46px auto auto; justify-items: center; text-align: center; padding: 0 6px; }
.step__num {
  position: absolute;
  left: calc(50% - 76px);
  top: 4px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd86a, #f2b01c 70%);
  color: #2a1a05;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 2px 0 #b97d06, 0 4px 10px rgba(0, 0, 0, 0.35);
}
.step__icon { align-self: center; }
.step__icon--svg { width: 42px; height: 42px; }
.step__icon--svg svg { width: 100%; height: 100%; }
.step__icon--svg { color: #fff; }
.step h3 { margin-top: 8px; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.step p { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text-muted); max-width: 200px; }
.steps__sep { display: flex; justify-content: center; padding-top: 12px; }
.steps__arrow { width: 22px; height: 22px; color: #b9b3aa; }

.req-card {
  padding: 18px 20px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(64, 70, 90, 0.42), rgba(44, 48, 64, 0.42));
  border: 1px solid rgba(160, 170, 200, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.req-card h3 { font-size: 17px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.req-card .checklist li { font-size: 14.5px; font-weight: 600; }

@media (max-width: 1199px) {
  .install__layout { grid-template-columns: 1fr; }
  .req-card { max-width: 520px; width: 100%; justify-self: center; }
  .req-card .checklist { grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 28px; }
}
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .steps__sep { display: none; }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step {
    grid-template-columns: 38px 46px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    justify-items: start;
    text-align: left;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .step__num { position: static; grid-row: 1 / span 2; align-self: center; }
  .step__icon { grid-row: 1 / span 2; }
  .step h3 { grid-column: 3; margin-top: 0; }
  .step p { grid-column: 3; margin-top: 2px; max-width: none; }
  .req-card .checklist { grid-template-columns: 1fr; }
}

/* ---------- FAQ & support teaser ---------- */
.teaser {
  position: relative;
  isolation: isolate;
  background: #2a1450;
  --fx: 50%; --fy: 60%;
  min-height: 21vw;
  display: flex;
  align-items: center;
}
.teaser .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 6, 30, 0.5) 0, rgba(10, 6, 30, 0.4) calc(50% - 600px), rgba(10, 6, 30, 0.18) calc(50% - 160px), rgba(10, 6, 30, 0) calc(50% + 80px));
}
.teaser__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 64px;
}
.teaser__copy { max-width: 470px; }
.teaser .sec-head { align-items: flex-start; margin-bottom: 18px; }
.teaser .sec-head__icon { margin-top: 2px; }
.teaser .sec-head p { color: #fff; font-weight: 600; font-size: 16px; margin-top: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.teaser .sec-head h2 { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.teaser .sec-head a { color: var(--gold-300); text-underline-offset: 3px; }
.teaser .btn--pill { margin-left: 58px; }

/* "Happy Modding!" sits next to the View FAQ button by default; on wide screens it moves into
   the trees right of the cabin (the art spans the full width there, so % positions track it). */
.happy {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: calc(max(24px, (100% - 1152px) / 2) + 250px);
  font-size: 30px;
  text-align: center;
  white-space: nowrap;
  color: var(--gold-400);
}
.happy__text { font-family: var(--font-hand); font-weight: 700; font-size: 1em; line-height: 1.1; transform: rotate(-9deg); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); margin: 0; }
.happy__swoosh { width: 5.6em; height: 0.76em; margin: 0.06em auto 0; transform: rotate(-8deg); }
.happy__heart { width: 1.18em; height: 1.06em; margin: 0.24em 0 0 3.9em; }
@media (min-width: 1800px) {
  .happy { bottom: auto; top: 13%; left: 86.5%; font-size: 1.77vw; }
}
@media (max-width: 899px) {
  .teaser { flex-direction: column; align-items: stretch; --fy: 70%; }
  .teaser__inner { padding-bottom: 8px; }
  .happy { position: relative; bottom: auto; left: auto; align-self: flex-end; margin: 0 24px 64px auto; }
}
@media (max-width: 599px) {
  .teaser { --fx: 68%; --fy: 60%; }
  .teaser__inner { flex-direction: column; align-items: stretch; padding-top: 52px; padding-bottom: 8px; }
  .teaser .btn--pill { margin-left: 0; }
  .happy { font-size: 28px; }
}

/* ---------- What is Content Patcher? (home) ---------- */
.about {
  position: relative;
  z-index: 3;
  color: var(--brown-900);
  background:
    radial-gradient(800px 240px at 80% 15%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--cream-200) 0%, #f3ddb2 60%, var(--cream-300) 100%);
  padding: 58px 0 42px;
  overflow-x: clip;
}
.about::after {
  bottom: -30px; height: 32px;
  background-image: url("../img/ui/edge-cream-down.svg");
  background-size: 1600px 32px;
  background-position: 40% 0;
}
.about .sec-head p { color: var(--brown-700); }
.about__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; }
.about__text { font-size: 16px; line-height: 1.6; color: #3d2e20; max-width: 520px; }
.about__text + .about__text { margin-top: 10px; }
.about__text a { color: #1d5fae; font-weight: 700; text-underline-offset: 3px; }
.about__text a:hover { color: #0d4486; }
.about__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pill-link,
.about__links a,
.page-body .toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff6e2;
  border: 1px solid var(--cream-line);
  color: var(--brown-900);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(96, 64, 24, 0.12);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.about__links a:hover,
.page-body .toc a:hover { background: #fffaf0; border-color: #c99a52; color: var(--brown-900); transform: translateY(-1px); }
.about__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.about__points li {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff6e2 0%, #fbedd0 100%);
  border: 1px solid var(--cream-line);
  box-shadow: 0 6px 14px rgba(96, 64, 24, 0.14);
}
.about__points li::before { content: ""; position: absolute; left: 18px; top: 0; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--green-500); }
.about__points h3 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.about__points p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #4a3826; }
@media (max-width: 1199px) { .about__layout { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 767px) { .about__points { grid-template-columns: 1fr; } .about { padding: 52px 0 36px; } }

/* ---------- Footer: guides row ---------- */
.footer__guides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer__guides-title { margin: 0; font-size: 12.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); }
.footer__guides ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.footer__guides a { display: inline-block; padding: 6px 2px; border-radius: 6px; font-size: 14px; font-weight: 600; color: #cfc9bf; text-decoration: none; transition: color 0.15s ease; }
.footer__guides a:hover, .footer__guides a[aria-current="page"] { color: var(--gold-300); }
@media (max-width: 599px) {
  .footer__guides { flex-direction: column; }
  .footer__guides ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0 8px; text-align: center; }
  .footer__guides a { display: block; padding: 10px 4px; }
}

/* ---------- Documentation pages (guide, tokens, troubleshooting, ...) ---------- */
.doc-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.doc-stack--after-tabs { margin-top: 28px; }
.doc-stack .panel + .panel { margin-top: 0; }
.doc { width: 100%; min-width: 0; scroll-margin-top: 20px; }
.doc > * + * { margin-top: 14px; }
.doc > h2 + * { margin-top: 12px; }
.doc > h3 { margin-top: 26px; }
.doc > .steps-list { margin-top: 14px !important; }
.doc > .tip { margin-top: 18px; }
.doc .facts--wide, .facts--wide { grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); }
.doc-tree .folder-tree { max-width: 380px; }
.doc .checklist li { font-size: 16px; font-weight: 600; line-height: 1.5; align-items: flex-start; color: #3d2e20; }
.doc .checklist svg { margin-top: 2px; }

.toc { width: 100%; max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.toc__title { margin: 0; font-size: 12.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-700); }
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.panel code, .faq-a code, .tip code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(91, 70, 50, 0.1);
  color: #3a2414;
  overflow-wrap: anywhere;
}
.code {
  margin: 0;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #1f1d22;
  border: 1px solid #3b3640;
  box-shadow: 0 8px 20px rgba(40, 24, 8, 0.2);
}
.code__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #e9e3d6;
  background: #2b2830;
  border-bottom: 1px solid #3b3640;
}
.code__label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-400); }
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #f1ece2;
  tab-size: 2;
  scrollbar-color: #5b5560 transparent;
}
.code pre code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.code pre:focus-visible { outline: 3px solid var(--gold-300); outline-offset: -3px; border-radius: 0; }
@media (max-width: 599px) {
  .code pre { padding: 14px; font-size: 13px; }
  .doc .facts--wide, .facts--wide { grid-template-columns: 1fr; }
}

/* ---------- FAQ groups ---------- */
.faq-group { max-width: 880px; margin: 0 auto; }
.faq-group + .faq-group { margin-top: 32px; }
.faq-group[hidden] { display: none; }
.faq-group__title { margin: 0 0 12px 4px; font-size: 21px; font-weight: 900; color: var(--brown-900); }
.faq-item h3 { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 4;
  color: var(--text-light);
  background: linear-gradient(180deg, var(--footer) 0%, var(--footer-2) 100%);
  padding: 30px 0 22px;
}
.site-footer::before {
  top: -38px; height: 40px;
  background-image: url("../img/ui/edge-footer-up.svg");
  background-size: 1600px 40px;
  background-position: 60% 0;
}
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer__brand { display: flex; align-items: center; gap: 16px; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, 0.09); }
.footer__brand img { width: 44px; height: 65px; flex: none; }
.footer__name { font-size: 22px; font-weight: 900; line-height: 1.1; color: #fff; text-decoration: none; border-radius: 6px; }
.footer__desc { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--text-muted); max-width: 250px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 4px; margin: 0; padding: 0; list-style: none; }
.footer__links a {
  display: inline-block;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #e7e2d8;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.footer__links a:hover { color: var(--gold-300); background: rgba(255, 255, 255, 0.05); }
.footer__links a[aria-current="page"] { color: var(--gold-300); }
.footer__copy { padding-top: 18px; text-align: center; font-size: 14px; color: #b9bfb4; }

@media (max-width: 1199px) {
  .footer__top { grid-template-columns: 1fr; gap: 18px; }
  .footer__brand { border-right: 0; padding-right: 0; justify-content: center; }
  .footer__links { justify-content: center; gap: 4px 18px; }
}
@media (max-width: 599px) {
  .site-footer { padding-top: 26px; padding-bottom: 26px; }
  .footer__brand { flex-direction: column; text-align: center; gap: 10px; }
  .footer__desc { margin-inline: auto; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; text-align: center; }
  .footer__links a { display: block; padding: 11px 6px; }
}

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  background: #2a8be0;
  --fx: 50%; --fy: 66%;
  min-height: max(360px, 23vw);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 58%, rgba(6, 18, 34, 0.42), rgba(6, 18, 34, 0) 75%);
}
.page-hero__inner { position: relative; z-index: 2; padding: 104px 0 56px; display: flex; flex-direction: column; align-items: center; }
.page-hero, .hero, .nf { overflow-x: clip; }
.page-hero .sign, .nf .sign { max-width: calc(100vw - 96px); }
.page-hero .sign { font-size: 54px; padding: 8px 40px 12px; }
.page-hero__lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.6);
}
@media (max-width: 899px) { .page-hero .sign { font-size: 44px; } }
@media (max-width: 599px) {
  .page-hero { --fx: 50%; --fy: 55%; min-height: 300px; }
  .page-hero__inner { padding: 92px 0 46px; }
  .page-hero .sign { font-size: clamp(30px, 9.6vw, 40px); padding: 6px 22px 10px; }
  /* one long word (e.g. "Troubleshooting") must fit inside the sign on narrow phones */
  .page-hero .sign--long { font-size: clamp(20px, 6.6vw, 40px); }
  .page-hero .sign--long .sign__leaf--l { width: 28px; height: 49px; left: -22px; top: 2px; }
  .page-hero .sign--long .sign__leaf--r { width: 20px; height: 33px; right: -16px; top: calc(50% - 12px); }
  .page-hero__lead { font-size: 16px; padding-inline: 8px; }
}

.page-body {
  position: relative;
  z-index: 5;
  color: var(--brown-900);
  background:
    radial-gradient(900px 300px at 15% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--cream-200) 0%, #f3ddb2 70%, var(--cream-300) 100%);
  padding: 34px 0 86px;
}
.page-body::before {
  top: -30px; height: 32px;
  background-image: url("../img/ui/edge-cream-up.svg");
  background-size: 1600px 32px;
}
.page-body a:not(.btn) { color: #1d5fae; font-weight: 700; text-underline-offset: 3px; }
.page-body a:not(.btn):hover { color: #0d4486; }

.panel {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff6e2 0%, #fbedd0 100%);
  border: 1px solid var(--cream-line);
  box-shadow: 0 10px 26px rgba(96, 64, 24, 0.16);
  padding: 30px;
}
.panel + .panel { margin-top: 22px; }
.panel, .faq-a { overflow-wrap: anywhere; }
.facts { grid-template-columns: max-content minmax(0, 1fr); }
.panel h2 { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--brown-900); }
.panel h3 { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--brown-900); }
.panel p, .panel li { font-size: 16px; line-height: 1.6; color: #3d2e20; }
.panel p + p { margin-top: 10px; }
.panel ul, .panel ol { padding-left: 22px; margin: 10px 0 0; }
.panel li + li { margin-top: 6px; }
.panel--narrow { max-width: 880px; margin-inline: auto; }
@media (max-width: 599px) { .panel { padding: 22px 18px; border-radius: 16px; } .panel h2 { font-size: 21px; } }

/* ---------- Download page ---------- */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.release { display: flex; flex-direction: column; gap: 22px; }
.release__head { display: flex; align-items: center; gap: 22px; }
.release__chicken { width: 88px; height: 130px; flex: none; }
.release .release__label { font-size: 21px; font-weight: 800; color: var(--brown-900); }
.release .release__version { font-size: 38px; font-weight: 900; line-height: 1.1; color: var(--brown-900); letter-spacing: -0.01em; }
.release .release__for { margin-top: 4px; font-size: 15px; color: var(--brown-700); font-weight: 600; }
.req-list h2 { font-size: 26px; font-weight: 900; margin-bottom: 14px; }
.req-list .checklist { gap: 14px; }
.req-list .checklist li { font-size: 17px; }
.req-list .checklist svg { width: 24px; height: 24px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 16px 0 0; }
.facts dt { font-weight: 800; color: var(--brown-900); }
.facts dd { margin: 0; color: #3d2e20; }
.panel .placeholder-note { font-size: 14px; color: var(--brown-600); margin-top: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.two-col .panel + .panel { margin-top: 0; }
@media (max-width: 899px) { .dl-grid, .two-col { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .release__head { gap: 16px; }
  .release__chicken { width: 60px; height: 88px; }
  .release .release__version { font-size: 30px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* ---------- Guide (tabs) ---------- */
.tabs { max-width: 980px; margin-inline: auto; }
.tabs__list { display: flex; gap: 6px; padding: 0 6px; }
.tabs__tab {
  flex: 1;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #343135 0%, #262427 100%);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tabs__tab:hover { background: linear-gradient(180deg, #403c41 0%, #2e2b2f 100%); }
.tabs__tab[aria-selected="true"] {
  background: linear-gradient(180deg, #fff6e2 0%, #fbedd0 100%);
  color: var(--brown-900);
  box-shadow: 0 -1px 0 var(--cream-line), 1px 0 0 var(--cream-line), -1px 0 0 var(--cream-line);
}
.tabs__panel { border-top-left-radius: 18px; border-top-right-radius: 18px; }
.tabs__panel[hidden] { display: none; }
.tab-body { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 6px; font-size: 17px !important; }
.steps-list li::before { content: counter(s) "."; font-weight: 900; color: var(--brown-900); }
.steps-list li + li { margin-top: 0 !important; }
.tip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6dc9c 0%, #efcd84 100%);
  border: 1px solid #d9b25d;
  font-size: 16px;
  color: #3d2e20;
}
.tip img { width: 28px; height: 46px; flex: none; }

.folder-tree {
  border-radius: 14px;
  background: #fbfaf8;
  border: 1px solid #ddd6ca;
  box-shadow: 0 8px 18px rgba(60, 40, 10, 0.14);
  overflow: hidden;
}
.folder-tree__bar { display: flex; gap: 6px; padding: 10px 12px; background: #ece8e1; border-bottom: 1px solid #ddd6ca; }
.folder-tree__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfc8bc; }
.folder-tree ul { list-style: none; margin: 0 !important; padding: 8px !important; }
.folder-tree li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 17px !important; font-weight: 700; color: #2b2b2b !important; margin: 0 !important; }
.folder-tree li.is-sub { padding-left: 34px; }
.folder-tree li.is-hl { background: #e9f4e1; }
.folder-tree img { width: 46px; height: 38px; flex: none; }
.folder-tree__file { width: 46px; height: 30px; flex: none; color: #7a6a58; }
@media (max-width: 899px) { .tab-body { grid-template-columns: 1fr; gap: 24px; } .folder-tree { max-width: 360px; } }
@media (max-width: 599px) {
  .tabs__list { gap: 4px; padding: 0 2px; }
  .tabs__tab { font-size: 14px; padding: 10px 6px; min-height: 52px; border-radius: 12px 12px 0 0; }
  .steps-list li { font-size: 16px !important; }
}

/* ---------- FAQ ---------- */
.faq-tools { max-width: 880px; margin: 0 auto 18px; }
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 18px; width: 22px; height: 22px; color: #3b4b45; pointer-events: none; }
.search input {
  width: 100%;
  min-height: 58px;
  padding: 12px 18px 12px 52px;
  border-radius: 14px;
  border: 1px solid var(--cream-line);
  background: #fffaf0;
  color: var(--brown-900);
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(96, 64, 24, 0.14);
}
.search input::placeholder { color: #8a7a68; }
.search input:focus-visible { outline: 3px solid #1f6fd1; outline-offset: 2px; }
.faq-list { max-width: 880px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.faq-item {
  border-radius: 14px;
  background: linear-gradient(180deg, #fff6e2 0%, #fbedd0 100%);
  border: 1px solid var(--cream-line);
  box-shadow: 0 4px 12px rgba(96, 64, 24, 0.12);
}
.faq-item[hidden] { display: none; }
.faq-item h2 { margin: 0; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 0;
  background: none;
  color: var(--brown-900);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
}
.faq-q svg { width: 22px; height: 22px; flex: none; transition: transform 0.2s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-q:hover { background: rgba(255, 255, 255, 0.45); }
.faq-q:focus-visible { outline: 3px solid #1f6fd1; outline-offset: -3px; }
.faq-a { padding: 0 20px 18px; }
.faq-a p, .faq-a li { font-size: 16px; line-height: 1.6; color: #3d2e20; }
.faq-a p + p { margin-top: 10px; }
.faq-a ol, .faq-a ul { padding-left: 22px; margin: 8px 0 0; }
.faq-a li + li { margin-top: 4px; }
.faq-empty { max-width: 880px; margin: 14px auto 0; text-align: center; font-weight: 700; color: var(--brown-700); }
.faq-more { max-width: 880px; margin: 26px auto 0; text-align: center; font-size: 16px; }
@media (max-width: 599px) { .faq-q { font-size: 16px; padding: 14px 16px; } .faq-a { padding: 0 16px 16px; } }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.support-grid .panel + .panel { margin-top: 0; }
.support-card { display: flex; flex-direction: column; gap: 10px; }
.support-card__icon { align-self: flex-start; }
.support-card .btn { align-self: flex-start; margin-top: 6px; }
.contact-line { font-size: 17px !important; font-weight: 800; }
@media (max-width: 899px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- Legal / prose ---------- */
.prose h2 { margin-top: 26px; font-size: 21px; }
.prose h2:first-child { margin-top: 0; }
.prose .updated { font-size: 14px; color: var(--brown-600); margin-bottom: 16px; }
.ph { background: #fde7a6; border-radius: 4px; padding: 0 4px; }

/* ---------- 404 ---------- */
.nf {
  position: relative;
  isolation: isolate;
  background: #00061d;
  --fx: 50%; --fy: 75%;
  min-height: max(560px, 31vw);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body:has(.nf) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:has(.nf) main { flex: 1; display: flex; flex-direction: column; }
.nf { flex: 1; }
.nf .scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 55%, rgba(0, 4, 20, 0.45), rgba(0, 4, 20, 0) 80%); }
.nf__inner { position: relative; z-index: 2; padding: 112px 0 84px; display: flex; flex-direction: column; align-items: center; }
.nf .sign { font-size: 74px; padding: 4px 56px 8px; letter-spacing: 0.04em; }
.nf h2 { margin-top: 24px; font-size: 30px; font-weight: 900; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.nf p { margin-top: 8px; max-width: 440px; font-size: 17px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.nf .btn { margin-top: 26px; }
.nf__chicken { position: absolute; z-index: 2; left: calc(50% - 470px); bottom: 70px; width: 88px; height: 130px; }
.nf__q {
  position: absolute; z-index: 2;
  left: calc(50% - 452px); bottom: 214px;
  font-family: var(--font-sign);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: #fff;
  text-shadow: 3px 3px 0 #2a2340;
}
@media (max-width: 1199px) { .nf__chicken { left: 32px; } .nf__q { left: 50px; } }
@media (max-width: 599px) {
  .nf { --fx: 72%; --fy: 80%; min-height: 0; }
  .nf__inner { padding: 96px 0 150px; }
  .nf .sign { font-size: 56px; padding: 2px 40px 6px; }
  .nf h2 { font-size: 25px; }
  .nf p { font-size: 15.5px; }
  .nf__chicken { left: 18px; bottom: 26px; width: 60px; height: 88px; }
  .nf__q { left: 30px; bottom: 112px; font-size: 44px; }
}
