/* ============================================================
   WayPoints Mod — Design Seed S09 (Gaming Utility)
   Light, map/HUD themed, sharp cards, beacon glow accents.
   Plain CSS. Fully editable.
   ============================================================ */

/* ---------- Fonts (self-hosted, works offline in file://) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette picked from the WayPoints icon:
     gold #f0bd24 / orange #e19f17 (wordmark), pin red #d41c20,
     grass green #71a136, dirt brown #5c381d, outline #201900 */
  --bg: #fffaf0;
  --bg-2: #fbf2de;
  --surf: #ffffff;
  --surf-2: #fff6e0;
  --line: rgba(92, 56, 29, .14);
  --line-2: rgba(92, 56, 29, .26);
  --gold: #f0bd24;
  --gold-600: #e19f17;
  --on-gold: #2a1a07;
  --brand: #3f7d1f;
  --brand-600: #2f6216;
  --beacon: #c8181c;
  --pin: #a86a08;
  --violet: #6b4423;
  --text: #24180b;
  --muted: #5f5040;
  --dim: #85745f;
  --danger: #c8181c;
  --ok: #3f7d1f;
  --radius: 14px;
  --radius-sm: 8px;
  --cut: 16px;
  --shadow: 0 18px 46px -22px rgba(92, 56, 29, .28);
  --glow: 0 0 0 1px var(--line), 0 14px 40px -18px rgba(225, 159, 23, .45);
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --font: "Poppins", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(240, 189, 36, .16), transparent 60%),
    radial-gradient(900px 560px at 8% 4%, rgba(113, 161, 54, .10), transparent 60%),
    linear-gradient(var(--bg-2), var(--bg));
  background-attachment: fixed;
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem)
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem)
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem)
}

p {
  margin: 0 0 1rem
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem
}

li {
  margin: .35rem 0
}

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

.section {
  padding-block: clamp(56px, 8vw, 104px);
  position: relative
}

.section--tight {
  padding-block: clamp(44px, 6vw, 72px)
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .85rem;
  color: var(--beacon);
  background: rgba(200, 24, 28, .08);
  border: 1px solid rgba(200, 24, 28, .28);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beacon);
  box-shadow: 0 0 10px var(--beacon)
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch
}

.center {
  text-align: center
}

.center .lead {
  margin-inline: auto
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  will-change: transform
}

.btn svg {
  width: 18px;
  height: 18px
}

/* icon sizing: CSS wins over the svg width/height attribute */
.ic svg {
  width: 24px;
  height: 24px
}

.faq-q .qi svg {
  width: 16px;
  height: 16px
}

.pc h3 svg {
  width: 22px;
  height: 22px
}

.chip .tick svg,
.about-points .ic svg {
  width: 16px;
  height: 16px
}

.article .meta svg {
  width: 15px;
  height: 15px
}

.btn-primary {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  box-shadow: 0 10px 30px -10px rgba(225, 159, 23, .6)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(225, 159, 23, .8)
}

.btn-ghost {
  color: var(--text);
  background: rgba(92, 56, 29, .03);
  border-color: var(--line-2)
}

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

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.08rem
}

.btn-block {
  width: 100%;
  justify-content: center
}

/* ============================================================
   HEADER (injected via partials.js)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent
}

.site-header.scrolled {
  background: rgba(255, 250, 240, .9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(92, 56, 29, .22)
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 74px
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text)
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px -4px rgba(92, 56, 29, .35)
}

.brand span b {
  color: var(--brand)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0
}

.nav-links a {
  font-weight: 500;
  font-size: .96rem;
  padding: .55rem .7rem;
  border-radius: 6px;
  position: relative;
  transition: color .2s
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .32rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--beacon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 2px
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1)
}

.nav-cta {
  margin-left: .4rem
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media (max-width:900px) {
  .nav-toggle {
    display: flex
  }

  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    background: rgba(255, 250, 240, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: .8rem var(--gutter) 1.4rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    max-height: calc(100vh - 74px);
    overflow: auto
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto
  }

  .nav-links a {
    padding: .85rem .4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line)
  }

  .nav-links a::after {
    display: none
  }

  .nav-cta {
    margin: .8rem 0 0
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center
  }
}

/* ============================================================
   HERO (split, HUD visual, floating markers)
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(46px, 7vw, 86px);
  overflow: hidden
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 460px at 30% 30%, #000, transparent 75%);
  opacity: .5
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.4rem 0
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surf);
  border: 1px solid var(--line);
  padding: .4rem .8rem;
  border-radius: 999px
}

.chip .tick {
  color: var(--brand)
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  flex-wrap: wrap
}

.hero-stats .n {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text)
}

.hero-stats .l {
  font-size: .82rem;
  color: var(--dim)
}

.hero-visual {
  position: relative
}

.hero-visual .frame {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surf), var(--bg-2));
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)))
}

.hero-visual .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px -20px rgba(240, 189, 36, .35);
  pointer-events: none
}

.float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .5rem .8rem;
  font-size: .82rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: floaty 5.5s ease-in-out infinite
}

.float-tag .b {
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.float-tag.t1 {
  top: 8%;
  left: -6%;
  animation-delay: 0s
}

.float-tag.t2 {
  bottom: 12%;
  right: -5%;
  animation-delay: 1.6s
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@media (max-width:860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left
  }

  .float-tag {
    display: none
  }
}

/* ============================================================
   ABOUT (alternating: visual left, content right)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center
}

.about-visual .frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surf);
  padding: 16px;
  box-shadow: var(--shadow)
}

.about-points {
  display: grid;
  gap: .9rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none
}

.about-points li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: var(--muted)
}

.about-points .ic {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(63, 125, 31, .12);
  color: var(--brand);
  border: 1px solid rgba(63, 125, 31, .3)
}

.about-points b {
  color: var(--text)
}

@media (max-width:820px) {
  .about-grid {
    grid-template-columns: 1fr
  }

  .about-visual {
    order: -1
  }
}

/* ============================================================
   CARDS (sharp, corner-cut, beacon hover)
   ============================================================ */
.card {
  background: linear-gradient(165deg, var(--surf), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: transform .22s, border-color .25s, box-shadow .25s;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut))
}

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

.card .ic {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(200, 24, 28, .1);
  border: 1px solid rgba(200, 24, 28, .3);
  color: var(--beacon)
}

.card h3 {
  margin-bottom: .4rem
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: .96rem
}

.grid {
  display: grid;
  gap: 1.1rem
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

@media (max-width:900px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:600px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }
}

/* icon color variants for feature cards */
.card.v-green .ic {
  background: rgba(63, 125, 31, .12);
  border-color: rgba(63, 125, 31, .3);
  color: var(--brand)
}

.card.v-pin .ic {
  background: rgba(225, 159, 23, .12);
  border-color: rgba(225, 159, 23, .3);
  color: var(--pin)
}

.card.v-violet .ic {
  background: rgba(107, 68, 35, .14);
  border-color: rgba(107, 68, 35, .32);
  color: var(--violet)
}

/* ============================================================
   HOW IT WORKS (numbered timeline)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step
}

.step {
  position: relative;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem 1.3rem
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand);
  display: block;
  margin-bottom: .6rem;
  font-variant-numeric: tabular-nums
}

.step h3 {
  font-size: 1.1rem
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: .93rem
}

.step .bar {
  position: absolute;
  top: 0;
  left: 1.3rem;
  right: 1.3rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--beacon))
}

@media (max-width:900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:520px) {
  .steps {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   COMPATIBILITY (version chips grid)
   ============================================================ */
.compat-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center
}

.ver-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem
}

.ver {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surf);
  border: 1px solid var(--line);
  padding: .6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: .2s
}

.ver:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px)
}

.ver .d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand)
}

.loader-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: .7rem
}

.loader-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem 1rem
}

.loader-list .tag {
  margin-left: auto;
  font-size: .78rem;
  color: var(--brand);
  font-weight: 600
}

@media (max-width:800px) {
  .compat-wrap {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   DOWNLOAD PANEL (centered, glowing)
   ============================================================ */
.download-panel {
  position: relative;
  background: linear-gradient(160deg, var(--surf-2), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(63, 125, 31, .5)
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(500px 260px at 20% 10%, rgba(63, 125, 31, .28), transparent 60%),
    radial-gradient(460px 240px at 90% 90%, rgba(200, 24, 28, .22), transparent 60%);
  pointer-events: none
}

.download-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px)
}

.download-inner .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.2rem 0
}

.download-inner .meta .chip {
  background: rgba(92, 56, 29, .04)
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .4rem
}

.dl-note {
  font-size: .85rem;
  color: var(--dim);
  margin-top: 1rem
}

.download-visual {
  text-align: center
}

@media (max-width:820px) {
  .download-inner {
    grid-template-columns: 1fr
  }

  .download-visual {
    display: none
  }
}

/* ============================================================
   SAFETY NOTICE (callout banner)
   ============================================================ */
.notice {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: linear-gradient(120deg, rgba(225, 159, 23, .08), rgba(255, 255, 255, .7));
  border: 1px solid rgba(225, 159, 23, .32);
  border-left: 4px solid var(--pin);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem
}

.notice .ic {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(225, 159, 23, .14);
  color: var(--pin);
  border: 1px solid rgba(225, 159, 23, .35)
}

.notice h3 {
  margin-bottom: .3rem
}

.notice p {
  color: var(--muted);
  margin: 0
}

/* ============================================================
   PROS & CONS (two-column)
   ============================================================ */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem
}

.pc {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem
}

.pc h3 {
  display: flex;
  align-items: center;
  gap: .5rem
}

.pc.pros {
  border-top: 3px solid var(--brand)
}

.pc.cons {
  border-top: 3px solid var(--pin)
}

.pc ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.pc li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--muted);
  padding: .5rem 0;
  border-bottom: 1px dashed var(--line)
}

.pc li:last-child {
  border-bottom: none
}

.pc .m {
  flex: 0 0 auto;
  font-weight: 700
}

.pros .m {
  color: var(--brand)
}

.cons .m {
  color: var(--pin)
}

@media (max-width:700px) {
  .pc-grid {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   RELEASE INFO (data rows)
   ============================================================ */
.release {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.release .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line)
}

.release .row:last-child {
  border-bottom: none
}

.release .k {
  color: var(--dim);
  font-weight: 600;
  font-size: .92rem
}

.release .val {
  color: var(--text)
}

.release .val .pill {
  display: inline-block;
  background: rgba(63, 125, 31, .12);
  color: var(--brand);
  border: 1px solid rgba(63, 125, 31, .3);
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600
}

@media (max-width:600px) {
  .release .row {
    grid-template-columns: 1fr;
    gap: .2rem
  }
}

/* ============================================================
   TROUBLESHOOTING (compact list)
   ============================================================ */
.trouble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem
}

.trouble .item {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem
}

.trouble h3 {
  font-size: 1.05rem;
  color: var(--pin);
  margin-bottom: .4rem
}

.trouble p {
  color: var(--muted);
  margin: 0;
  font-size: .94rem
}

@media (max-width:700px) {
  .trouble {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   GUIDES PREVIEW / BLOG CARDS
   ============================================================ */
.post-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, border-color .25s, box-shadow .25s
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: var(--shadow)
}

.post-card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--line)
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.post-card:hover .thumb img {
  transform: scale(1.05)
}

.post-card .body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1
}

.post-card .cat {
  font-size: .76rem;
  font-weight: 600;
  color: var(--beacon);
  margin-bottom: .5rem
}

.post-card h3 {
  font-size: 1.12rem;
  margin-bottom: .4rem
}

.post-card h3 a {
  color: var(--text)
}

.post-card h3 a:hover {
  color: var(--brand)
}

.post-card p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 1rem
}

.post-card .more {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand);
  font-size: .92rem
}

/* ============================================================
   FAQ (category tabs + accordion)
   ============================================================ */
.faq-tabs {
  display: inline-flex;
  gap: .4rem;
  background: var(--surf);
  border: 1px solid var(--line);
  padding: .35rem;
  border-radius: 12px;
  margin-bottom: 1.8rem
}

.faq-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: .6rem 1.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: .2s
}

.faq-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: var(--on-gold)
}

.faq-panel {
  display: none
}

.faq-panel.active {
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr 1fr
}

.faq-item {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
  transition: border-color .2s
}

.faq-item.open {
  border-color: var(--line-2)
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  cursor: pointer
}

.faq-q .qi {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(63, 125, 31, .12);
  color: var(--brand);
  border: 1px solid rgba(63, 125, 31, .3);
  transition: transform .3s;
  font-weight: 700
}

.faq-item.open .qi {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--on-gold)
}

.faq-q .txt {
  flex: 1
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease
}

.faq-a-inner {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: .95rem
}

@media (max-width:760px) {
  .faq-panel.active {
    grid-template-columns: 1fr
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(var(--bg), #f6ead0);
  border-top: 1px solid var(--line);
  margin-top: 40px
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 64px)
}

.footer-brand .brand {
  margin-bottom: 1rem
}

.footer-brand p {
  color: var(--muted);
  max-width: 42ch;
  font-size: .94rem
}

.footer-mail {
  display: inline-block;
  margin-top: .6rem;
  color: var(--beacon);
  font-weight: 500
}

.footer-col h4 {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 1rem
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.footer-col li {
  margin: .55rem 0
}

.footer-col a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none
}

.footer-col a:hover {
  color: var(--brand)
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  font-size: .88rem
}

.footer-bottom a {
  color: var(--muted)
}

.footer-bottom a:hover {
  color: var(--brand)
}

@media (max-width:760px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem
  }
}

/* ============================================================
   SCROLL TO TOP + reveal
   ============================================================ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  z-index: 55;
  background: linear-gradient(135deg, var(--gold), var(--gold-600));
  color: var(--on-gold);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -10px rgba(225, 159, 23, .7);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: .3s
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

.to-top:hover {
  transform: translateY(-3px)
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .float-tag {
    animation: none
  }

  .btn,
  .card,
  .post-card {
    transition: none
  }
}

/* ============================================================
   INNER PAGES (blog list, article, legal, contact)
   ============================================================ */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px);
  position: relative;
  overflow: hidden
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(700px 340px at 70% 0, rgba(200, 24, 28, .12), transparent 65%)
}

.breadcrumb {
  font-size: .86rem;
  color: var(--dim);
  margin-bottom: .9rem
}

.breadcrumb a {
  color: var(--muted)
}

.breadcrumb a:hover {
  color: var(--brand)
}

.breadcrumb span {
  color: var(--dim)
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start
}

@media (max-width:920px) {
  .blog-layout {
    grid-template-columns: 1fr
  }
}

.sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 1.2rem
}

.widget {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem
}

.widget h4 {
  font-size: 1rem;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.widget li {
  margin: .5rem 0
}

.widget a {
  font-size: .93rem
}

.widget.cta {
  background: linear-gradient(160deg, var(--surf-2), var(--bg-2));
  border-color: var(--line-2);
  text-align: center
}

.widget.cta p {
  color: var(--muted);
  font-size: .9rem
}

.article {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.article .feature {
  aspect-ratio: 16/8;
  overflow: hidden;
  border-bottom: 1px solid var(--line)
}

.article .feature img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.article .content {
  padding: clamp(20px, 4vw, 40px)
}

.article .meta {
  color: var(--dim);
  font-size: .86rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

.article h2 {
  margin-top: 1.8rem
}

.article h3 {
  margin-top: 1.4rem;
  color: var(--beacon)
}

.article p,
.article li {
  color: var(--e6, #3b2e20)
}

.article a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px
}

.article .callout {
  background: rgba(200, 24, 28, .06);
  border: 1px solid rgba(200, 24, 28, .25);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0
}

.article .callout p {
  margin: 0;
  color: var(--muted)
}

.related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line)
}

.related h3 {
  color: var(--text)
}

.related ul {
  padding-left: 1.1rem
}

.related a {
  text-decoration: none
}

.prose {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  max-width: 820px
}

.prose h2 {
  margin-top: 1.6rem
}

.prose p,
.prose li {
  color: #3b2e20
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem
}

@media (max-width:700px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

.contact-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem
}

.contact-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  background: rgba(200, 24, 28, .1);
  border: 1px solid rgba(200, 24, 28, .3);
  color: var(--beacon)
}

.contact-card .email {
  font-weight: 600;
  color: var(--text)
}

/* utility */
.mt-0 {
  margin-top: 0
}

.mb-0 {
  margin-bottom: 0
}

.section-head {
  max-width: 64ch;
  margin-bottom: 2.4rem
}

.section-head.center {
  margin-inline: auto
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem
}

.split-head .lead {
  margin: 0
}