/* SOuL'D appraisal desk. Palette and fonts follow the Coming Soon page (coming-soon.css). */
@font-face { font-family: "SOuL Poster"; src: url("fonts/soul-poster-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "SOuL Poster"; src: url("fonts/soul-poster-900.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "SOuL Text"; src: url("fonts/soul-text-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SOuL Text"; src: url("fonts/soul-text-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --silver: #e6e9ea;
  --cold-white: #f5f6f6;
  --graphite: #202427;
  --blood: #bd2332;
  --blood-deep: #96192a;
  --muted: #4f5a61;
  --line: #20242729;
  --poster: "SOuL Poster", "Arial Narrow", Arial, sans-serif;
  --body: "SOuL Text", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--silver); }
body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--graphite);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 50% 18%, #ffffffc7 0, #f2f4f466 25%, transparent 58%),
    linear-gradient(140deg, #f0f2f3 0, var(--silver) 48%, #ccd3d8 100%);
  background-attachment: fixed;
}

.brand { display: flex; justify-content: center; padding: max(24px, env(safe-area-inset-top)) 16px 0; }
.brand img { display: block; width: clamp(132px, 13vw, 168px); height: auto; }

.desk { width: min(100%, 1000px); margin: 0 auto; padding: 32px 16px 48px; display: grid; gap: 24px; align-content: start; }
.intake { display: grid; justify-items: center; text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--blood); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font: 800 clamp(48px, 9vw, 104px)/.92 var(--poster); letter-spacing: -.02em; text-wrap: balance; }
h1 span { color: var(--blood); font-weight: 900; }
.lede { max-width: 36ch; margin: 20px 0 0; font-size: clamp(17px, 2.2vw, 20px); color: #353c41; text-wrap: pretty; }

.intake-form { width: min(100%, 640px); margin-top: 32px; text-align: left; }
.intake-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.field-input { position: relative; min-width: 0; display: grid; }
.field input {
  width: 100%; min-width: 0; min-height: 54px; padding: 12px 16px;
  font: 400 16px/1.3 var(--body); color: var(--graphite);
  background: var(--cold-white); border: 1px solid #9aa4aa; border-radius: 6px;
  box-shadow: inset 0 1px 3px #20242714;
}
.field input::placeholder { color: #6b767d; }
.field-input:has(.paste:not([hidden])) input { padding-right: 84px; }
.paste {
  position: absolute; top: 7px; right: 7px; bottom: 7px; min-width: 64px; padding: 0 12px;
  font: 600 14px/1 var(--body); color: var(--graphite); background: #fff; border: 1px solid #9aa4aa; border-radius: 4px; cursor: pointer;
}
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 6px; transition: background-color 160ms, transform 160ms;
}
.button-red { color: #fff; background: var(--blood); border-color: var(--blood); }
.button-red:hover { background: var(--blood-deep); border-color: var(--blood-deep); }
.button-outline { color: var(--graphite); background: transparent; border-color: #7c868c; }
.button-outline:hover { background: #ffffff80; }
.button:disabled { cursor: progress; opacity: .7; }
:where(a, button, input, summary):focus-visible { outline: 3px solid var(--blood); outline-offset: 3px; }

.status { min-height: 1.55em; max-width: 46ch; margin: 0 auto; text-align: center; font-weight: 600; }
.status:empty { display: none; }
.status[data-tone="declined"] { color: var(--blood); font: 800 clamp(24px, 3.4vw, 32px)/1.1 var(--poster); }
.status[data-tone="error"] { color: var(--blood-deep); }

.again-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; }
.again-bar .button { min-height: 48px; }
.again-hall { font-weight: 600; color: var(--blood); }

/* The card slot keeps a 16:9 box from skeleton to card, so nothing shifts when the card lands. */
.loading, .result { width: min(100%, 880px); justify-self: center; }
.skeleton {
  aspect-ratio: 16 / 9; border-radius: 10px;
  background: linear-gradient(100deg, #dfe3e5 30%, #f1f3f4 50%, #dfe3e5 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

.result { display: grid; gap: 16px; justify-items: center; }
.card-frame { width: 100%; aspect-ratio: 16 / 9; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 22px 50px #12121226, 0 2px 0 #ffffff inset; }
.card-frame svg { display: block; width: 100%; height: auto; }
.rank-banner { margin: 0; padding: 10px 16px; max-width: 60ch; text-align: center; font: 800 clamp(20px, 2.6vw, 26px)/1.15 var(--poster); color: var(--cold-white); background: var(--graphite); border-radius: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hall-note, .claim-note { margin: 0; text-align: center; font-weight: 600; }
.hall-note a, .hall-link a, .claim-note a { color: var(--blood); }
.get-sould { margin: 4px 0 0; max-width: 62ch; text-align: center; font-size: 14px; color: var(--muted); }
.get-sould a { color: inherit; }
.hall-link { margin: 0; text-align: center; font-weight: 600; }

.rules { width: min(100%, 640px); justify-self: center; border-top: 1px solid var(--line); padding-top: 8px; }
.rules summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.rules ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }

.fineprint { padding: 20px 16px max(24px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--muted); }
.fineprint a { color: inherit; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .desk { padding-top: 18px; gap: 14px; }
  .field { grid-template-columns: 1fr; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .actions .button:first-child { grid-column: 1 / -1; }
  .actions .button { min-height: 48px; }
  .result { gap: 12px; }
  .brand { padding-top: max(14px, env(safe-area-inset-top)); }
  .brand img { width: 112px; }
}
@media (hover: hover) and (pointer: fine) { .button:not(:disabled):hover { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:not(:disabled):hover { transform: none; } .skeleton { animation: none; } }
