/* mademind — landing ai readiness check. token dal brand kit (tema scuro). */
:root {
  --bg: #0c0c0c; --surface: #1a1916; --surface-2: #232220;
  --fg: #f1ede4; --fg2: rgba(241,237,228,.62); --fg3: rgba(241,237,228,.40);
  --accent: #C8FF4D; --accent-ink: #0c0c0c; --line: rgba(241,237,228,.14);
  --danger: #e0715f;
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); letter-spacing: -.02em; -webkit-font-smoothing: antialiased; }
main { min-height: 100vh; max-width: 880px; margin: 0 auto; padding: 28px 16px; display: flex; flex-direction: column; }
@media (min-width: 640px) { main { padding: 32px 28px; } }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
footer { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
a { color: inherit; }
.wm { font-weight: 500; letter-spacing: -.035em; font-size: 22px; display: inline-flex; align-items: baseline; line-height: .85; }
.wm .cur { display: inline-block; width: .365em; height: .125em; background: var(--accent); margin-left: .06em; }
.meta { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); }
.meta.accent { color: var(--accent); }
a.meta { text-decoration: none; }
a.meta:hover { color: var(--fg); }

.screen { display: none; padding: 56px 0 0; animation: in .25s var(--ease); }
.screen.active { display: block; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h1 { font-weight: 400; font-size: clamp(38px, 7vw, 76px); line-height: .95; letter-spacing: -.05em; margin-top: 20px; }
h2 { font-weight: 400; font-size: clamp(28px, 5vw, 44px); line-height: 1.02; letter-spacing: -.04em; margin-top: 16px; }
.lead { margin-top: 24px; max-width: 52ch; font-size: 18px; line-height: 1.55; color: var(--fg2); }
.facts { list-style: none; margin: 32px 0 8px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 48px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

.btn { font: 500 16px/1 var(--sans); letter-spacing: -.01em; border-radius: 999px; padding: 15px 26px; cursor: pointer; border: 1px solid transparent; transition: transform var(--ease) .18s, filter .18s, background .18s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); margin-top: 32px; }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--fg2); border-color: var(--line); }
.btn.ghost:hover { color: var(--fg); background: var(--surface); }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; }
.nav .btn.primary { margin-top: 0; }

.progress { height: 2px; background: var(--line); margin-bottom: 24px; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.hint { margin-top: 12px; color: var(--fg3); min-height: 14px; }
.options { margin-top: 28px; display: grid; gap: 10px; }
.opt-btn { text-align: left; font: 400 17px/1.3 var(--sans); letter-spacing: -.02em; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: border-color .18s, background .18s; display: flex; gap: 14px; align-items: center; }
.opt-btn:hover { border-color: var(--fg3); }
.opt-btn .k { font-family: var(--mono); font-size: 12px; color: var(--fg3); width: 18px; flex: none; }
.opt-btn.sel { border-color: var(--accent); background: var(--surface-2); }
.opt-btn.sel .k { color: var(--accent); }
textarea, input:not([type=checkbox]) { width: 100%; font: 400 17px/1.4 var(--sans); letter-spacing: -.01em; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 8px; outline: none; }
textarea { min-height: 120px; resize: vertical; }
textarea:focus, input:focus { border-color: var(--accent); }

form { margin-top: 28px; display: grid; gap: 18px; }
form label { display: block; font-size: 14px; color: var(--fg2); }
form .opt { color: var(--fg3); }
.check { display: flex !important; gap: 12px; align-items: flex-start; line-height: 1.45; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--danger); font-size: 14px; min-height: 18px; }

.blink { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.score { display: flex; align-items: baseline; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
#rscore { font-size: clamp(88px, 18vw, 160px); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
#rlevel { color: var(--accent); }
.opps { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); counter-reset: o; }
.opps li { display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: o; }
.opps li::before { content: counter(o, decimal-leading-zero); font: 500 12px var(--mono); letter-spacing: .08em; color: var(--accent); padding-top: 6px; }
.opps h3 { font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
.opps p { margin-top: 6px; color: var(--fg2); line-height: 1.5; }
.opps .step { margin-top: 10px; color: var(--fg); }
.opps .step .meta { margin-right: 8px; }
.next { margin-top: 36px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.next p:first-child { font-size: 18px; line-height: 1.5; }
.next .meta { margin-top: 12px; color: var(--accent); }

.doc h1 { font-size: clamp(34px, 6vw, 56px); }
.doc h2 { font-size: 22px; margin-top: 36px; letter-spacing: -.02em; }
.doc p, .doc li { margin-top: 12px; color: var(--fg2); line-height: 1.6; max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc .todo { color: var(--accent); }
