/* ==========================================================================
   Carton — warm paper, shipping-label typography, native client site
   ========================================================================== */

:root {
  --paper: #f4efe5;
  --paper-2: #eae1d1;
  --paper-3: #fffaf0;
  --ink: #191512;
  --ink-2: #2d2721;
  --muted: #6f6559;
  --muted-2: #958a7c;
  --line: #d3c7b5;
  --line-strong: #bcae9a;
  --orange: #d96a22;
  --orange-dark: #b34f0e;
  --orange-soft: #f0c4a2;
  --yellow: #f3c94f;
  --cream: #fbf6ec;
  --white: #fffdf8;
  --max: 1200px;
  --sans: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
  --shadow: 12px 12px 0 rgba(25, 21, 18, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(rgba(25, 21, 18, 0.12) 0.55px, transparent 0.75px);
  background-size: 19px 19px;
}

header,
main,
footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--orange); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Top line + header
   -------------------------------------------------------------------------- */
.topline {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.topline-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topline-release {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cfc4b5;
}
.topline-release b {
  color: var(--white);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fbf67;
  box-shadow: 0 0 0 3px rgba(127, 191, 103, 0.16);
}
.topline-platform {
  padding-left: 9px;
  border-left: 1px solid #4a423a;
  color: #a69b8c;
}
.topline-rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.18s ease;
}
.topline-rank:hover { color: var(--white); }
.topline-rank-label {
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 6px;
  font-size: 10.5px;
  line-height: 1.4;
}
.topline-rank-note {
  color: #a69b8c;
  font-weight: 400;
  font-size: 11px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 229, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(25, 21, 18, 0.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text b {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: -0.03em;
}
.brand-text small {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav .nav-only-mobile { display: none; }
.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.header-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle::before { top: 13px; }
.menu-toggle span { top: 20px; }
.menu-toggle::after { top: 27px; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Shared type, buttons and links
   -------------------------------------------------------------------------- */
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h2 {
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.section { padding: 96px 0; }
.section-head {
  max-width: 880px;
  margin-bottom: 48px;
}
.section-head p {
  margin-top: 18px;
  max-width: 670px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
}
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.section-head-row > div { max-width: 760px; }
.list-caption {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 5px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 1px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 5px 5px 0 rgba(25, 21, 18, 0.18);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--yellow);
  box-shadow: 5px 5px 0 rgba(25, 21, 18, 0.15);
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border-color: #71685d;
}
.btn-outline-light:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link:hover { color: var(--orange-dark); border-color: var(--ink); }
.text-link.light { color: var(--paper); }
.text-link.light:hover { color: var(--yellow); }
.dot { color: var(--orange); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 78px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 56px;
}
.hero h1 {
  max-width: 730px;
  font-size: clamp(3rem, 5.8vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}
.hero h1 span { display: block; }
.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--orange);
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 12px;
  background: var(--yellow);
  z-index: -1;
  opacity: 0.62;
}
.hero-lead {
  max-width: 600px;
  margin-top: 30px;
  color: #51483e;
  font-size: 18px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}
.hero-facts > div { padding-right: 18px; }
.hero-facts > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.hero-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.hero-facts dd { font-size: 13.5px; font-weight: 700; }

.hero-art { position: relative; min-width: 0; }
.box-scene {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 24px 10px 54px 24px;
}
.box-card {
  position: relative;
  background: var(--paper-3);
  border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--orange);
  padding: 20px 22px 18px;
  transform: rotate(-1.4deg);
}
.box-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(25, 21, 18, 0.22);
  pointer-events: none;
}
.box-card-head,
.box-card-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.box-card-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  padding-right: 72px;
}
.box-card-foot {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 14px;
}
.box-logo {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 22px auto 12px;
  border-radius: 24px;
  box-shadow: 0 9px 22px rgba(91, 52, 15, 0.2);
}
.box-name {
  position: relative;
  text-align: center;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.box-sub {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.box-barcode {
  position: relative;
  height: 44px;
  margin: 24px 0 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px,
    var(--ink) 9px 13px,
    transparent 13px 17px,
    var(--ink) 17px 18px,
    transparent 18px 23px
  );
}
.box-spec {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.box-spec span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  padding: 2px 5px;
}
.box-note {
  position: absolute;
  left: -10px;
  bottom: 10px;
  z-index: 4;
  max-width: 305px;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 16px;
  box-shadow: 7px 7px 0 rgba(217, 106, 34, 0.28);
  transform: rotate(1deg);
}
.box-note span {
  display: block;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.box-note b { font-size: 12px; font-weight: 500; line-height: 1.55; }
.box-stamp {
  position: absolute;
  right: -8px;
  top: -6px;
  z-index: 5;
  width: 92px;
  height: 92px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(10deg);
  color: var(--orange-dark);
}
.box-stamp span {
  font-size: 9px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--orange-soft);
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.box-stamp b {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Manifest strip
   -------------------------------------------------------------------------- */
.manifest {
  background: var(--ink);
  color: var(--paper);
}
.manifest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.manifest-grid > div {
  padding: 25px 24px;
  border-left: 1px solid #403830;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.manifest-grid > div:first-child { border-left: 0; padding-left: 0; }
.manifest-grid strong {
  font-family: var(--serif);
  font-size: 2.55rem;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: -0.04em;
}
.manifest-grid span {
  font-size: 11.5px;
  color: #b9ae9f;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Feature section
   -------------------------------------------------------------------------- */
.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 52px;
  align-items: start;
}
.app-frame {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 11px 11px 0 #dfd2bf;
  transform: rotate(-0.5deg);
}
.app-frame-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.app-frame-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.app-frame-bar > span:nth-child(1) { background: var(--orange); }
.app-frame-bar > span:nth-child(2) { background: var(--yellow); }
.app-frame-bar p {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.app-frame img {
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.app-frame figcaption {
  padding: 11px 14px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}
.feature-notes { border-top: 2px solid var(--ink); }
.feature-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.feature-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange-dark);
  letter-spacing: 0.06em;
  padding-top: 5px;
}
.feature-note h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.feature-note p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Config band
   -------------------------------------------------------------------------- */
.config-band {
  background: var(--ink);
  color: var(--paper);
  padding: 94px 0;
  position: relative;
  overflow: hidden;
}
.config-band::before {
  content: "CTN";
  position: absolute;
  right: -12px;
  bottom: -58px;
  font-family: var(--serif);
  font-size: 4.7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -0.06em;
  pointer-events: none;
}
.config-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 68px;
  align-items: start;
}
.config-copy h2 { color: var(--paper); }
.config-copy p {
  margin-top: 22px;
  max-width: 470px;
  color: #b5aa9b;
  font-size: 16px;
  line-height: 1.85;
}
.overlay-panel {
  background: var(--paper-3);
  color: var(--ink);
  border: 2px solid var(--paper-3);
  box-shadow: 13px 13px 0 rgba(217, 106, 34, 0.42);
  transform: rotate(0.45deg);
}
.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 7px;
  white-space: nowrap;
}
.overlay-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.overlay-row code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--orange-dark);
  font-weight: 700;
}
.overlay-row span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.overlay-code {
  margin: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.overlay-code-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #3f3730;
  color: #a99d8d;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.overlay-code pre {
  margin: 0;
  padding: 13px 14px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  color: #f0d6b9;
}
.overlay-foot {
  padding: 0 18px 15px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.28);
}
.step-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange-dark);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.quick-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  color: var(--paper);
  padding: 15px 20px;
  margin-top: 18px;
}
.quick-command > div { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.quick-command span {
  font-size: 11px;
  color: #a99d8d;
  letter-spacing: 0.03em;
}
.quick-command code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--yellow);
}
.copy-btn {
  flex: 0 0 auto;
  border: 1px solid #60564b;
  background: transparent;
  color: var(--paper);
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.copy-btn:hover { background: var(--paper); color: var(--ink); }

/* --------------------------------------------------------------------------
   Ranking band
   -------------------------------------------------------------------------- */
.rank-band {
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 58px 0;
}
.rank-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 54px;
}
.rank-band-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  max-width: 650px;
}
.rank-band-copy p {
  margin-top: 16px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: #4a3e21;
}
.rank-band-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 26px;
  text-decoration: none;
  box-shadow: 8px 8px 0 rgba(25, 21, 18, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.rank-band-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 rgba(25, 21, 18, 0.2);
  background: var(--orange-dark);
}
.rank-band-link span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.rank-band-link strong {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.rank-band-link small { font-size: 11px; color: #bdb1a1; }
.rank-band-link.compact { padding: 16px 18px; margin-top: 14px; box-shadow: 5px 5px 0 rgba(25, 21, 18, 0.15); }
.rank-band-link.compact strong { font-size: 21px; }

/* --------------------------------------------------------------------------
   Notes
   -------------------------------------------------------------------------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.note-card {
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 var(--orange);
}
.note-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 21px 18px;
  text-decoration: none;
}
.note-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.note-card-meta span {
  color: var(--orange-dark);
  border-bottom: 1px solid var(--orange-soft);
  padding-bottom: 2px;
}
.note-card h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.32;
  letter-spacing: -0.025em;
}
.note-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}
.note-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 11px;
  color: var(--muted-2);
}
.note-card-foot span:last-child { color: var(--ink); font-weight: 700; }
.notes-grid-large .note-card-link { padding: 26px 26px 22px; min-height: 310px; }
.notes-grid-large .note-card h3 { font-size: 27px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
  align-items: start;
}
.faq-intro { position: sticky; top: 112px; }
.faq-intro h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.faq-intro p {
  margin-top: 17px;
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 2px 20px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--orange-dark);
  line-height: 1.2;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 40px 20px 0; }
.faq-answer p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Final CTA + footer
   -------------------------------------------------------------------------- */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0;
}
.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.final-cta h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: var(--paper);
}
.final-cta p {
  margin-top: 13px;
  max-width: 610px;
  color: #b3a798;
  font-size: 14.5px;
  line-height: 1.75;
}
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 11px; flex: 0 0 auto; }
.site-footer {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand b { font-family: var(--serif); font-size: 18px; letter-spacing: -0.02em; }
.footer-brand span { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-nav a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--orange-dark); }
.footer-copy {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Page heroes and breadcrumb
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 54px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 250, 240, 0.7), rgba(234, 225, 209, 0.38));
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-dark); }
.page-hero h1 {
  font-size: clamp(2.8rem, 4.7vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.page-lead {
  margin-top: 24px;
  max-width: 690px;
  color: #51483e;
  font-size: 17.5px;
  line-height: 1.82;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.page-meta span { padding: 0 13px; border-left: 1px solid var(--line-strong); }
.page-meta span:first-child { padding-left: 0; border-left: 0; }

/* Download hero */
.dl-hero { padding-bottom: 60px; }
.dl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 64px;
}
.release-card {
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 11px 11px 0 var(--ink);
  padding: 22px 24px;
  transform: rotate(1deg);
}
.release-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.release-card-top img { border-radius: 11px; }
.live-pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 8px;
}
.release-number {
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 20px;
}
.release-card dl { margin-top: 18px; border-top: 1px solid rgba(25, 21, 18, 0.3); }
.release-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(25, 21, 18, 0.18);
  font-size: 11.5px;
}
.release-card dt { color: #66541e; }
.release-card dd { font-weight: 700; text-align: right; }
.release-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}
.release-link:hover { color: var(--orange-dark); border-color: var(--orange-dark); }

/* Filters */
.filter-bar { display: flex; gap: 0; flex: 0 0 auto; border: 1.5px solid var(--ink); }
.filter-btn {
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: 9px 15px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.filter-btn:first-child { border-left: 0; }
.filter-btn:hover { background: var(--paper-2); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); }

/* Download cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dl-card {
  min-width: 0;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  padding: 25px 25px 21px;
  display: flex;
  flex-direction: column;
}
.dl-card.is-recommended { border-width: 2px; box-shadow: 7px 7px 0 var(--orange); }
.dl-card[hidden] { display: none; }
.dl-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.dl-platform {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.dl-card h2 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.rec-badge {
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.04em;
}
.dl-desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
}
.dl-links {
  margin-top: 18px;
  border-top: 1.5px solid var(--ink);
}
.dl-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.16s ease, padding 0.16s ease;
}
.dl-link:hover { background: var(--ink); color: var(--paper); padding-left: 9px; padding-right: 9px; }
.dl-link > span:first-child { font-size: 13.5px; font-weight: 700; }
.dl-kind {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 1px 5px;
  white-space: nowrap;
}
.dl-link:hover .dl-kind { color: #c9bcaa; border-color: #5d5348; }
.dl-size {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
}
.dl-link:hover .dl-size { color: var(--yellow); }
.dl-command {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 10px 8px 12px;
  margin-top: 14px;
}
.dl-command code {
  min-width: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--yellow);
  white-space: nowrap;
}
.dl-command .copy-btn { padding: 4px 7px; font-size: 9.5px; }
.sha { margin-top: 12px; }
.sha summary {
  cursor: pointer;
  font-size: 10.5px;
  color: var(--muted);
  list-style: none;
}
.sha summary::-webkit-details-marker { display: none; }
.sha summary::before { content: "+"; display: inline-block; width: 14px; color: var(--orange-dark); }
.sha[open] summary::before { content: "−"; }
.sha code {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted);
  word-break: break-all;
  background: var(--paper-2);
  padding: 7px 8px;
}
.callout {
  margin-top: 20px;
  background: rgba(255, 250, 240, 0.7);
  border-left: 4px solid var(--orange);
  padding: 15px 19px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.callout strong { color: var(--ink); }

/* Kernel + verify */
.kernel-section { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kernel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 70px;
  align-items: center;
}
.kernel-grid h2 { max-width: 590px; }
.kernel-grid p {
  margin-top: 18px;
  max-width: 590px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}
.kernel-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 26px;
  box-shadow: 10px 10px 0 var(--orange);
}
.kernel-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #b7ab9c;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.kernel-number {
  font-family: var(--serif);
  font-size: 4.7rem;
  line-height: 1;
  color: var(--yellow);
  margin-top: 16px;
  letter-spacing: -0.06em;
}
.kernel-number span { font-size: 2.2rem; }
.kernel-panel p {
  margin-top: 12px;
  color: #b7ab9c;
  font-size: 12px;
  line-height: 1.7;
}
.kernel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.kernel-tags span {
  border: 1px solid #554b40;
  color: #d9cebf;
  font-family: var(--mono);
  font-size: 9px;
  padding: 3px 6px;
}
.verify-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.code-block {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.code-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #3f3730;
  color: #a99d8d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 16px 15px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: #f0d6b9;
}
.verify-note { margin-top: 16px; color: var(--muted); font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Ranking page
   -------------------------------------------------------------------------- */
.rank-hero {
  background:
    linear-gradient(118deg, rgba(243, 201, 79, 0.22), rgba(244, 239, 229, 0.55) 55%, rgba(217, 106, 34, 0.1));
}
.rank-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 64px;
  align-items: center;
}
.rank-counter {
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 21px 23px;
  transform: rotate(1.2deg);
}
.rank-counter-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: #695719;
}
.rank-counter strong {
  display: block;
  font-family: var(--serif);
  font-size: 4.7rem;
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 10px 0 12px;
}
.rank-counter-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rank-counter-tags span {
  background: rgba(25, 21, 18, 0.08);
  font-size: 9.5px;
  padding: 3px 6px;
}
.rank-counter p {
  margin-top: 16px;
  border-top: 1px solid rgba(25, 21, 18, 0.25);
  padding-top: 10px;
  font-size: 10px;
  color: #695719;
}
.sample-note-wrap { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.sample-note {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  align-items: baseline;
}
.sample-note strong {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
}
.sample-note p { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.price-unit { margin-left: 2px; font-size: 9.5px; font-weight: 400; color: var(--muted-2); }
.ranking-top { padding-bottom: 70px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.airport-card {
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  padding: 21px 21px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 5px 5px 0 #ded2c1;
}
.airport-card.is-featured {
  border-width: 2px;
  box-shadow: 8px 8px 0 var(--orange);
}
.airport-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.airport-rank b {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange-dark);
  letter-spacing: 0.06em;
}
.airport-rank span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--muted);
}
.airport-score { text-align: right; line-height: 1; }
.airport-score strong {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.04em;
}
.airport-score span { font-family: var(--mono); font-size: 8.5px; color: var(--muted-2); margin-left: 2px; }
.airport-name { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.airport-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  border-radius: 50%;
}
.airport-name h3 {
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.airport-name p {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.airport-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  border-left: 1px solid var(--line);
}
.airport-facts > div {
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.airport-facts dt { font-size: 9px; color: var(--muted-2); margin-bottom: 2px; }
.airport-facts dd { font-size: 11.5px; font-weight: 700; line-height: 1.45; }
.airport-summary {
  margin-top: 15px;
  color: #534a40;
  font-size: 13px;
  line-height: 1.75;
}
.airport-points {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}
.airport-points li {
  position: relative;
  padding-left: 12px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}
.airport-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--orange);
}
.airport-fit {
  margin-top: 13px;
  padding: 8px 10px;
  background: var(--paper-2);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.airport-card-foot {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.airport-sample {
  font-size: 9px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}
.airport-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.airport-go:hover { background: var(--orange); border-color: var(--orange); }
.ranking-all { padding-top: 0; }
.airport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.airport-grid .airport-card { min-height: 0; }
.airport-grid .airport-card-top { padding-bottom: 11px; }
.airport-grid .airport-summary { margin-top: 13px; }

.method-band {
  background: var(--ink);
  color: var(--paper);
  padding: 86px 0;
}
.method-band .section-head p { color: #b5aa9b; }
.method-band .section-head h2 { color: var(--paper); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #443b32;
  border: 1px solid #443b32;
}
.method-grid article { background: var(--ink); padding: 27px 25px 29px; }
.method-grid h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.method-grid p { margin-top: 12px; color: #b5aa9b; font-size: 13.5px; line-height: 1.8; }
.risk-section { padding-bottom: 92px; }
.risk-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}
.risk-copy h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.risk-copy p {
  margin-top: 17px;
  max-width: 440px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.risk-list { border-top: 2px solid var(--ink); }
.risk-list li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.risk-list strong { font-size: 14.5px; }
.risk-list span { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* --------------------------------------------------------------------------
   Notes index
   -------------------------------------------------------------------------- */
.notes-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: center;
}
.notes-hero h1 { font-size: clamp(2.8rem, 4.6vw, 4.1rem); }
.notes-hero-card {
  background: var(--ink);
  color: var(--paper);
  padding: 23px 25px 25px;
  box-shadow: 10px 10px 0 var(--orange);
  transform: rotate(-0.8deg);
}
.notes-hero-card > span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  border-bottom: 1px solid #4a4139;
  padding-bottom: 9px;
}
.notes-hero-card ol { margin-top: 14px; }
.notes-hero-card li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 13px;
  color: #d4c9ba;
  border-bottom: 1px solid #373029;
}
.notes-hero-card li b {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--yellow);
  font-weight: 400;
}
.notes-hero-card .text-link { color: var(--paper); margin-top: 17px; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.article-hero {
  padding: 50px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255, 250, 240, 0.6), rgba(234, 225, 209, 0.25));
}
.article-hero-inner { max-width: 1000px; }
.article-hero h1 {
  max-width: 930px;
  font-size: clamp(2.55rem, 4.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.article-deck {
  max-width: 760px;
  margin-top: 22px;
  color: #51483e;
  font-size: 18px;
  line-height: 1.8;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.article-meta span,
.article-meta time { padding: 0 13px; border-left: 1px solid var(--line-strong); }
.article-meta time { padding-left: 0; border-left: 0; }
.article-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 760px) minmax(220px, 260px);
  gap: 70px;
  justify-content: space-between;
  padding-top: 58px;
  padding-bottom: 92px;
}
.article-main,
.article-body { min-width: 0; }
.article-body { max-width: 760px; font-size: 17px; line-height: 1.95; color: #2c2721; }
.article-body p,
.article-body li { overflow-wrap: break-word; }
.article-body > p:first-child { font-size: 19px; line-height: 1.85; color: var(--ink); }
.article-body p { margin-top: 19px; }
.article-body h2 {
  margin-top: 51px;
  margin-bottom: 17px;
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  scroll-margin-top: 105px;
}
.article-body h3 {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--paper-2);
  padding: 2px 5px;
  color: var(--orange-dark);
  word-break: break-word;
}
.article-body pre {
  max-width: 100%;
  margin: 22px 0 0;
  padding: 17px 18px;
  overflow-x: auto;
  background: var(--ink);
  color: #f0d6b9;
  border-left: 3px solid var(--orange);
}
.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.7;
  word-break: normal;
}
.article-body blockquote {
  margin: 28px 0 0;
  padding: 18px 21px;
  background: var(--paper-2);
  border-left: 4px solid var(--orange);
  color: #40372d;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
}
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { margin-top: 18px; padding-left: 20px; }
.article-body li { list-style: disc; margin-top: 7px; padding-left: 4px; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--orange-dark); text-underline-offset: 3px; }
.article-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line-strong); }
.article-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.article-table th, .article-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table th { background: var(--paper-2); font-weight: 700; font-size: 12px; }
.article-table tr:last-child td { border-bottom: 0; }
.article-table td:first-child { width: 42%; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.article-body figure { margin: 28px 0 0; }
.article-body figure img { border: 1px solid var(--ink); }
.article-body figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); }
.article-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--paper);
}
.article-end span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--yellow); }
.article-end p { margin-top: 4px; font-size: 13px; color: #c8bcad; }
.article-end .btn { flex: 0 0 auto; }
.related-notes { margin-top: 62px; padding-top: 30px; border-top: 2px solid var(--ink); }
.related-notes h2 { font-size: 34px; margin-bottom: 22px; }
.related-notes .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-notes .note-card h3 { font-size: 23px; }
.article-side { position: relative; }
.article-toc {
  position: sticky;
  top: 105px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}
.article-toc p {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 9px;
}
.article-toc a {
  display: block;
  padding: 5px 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.article-toc a:hover { color: var(--orange-dark); padding-left: 4px; }
.side-rank {
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 18px 18px 16px;
  margin-top: 26px;
}
.side-rank-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #6f5b18;
}
.side-rank h2 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 5px;
}
.side-rank > p:not(.side-rank-label) { margin-top: 8px; font-size: 11.5px; line-height: 1.65; color: #50431c; }
.side-download {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.side-download img { border-radius: 9px; }
.side-download p { display: flex; flex-direction: column; line-height: 1.3; }
.side-download b { font-size: 12.5px; }
.side-download span { font-size: 10px; color: var(--muted); }
.side-download .text-link { margin: 0 0 0 auto; font-size: 11.5px; }

/* --------------------------------------------------------------------------
   Sitemap + 404
   -------------------------------------------------------------------------- */
.sitemap-hero { padding-bottom: 48px; }
.sitemap-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 54px 70px; }
.sitemap-group h2 {
  font-size: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.sitemap-group ul { margin-top: 6px; }
.sitemap-group li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.sitemap-group li > a {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sitemap-group li > a:hover { color: var(--orange-dark); border-color: var(--orange-dark); }
.sitemap-group li > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.sitemap-group-small { grid-column: 1 / -1; }
.sitemap-group-small ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.notfound { padding: 110px 0 120px; }
.notfound-inner { max-width: 760px; }
.notfound-code {
  font-family: var(--serif);
  font-size: 4.75rem;
  line-height: 0.9;
  color: var(--orange);
  letter-spacing: -0.05em;
}
.notfound h1 { margin-top: 14px; font-size: clamp(2.4rem, 4vw, 3.5rem); }
.notfound p { margin-top: 16px; max-width: 520px; color: var(--muted); font-size: 16px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .container { padding: 0 26px; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.35rem); }
  .site-nav { gap: 20px; }
  .header-inner { gap: 20px; }
  .feature-layout { gap: 38px; }
  .config-grid { gap: 42px; }
  .article-layout { gap: 42px; grid-template-columns: minmax(0, 1fr) 230px; }
  .faq-layout { gap: 46px; }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper-3);
    border-bottom: 2px solid var(--ink);
    padding: 14px 26px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 18px 30px rgba(25, 21, 18, 0.12);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-only-mobile { display: block; color: var(--orange-dark); font-weight: 700; border-bottom: 0; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { max-width: 700px; }
  .hero-art { width: 100%; }
  .box-scene { margin: 0 auto; }
  .manifest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifest-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .manifest-grid > div:nth-child(n+3) { border-top: 1px solid #403830; }
  .feature-layout { grid-template-columns: 1fr; gap: 40px; }
  .app-frame { transform: none; max-width: 720px; }
  .config-grid { grid-template-columns: 1fr; gap: 36px; }
  .config-copy p { max-width: 620px; }
  .overlay-panel { max-width: 680px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: 1px solid var(--line); }
  .rank-band-inner { grid-template-columns: 1fr; gap: 28px; }
  .rank-band-link { max-width: 480px; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .notes-grid .note-card:last-child { grid-column: 1 / -1; }
  .notes-grid .note-card:last-child .note-card-link { min-height: 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
  .faq-intro p { max-width: 650px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .dl-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .release-card { max-width: 440px; }
  .dl-grid { grid-template-columns: 1fr; }
  .kernel-grid { grid-template-columns: 1fr; gap: 34px; }
  .kernel-panel { max-width: 460px; }
  .rank-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rank-counter { max-width: 320px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid .airport-card:last-child { grid-column: 1 / -1; }
  .airport-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; gap: 30px; }
  .notes-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .notes-hero-card { max-width: 420px; }
  .article-layout { grid-template-columns: 1fr; padding-top: 42px; }
  .article-side { display: none; }
  .article-body { max-width: 760px; }
  .sitemap-grid { grid-template-columns: 1fr; gap: 42px; }
  .sitemap-group-small { grid-column: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .topline-inner { min-height: 32px; gap: 12px; }
  .topline-release { gap: 6px; font-size: 10.5px; }
  .topline-release .topline-platform { display: none; }
  .topline-rank { font-size: 10.5px; gap: 5px; }
  .topline-rank-note { display: none; }
  .topline-rank-label { font-size: 9px; padding: 1px 4px; }
  .header-inner { height: 66px; gap: 10px; }
  .brand img { width: 36px; height: 36px; border-radius: 8px; }
  .brand-text b { font-size: 20px; }
  .brand-text small { display: none; }
  .header-cta { min-height: 36px; padding: 7px 9px; font-size: 11.5px; border-width: 1.5px; }
  .menu-toggle { width: 38px; height: 38px; }
  .menu-toggle::before { top: 11px; }
  .menu-toggle span { top: 18px; }
  .menu-toggle::after { top: 25px; }
  .site-nav { top: 66px; padding: 10px 18px 15px; }
  .site-nav a { font-size: 14px; }
  .hero { padding: 42px 0 54px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.35rem); line-height: 1.04; letter-spacing: -0.04em; }
  .hero-lead { margin-top: 22px; font-size: 16px; line-height: 1.8; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 30px; grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .hero-facts > div { padding: 9px 0; border-top: 1px solid var(--line); }
  .hero-facts > div + div { padding-left: 0; border-left: 0; }
  .hero-facts dt { display: inline-block; margin: 0 8px 0 0; }
  .hero-facts dd { display: inline-block; font-size: 12.5px; }
  .box-scene { max-width: 360px; padding-left: 0; padding-right: 0; }
  .box-card { box-shadow: 9px 9px 0 var(--orange); padding: 17px 16px 15px; }
  .box-logo { width: 88px; height: 88px; margin-top: 18px; }
  .box-name { font-size: 32px; }
  .box-note { left: -4px; bottom: -4px; max-width: 270px; padding: 11px 13px; }
  .box-note b { font-size: 11px; }
  .box-stamp { width: 76px; height: 76px; right: -2px; top: -8px; }
  .box-stamp span { font-size: 8px; }
  .box-stamp b { font-size: 9.5px; }
  .manifest-grid > div { padding: 17px 12px; gap: 8px; }
  .manifest-grid > div:first-child { padding-left: 0; }
  .manifest-grid strong { font-size: 2rem; }
  .manifest-grid span { font-size: 10px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 15px; line-height: 1.75; margin-top: 14px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head-row .filter-bar { width: 100%; }
  .filter-btn { flex: 1; }
  h2 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .feature-notes { margin-top: 0; }
  .feature-note { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .feature-note h3 { font-size: 21px; }
  .config-band { padding: 62px 0; }
  .overlay-row { grid-template-columns: 1fr; gap: 3px; padding: 11px 14px; }
  .overlay-head { padding: 13px 14px; }
  .overlay-code { margin: 12px; }
  .overlay-code pre { font-size: 9.5px; }
  .overlay-foot { padding: 0 14px 13px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 22px 17px; }
  .step h3 { font-size: 22px; }
  .quick-command { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .quick-command > div { flex-direction: column; align-items: flex-start; gap: 5px; }
  .quick-command code { font-size: 11px; word-break: break-all; }
  .quick-command .copy-btn { align-self: flex-start; }
  .rank-band { padding: 42px 0; }
  .rank-band-copy h2 { font-size: 2rem; }
  .rank-band-link { padding: 18px 18px; }
  .rank-band-link strong { font-size: 25px; }
  .notes-grid { grid-template-columns: 1fr; }
  .notes-grid .note-card:last-child { grid-column: auto; }
  .note-card h3 { font-size: 24px; }
  .notes-grid-large .note-card-link { min-height: 0; padding: 21px 20px 19px; }
  .notes-grid-large .note-card h3 { font-size: 25px; }
  .faq-item summary { font-size: 14.5px; padding: 17px 0; }
  .faq-answer { padding-right: 18px; }
  .faq-answer p { font-size: 13.5px; }
  .final-cta { padding: 50px 0; }
  .final-cta-actions { width: 100%; }
  .final-cta-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { margin-left: 0; gap: 15px; }
  .footer-copy { margin-left: 0; }
  .page-hero { padding: 36px 0 38px; }
  .breadcrumb { margin-bottom: 16px; font-size: 10px; }
  .page-hero h1 { font-size: clamp(2.3rem, 9.7vw, 3rem); }
  .page-lead { margin-top: 18px; font-size: 15.5px; line-height: 1.75; }
  .page-meta { margin-top: 20px; font-size: 9.5px; gap: 5px 0; }
  .page-meta span { padding: 0 8px; }
  .release-card { padding: 18px 18px; box-shadow: 7px 7px 0 var(--ink); }
  .release-number { font-size: 3rem; }
  .dl-hero-grid { gap: 28px; }
  .dl-card { padding: 20px 17px 17px; }
  .dl-card h2 { font-size: 25px; }
  .dl-desc { min-height: 0; }
  .dl-link { min-height: 44px; }
  .dl-link > span:first-child { font-size: 12.5px; }
  .dl-kind { display: none; }
  .dl-size { font-size: 9px; }
  .callout { font-size: 12px; }
  .kernel-grid { gap: 26px; }
  .kernel-number { font-size: 4rem; }
  .kernel-panel { box-shadow: 7px 7px 0 var(--orange); padding: 20px 19px; }
  .verify-grid { grid-template-columns: 1fr; gap: 12px; }
  .code-block pre { font-size: 10px; }
  .sample-note { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .featured-grid { grid-template-columns: 1fr; gap: 16px; }
  .featured-grid .airport-card:last-child { grid-column: auto; }
  .airport-card { padding: 18px 16px 16px; }
  .airport-name h3 { font-size: 27px; }
  .ranking-top { padding-bottom: 46px; }
  .ranking-all { padding-top: 0; }
  .risk-grid { gap: 24px; }
  .risk-list li { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .risk-list strong { font-size: 14px; }
  .method-band { padding: 58px 0; }
  .notes-hero-card { box-shadow: 7px 7px 0 var(--orange); }
  .article-hero { padding: 34px 0 36px; }
  .article-hero h1 { font-size: clamp(2rem, 8.2vw, 2.6rem); line-height: 1.18; }
  .article-deck { margin-top: 16px; font-size: 15.5px; line-height: 1.75; }
  .article-meta { margin-top: 18px; font-size: 9.5px; gap: 5px 0; }
  .article-meta span, .article-meta time { padding: 0 8px; }
  .article-layout { padding-top: 32px; padding-bottom: 60px; }
  .article-body { font-size: 16px; line-height: 1.9; }
  .article-body > p:first-child { font-size: 17px; }
  .article-body h2 { margin-top: 40px; font-size: 1.7rem; }
  .article-body pre { padding: 13px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .article-body pre code { font-size: 10px; white-space: pre-wrap; word-break: break-word; }
  .article-body blockquote { padding: 14px 15px; font-size: 16px; }
  .article-table { font-size: 11.5px; }
  .article-table th, .article-table td { padding: 8px 9px; }
  .article-end { flex-direction: column; align-items: flex-start; padding: 18px; }
  .article-end .btn { width: 100%; }
  .related-notes { margin-top: 46px; }
  .related-notes .notes-grid { grid-template-columns: 1fr; }
  .related-notes h2 { font-size: 28px; }
  .sitemap-group h2 { font-size: 27px; }
  .sitemap-group-small ul { grid-template-columns: 1fr; }
  .notfound { padding: 70px 0 80px; }
  .notfound-code { font-size: 4rem; }
  .notfound-links .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .header-cta { font-size: 10.5px; padding: 6px 7px; }
  .brand img { width: 32px; height: 32px; }
  .brand-text b { font-size: 18px; }
  .box-note { max-width: 238px; }
  .hero h1 { font-size: 2.2rem; }
  .manifest-grid span { font-size: 9px; }
  .dl-link > span:first-child { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
