/* Public pages — homepage, privacy, terms.
 *
 * Deliberately outside the React app. These have to be reachable by someone who
 * is not signed in, and in the OAuth review case by someone running a browser we
 * do not control: a Google reviewer who hits a blank page while the bundle loads
 * files that as "homepage not accessible". Static HTML and one stylesheet, no
 * JavaScript, nothing to fail.
 */

:root {
  --teal: #4192a0;
  --teal-dark: #33757f;
  --coral: #fd8c73;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --wash: #f8fafc;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--ink);
  padding: 18px 0;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { height: 30px; width: auto; mix-blend-mode: screen; }
.site-header nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 22px;
}
.site-header nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 64px 0 76px; }
.hero h1 {
  margin: 0 0 20px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: 800;
  max-width: 18ch;
}
.hero p.lede {
  font-size: 19px;
  color: #cbd5e1;
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero .accent { color: var(--coral); }

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 9px;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  margin-left: 10px;
}
.btn-ghost:hover { background: #1e293b; color: #fff; }

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--wash); border-block: 1px solid var(--line); }

h2 {
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 30px 0 8px;
  font-weight: 700;
}
.section-lede { font-size: 17px; max-width: 62ch; margin: 0 0 36px; color: var(--muted); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin-top: 0; font-size: 18px; }
.card p { margin: 0; font-size: 15px; }
.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 52px;
  border-left: 2px solid var(--line);
  margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { color: var(--ink); display: block; font-size: 16px; }
.steps span { font-size: 15px; }

/* Legal pages */
.legal { padding: 52px 0 72px; }
.legal h1 {
  color: var(--ink);
  font-size: 36px;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  font-weight: 800;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 34px; }
.legal h2 {
  font-size: 21px;
  margin: 40px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal p { margin: 0 0 14px; }

.callout {
  background: rgba(65, 146, 160, 0.07);
  border: 1px solid rgba(65, 146, 160, 0.3);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--teal-dark); }

.note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

table.plain {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
table.plain th, table.plain td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.plain th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.table-scroll { overflow-x: auto; }

code {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 40px 0;
  font-size: 14px;
  margin-top: 0;
}
.site-footer .bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: #cbd5e1; text-decoration: none; margin-right: 20px; font-weight: 600; }
.site-footer a:hover { color: #fff; }

@media (max-width: 720px) {
  .hero { padding: 48px 0 54px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 17px; }
  .cols { grid-template-columns: 1fr; }
  .legal h1 { font-size: 29px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .site-header nav a { margin-left: 0; margin-right: 18px; }
}
