:root{
  --cream:#FDF7F1;
  --paper:#FFFFFF;
  --peach-light:#F6D5B8;
  --peach:#EEB27E;
  --peach-deep:#C9773F;
  --terracotta:#A85A32;
  --ink:#2E2016;
  --ink-soft:#5C4A3B;
  --muted:#8B7A6B;
  --line:#EDE0D2;
  --success:#2E564E;
  --success-bg:#EAF2F0;
  --warn:#8A6D1F;
  --warn-bg:#FBF3DC;
  --danger:#A8514A;
  --danger-bg:#FBEAEA;
  --shadow: 0 2px 6px rgba(46,32,22,0.05), 0 16px 32px -16px rgba(168,90,50,0.18);
  --shadow-lg: 0 8px 16px rgba(46,32,22,0.06), 0 32px 56px -20px rgba(168,90,50,0.28);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{ font-family:'Work Sans', sans-serif; background:var(--cream); color:var(--ink); -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4{ font-family:'Playfair Display', serif; color:var(--ink); font-weight:600; letter-spacing:-0.01em; }
a{ color:inherit; text-decoration:none; }
img{max-width:100%; display:block;}
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
.wrap-narrow{ max-width:760px; margin:0 auto; padding:0 28px; }

header{ position:sticky; top:0; z-index:100; background:rgba(253,247,241,0.9); backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo img{ height:38px; width:38px; }
.logo .word{ font-family:'Playfair Display',serif; font-size:20px; font-weight:600; }
.logo .word span{ color:var(--terracotta); font-style:italic; font-weight:500; }
nav.links{ display:flex; align-items:center; gap:4px; }
nav.links a{ padding:9px 15px; border-radius:999px; font-size:14px; font-weight:500; color:var(--ink-soft); }
nav.links a:hover{ background:var(--peach-light); color:var(--terracotta); }
.nav-cta{ padding:10px 20px; border-radius:999px; background:var(--terracotta); color:#fff !important; font-weight:600; font-size:14px; }
.nav-cta:hover{ background:var(--ink); }
.credits-pill{ background:var(--peach-light); color:var(--terracotta); font-size:12.5px; font-weight:700; padding:6px 14px; border-radius:999px; }

.hero{ position:relative; padding:100px 0 80px; overflow:hidden; text-align:center; }
.hero-blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.5; }
.blob-1{ width:440px; height:440px; background:var(--peach); top:-160px; right:-120px; }
.blob-2{ width:340px; height:340px; background:var(--peach-light); bottom:-160px; left:-100px; opacity:.6; }
.hero-content{ position:relative; z-index:2; max-width:760px; margin:0 auto; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--terracotta); background:#fff; border:1px solid var(--peach); padding:7px 18px; border-radius:999px; margin-bottom:26px; box-shadow:var(--shadow); }
.hero h1{ font-size:clamp(32px,5vw,54px); line-height:1.15; margin-bottom:22px; }
.hero h1 em{ font-style:italic; color:var(--terracotta); font-weight:500; }
.hero p{ font-size:17px; line-height:1.65; color:var(--ink-soft); max-width:600px; margin:0 auto 34px; }
.hero-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:13px 26px; border-radius:999px; font-size:15px; font-weight:600; border:1.5px solid transparent; cursor:pointer; font-family:inherit; transition:.2s; }
.btn-primary{ background:var(--terracotta); color:#fff; box-shadow:0 10px 24px -8px rgba(168,90,50,0.5); }
.btn-primary:hover{ background:var(--ink); transform:translateY(-2px); }
.btn-outline{ background:#fff; color:var(--ink); border-color:var(--peach); }
.btn-outline:hover{ border-color:var(--terracotta); color:var(--terracotta); }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

.stats{ max-width:700px; margin:56px auto 0; display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }
.stats .cell{ padding:22px 14px; text-align:center; border-right:1px solid var(--line); }
.stats .cell:last-child{ border-right:none; }
.stats .num{ font-family:'Playfair Display',serif; font-size:26px; font-weight:700; color:var(--terracotta); }
.stats .lbl{ font-size:11.5px; color:var(--muted); margin-top:4px; }

section{ padding:80px 0; }
.section-head{ text-align:center; max-width:600px; margin:0 auto 50px; }
.section-head .kicker{ font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--terracotta); }
.section-head h2{ font-size:33px; margin-top:10px; }
.section-head p{ margin-top:12px; color:var(--muted); font-size:15.5px; }

.steps-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.step-card{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px 22px; }
.step-card .n{ width:32px; height:32px; border-radius:10px; background:var(--peach-light); color:var(--terracotta); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Playfair Display',serif; margin-bottom:14px; }
.step-card h3{ font-size:15.5px; margin-bottom:6px; }
.step-card p{ font-size:13px; color:var(--muted); line-height:1.55; }

.tools-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.tool-card{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px 24px; transition:.2s; position:relative; }
.tool-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:var(--peach); }
.tool-card .ic{ width:46px; height:46px; border-radius:13px; background:var(--peach-light); display:flex; align-items:center; justify-content:center; font-size:21px; margin-bottom:16px; }
.tool-card h3{ font-size:16.5px; margin-bottom:8px; }
.tool-card p{ font-size:13px; color:var(--muted); line-height:1.55; margin-bottom:16px; min-height:58px; }
.tool-card .go{ font-size:13px; font-weight:600; color:var(--terracotta); }
.tool-card.soon{ background:var(--cream); border-style:dashed; }
.badge-soon{ position:absolute; top:16px; right:16px; font-size:10px; font-weight:700; text-transform:uppercase; background:var(--peach-light); color:var(--terracotta); padding:3px 9px; border-radius:999px; }

.cta-band{ background:var(--ink); border-radius:26px; padding:56px 44px; text-align:center; position:relative; overflow:hidden; }
.cta-band::after{ content:''; position:absolute; width:280px; height:280px; border-radius:50%; background:var(--peach); opacity:.18; filter:blur(50px); top:-90px; right:-60px; }
.cta-band h2{ color:#fff; font-size:28px; position:relative; z-index:2; }
.cta-band p{ color:#D9C6B4; margin-top:10px; position:relative; z-index:2; font-size:14.5px; }
.cta-band .btn{ margin-top:22px; position:relative; z-index:2; }
.cta-band .btn-primary{ background:var(--peach); color:var(--ink); }
.cta-band .btn-primary:hover{ background:#fff; }

footer{ border-top:1px solid var(--line); padding:48px 0 28px; background:#fff; text-align:center; }
footer .logo{ justify-content:center; margin-bottom:14px; }
footer p{ font-size:13px; color:var(--muted); }

/* ---------- Auth pages ---------- */
.auth-box{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:40px; box-shadow:var(--shadow); max-width:400px; margin:70px auto; }
.auth-box h1{ font-size:24px; margin-bottom:6px; }
.auth-box p.sub{ color:var(--muted); font-size:13.5px; margin-bottom:26px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.field input, .field textarea{ width:100%; padding:11px 14px; border:1px solid var(--line); border-radius:9px; font-size:14.5px; font-family:inherit; background:var(--cream); }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--terracotta); background:#fff; }
.alert{ padding:11px 15px; border-radius:9px; font-size:13.5px; margin-bottom:18px; }
.alert-error{ background:var(--danger-bg); color:var(--danger); }
.alert-success{ background:var(--success-bg); color:var(--success); }

/* ---------- Checker tool ---------- */
.checker-shell{ display:grid; grid-template-columns:1fr; gap:24px; }
.checker-card{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:32px; box-shadow:var(--shadow); }
.checker-card textarea{ width:100%; min-height:220px; padding:16px; border:1px solid var(--line); border-radius:12px; font-family:'Work Sans',monospace; font-size:14px; line-height:1.6; resize:vertical; background:var(--cream); }
.checker-card textarea:focus{ outline:none; border-color:var(--terracotta); background:#fff; }
.checker-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-top:16px; flex-wrap:wrap; gap:10px; }
.checker-toolbar .hint{ font-size:12.5px; color:var(--muted); }

.progress-wrap{ display:none; text-align:center; padding:40px 0; }
.progress-wrap.show{ display:block; }
.spinner{ width:44px; height:44px; border:4px solid var(--peach-light); border-top-color:var(--terracotta); border-radius:50%; margin:0 auto 16px; animation:spin 0.9s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.results-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:24px; }
.result-stat{ border-radius:14px; padding:18px; text-align:center; }
.result-stat.confirmed{ background:var(--success-bg); }
.result-stat.review{ background:var(--warn-bg); }
.result-stat.notfound{ background:var(--danger-bg); }
.result-stat .num{ font-family:'Playfair Display',serif; font-size:26px; font-weight:700; }
.result-stat.confirmed .num{ color:var(--success); }
.result-stat.review .num{ color:var(--warn); }
.result-stat.notfound .num{ color:var(--danger); }
.result-stat .lbl{ font-size:12px; color:var(--ink-soft); margin-top:2px; }

.ref-row{ border:1px solid var(--line); border-radius:12px; padding:18px 20px; margin-bottom:12px; }
.ref-row .top{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
.ref-input-text{ font-size:13.5px; color:var(--ink-soft); line-height:1.5; flex:1; }
.status-badge{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:4px 11px; border-radius:999px; white-space:nowrap; }
.status-badge.confirmed{ background:var(--success-bg); color:var(--success); }
.status-badge.review{ background:var(--warn-bg); color:var(--warn); }
.status-badge.notfound{ background:var(--danger-bg); color:var(--danger); }
.ref-match{ font-size:12.5px; color:var(--muted); background:var(--cream); border-radius:8px; padding:10px 14px; margin-top:8px; }
.ref-match b{ color:var(--ink); }

.history-row{ display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border:1px solid var(--line); border-radius:12px; margin-bottom:10px; background:#fff; }
.history-row:hover{ border-color:var(--peach); }
.history-row .meta{ font-size:12.5px; color:var(--muted); margin-top:3px; }

@media (max-width: 900px){
  nav.links{ display:none; }
  .steps-grid, .tools-grid{ grid-template-columns:1fr 1fr; }
  .stats{ grid-template-columns:1fr; }
  .results-summary{ grid-template-columns:1fr; }
}
