
:root {
  --ink: #14110F;
  --cream: #FFFBF7;
  --white: #FFFFFF;
  --coral: #FF5A3C;
  --coral-700: #C93A1E;
  --coral-800: #9F2D16;
  --coral-50: #FFEAE4;
  --coral-100: #FFD9CC;
  --grey-100: #F4F0EC;
  --grey-200: #E8E2DC;
  --grey-400: #A39B94;
  --grey-600: #6B635D;
  --grey-700: #57534E;
  --under: #15803D;
  --under-bg: #DCFCE7;
  --over: #B42318;
  --over-bg: #FEE4E2;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body[data-app-shell] { margin: 0; background: var(--cream); color: var(--ink); }
button, input, select { font: inherit; font-size: 16px; }
button, .btn, .go, summary { min-height: 46px; }
button, a, summary { touch-action: manipulation; }
input:not([type=checkbox]):not([type=hidden]), select { min-height: 48px; }
input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--coral-700); }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--coral-700);
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; }
.hidden, [hidden] { display: none !important; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 3000;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus { top: 10px; }
.nvb { min-width: 44px; min-height: 44px; }
.nvcta { min-height: 44px; display: inline-flex; align-items: center; }
body:has(#result:not(.hidden)) > header { display: none; }
#result { padding-top: 24px; }
#result:focus { outline: none; }
#result .ctx { margin: 12px auto 18px; font-size: 13px; max-width: 60ch; }
#result .hero { background: #fff; border: 1px solid var(--grey-200); border-radius: 18px; padding: 28px 20px; }
#result .hero .big { font-size: clamp(46px, 10vw, 76px); line-height: 1.05; letter-spacing: -.04em; }
#cardImg { aspect-ratio: 1200 / 630; object-fit: contain; background: var(--grey-100); border-radius: 14px; }
.result-skeleton { display: none; padding: 20px; margin-top: 14px; border: 1px solid var(--grey-200); border-radius: var(--radius); }
.result-skeleton span { display: block; height: 14px; background: var(--grey-100); border-radius: 8px; margin: 10px 0; }
.result-skeleton span:first-child { width: 65%; height: 38px; }
.result-skeleton span:last-child { width: 45%; }
body[data-comparing] .result-skeleton { display: block; }
.result-skeleton span { animation: skeleton 1.2s ease-in-out infinite alternate; }
@keyframes skeleton { to { opacity: .4; } }
.fold, details.faq { border-top: 1px solid var(--grey-200); padding: 8px 0; }
.fold summary, details.faq summary { display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.fold summary::after { content: '+'; margin-left: auto; padding-left: 12px; font-size: 20px; }
.fold[open] summary::after { content: '−'; }
.fold > div { padding-bottom: 16px; }
.result-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.result-share button, .result-share a { min-height: 46px; padding: 11px 16px; border: 1px solid var(--grey-200); border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.access-gate { margin: 24px 0; }
.glock .gate { min-height: 0; }
.res, .res.deal { display: block !important; min-width: 0; width: 100%; overflow-wrap: anywhere; border-radius: 14px; }
.res table { display: table !important; table-layout: fixed; }
.res p, .res .result-share { max-width: 100%; }
.res .v { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
.ck .grid > div:nth-child(4), .ck .grid > div:nth-child(5) { grid-column: 1 / -1; }
.ck .pw { display: flex; gap: 10px; }
.ck .pw input { min-width: 0; flex: 1; }
.ck .pw select { width: 100px; flex: none; }
.gs .row { gap: 10px; }
.auth-message { max-width: 480px; margin: 48px auto; padding: 24px; }
.social-note, .signin-divider { font-size: 13px; color: var(--grey-700); }
.signin-divider { text-align: center; }
.social-providers, .social-signin { display: grid; gap: 8px; margin: 16px 0; }
.social-button { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px; border: 1px solid var(--grey-200); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
#app-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 10px; pointer-events: none; opacity: 0; }
#app-toast.show { opacity: 1; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 140ms; }
@media(max-width: 720px) {
  #result .hero .big { font-size: 48px; }
  .sbtns { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sbtns .main { grid-column: 1 / -1; }
  .gs .row { flex-direction: column; }
  .gs input[type=email] { width: 100%; }
  .result-share button { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
