:root {
  --ink: #241620;
  --ink-soft: #493640;
  --rose: #d20f5a;
  --rose-dark: #9f0c47;
  --plum: #4a1838;
  --paper: #fffafb;
  --white: #ffffff;
  --blush: #fbe9f0;
  --blush-strong: #f5cbdc;
  --line: #e8cfd9;
  --muted: #6f5a64;
  --success: #176b52;
  --focus: #1d5cc9;
  --max: 1220px;
  --radius: 16px;
  --font-display: "Trebuchet MS", Aptos, "Segoe UI", sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--rose-dark); text-underline-offset: .2em; }
a:hover { color: var(--rose); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 .6rem .6rem; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand-link { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.brand-link img { display: block; width: 205px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.site-nav a { display: block; padding: .65rem .72rem; border-radius: 8px; color: var(--ink-soft); font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rose-dark); background: var(--blush); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; padding: .55rem .72rem; font-weight: 700; }

.page { min-height: 65vh; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { max-width: 760px; margin: 0 0 26px; }
.section-title p { margin: 8px 0 0; color: var(--muted); font-size: 1.04rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.55rem, 6vw, 5.4rem); }
h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.7rem); }
h3 { margin: 0; font-size: 1.15rem; }
p { text-wrap: pretty; }
.lede { max-width: 720px; margin: 18px 0 0; color: var(--ink-soft); font-size: clamp(1.06rem, 1.7vw, 1.25rem); }
.independent-note { margin: 0 0 14px; color: var(--rose-dark); font-weight: 750; }
.route-number { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .86rem; font-weight: 800; }
.text-link { font-weight: 750; text-decoration-thickness: 1px; }

.catalog-hero { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--blush) 0 9px, var(--paper) 9px 100%); }
.catalog-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--rose) 0 38%, var(--plum) 38% 64%, var(--blush-strong) 64% 100%); }
.catalog-hero-inner { min-height: 540px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: clamp(36px, 7vw, 100px); padding-block: 76px 64px; }
.catalog-intro { max-width: 680px; }
.catalog-intro h1 span { display: block; color: var(--rose); }
.search-dock { border: 1px solid var(--line); border-left: 8px solid var(--rose); background: #fff; padding: 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.search-dock h2 { font-size: 1.45rem; }
.search-dock p { margin: 8px 0 20px; color: var(--muted); }
.product-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.product-search input { width: 100%; min-width: 0; border: 1px solid #cfaeba; background: #fff; border-radius: 9px; padding: .88rem 1rem; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--rose); border-radius: 9px; padding: .72rem 1.08rem; background: var(--rose); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--rose-dark); }
.button-secondary:hover { background: var(--blush); color: var(--rose-dark); }
.form-note { min-height: 1.4em; margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.category-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.category-card { position: relative; display: grid; grid-template-columns: 44px 1fr; align-content: start; gap: 14px; min-width: 0; min-height: 176px; border: 1px solid var(--line); border-radius: 13px; padding: 22px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.category-card:hover { transform: translateY(-3px); border-color: var(--rose); background: #fff7fa; color: var(--ink); }
.category-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--rose-dark); background: var(--blush); }
.category-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.category-card h3 { padding-top: 3px; }
.category-card p { grid-column: 2; margin: -4px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.category-card__action { grid-column: 2; align-self: end; margin-top: 8px; color: var(--rose-dark); font-weight: 800; font-size: .9rem; }

.route-list { counter-reset: route; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.route-card { display: flex; min-height: 230px; flex-direction: column; padding: 26px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.route-card:last-child { border-right: 0; }
.route-card:hover { color: var(--ink); background: var(--blush); }
.route-card h3 { margin: 24px 0 10px; }
.route-card p { margin: 0 0 18px; color: var(--muted); font-size: .94rem; }
.route-card strong { margin-top: auto; color: var(--rose-dark); }

.page-masthead { border-bottom: 1px solid var(--line); background: var(--blush); }
.page-masthead .wrap { padding-block: 72px 54px; }
.page-masthead h1 { max-width: 970px; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.page-masthead .lede { max-width: 820px; }
.breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: inherit; }

.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.reference-cell { min-height: 230px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.reference-cell p { margin: 12px 0 0; color: var(--muted); }
.reference-cell .route-number { margin-bottom: 20px; background: var(--rose); }
.note-strip { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; border-left: 5px solid var(--rose); padding: 22px 24px; background: var(--blush); }
.note-strip p { margin: 0; }

.handoff { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 38px; align-items: start; }
.handoff > .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resolver-stage { scroll-margin-top: 90px; }
.handoff-steps { border-top: 1px solid var(--line); }
.handoff-step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.handoff-step p { margin: 6px 0 0; color: var(--muted); }

.scope-matrix { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scope-column { padding: 30px; background: #fff; }
.scope-column + .scope-column { border-left: 1px solid var(--line); background: #fcf6f8; }
.scope-column h2 { font-size: 1.6rem; }
.plain-list { margin: 20px 0 0; padding: 0; list-style: none; }
.plain-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.plain-list li::before { content: ""; position: absolute; left: 3px; top: 21px; width: 9px; height: 9px; border: 2px solid var(--rose); border-radius: 50%; }
.decision-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.decision-step { padding: 24px; border-top: 5px solid var(--rose); background: #fff; }
.decision-step p { margin: 10px 0 0; color: var(--muted); }

.field-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field-card { min-height: 185px; padding: 24px; background: var(--ink); color: #fff; border-radius: 12px; }
.field-card strong { display: block; color: #f7bdd4; font-family: var(--font-display); font-size: 1.22rem; }
.field-card p { margin: 12px 0 0; color: #eadde3; font-size: .94rem; }
.estimate-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.estimate-point { padding-top: 18px; border-top: 3px solid var(--rose); }
.estimate-point p { color: var(--muted); }

.resolver { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.resolver-nav { padding: 24px; background: var(--plum); color: #fff; }
.resolver-nav a { display: block; padding: 10px 0; color: #fff; font-weight: 750; }
.resolver-body { padding: 30px; }
.resolver-stage + .resolver-stage { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.resolver-stage p { color: var(--muted); }
.help-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 32px; border: 1px solid var(--line); border-left: 8px solid var(--rose); border-radius: 0 var(--radius) var(--radius) 0; background: #fff; }
.help-panel p { margin: 8px 0 0; color: var(--muted); }
.help-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.policy-ledger { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.policy-ledger h2 { font-size: 1.35rem; }
.policy-ledger p, .policy-ledger ul { margin-top: 0; color: var(--ink-soft); }
.legal-note { padding: 22px; border: 1px solid var(--line); background: var(--blush); }

.site-footer { margin-top: 72px; background: var(--ink); color: #f4e9ee; }
.footer-main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 48px 0 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 42px; }
.footer-brand img { width: 220px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 430px; color: #d8c8cf; }
.footer-heading { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: bold; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.footer-links ul { list-style: none; padding: 0; margin: 14px 0 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #f4e9ee; }
.footer-meta { border-top: 1px solid #543b48; padding: 18px 20px 24px; text-align: center; color: #bfaeb6; font-size: .86rem; }

.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: .42rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: .86rem; }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.content-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.empty-state { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.empty-state-inner { max-width: 620px; padding: 80px 20px; }
.empty-state .code { display: block; color: var(--rose); font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; font-weight: 900; }

@media (min-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .wrap, .header-inner, .footer-main { --max: 1460px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .header-inner { min-height: 66px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: static; display: none; flex: 1 0 100%; width: 100%; margin: -1px 0 0; border-top: 1px solid var(--line); background: var(--paper); }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 12px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .site-nav a { padding: .7rem .8rem; }
  .catalog-hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .search-dock { max-width: 720px; }
  .route-list { grid-template-columns: repeat(2, 1fr); }
  .route-card:nth-child(2) { border-right: 0; }
  .route-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .field-map { grid-template-columns: repeat(2, 1fr); }
  .handoff > .reference-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .page-masthead .wrap { padding-block: 54px 42px; }
  .site-nav ul { grid-template-columns: 1fr 1fr; }
  .product-search { grid-template-columns: 1fr; }
  .route-list, .reference-grid, .scope-matrix, .decision-path, .estimate-line, .handoff, .resolver, .footer-main, .policy-ledger, .help-panel { grid-template-columns: 1fr; }
  .route-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-card:last-child { border-bottom: 0; }
  .reference-cell { min-height: 0; }
  .scope-column + .scope-column { border-left: 0; border-top: 1px solid var(--line); }
  .resolver-nav { padding: 20px 24px; }
  .resolver-nav a { display: inline-block; margin-right: 16px; }
  .help-actions { align-items: stretch; }
  .help-actions .button { flex: 1 1 160px; }
  .footer-main { gap: 28px; }
}
@media (max-width: 520px) {
  .header-inner, .wrap, .narrow, .footer-main { width: min(calc(100% - 28px), var(--max)); }
  .brand-link img { width: 174px; }
  .site-nav ul { grid-template-columns: 1fr; }
  .catalog-hero-inner { padding-block: 58px 46px; }
  .search-dock { padding: 22px; }
  .field-map { grid-template-columns: 1fr; }
  .field-card { min-height: 0; padding: 20px; }
  .scope-column, .resolver-body { padding: 24px; }
  .category-card { min-height: 0; }
  .page-masthead h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
