:root {
  color-scheme: light;
  --ink: #071a31;
  --ink-2: #173654;
  --muted: #64748b;
  --line: #d9e2ec;
  --paper: #f7f9fc;
  --white: #ffffff;
  --orange: #f59a35;
  --orange-2: #ffd39b;
  --cyan: #21c7df;
  --success: #16845b;
  --shadow: 0 24px 70px rgba(7, 26, 49, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,249,252,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(217,226,236,.8); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 150px; height: 72px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; gap: 18px; align-items: center; font-weight: 700; font-size: .9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--orange); }
.nav-links .nav-cta { padding: 11px 18px; color: var(--ink); background: var(--orange); border-radius: 999px; box-shadow: 0 8px 24px rgba(245,154,53,.22); }
.nav-links .nav-cta:hover { color: var(--ink); background: #ffad4e; }
.hero { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 78% 18%, rgba(33,199,223,.25), transparent 29%), radial-gradient(circle at 25% 0%, rgba(245,154,53,.24), transparent 22%), linear-gradient(135deg, #06172c, #0a2b50 63%, #071a31); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-inner { position: relative; z-index: 1; min-height: 640px; padding: 82px 0 78px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.75fr); align-items: center; gap: 74px; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 900; color: var(--orange); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .94; letter-spacing: -.055em; }
.hero-copy { max-width: 670px; font-size: clamp(1.06rem, 2vw, 1.3rem); color: #c9d8e7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 900; text-decoration: none; cursor: pointer; }
.button.secondary { color: white; background: transparent; border-color: rgba(255,255,255,.32); }
.button.ink { color: white; background: var(--ink); }
.consult-panel { position: relative; padding: 30px; color: var(--ink); background: white; border: 1px solid rgba(255,255,255,.85); border-radius: 28px; box-shadow: 0 34px 90px rgba(0,0,0,.34); }
.consult-panel::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 6px; border-radius: 28px 28px 0 0; background: linear-gradient(90deg,var(--orange),#ffcb83,var(--cyan)); }
.consult-logo { display: block; width: 205px; height: 116px; margin: -8px auto 8px; object-fit: contain; }
.consult-kicker { margin-bottom: 7px; color: #b45f08; font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.consult-panel h2 { margin-bottom: 8px; font-size: 2rem; letter-spacing: -.035em; }
.consult-panel > p:not(.consult-kicker) { margin-bottom: 22px; color: var(--muted); }
.consult-panel label { display: block; margin-bottom: 8px; font-weight: 850; }
.consult-input { min-height: 58px; border-color: #cbd7e3; font-size: 1.08rem; font-weight: 800; letter-spacing: .035em; }
.consult-input::placeholder { color: #94a8bc; opacity: 1; font-weight: 750; letter-spacing: .08em; }
.consult-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245,154,53,.14); }
.consult-help { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.consult-help strong { color: #b45f08; letter-spacing: .06em; }
.consult-feedback { min-height: 22px; margin: 5px 0 12px; color: #a13b2c; font-size: .83rem; font-weight: 750; }
.consult-button { width: 100%; min-height: 58px; border-radius: 14px; font-size: 1.05rem; box-shadow: 0 14px 30px rgba(245,154,53,.28); }
.consult-button:hover { background: #ffad4e; transform: translateY(-1px); }
.consult-button:disabled { color: #708398; background: #d9e2ea; box-shadow: none; cursor: not-allowed; transform: none; }
.section { padding: 84px 0; }
.section.white { background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.03; letter-spacing: -.045em; }
.section-head p { max-width: 580px; margin-bottom: 0; color: var(--muted); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-card { padding: 28px; min-height: 220px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.process-card .num { display: inline-grid; place-items: center; width: 35px; height: 35px; margin-bottom: 38px; border-radius: 50%; color: white; background: var(--ink); font-weight: 900; }
.process-card h3 { margin-bottom: 9px; }
.process-card p { color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 0 16px; color: var(--ink); background: white; border: 2px solid transparent; border-radius: 12px; outline: none; text-transform: uppercase; }
.input:focus { border-color: var(--orange); }
.help { margin: 9px 0 0; color: #adc2d5; font-size: .88rem; }
.site-footer { padding: 34px 0 44px; color: #8ea5bb; background: #06172c; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.record-hero { color: white; background: linear-gradient(120deg, #06172c, #0d345e); }
.record-top { padding: 54px 0 46px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: #aac0d4; font-size: .88rem; }
.crumb a { text-decoration: none; }
.record-heading { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: end; }
.record-heading h1 { margin-bottom: 10px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.record-heading .meta { color: #bed0df; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; margin-bottom: 18px; border-radius: 999px; color: #baf2dc; background: rgba(22,132,91,.24); border: 1px solid rgba(109,229,180,.25); font-weight: 800; font-size: .88rem; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4fe0aa; }
.grade-lockup { min-width: 220px; padding: 24px 28px; text-align: center; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.07); }
.grade-lockup strong { display: block; font-size: 4.5rem; line-height: .95; letter-spacing: -.06em; }
.grade-lockup span { color: var(--orange-2); font-size: 1.25rem; font-weight: 900; }
.record-body { padding: 52px 0 88px; }
.record-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 28px; align-items: start; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 10px 40px rgba(7,26,49,.04); }
.panel + .panel { margin-top: 22px; }
.panel h2 { font-size: 1.5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; background: #eef3f7; }
.photo figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--muted); font-size: .82rem; }
.subgrade-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.subgrade { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; }
.subgrade strong { display: block; font-size: 1.8rem; }
.subgrade span { color: var(--muted); font-size: .9rem; }
.key-list { display: grid; gap: 0; }
.key-row { display: grid; grid-template-columns: 135px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.key-row:last-child { border-bottom: 0; }
.key-row dt { color: var(--muted); }
.key-row dd { margin: 0; font-weight: 760; }
.finding { padding: 18px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; }
.finding-head { display: flex; justify-content: space-between; gap: 18px; font-weight: 900; }
.finding p { margin: 6px 0 0; color: var(--muted); }
.scope { padding: 21px; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: #fff7ed; }
.side-actions { display: grid; gap: 10px; }
.side-actions .button { width: 100%; }
.version-list { list-style: none; padding: 0; margin: 0; }
.version-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.version-list li:first-child { border-top: 0; }
.version-list small { color: var(--muted); }

.verify-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 52px 0; background: radial-gradient(circle at 50% 0, #123d68, #06172c 55%); }
.verify-card { width: min(560px, calc(100% - 32px)); padding: 34px; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.verify-card h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
.verify-card .input { border-color: var(--line); }
.verify-card .button { width: 100%; margin-top: 12px; }
.preview-note { padding: 13px 15px; margin: 20px 0; border: 1px solid #f5c17e; border-radius: 12px; color: #6f430e; background: #fff7e9; font-size: .9rem; }
.verify-result { display: none; margin-top: 18px; padding: 18px; border-radius: 14px; background: #ecfdf5; }
.verify-result.show { display: block; }
.verify-error { display: none; margin-top: 13px; color: #a62a2a; font-weight: 750; }
.verify-error.show { display: block; }

.label-page { padding: 48px 0 80px; }
.label-intro { max-width: 780px; }
.label-intro h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.label-stage { display: grid; gap: 26px; margin-top: 38px; padding: 34px; border-radius: 26px; background: #e8edf3; overflow-x: auto; }
.label-row { display: grid; grid-template-columns: 72mm; gap: 9px; width: max-content; }
.label-caption { color: var(--muted); font-weight: 800; font-size: .85rem; }
.label-art { width: 72mm; height: 21mm; display: grid; grid-template-columns: 13mm 1fr 19mm 12mm; overflow: hidden; color: #071a31; background: white; border: .35mm solid #071a31; font-family: Arial, sans-serif; }
.label-logo { display: grid; place-items: center; padding: 1.5mm; border-right: .25mm solid #d4dde6; font-weight: 900; text-align: center; font-size: 2.2mm; }
.label-logo .spark { color: #f59a35; font-size: 5mm; line-height: 1; }
.label-main { padding: 1.9mm 2.2mm; font-size: 2.1mm; line-height: 1.35; }
.label-main b { display: block; font-size: 3mm; }
.label-grade { display: grid; place-items: center; text-align: center; border-left: .3mm solid #071a31; border-right: .3mm solid #071a31; font-size: 1.8mm; }
.label-grade strong { display: block; font-size: 6mm; line-height: 1; }
.integrity { display: grid; place-items: center; padding: 1mm; text-align: center; color: #91500a; border: .35mm dashed #f59a35; font-size: 1.5mm; font-weight: 900; }
.integrity .spark { color: #071a31; font-size: 6mm; line-height: 1; }
.label-art.back { grid-template-columns: 12mm 1fr 18mm; }
.label-data { padding: 2mm 2.4mm; font-size: 2.1mm; line-height: 1.35; }
.label-data b { display: block; font-size: 3.3mm; }
.qr-placeholder { display: grid; place-items: center; padding: 1mm; text-align: center; color: #52677c; background: repeating-linear-gradient(45deg,#eef2f6,#eef2f6 2px,#fff 2px,#fff 4px); border-left: .3mm solid #071a31; font-size: 1.5mm; font-weight: 900; }
.decision-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
.decision { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.decision strong { display: block; margin-bottom: 6px; }
.decision p { margin: 0; color: var(--muted); font-size: .92rem; }
.loading, .error-page { min-height: 60vh; display: grid; place-items: center; padding: 40px; text-align: center; }

@media (max-width: 850px) {
  .hero-inner, .record-grid, .record-heading { grid-template-columns: 1fr; }
  .hero-inner { gap: 34px; min-height: auto; }
  .process-grid, .decision-grid { grid-template-columns: 1fr; }
  .record-heading { align-items: start; }
  .grade-lockup { width: 100%; }
}

@media (max-width: 640px) {
  .nav-links a:not(.keep) { display: none; }
  .nav { min-height: 76px; }
  .brand-logo { width: 122px; height: 60px; }
  .nav-links .nav-cta { padding: 9px 13px; font-size: .82rem; }
  .hero-inner { padding-top: 58px; gap: 38px; }
  .hero-message h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .consult-panel { padding: 24px; }
  .consult-logo { width: 170px; height: 96px; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .consult-card { grid-template-columns: 1fr; }
  .photo-grid, .subgrade-grid { grid-template-columns: 1fr; }
  .key-row { grid-template-columns: 1fr; gap: 2px; }
  .record-top { padding-top: 34px; }
  .panel { padding: 21px; }
  .label-stage { margin-left: -16px; margin-right: -16px; border-radius: 0; }
}

@media print {
  .site-header, .label-intro, .decision-grid, .site-footer { display: none !important; }
  .label-page, .label-stage { padding: 0; background: white; }
  .label-stage { gap: 12mm; }
}
