/* Fleet of One — shared stylesheet for legal + utility pages.
   Reskinned to match the neon-swirl landing (index.html). Mobile-first,
   no external requests. Signature swirl gradient fixed behind a dark scrim
   for legibility; glass sticky pill nav; 3-square brand mark; serif-italic
   display accents; mono uppercase eyebrows; orange links/CTA with glow;
   glass cards; generous legal typography.

   Palette: ground #050507, ink #f4f5fa, muted #a7adbe, faint #6b7080.
   Neon: orange #ff3c00 (brand/CTA), pink #ff007f, purple #9b00ff,
   blue #008cff, lime #b8ff00. */

:root {
  color-scheme: dark;

  --bg: #050507;
  --ink: #f4f5fa;
  --muted: #a7adbe;
  --faint: #6b7080;

  --orange: #ff3c00;
  --pink: #ff007f;
  --purple: #9b00ff;
  --blue: #008cff;
  --lime: #b8ff00;

  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.045);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;

  --maxw: 1160px;

  /* Back-compat aliases so any legacy rule/markup keeps resolving. */
  --paper: var(--bg);
  --panel: var(--glass);
  --accent: var(--orange);
  --accent-2: var(--orange);
  --accent-3: var(--pink);
  --accent-4: var(--purple);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Signature neon-swirl background + dark scrim ----------
   Two fixed layers behind everything: the swirl gradient, then a dark
   scrim for text legibility. Mirrors the landing exactly. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(55% 75% at 18% 22%, rgba(255, 60, 0, 0.55), transparent 60%),
    radial-gradient(50% 70% at 82% 26%, rgba(155, 0, 255, 0.55), transparent 60%),
    radial-gradient(60% 80% at 62% 82%, rgba(0, 140, 255, 0.5), transparent 62%),
    radial-gradient(50% 60% at 26% 92%, rgba(255, 0, 127, 0.5), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 8%, transparent 30%, rgba(5, 5, 7, 0.6) 78%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.4), rgba(5, 5, 7, 0.2) 30%, rgba(5, 5, 7, 0.6) 78%, var(--bg));
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

::selection {
  background: rgba(255, 60, 0, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Glass surface (nav pill, cards) ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow:
    0 8px 40px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Sticky glass pill nav ---------- */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
  margin-bottom: 8px;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 9px 12px 9px 18px;
  border-radius: 999px;
  min-height: 56px;

  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow:
    0 8px 40px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Brand mark: 3 rounded squares + wordmark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .mk {
  width: 20px;
  height: 20px;
  position: relative;
  flex: 0 0 auto;
}

.brand .mk i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.brand .mk i:nth-child(1) {
  left: 0;
  top: 0;
  background: var(--orange);
  opacity: 0.85;
}

.brand .mk i:nth-child(2) {
  right: 0;
  top: 2px;
  background: var(--pink);
}

.brand .mk i:nth-child(3) {
  left: 5px;
  bottom: 0;
  background: var(--blue);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-width: 0;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 640;
  font-size: 15px;
  background: var(--orange);
  color: #140600;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow:
    0 0 34px -4px rgba(255, 60, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.button:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow:
    0 0 46px 0 rgba(255, 60, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button.secondary {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 9px 16px;
  min-height: 0;
  font-size: 13.5px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  transform: none;
}

/* ---------- Type scale ---------- */
h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  overflow-wrap: break-word;
  color: var(--ink);
  text-wrap: balance;
}

/* Serif-italic accent for emphasis inside headings. */
h1 em,
h2 em,
h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 8vw, 3rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
}

h3 {
  font-size: 1.18rem;
  font-weight: 640;
}

p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: break-word;
}

/* ---------- Links inside content: orange with glow on hover ---------- */
.legal-page a,
.footer-inner a,
.card a,
p a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

.legal-page a:hover,
.footer-inner a:hover,
.card a:hover,
p a:hover {
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255, 60, 0, 0.6);
}

/* ---------- Mono uppercase eyebrow ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* ---------- Sections ---------- */
.section {
  padding: 40px 20px 64px;
  position: relative;
}

/* ---------- Legal / utility page: generous glass reading card ---------- */
.legal-page {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 32px 24px 40px;
  border-radius: 22px;

  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow:
    0 8px 40px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  line-height: 1.75;
}

.legal-page > .eyebrow {
  margin-bottom: 14px;
}

.legal-page h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.legal-page h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 640;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 8px;
}

/* Small orange tick before each section heading to echo the eyebrow. */
.legal-page h2::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}

.legal-page p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}

.legal-page p:first-of-type {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.legal-page ul {
  color: var(--muted);
  margin-top: 12px;
  padding-left: 22px;
}

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

.legal-page ul li::marker {
  color: var(--orange);
}

/* Thank-you page action row. */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  width: 100%;
}

/* ---------- Footer (matches landing) ---------- */
.site-footer {
  border-top: 1px solid var(--line-2);
  padding: 40px 20px 60px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-fine {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 64ch;
}

.footer-fine a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-inner span {
  overflow-wrap: anywhere;
}

/* ================= Tablet: 720px and up ================= */
@media (min-width: 720px) {
  .site-header {
    padding: 0 24px;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 20px;
    padding: 9px 12px 9px 20px;
  }

  .section {
    padding: 56px 24px 80px;
  }

  .legal-page {
    margin-top: 40px;
    padding: 48px 44px 52px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-actions .button {
    width: auto;
  }

  .site-footer {
    padding: 48px 24px 64px;
  }

  .footer-inner {
    gap: 20px;
  }
}

/* ================= Desktop: 1080px and up ================= */
@media (min-width: 1080px) {
  .section {
    padding: 64px 24px 96px;
  }

  .legal-page {
    padding: 56px 56px 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
