/* Shared styles for the public pages (landing, sign-in, legal). Deep green theme, in the style of OrgDay. */
:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #e4efeb;
  --ink: #15201c;
  --muted: #56645f;
  --line: #d5e2dd;
  --accent: #13705f;
  --accent-strong: #0c5546;
  --accent-soft: #e8f3ef;
  --violet: #1f5f8b;
  --violet-soft: #e3edf5;
  --good: #047857;
  --good-soft: #d1fae5;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --shadow: 0 1px 3px rgba(12, 85, 70, 0.06), 0 18px 40px -22px rgba(12, 85, 70, 0.26);
  --radius: 16px;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
}
a { color: var(--accent-strong); }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid var(--accent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand-company { height: 40px; width: auto; display: block; }
.brand-divider { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }
.brand-mark { width: 34px; height: 34px; display: block; flex: none; }
.brand-name { font: 700 19px/1 "Poppins", var(--body); letter-spacing: -0.02em; color: var(--ink); }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--accent-strong); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font: 700 15px/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .field input:focus-visible, a:focus-visible { outline: 3px solid rgba(19, 112, 95, 0.35); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.hero h1 {
  font: 600 clamp(40px, 5.6vw, 68px)/1.04 var(--display);
  letter-spacing: -0.025em; margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.chips svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- preview card ---------- */
.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 18px;
}
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 12px; font-weight: 700; color: var(--muted); }
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.preview-body { padding: 18px 6px 4px; }
.preview-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.preview-title { font: 600 26px/1.2 var(--display); margin: 4px 0 16px; }
.stat {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); border-top: 3px solid var(--accent); margin-bottom: 14px;
}
.stat b { font: 600 34px/1 var(--display); }
.stat span { font-size: 14px; color: var(--muted); }
.rows { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600;
}
.row .n { margin-left: auto; color: var(--muted); font-weight: 600; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.violet { background: var(--violet-soft); color: var(--violet); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section h2 { font: 600 clamp(30px, 3.6vw, 42px)/1.12 var(--display); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px;
}

.band {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #fff;
  border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between;
}
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; opacity: 0.9; }
.band .btn { background: #fff; color: var(--accent-strong); border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* ---------- auth pages ---------- */
.auth-main { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 32px;
}
.auth-card h1 { font: 600 30px/1.15 var(--display); margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid #c3d6cf; background: #fff; color: var(--ink); font: 16px var(--body);
}
.field input:focus { border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--muted); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row a { font-size: 13px; font-weight: 600; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--accent-strong); font: 600 13px var(--body); cursor: pointer; padding: 8px;
}
.alt { text-align: center; font-size: 15px; color: var(--muted); margin: 20px 0 0; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.alert.error { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--good-soft); color: var(--good); }
.alert.info { background: var(--accent-soft); color: var(--accent-strong); }
.alert button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.legal-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
[hidden] { display: none !important; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding: 48px 20px 72px; }
.legal h1 { font: 600 40px/1.1 var(--display); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 34px 0 8px; }
.legal p, .legal li { color: #3a3f52; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .placeholder { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 620px) {
  .hero { padding: 44px 0 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 12px; }
  .brand-company, .brand-divider, .hide-sm { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .band { padding: 30px 24px; }
  .auth-card { padding: 24px 20px; }
  .site-footer nav { margin-left: 0; }
}
@media (max-width: 420px) {
  /* Keep just the LP mark so both header buttons fit on small phones. */
  .site-header .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
