/* Southpaw Websites — landing page + PIN gate shared styles.
   Sample sites bring their own per-site CSS so this file stays small. */

:root {
  --bg: #fafaf7;
  --ink: #111418;
  --muted: #5a5f66;
  --line: #e6e3dc;
  --brand: #2a4d3e;
  --brand-ink: #ffffff;
  --accent: #c9a663;
  --err: #b3261e;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 0.5em;
}
.sub { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { font-weight: 700; color: var(--ink); }
.site-header nav a { margin-left: 20px; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 80px 0 60px; }
.hero .sub { font-size: 1.2rem; margin-bottom: 1.5em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px;
  border-radius: var(--radius); font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #1f3a2e; text-decoration: none; }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #fff; text-decoration: none; }

/* How it works */
.how { padding: 60px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: stepcount;
}
.steps li {
  counter-increment: stepcount;
  background: var(--bg);
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  position: relative;
}
.steps li::before {
  content: counter(stepcount);
  position: absolute; top: -16px; left: 20px;
  background: var(--brand); color: var(--brand-ink);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}

/* Pricing */
.pricing { padding: 60px 0; }
.tiers {
  display: grid; gap: 20px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.tier.featured { border-color: var(--brand); border-width: 2px; }
.tier h3 { color: var(--brand); }
.tier .price { margin: 8px 0 18px; }
.tier .amount { font-size: 2.2rem; font-weight: 700; }
.tier .cadence { color: var(--muted); font-size: 1rem; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { padding: 6px 0; border-top: 1px solid var(--line); }
.tier li:first-child { border-top: none; }

/* Closing */
.closing { padding: 60px 0; background: #fff; border-top: 1px solid var(--line); }
.closing h2 + p { margin-bottom: 2em; }

/* Footer */
.site-footer { padding: 24px 0; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }

/* ─── PIN gate page ──────────────────────────────────────────────────────── */
.pin-gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(42,77,62,0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(201,166,99,0.08), transparent 60%),
    var(--bg);
}
.gate-card {
  width: 100%; max-width: 460px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 32px;
}
.gate-eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.75rem; color: var(--brand); font-weight: 600;
  margin: 0 0 12px;
}
.gate-card h1 { font-size: 1.6rem; margin: 0 0 4px; }
.gate-location { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
.gate-intro { color: var(--muted); margin-bottom: 24px; font-size: 0.97rem; }
.gate-card form { display: flex; gap: 8px; margin-bottom: 16px; }
.gate-card input[type] {
  flex: 1; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1.1rem; letter-spacing: 0.2em; text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.gate-card input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.gate-card button {
  padding: 12px 18px; border: 0; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink); font-weight: 600;
  cursor: pointer; font-size: 1rem;
}
.gate-card button:hover { background: #1f3a2e; }
.gate-card .error {
  background: #fdecea; border: 1px solid #f5c2c0; color: var(--err);
  padding: 10px 12px; border-radius: var(--radius); font-size: 0.92rem;
  margin: 0 0 16px;
}
.gate-fineprint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
