/* Kakobuy CF site — source-audit layout (not a clone of reference-page CSS) */
:root {
  color-scheme: light;
  --ink: #0f1720;
  --muted: #5a6775;
  --line: #d5dde6;
  --paper: #f3f6f8;
  --panel: #ffffff;
  --rail: #0b3d4a;
  --rail-2: #0f5566;
  --accent: #0f8f8a;
  --accent-dark: #0a6662;
  --warn: #b45309;
  --soft-teal: #e7f5f4;
  --soft-slate: #eef2f5;
  --shadow: 0 14px 36px rgba(15, 23, 32, 0.1);
  --radius: 14px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

/* Top bar: light tool-bar style, not reference sticky white+orange underline */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(243, 246, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-brand img {
  width: 108px;
  height: 30px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--rail);
  border-color: var(--rail);
}

/* Home hero: split rail + panel (not full-bleed dark masthead like reference) */
.hero-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  min-height: 420px;
  border-bottom: 1px solid var(--line);
}

.hero-rail {
  background:
    linear-gradient(165deg, var(--rail) 0%, var(--rail-2) 55%, #0a2c35 100%);
  color: #e8f7f6;
  padding: 48px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.hero-rail .badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-rail h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.08;
}

.hero-rail p {
  margin: 0;
  color: rgba(232, 247, 246, 0.86);
  font-size: 15px;
  max-width: 34ch;
}

.hero-panel {
  background: #fff;
  padding: 48px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.hero-panel h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.15;
}

.hero-panel .lead {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.ghost {
  background: transparent;
  color: var(--rail);
  border-color: var(--line);
}

.button.ghost:hover {
  border-color: var(--rail);
  background: var(--soft-teal);
}

.meta-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Inner page tops: compact band, color varies — not reference soft full mastheads */
.page-band {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.page-faq .page-band {
  border-top: 4px solid #2563eb;
}

.page-guide .page-band {
  border-top: 4px solid var(--warn);
}

.page-alternatives .page-band {
  border-top: 4px solid #15803d;
}

.page-band-inner {
  padding: 36px 0 30px;
}

.page-band .eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.page-band h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  max-width: 18ch;
}

.page-band .lead {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}

.page-band .actions {
  margin-top: 18px;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 22px;
  max-width: 64ch;
}

.section-head .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Source checklist — primary module on Home (before categories) */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: check;
}

.check-grid li {
  counter-increment: check;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15, 23, 32, 0.03);
}

.check-grid li::before {
  content: counter(check, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft-teal);
  color: var(--accent-dark);
  font-weight: 850;
  font-size: 13px;
}

.check-grid strong {
  display: block;
  margin-bottom: 4px;
}

.check-grid span {
  color: var(--muted);
  font-size: 14px;
}

/* Category: chips + map side-by-side (not reference 3-col index then figure) */
.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-wrap li {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.map-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card a {
  display: block;
}

.map-card img {
  width: 100%;
  height: auto;
}

.map-card figcaption {
  padding: 12px 14px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--soft-slate);
}

/* Order-note prep strip */
.note-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px;
}

.note-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Compact FAQ on home: 2-col flat Q/A */
.mini-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-faq article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.mini-faq h3 {
  margin: 0;
  font-size: 15px;
}

.mini-faq p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* FAQ page: two-column groups with left sticky toc feel */
.faq-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-toc {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 8px;
}

.faq-toc a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.faq-toc a:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.faq-groups {
  display: grid;
  gap: 28px;
}

.faq-group h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.faq-dl {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-dl > div {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.faq-dl > div:first-child {
  border-top: 0;
}

.faq-dl dt {
  font-weight: 800;
  font-size: 15px;
}

.faq-dl dd {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Usage: vertical timeline (not 4 equal cards) */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-left: 3px solid var(--accent);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 22px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline .step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.timeline .step-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.timeline .step-card p {
  margin: 0;
  color: var(--muted);
}

.prep-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prep-box li {
  background: #fff7ed;
  border: 1px solid #f1dfc4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

/* Alternatives: stacked rows with brand mark, not 2x2 cards */
.alt-rows {
  display: grid;
  gap: 12px;
}

.alt-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.alt-row .brand-tag {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rail);
}

.alt-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.compare-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

.compare-list li::before {
  content: "✓";
  color: var(--accent-dark);
  font-weight: 900;
}

/* Bottom CTA: full teal band, not deep black reference clone */
.final-band {
  margin-top: 8px;
  padding: 42px 0;
  background: linear-gradient(120deg, var(--rail), var(--rail-2));
  color: #eefbfa;
  text-align: left;
}

.final-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
}

.final-band p {
  margin: 12px 0 0;
  max-width: 56ch;
  color: rgba(238, 251, 250, 0.86);
}

.final-band .actions {
  margin-top: 18px;
}

.final-band .button {
  background: #fff;
  color: var(--rail);
  border-color: #fff;
}

.final-band .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.site-footer {
  padding: 22px 0;
  background: #0b1218;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.soft-bg {
  background: var(--soft-slate);
}

.teal-bg {
  background: var(--soft-teal);
}

@media (max-width: 900px) {
  .hero-split,
  .category-layout,
  .faq-layout,
  .note-strip,
  .mini-faq,
  .prep-box,
  .alt-row {
    grid-template-columns: 1fr;
  }

  .faq-toc {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .alt-row {
    align-items: start;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .hero-rail,
  .hero-panel {
    padding: 28px 20px;
  }

  .button {
    width: 100%;
  }
}
