/* Sentinel brand system — matches the app (sentinel-ui globals.css):
   navy #122c54 / navy-ink #1b3a66 / brand-red #c8202f / bg #f4f6f8,
   Georgia serif headings, wordmark with red initial + red star. */
:root {
  --navy: #122c54;
  --navy-ink: #1b3a66;
  --navy-deep: #0d2140;
  --red: #c8202f;
  --red-dark: #a01926;
  --red-on-navy: #e04a56;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --serif: Georgia, "Source Serif 4", "Times New Roman", ui-serif, serif;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Wordmark — serif, red initial + red four-point star (matches app) */
.wm {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.wm .wm-i { color: var(--red-on-navy); }
.wm .wm-star {
  color: var(--red-on-navy);
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 0.08em;
}

/* Header */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--red);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand span.by {
  font-weight: 400;
  font-size: 0.75rem;
  color: #b9cbe6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: #d7e0ec;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { color: #fff; }
.btn-login {
  background: var(--red);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-login:hover { background: var(--red-dark); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.18;
  max-width: 780px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--red-on-navy); font-style: normal; }
.hero p.lede {
  margin-top: 22px;
  max-width: 640px;
  font-size: 1.15rem;
  color: #b9cbe6;
}
.hero .cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  border: 1px solid #3d5578;
  color: #d7e0ec;
  padding: 14px 34px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.02rem;
}
.btn-ghost:hover { border-color: #b9cbe6; color: #fff; }

/* Sections */
section.features { padding: 84px 0; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
h2.section-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--navy-ink);
}
.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}
.card h3 {
  font-family: var(--serif);
  color: var(--navy-ink);
  font-size: 1.14rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.97rem; }

/* Band */
.band {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  max-width: 620px;
}
.band p { color: #b9cbe6; margin-top: 8px; max-width: 620px; }

/* Prose pages (about / privacy / terms) */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.2rem;
}
.page-head p { color: #b9cbe6; margin-top: 10px; max-width: 660px; }
.page-head a { color: var(--red-on-navy); }
main.prose { padding: 56px 0 72px; }
.prose-inner { max-width: 760px; }
.prose h2 {
  font-family: var(--serif);
  color: var(--navy-ink);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 36px 0 12px;
}
.prose h3 {
  color: var(--navy-ink);
  font-size: 1.05rem;
  margin: 26px 0 8px;
}
.prose p, .prose li { color: #33404d; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose .updated {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
}

/* Footer */
footer {
  background: var(--navy-deep);
  color: #93a6bf;
  padding: 56px 0 40px;
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.foot-grid h4 {
  color: #d7e0ec;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 14px;
}
.foot-grid a { color: #93a6bf; text-decoration: none; display: block; margin-bottom: 9px; }
.foot-grid a:hover { color: #fff; }
.foot-brand { margin-bottom: 10px; }
.foot-brand .wm { font-size: 1.15rem; color: #fff; }
.legal {
  border-top: 1px solid #1e2b47;
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.83rem;
  color: #6a7f9a;
}
.legal a { color: #6a7f9a; text-decoration: none; margin-left: 18px; }
.legal a:hover { color: #fff; }

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a.plain { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal { flex-direction: column; }
  .legal a { margin-left: 0; margin-right: 18px; }
}
