
:root {
  color-scheme: light;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: #182932;
  background: #f4f1e9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 12%, rgba(229, 183, 100, .18), transparent 25rem),
    linear-gradient(rgba(19, 39, 48, .035) 1px, transparent 1px),
    #f4f1e9;
  background-size: auto, 100% 36px, auto;
}

button, textarea, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-shell { width: min(100% - 48px, 1040px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { padding: 27px 0; border-bottom: 1px solid #cdd3cf; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #172932; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.05em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; background: #14252e; color: #f6f1e7; font-size: 21px; line-height: 1; letter-spacing: -.12em; }
.brand-mark span { color: #e7b55e; }
.brand-domain { color: #78848a; }
.header-tag, .eyebrow, .card-topline, .progress-heading, .result-stamp, .result-kicker, .method-note, .site-footer { font-family: 'Courier New', monospace; font-size: 10px; font-weight: 700; letter-spacing: .095em; }
.header-tag { color: #68787b; }

main { width: min(100%, 740px); margin: 0 auto; padding: 82px 0 65px; flex: 1; }
.intro { text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 23px; color: #44615b; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #578975; box-shadow: 0 0 0 4px #dce9d9; }
.eyebrow-divider { color: #b0b8b2; margin: 0 4px; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 78px); line-height: 1.06; letter-spacing: -.07em; font-weight: 700; }
h1 em { font-style: normal; color: #a66d36; }
.intro-copy { max-width: 470px; margin: 19px auto 39px; font-size: 16px; line-height: 1.65; color: #637079; }

.analysis-card { overflow: hidden; background: #fffefa; border: 1px solid #cbd1cb; border-radius: 12px; box-shadow: 0 20px 55px rgba(27, 43, 46, .09), 0 3px 8px rgba(27, 43, 46, .04); }
.card-topline { display: flex; justify-content: space-between; gap: 16px; padding: 16px 30px; border-bottom: 1px solid #e4e6df; color: #748086; background: #fbfaf6; }
.case-number { color: #9a794d; }
form { padding: 34px 38px 36px; }
label[for="opinion"] { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.field-hint { margin: 5px 0 20px; font-size: 13px; color: #778187; }
textarea { display: block; width: 100%; min-height: 145px; resize: vertical; padding: 17px 18px; border: 1px solid #c8cfca; border-radius: 7px; outline: none; background: #fbfcf9; color: #1b2b32; font-size: 16px; line-height: 1.55; transition: border-color .2s, box-shadow .2s; }
textarea::placeholder { color: #9aa4a1; }
textarea:focus, .share-output input:focus { border-color: #3a6b61; box-shadow: 0 0 0 3px #dcebe4; }
textarea:disabled { color: #42545c; opacity: 1; }
.field-message { min-height: 20px; margin: 7px 0 13px; font-size: 12px; color: #a15238; }
.form-actions { display: flex; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 52px; border-radius: 6px; border: 1px solid transparent; padding: 0 20px; font-size: 13px; font-weight: 700; transition: transform .15s, background .15s, box-shadow .15s; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:focus-visible, .brand:focus-visible { outline: 3px solid #d4a44c; outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { flex: 1.3; background: #182f36; color: #fffefa; box-shadow: 0 4px 0 #0b1e23; }
.button-primary:not(:disabled):hover { background: #294b50; }
.button-secondary { flex: 1; border-color: #c9d0ca; background: #fffefa; color: #2c4b4a; }
.button-secondary:not(:disabled):hover { background: #f1f6f1; }
.share-output { margin: -12px 38px 32px; padding: 15px; border: 1px solid #c7d9cd; border-radius: 6px; background: #f2f8f1; }
.share-output p { margin: 0 0 9px; color: #2a6650; font-size: 13px; font-weight: 700; }
.share-output label { display: block; margin-bottom: 6px; font-size: 11px; color: #536862; }
.share-output input { width: 100%; border: 1px solid #bdcfc3; border-radius: 4px; padding: 9px 10px; background: #fff; color: #36524b; font: 12px 'Courier New', monospace; }

.progress-panel { margin: 0 38px 38px; padding: 22px; border: 1px solid #cbdad5; border-radius: 6px; background: #edf4f0; }
.progress-heading { display: flex; justify-content: space-between; gap: 12px; color: #31564f; }
.progress-track { height: 7px; overflow: hidden; margin: 15px 0 13px; border-radius: 99px; background: #d3ded7; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: #3e7565; transition: width .4s ease; }
.progress-panel p { margin: 0; font-size: 13px; color: #43605b; }

.result-panel { padding: 30px 38px 38px; border-top: 1px solid #e1e5dc; background: #f5f8f3; animation: reveal .35s ease both; }
.result-stamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #bfd1c3; border-radius: 4px; color: #386a55; background: #e5f0e5; }
.result-stamp span { font-size: 14px; }
.result-kicker { margin: 30px 0 8px; color: #9c7949; }
h2 { margin: 0; color: #a14431; font-size: clamp(35px, 7vw, 57px); letter-spacing: -.065em; line-height: 1.08; }
.result-detail { margin: 15px 0 0; color: #4d6064; font-size: 16px; line-height: 1.6; }
.result-rule { height: 1px; margin: 29px 0 23px; background: #d4ddd3; }
.button-reset { padding-left: 0; min-height: 30px; color: #285c52; background: transparent; }
.button-reset:hover { color: #163d35; }
.method-note { margin: 27px 0 0; text-align: center; color: #8b938d; line-height: 1.8; }
.method-note span { color: #ae8e5b; margin-right: 6px; }
.site-footer { min-height: 80px; border-top: 1px solid #cdd3cf; color: #87908d; line-height: 1.6; }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .site-shell { width: min(100% - 32px, 1040px); }
  .site-header { padding: 18px 0; }
  .header-tag { display: none; }
  main { padding: 62px 0 45px; }
  .intro-copy { margin-bottom: 30px; font-size: 15px; }
  .card-topline { padding: 14px 19px; font-size: 9px; }
  form { padding: 27px 20px 26px; }
  label[for="opinion"] { font-size: 20px; }
  .form-actions { flex-direction: column; }
  .button { width: 100%; justify-content: space-between; }
  .share-output { margin: -4px 20px 25px; }
  .progress-panel { margin: 0 20px 25px; }
  .result-panel { padding: 26px 20px 30px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
