/* Goalthod public site — shared styling (GOALTHOD-007).
   Extracted from the original single-page landing so the landing, pricing,
   login, signup and help pages cannot drift apart visually. */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f6;
  --border: #e3e6ec;
  --text: #14181f;
  --muted: #5b6572;
  --accent: #1f5fd8;
  --accent-hover: #1a4fb5;
  --ok: #0f7b46;
  --warn: #8a5a00;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1e242c;
    --border: #262c35;
    --text: #eef1f5;
    --muted: #9aa5b3;
    --accent: #5b9bff;
    --accent-hover: #7db0ff;
    --ok: #4ade80;
    --warn: #fbbf24;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;               /* no horizontal scroll from normal content */
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 460px; }
a { color: var(--accent); }

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.mark { color: var(--accent); font-size: 22px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 8px 10px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; font-family: inherit;
  min-height: 44px;                 /* comfortable touch target */
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- typography ---------- */
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.tagline { font-size: clamp(18px, 3vw, 22px); color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- layout blocks ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
}

/* ---------- pricing ---------- */
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-name { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.note {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 12px 14px; color: var(--muted); font-size: 14px; background: var(--surface);
}

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); min-height: 44px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 15px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: color-mix(in srgb, #d93025 12%, transparent); border-color: color-mix(in srgb, #d93025 45%, transparent); }
.alert-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .nav { gap: 8px; }
  .nav-links a { padding: 8px; font-size: 14px; }
  .brand { font-size: 18px; }
}
