/* Offwatch Social Ltd — public website
   Plain CSS, no build step. Palette and type match the OffWatch app's own
   founding design pack (see app/lib/core/theme/) for brand continuity. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-Variable.ttf") format("truetype-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1320;
  --navy-surface: #1a2332;
  --navy-surface-2: #141c2b;
  --line: rgba(230, 232, 235, 0.12);
  --line-strong: rgba(230, 232, 235, 0.22);
  --gold: #d4af37;
  --gold-light: #f0c75e;
  --grey: #8a949e;
  --off-white: #e6e8eb;
  --max-width: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--off-white);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */

header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 19, 32, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--off-white);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-word .word-off {
  color: var(--gold);
}

.brand-word .word-watch {
  color: var(--off-white);
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  color: var(--grey);
  font-size: 15px;
  font-weight: 500;
}

nav.primary-nav a:hover {
  color: var(--off-white);
  text-decoration: none;
}

nav.primary-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

/* Mobile nav — checkbox toggle, no JS */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  position: relative;
  transition: background 0.15s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

@media (max-width: 720px) {
  nav.primary-nav {
    display: none;
    width: 100%;
  }

  nav.primary-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  nav.primary-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle:checked ~ .header-inner nav.primary-nav {
    display: block;
  }
}

/* Hero */

.hero {
  background:
    radial-gradient(ellipse 900px 480px at 50% -10%, rgba(212, 175, 55, 0.14), transparent 60%),
    var(--navy);
  padding: 88px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  max-width: 720px;
}

.hero-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.hero-wordmark {
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}

.hero-wordmark .word-off {
  color: var(--gold);
}

.hero-wordmark .word-watch {
  color: var(--off-white);
}

.hero-slogan {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero h1 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--off-white);
  margin: 36px auto 18px;
  max-width: 640px;
}

.hero p.lede {
  font-size: 18px;
  color: var(--grey);
  margin: 0 auto 28px;
  max-width: 600px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 18px;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--off-white);
}

.notice-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Sections */

main section {
  padding: 80px 0;
}

main section.tight {
  padding: 52px 0;
}

section.alt {
  background: var(--navy-surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--off-white);
}

h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--off-white);
}

p {
  color: var(--grey);
  margin: 0 0 16px;
  font-size: 16.5px;
}

.lead-text {
  font-size: 18px;
  color: var(--grey);
  max-width: 680px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--gold);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 0;
  font-size: 15.5px;
}

/* Feature showcase (home page) */

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 88px;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

@media (max-width: 860px) {
  .feature-row,
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual {
    order: initial;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row + .feature-row {
    margin-top: 56px;
  }
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.feature-copy h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

.feature-copy p {
  font-size: 16.5px;
}

.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--off-white);
  font-size: 15px;
}

.feature-list svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-visual {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.12), transparent 55%);
  pointer-events: none;
}

.feature-visual svg {
  width: 100%;
  max-width: 260px;
  position: relative;
}

/* Legal / long-form content pages */

.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 8px;
  color: var(--off-white);
}

.legal .updated {
  color: var(--grey);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  color: var(--off-white);
}

.legal ul {
  color: var(--grey);
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--navy-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin-bottom: 6px;
}

.contact-card dd {
  margin: 0 0 20px;
  font-size: 16.5px;
  color: var(--off-white);
}

.contact-card dd:last-child {
  margin-bottom: 0;
}

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-inner nav a {
  color: var(--grey);
  font-size: 14px;
}

.footer-inner nav a:hover {
  color: var(--off-white);
}

.footer-note {
  color: var(--grey);
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--grey);
}

.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  text-decoration: none;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}
