:root {
  color-scheme: dark;
  --charcoal: #17191a;
  --charcoal-soft: #202526;
  --ink: #191c1d;
  --paper: #f1eee4;
  --paper-muted: #c5c2b6;
  --yellow: #ffc928;
  --yellow-soft: #ffe593;
  --teal: #3eabb1;
  --blue: #9fc8df;
  --red: #ff8878;
  --line: rgba(241, 238, 228, .18);
  --shadow: 0 20px 54px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--charcoal);
  color: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--charcoal); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.site-shell { min-height: 100vh; background: radial-gradient(circle at 90% 10%, rgba(62, 171, 177, .09), transparent 28rem), var(--charcoal); }
.topbar { width: min(1240px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; letter-spacing: .02em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 800; }
.brand small { color: var(--paper-muted); font-size: 10px; letter-spacing: .16em; margin-top: 4px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--yellow); color: var(--ink); font-size: 23px; font-weight: 900; transform: rotate(-8deg); }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; color: var(--paper-muted); font-size: 12px; }
.status-light { width: 8px; height: 8px; display: inline-block; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(62, 171, 177, .12); }

main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.hero { position: relative; min-height: 484px; isolation: isolate; display: flex; align-items: flex-end; padding: 86px 56px 58px; margin: 0 -56px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 25, 26, .96) 0%, rgba(23, 25, 26, .77) 45%, rgba(23, 25, 26, .08) 100%), linear-gradient(0deg, rgba(23, 25, 26, .78), transparent 46%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; object-position: center right; opacity: .92; }
.hero-copy { width: min(600px, 100%); }
.eyebrow, .section-kicker { margin: 0; color: var(--yellow); font-size: 11px; letter-spacing: .2em; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { display: inline-block; width: 32px; height: 2px; background: var(--yellow); }
h1, h2, p { margin-top: 0; }
h1 { margin: 22px 0 18px; color: var(--paper); font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -.06em; font-weight: 800; }
h1 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 560px; color: #dfddd4; font-size: 16px; line-height: 1.9; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag, .mini-tag { display: inline-flex; align-items: center; font-weight: 800; letter-spacing: .04em; }
.tag { min-height: 29px; padding: 5px 11px; font-size: 12px; }
.tag-yellow { color: var(--ink); background: var(--yellow); }
.tag-blue { color: var(--ink); background: var(--blue); }
.tag-ivory { color: var(--ink); background: var(--paper); }
.hero-ticket { width: min(310px, 100%); margin: 0 0 0 auto; padding: 19px 20px; background: rgba(17, 19, 20, .82); border-left: 3px solid var(--yellow); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.ticket-label { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.ticket-label span { float: right; color: var(--paper-muted); }
.hero-ticket p { margin: 14px 0 0; color: var(--paper); font-size: 13px; line-height: 1.65; }
.hero-ticket code { color: var(--yellow-soft); overflow-wrap: anywhere; }
.ticket-foot { color: var(--paper-muted) !important; font-size: 11px !important; }
.mini-tag { padding: 2px 5px; background: var(--teal); color: var(--ink); font-size: 9px; text-transform: uppercase; }

.builder-section, .preview-section { padding: 78px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
h2 { margin: 9px 0 0; color: var(--paper); font-size: clamp(25px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.12; }
.section-explainer { max-width: 520px; margin: 0; color: var(--paper-muted); font-size: 13px; line-height: 1.85; }
.builder-panel { padding: 30px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.panel-topline { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid rgba(25, 28, 29, .16); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.panel-topline-space { margin-top: 28px; }
.panel-index { display: grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: var(--yellow); font-size: 11px; }
.required-note { margin-left: auto; color: #666a66; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field-wide { margin-top: 20px; }
.field-label { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.required, .optional { display: inline-flex; align-items: center; min-height: 19px; padding: 2px 6px; font-size: 10px; letter-spacing: 0; }
.required { background: var(--yellow); color: var(--ink); }
.optional { background: #d6e6e5; color: #1d5d60; }
input, textarea, select { width: 100%; border: 1px solid #b9b7ae; border-radius: 0; background: #fbfaf5; color: var(--ink); padding: 12px 13px; font-size: 16px; line-height: 1.45; }
input { min-height: 50px; }
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #95978f; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); outline: none; }
.field-help { color: #777a72; font-size: 11px; line-height: 1.45; }
.utm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 20px; }
.field-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.dot-source { background: #dc816b; }.dot-medium { background: var(--teal); }.dot-campaign { background: #9c7ed1; }.dot-content { background: #e1a821; }.dot-term { background: #6f8295; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border: 1px solid transparent; border-radius: 0; font-size: 13px; font-weight: 800; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--yellow); color: var(--ink); }.button-primary:hover:not(:disabled) { background: #ffda59; }
.button-quiet { background: transparent; color: var(--ink); border-color: rgba(25, 28, 29, .24); }.button-quiet:hover:not(:disabled) { background: rgba(25, 28, 29, .07); }
.action-note { margin-left: auto; color: #777a72; font-size: 11px; }
.form-status { min-height: 20px; margin: 15px 0 0; color: #5f625d; font-size: 12px; line-height: 1.55; }
.form-status.is-error { color: #a33e37; }.form-status.is-success { color: #176e70; }

.preview-section { padding-bottom: 10px; }
.preview-heading { align-items: center; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.button-small { min-height: 44px; padding: 9px 13px; color: var(--paper); border-color: var(--line); background: transparent; font-size: 12px; }
.button-small:hover:not(:disabled) { background: rgba(241, 238, 228, .09); }
.button-outline { color: var(--yellow); border-color: rgba(255, 201, 40, .5); }
.results-list { display: grid; gap: 12px; }
.empty-board { display: grid; justify-items: center; padding: 66px 20px; border: 1px dashed rgba(241, 238, 228, .3); color: var(--paper-muted); text-align: center; }
.empty-board p { margin: 15px 0 6px; color: var(--paper); font-weight: 800; }.empty-board small { font-size: 12px; }
.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--yellow); color: var(--yellow); font-size: 24px; }
.result-card { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 17px; padding: 20px; background: #202425; border: 1px solid rgba(241, 238, 228, .15); }
.route-number { color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .12em; }.route-number small { display: block; margin-top: 8px; color: var(--paper-muted); font-size: 10px; letter-spacing: 0; }
.url-scroll { min-width: 0; max-width: 100%; overflow-x: auto; padding: 12px 13px; background: #121516; border-left: 3px solid var(--teal); }
.url-scroll code { display: block; width: max-content; max-width: none; color: #f5e7ab; font-size: 14px; line-height: 1.6; white-space: nowrap; }
.param-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.param-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; background: rgba(241, 238, 228, .08); color: var(--paper-muted); font-size: 11px; }.param-pill strong { color: var(--paper); font-size: 10px; }.param-pill.source { border-bottom: 2px solid #dc816b; }.param-pill.medium { border-bottom: 2px solid var(--teal); }.param-pill.campaign { border-bottom: 2px solid #9c7ed1; }.param-pill.content { border-bottom: 2px solid #e1a821; }.param-pill.term { border-bottom: 2px solid #6f8295; }
.result-actions { display: flex; align-items: flex-start; gap: 7px; }.result-actions .button { white-space: nowrap; }
.collision-note { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: -5px; color: var(--yellow-soft); font-size: 11px; }.collision-note strong { color: var(--yellow); }
.safety-notice { margin: 0 0 14px; padding: 14px 16px; border-left: 3px solid var(--red); background: rgba(255, 136, 120, .1); color: #ffd2c8; font-size: 12px; line-height: 1.65; }.safety-notice strong { color: var(--red); }

.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 68px 0 0; }
.operation-card { min-width: 0; padding: 28px; background: #202425; border-top: 3px solid var(--teal); }.storage-card { border-top-color: var(--yellow); }
.card-heading { display: flex; align-items: center; gap: 13px; }.card-heading h2 { font-size: 25px; }.card-sign { display: grid; place-items: center; width: 39px; height: 39px; color: var(--ink); font-size: 12px; font-weight: 900; }.blue-sign { background: var(--blue); }.yellow-sign { background: var(--yellow); }.card-heading .section-kicker { font-size: 9px; }
.card-copy { max-width: 470px; margin: 17px 0 20px; color: var(--paper-muted); font-size: 12px; line-height: 1.7; }.comparison-board { min-height: 142px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }.comparison-item { min-width: 0; padding: 11px; background: #131617; border-left: 2px solid var(--blue); }.comparison-item small { display: block; margin-bottom: 8px; color: var(--blue); font-size: 10px; font-weight: 800; }.comparison-item code { display: block; max-height: 98px; overflow: auto; color: var(--paper); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }.muted { align-self: center; margin: 0; color: #8d928b; font-size: 12px; line-height: 1.6; }
.storage-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }.storage-card input, .storage-card select { background: #171a1b; border-color: rgba(241, 238, 228, .22); color: var(--paper); }.storage-card .field-label { color: var(--paper); }.storage-card .field-help { color: var(--paper-muted); }.button-full { min-width: 135px; }.storage-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 12px; }.inline-buttons { display: flex; gap: 7px; }.button-danger { color: var(--red); border-color: rgba(255, 136, 120, .4); }

.how-section { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 32px; padding: 100px 0 74px; }.how-marker { display: flex; gap: 7px; margin-bottom: 20px; }.how-marker span { display: block; width: 30px; height: 4px; background: var(--yellow); }.how-marker span:nth-child(2) { background: var(--teal); }.how-marker span:nth-child(3) { background: var(--blue); }.how-section > div:first-child { grid-column: 1; }.how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }.how-list li { padding-top: 13px; border-top: 1px solid var(--line); }.how-list li > span { color: var(--yellow); font-size: 11px; font-weight: 800; }.how-list p { margin: 16px 0 0; color: var(--paper-muted); font-size: 12px; line-height: 1.75; }.how-list strong { color: var(--paper); }.privacy-note { grid-column: 1 / -1; margin: 19px 0 0; color: #88908a; font-size: 11px; }.privacy-note span { color: var(--yellow); margin-right: 7px; }
.footer { width: min(1240px, calc(100% - 48px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 24px 0 36px; border-top: 1px solid var(--line); color: #7f857e; font-size: 10px; letter-spacing: .08em; }

@media (max-width: 900px) {
  .hero { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .utm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utm-grid .field:last-child { grid-column: 1 / -1; max-width: calc(50% - 7px); }
  .operations-grid { grid-template-columns: 1fr; }
  .how-section { grid-template-columns: 1fr; gap: 24px; }.how-section > div:first-child { grid-column: auto; }.how-list { grid-column: 1; }
}

@media (max-width: 620px) {
  .topbar, main, .footer { width: min(100% - 28px, 1240px); }
  .topbar { min-height: 66px; }.topbar-note { font-size: 10px; }.hero { min-height: 590px; margin: 0 -14px; padding: 48px 14px 30px; display: block; }.hero-art { object-position: 63% center; }.hero-copy { padding-top: 4px; }.hero-ticket { margin-top: 40px; }.hero-lead { font-size: 14px; }.section-heading { display: block; }.section-explainer { margin-top: 15px; }.builder-section, .preview-section { padding-top: 56px; }.builder-panel { padding: 20px 16px; }.required-note { display: none; }.utm-grid { grid-template-columns: 1fr; }.utm-grid .field:last-child { grid-column: auto; max-width: none; }.action-row { align-items: stretch; }.action-row .button { flex: 1 1 auto; }.action-note { flex-basis: 100%; margin: 0; }.preview-actions { margin-top: 17px; }.result-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 14px; }.result-actions { grid-column: 2; }.collision-note { grid-column: 1 / -1; margin-top: 0; }.operation-card { padding: 20px 16px; }.storage-form, .storage-actions { grid-template-columns: 1fr; }.inline-buttons { display: grid; grid-template-columns: 1fr 1fr; }.comparison-board { grid-template-columns: 1fr; }.how-section { padding-top: 70px; }.how-list { grid-template-columns: 1fr; gap: 15px; }.footer { display: block; padding-bottom: 26px; }.footer span { display: block; margin-top: 6px; }
}

@media print {
  :root { color-scheme: light; }.site-shell, body { background: white; color: #111; }.topbar, .hero, .builder-section, .operations-grid, .how-section, .footer, .preview-actions, .result-actions, .safety-notice { display: none !important; }.preview-section { display: block; padding: 20px 0; }.preview-heading h2 { color: #111; }.section-kicker { color: #555; }.result-card { background: white; border: 1px solid #ccc; color: #111; }.url-scroll { background: #f5f5f5; }.url-scroll code, .param-pill, .param-pill strong { color: #111; }.empty-board { display: none; }
}
