:root {
  font-family: system-ui, sans-serif;
  color: #222b26;
  background: #f4f0e7;
  --ink: #172321;
  --paper: #fffcf5;
  --gold: #e9b66d;
  --muted: #555d54;
  --border: #d8d1c2;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
a { color: inherit; }
p { line-height: 1.6; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.045em; margin-bottom: .55rem; }
:focus-visible { outline: 3px solid #ba7a27; outline-offset: 4px; }
.top { background: var(--ink); color: #f9f1e4; border-bottom: 1px solid #ffffff25; }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: .5rem; background: #f7ebd7; }
nav { display: flex; gap: 1.5rem; }
nav a { text-decoration: none; color: #ece0cd; }
nav a:hover { text-decoration: underline; }
button, .button { cursor: pointer; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; font: inherit; font-weight: 700; border-radius: .55rem; padding: .74rem 1.05rem; border: 1px solid transparent; text-decoration: none; background: var(--ink); color: #fff7e9; }
button:hover, .button:hover { filter: brightness(1.12); }
button:disabled { opacity: .55; cursor: wait; }
.nav-action { border-color: #b6a486; }
.primary { background: var(--gold); color: #242018; }
.hero { background: radial-gradient(ellipse at 80% 25%, #34473a, transparent 55%), var(--ink); color: #fff6e6; padding: clamp(3.8rem, 8vw, 7rem) 0 7rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 1rem; }
.eyebrow { color: var(--gold); font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .9rem; }
h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(3.25rem, 7.6vw, 7rem); letter-spacing: -.075em; line-height: .91; margin-bottom: 1.4rem; }
h1 em { color: var(--gold); font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 36ch; color: #e3d9cc; font-size: 1.1rem; }
.art { height: 350px; position: relative; display: grid; place-items: center; isolation: isolate; }
.orbit { position: absolute; width: min(100%, 375px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #e9b66d55; box-shadow: inset 0 0 0 28px #e9b66d09, 0 0 0 26px #e9b66d08; }
.sheet { width: min(76%, 305px); position: relative; background: #f6e8cf; color: var(--ink); transform: rotate(-10deg); border-radius: .75rem; box-shadow: 0 26px 70px #101714b0; padding: 2.5rem 1.3rem 1.5rem; }
.sheet-title { font-family: Georgia, serif; display: block; font-size: 1.38rem; }
.stamp { position: absolute; right: 1rem; top: .8rem; color: #754934; border: 1px solid #a67b63; border-radius: .2rem; padding: .1rem .35rem; font-size: .72rem; letter-spacing: .08em; }
.sheet-person { margin: 1.2rem 0; display: flex; gap: .55rem; align-items: center; }
.sheet-person i { display: block; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: radial-gradient(circle at 50% 34%, #8a6547 0 15%, transparent 16%), radial-gradient(ellipse at 50% 86%, #8a6547 0 30%, #e6d3b1 32%); }
.sheet-person small { display: block; margin-top: .15rem; color: #554938; }
.line { height: .32rem; width: 70%; margin-bottom: .65rem; border-radius: 1rem; background: #b7a88d; }
.line.short { width: 52%; }
.file { display: inline-block; margin-top: .75rem; color: #fff3df; background: #784b35; padding: .25rem .55rem; border-radius: .22rem; font-size: .77rem; font-weight: 750; }
.lens { width: 145px; aspect-ratio: 1; border: 8px solid #c89354; border-radius: 50%; position: absolute; top: 41%; left: 57%; background: #fff3cf15; backdrop-filter: brightness(1.12); box-shadow: inset 0 0 0 2px #765233, 0 6px 14px #0006; }
.lens::after { content: ""; width: 24px; height: 90px; border-radius: 6px 6px 15px 15px; position: absolute; top: 84%; left: 89%; background: linear-gradient(90deg,#75422c,#b77d55,#75422c); transform: rotate(-41deg); transform-origin: top; box-shadow: 3px 6px 10px #0005; }
.search-area { position: relative; margin-top: -3rem; scroll-margin-top: 1rem; }
.search-panel { background: var(--paper); border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1.15rem, 4vw, 2.45rem); box-shadow: 0 12px 35px #37271614; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.panel-head p, .steps p, .faq p { color: var(--muted); }
.price { flex: 0 0 auto; border-left: 1px solid var(--border); padding-left: 1rem; }
.price strong, .price small { display: block; }
.price strong { font-size: 1.45rem; }
.price small { color: var(--muted); }
form { display: grid; grid-template-columns: minmax(145px, .65fr) 1.3fr auto; align-items: end; gap: .75rem; }
label { display: grid; gap: .45rem; font-weight: 650; min-width: 0; }
input, select { min-width: 0; width: 100%; min-height: 45px; border: 1px solid #9c968b; border-radius: .55rem; background: #fff; padding: .65rem .75rem; color: inherit; font: inherit; }
.example { background: transparent; color: #5b4633; padding: .35rem 0; text-align: left; text-decoration: underline; font-weight: 500; }
#notice:empty, button[hidden] { display: none; }
article { padding: 1.15rem; border: 1px solid var(--border); border-radius: .75rem; margin-top: 1rem; background: white; }
article h2 { font-size: 1.35rem; }
article button, article .button { margin: .25rem .4rem .25rem 0; }
.instructions, .faq { padding-block: clamp(3rem, 7vw, 5.5rem); }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.steps li { border-top: 2px solid #ae8351; padding-top: 1.25rem; }
.steps h3 { margin-bottom: .45rem; }
.report-section { padding-block: clamp(2.5rem,6vw,4.5rem); background: var(--ink); color: #fff6e6; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.report-grid p { color: #e0d5c4; }
.report-grid ul { margin: 0; list-style: none; padding: 0; }
.report-grid li { border-bottom: 1px solid #ffffff35; padding: .8rem 0; }
.report-grid li::before { content: "✓"; color: var(--gold); margin-right: .7rem; }
details { border-bottom: 1px solid var(--border); }
summary { padding-block: 1rem; font-weight: 700; cursor: pointer; }
details p { max-width: 70ch; }
footer { border-top: 1px solid var(--border); }
.footer { display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: space-between; padding-block: 1.6rem; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .nav { min-height: 65px; }
  nav { display: none; }
  .hero { padding-bottom: 5rem; }
  .hero-grid, .report-grid { grid-template-columns: 1fr; }
  .art { height: 280px; max-width: 400px; width: 100%; margin: auto; }
  .orbit { width: 240px; }
  .lens { width: 108px; }
  .lens::after { height: 65px; width: 18px; }
  form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: .5rem; }
}
@media (max-width: 420px) {
  .panel-head { display: block; margin-bottom: 1rem; }
  .price { border-left: 0; padding-left: 0; }
}
[hidden] { display: none !important; }
#login { grid-template-columns: minmax(0, 22rem) auto; justify-content: start; }
#logout { margin-bottom: 1rem; }
article dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .35rem .75rem; overflow-wrap: anywhere; }
article dt { font-weight: 650; }
article dd { margin: 0; }
@media (max-width: 420px) { #login { grid-template-columns: minmax(0, 1fr); justify-content: stretch; } }
