/* Goarau marketing site. Shared stylesheet for index, privacy, terms and 404. */

@font-face {
  font-family: "Urbanist";
  src: url("/fonts/urbanist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #151518;
  --card: #09090b;
  --card-2: #101013;
  --line: #242428;
  --line-2: #2e2e34;
  --text: #e7eef8;
  --muted: #9caec3;
  --accent: #7340ec;
  --accent-soft: rgba(115, 64, 236, 0.14);
  --accent-text: #b79bff;
  --btn: #f5f5f5;
  --btn-text: #09090b;
  --ok: #4ade80;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --gutter: 16px;
  --font-ui: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--btn);
  color: var(--btn-text);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
  font-family: var(--font-ui);
  font-weight: 600;
}
.skip-link:focus { left: 8px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 21, 24, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand img { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.16em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
@media (max-width: 719px) {
  .nav-link.hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: #ffffff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: #45454d; background: rgba(255, 255, 255, 0.03); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 12px; }

/* Generic section */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4.2vw, 42px); }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* Hero */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 104px 0 112px; } }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 720px;
  height: 720px;
  max-width: 120vw;
  background: radial-gradient(closest-side, rgba(115, 64, 236, 0.22), rgba(115, 64, 236, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: var(--card);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero h1 { font-size: clamp(36px, 6.4vw, 62px); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent-text); }
.hero-sub { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.hero-note a { color: var(--text); }

/* Hero mock (inline SVG-free HTML panel) */
.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  min-width: 0;
}
.mock-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.mock-title { font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.mock-chip {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.kpi-label { color: var(--muted); font-size: 12px; font-family: var(--font-ui); font-weight: 600; }
.kpi-bar { height: 8px; border-radius: 4px; background: var(--line-2); margin-top: 10px; }
.kpi-bar.w60 { width: 60%; } .kpi-bar.w80 { width: 80%; } .kpi-bar.w45 { width: 45%; }
.mock-chart { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.mock-chart svg { width: 100%; height: auto; }
.mock-rows { display: grid; gap: 8px; }
.mock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.mock-row .name { font-family: var(--font-ui); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-family: var(--font-ui); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status.paused { color: var(--muted); background: rgba(156, 174, 195, 0.1); }
.status.active { color: var(--ok); background: rgba(74, 222, 128, 0.1); }
.mock-caption { color: var(--muted); font-size: 12px; margin-top: 12px; text-align: center; }

/* Feature cards */
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--line-2); }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-text);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { color: var(--muted); font-size: 14px; padding-left: 22px; position: relative; }
.step li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Security */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.check-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.check-mark svg { width: 16px; height: 16px; }
.check h3 { font-size: 17px; margin-bottom: 4px; }
.check p { color: var(--muted); font-size: 15px; }
.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.text-link:hover { color: #ffffff; }
.security-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Access */
.access {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .access { padding: 56px; } }
.access::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(115, 64, 236, 0.18), rgba(115, 64, 236, 0));
  pointer-events: none;
}
.access-grid { position: relative; display: grid; gap: 32px; }
@media (min-width: 900px) { .access-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 56px; } }
.access h2 { font-size: clamp(28px, 4vw, 40px); }
.access p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.access-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.access-facts li {
  border: 1px solid var(--line);
  background: var(--card-2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
}
.access-facts strong { color: var(--text); font-family: var(--font-ui); font-weight: 700; display: block; font-size: 15px; }
.access-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mail { font-family: var(--font-ui); font-weight: 600; color: var(--text); word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; font-family: var(--font-ui); font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 520px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted); }

/* Legal / long-form pages (privacy, terms) */
.page-hero { padding: 56px 0 32px; }
@media (min-width: 900px) { .page-hero { padding: 80px 0 40px; } }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.page-meta { color: var(--muted); font-size: 15px; margin-top: 12px; }
.legal-layout { display: grid; gap: 32px; padding-bottom: 80px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; } }
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
@media (min-width: 1000px) { .toc { position: sticky; top: 88px; } }
.toc-title { font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--text); }
.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { color: #c9d4e2; font-size: 16px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.prose .callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c9d4e2; }
.prose th { font-family: var(--font-ui); font-weight: 700; color: var(--text); background: var(--card); }
.prose tr:last-child td { border-bottom: 0; }

/* 404 */
.notfound { min-height: calc(100vh - 64px - 220px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--font-ui); font-weight: 800; font-size: clamp(72px, 16vw, 140px); line-height: 1; color: var(--accent-text); letter-spacing: -0.04em; }
.notfound h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 12px; }
.notfound p { color: var(--muted); margin-top: 12px; }
.notfound .hero-actions { justify-content: center; }

.disclaimer { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Terms page: anchor offset for sticky header on section targets */
.prose section[id] { scroll-margin-top: 88px; }
.prose section[id] > h2 { margin-top: 44px; }
.prose > .callout + section[id] > h2 { margin-top: 8px; }

/* Privacy page additions */
.legal-intro { max-width: 760px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.prose .legal-contact a { font-family: var(--font-ui); font-weight: 700; font-size: 18px; }
.prose p, .prose li { overflow-wrap: break-word; }
.footer-links a[aria-current="page"] { color: var(--text); }
