/* GeoToolkit AI — Shared Components (design truth, see design.md §2.4) */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); font-weight: 600; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-lg); font-weight: 600; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s3); }

.mono { font-family: var(--font-mono); }
.kicker { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.fine { font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 40; }
.site-header .inner { display: flex; align-items: center; gap: var(--s4); height: 64px; }
.logo { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav { display: flex; gap: var(--s3); margin-left: auto; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm);
  padding: 10px 20px; border-radius: var(--r-input);
  border: 1px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--card); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- domain input group (hero) ---------- */
.check-form { display: flex; gap: var(--s1); max-width: 520px; }
.check-form input {
  flex: 1; font-family: var(--font-mono); font-size: var(--fs-md);
  padding: 10px 14px; border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  border-radius: var(--r-input); background: var(--card); color: var(--ink);
}
.check-form input:focus { outline: none; border-bottom-color: var(--accent); }
.check-form input::placeholder { color: var(--ink-3); }

/* ---------- cards & modules ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.card-pad { padding: var(--s3); }
.mod { border-left: 3px solid var(--line); }
.mod-ok { border-left-color: var(--ok); }
.mod-warn { border-left-color: var(--warn); }
.mod-err { border-left-color: var(--err); }
.mod-paused { border-left-color: var(--ink-3); opacity: .75; }

/* score chip: <span class="score warn">72<em>/100</em></span> */
.score {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-2xl);
  display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 14px;
  border-radius: var(--r-chip); border: 1.5px solid currentColor;
}
.score em { font-style: normal; font-size: var(--fs-sm); font-weight: 400; color: var(--ink-3); }
.score.ok { color: var(--ok); background: var(--ok-bg); }
.score.warn { color: var(--warn); background: var(--warn-bg); }
.score.err { color: var(--err); background: var(--err-bg); }
.score-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }

/* status dot rows */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; flex: none; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-err { background: var(--err); }
.dot-mute { background: var(--ink-3); }

.issue-row { display: flex; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.issue-row:last-child { border-bottom: 0; }

/* mono matrix table (robots) */
.matrix { font-family: var(--font-mono); font-size: var(--fs-sm); width: 100%; border-collapse: collapse; }
.matrix td, .matrix th { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix .a-ok { color: var(--ok); }
.matrix .a-err { color: var(--err); }

/* quote block (mentions) */
.quote { border-left: 3px solid var(--line); padding: 4px 0 4px var(--s2); color: var(--ink-2); font-size: var(--fs-sm); font-style: italic; }

/* notice boxes */
.notice { border-radius: var(--r-card); padding: var(--s2) var(--s3); font-size: var(--fs-sm); }
.notice-warn { background: var(--warn-bg); border: 1px solid #EAD9B8; color: #7A4A0F; }
.notice-mute { background: #F3F2EC; border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- numbered section rail (01-04) ---------- */
.rail { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); }
.rail .num { font-family: var(--font-mono); font-size: var(--fs-lg); color: var(--ink-3); border-top: 2px solid var(--line); padding-top: var(--s1); }
.rail:hover .num { color: var(--accent); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); align-items: stretch; }
.tier { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.tier-featured { border: 2px solid var(--ink); position: relative; }
.tier-tag { position: absolute; top: -12px; left: var(--s3); background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-chip); }
.tier-waitlist { border-style: dashed; background: transparent; }
.tier .price { font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: 600; }
.tier .price small { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 400; }
.feat { list-style: none; font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: 8px; }
.feat li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 600; }
.tier .btn { margin-top: auto; }

/* ---------- faq ---------- */
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; padding: var(--s2) 0; font-family: var(--font-head); font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-3); }
details[open] summary::after { content: "–"; }
details .a { padding-bottom: var(--s2); color: var(--ink-2); max-width: 640px; }

/* ---------- dark band (CTA / footer) ---------- */
.band { background: var(--band); color: var(--paper-dark); }
.band h2 { color: #fff; }
.band .btn-light:hover { transform: translateY(-1px); }

.site-footer { padding: var(--s6) 0 var(--s4); font-size: var(--fs-sm); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s4); padding-bottom: var(--s4); }
.site-footer h4 { font-size: var(--fs-xs); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: var(--s2); }
.site-footer a:not(.btn) { color: var(--paper-dark); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid #33363D; padding-top: var(--s3); color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.7; }

/* ---------- cookie banner ---------- */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 24px rgba(23,25,30,.08); }
.cookie-bar .inner { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); max-width: var(--container); margin: 0 auto; flex-wrap: wrap; }
.cookie-bar .btns { margin-left: auto; display: flex; gap: var(--s1); }
.cookie-bar .btn { padding: 8px 16px; }

/* ---------- report ---------- */
.report-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.mods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: var(--band); color: #fff; padding: 10px var(--s3); display: flex; align-items: center; gap: var(--s2); justify-content: space-between; z-index: 50; }

/* spec note block — DEV ONLY, remove before launch */
.dev-note { background: repeating-linear-gradient(45deg, #F3F2EC, #F3F2EC 10px, #EDEBE3 10px, #EDEBE3 20px); border: 1px dashed var(--ink-3); border-radius: var(--r-card); padding: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }

/* form rows (page editor grid) */
.page-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; }
.page-row input { min-width: 0; width: 100%; }
form input, form textarea { min-width: 0; }

/* ---------- layout helpers ---------- */
.split-55 { display: grid; grid-template-columns: 55fr 45fr; gap: var(--s5); align-items: center; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }

/* ---------- responsive ---------- */
@media (max-width: 959px) {
  .mods-grid, .tiers { grid-template-columns: 1fr 1fr; }
  .check-form { flex-direction: column; }
  .split-55, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  .mods-grid, .tiers, .site-footer .cols { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .rail { grid-template-columns: 48px 1fr; }
}
