/* ========== Base / Tokens ========== */
@font-face {
  font-family: "Cartridge Light";
  src: url("/assets/fonts/Cartridge-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Primary CTA tone sampled toward the brighter cyan edge of the brand tray. */
  --teal: rgb(32, 165, 192);
  --teal-dark: rgb(77, 195, 217);

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #111827;
  --muted: rgba(17, 24, 39, 0.68);

  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --surface: #fbfcff;

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1160px;
  --display-font: "Cartridge Light", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 20, 24, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.brand-lockup-link {
  min-width: 0;
}

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

.brand-lockup {
  --brand-lockup-icon-size: 48px;
  --brand-lockup-font-size: 32px;
  --brand-lockup-gap: 12px;
  display: grid;
  grid-template-columns: var(--brand-lockup-icon-size) minmax(0, 1fr);
  gap: var(--brand-lockup-gap);
  align-items: center;
  min-width: 0;
}

.brand-lockup-icon {
  width: var(--brand-lockup-icon-size);
  height: var(--brand-lockup-icon-size);
  object-fit: contain;
}

.brand-lockup-wordmark {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--display-font);
  font-style: normal;
  font-weight: 400;
  font-size: var(--brand-lockup-font-size);
  line-height: 0.78;
  letter-spacing: -0.042em;
  color: var(--text);
  transform: translateX(-3px);
}

.brand-lockup-wordmark span {
  display: block;
  white-space: nowrap;
}

.brand-lockup-footer {
  --brand-lockup-icon-size: 48px;
  --brand-lockup-font-size: 32px;
  --brand-lockup-gap: 12px;
}

.nav {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  color: rgba(16, 20, 24, 0.72);
  padding: 7px 10px;
  border-radius: 999px;
}

.nav-link:hover {
  background: rgba(16, 20, 24, 0.05);
  text-decoration: none;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.btn-small {
  padding: 10px 14px;
  font-size: 13px;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: rgba(16, 20, 24, 0.08);
  box-shadow: 0 10px 22px rgba(77, 195, 217, 0.34);
}

.btn-primary:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

/* ========== Hero ========== */
.hero {
  padding: 72px 0 52px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.hero-copy {
  max-width: none;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: none;
}

.lede {
  margin: 0 0 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: none;
}

.fineprint {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.56);
}

.hero-media {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: #fff;
  box-shadow: 0 28px 56px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

/* Ensure the hero image stays “1:1” (no cropping). */
.hero-media img {
  width: 100%;
  height: auto;
}

.hero-picture {
  display: block;
  width: 100%;
}

.hero-picture .hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Sections ========== */
.section {
  padding: 54px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(16, 20, 24, 0.06);
  border-bottom: 1px solid rgba(16, 20, 24, 0.06);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* ========== Two Column / Note ========== */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.terms-index {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.terms-index h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
}

.terms-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 20, 24, 0.10);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 20, 24, 0.06);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.terms-card:hover {
  transform: translateY(-1px);
  text-decoration: none;
  border-color: rgba(16, 20, 24, 0.14);
  box-shadow: 0 16px 34px rgba(16, 20, 24, 0.09);
}

.terms-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.terms-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(16, 20, 24, 0.72);
}

.note {
  border: 1px solid rgba(16, 20, 24, 0.10);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(16, 20, 24, 0.02);
}

.note h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.note p {
  margin: 0;
  color: rgba(16, 20, 24, 0.66);
  font-size: 14px;
}

/* ========== Contact ========== */
.contact {
  display: grid;
  gap: 16px;
}

.contact-head p {
  margin-top: 6px;
}

.contact-actions {
  border: 1px solid rgba(16, 20, 24, 0.10);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  max-width: 680px;
}

/* ========== Footer ========== */
.site-footer {
  padding: 26px 0 32px;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
  background: #fff;
}

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

.brand-footer {
  /* font-weight: 600; */
  min-width: 0;
}

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

.footer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(16, 20, 24, 0.62);
  font-size: 13px;
  margin-top: 6px;
}

.dot {
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #313B48;
    --bg-alt: #313B48;
    --surface: #3a4654;
    --text: #f3f7fb;
    --muted: rgba(231, 238, 246, 0.74);
    --border: rgba(223, 232, 243, 0.16);
    --shadow: 0 22px 50px rgba(8, 12, 18, 0.34);
  }

  .site-header {
    background: rgba(37, 46, 57, 0.82);
    border-bottom-color: rgba(223, 232, 243, 0.12);
  }

  .nav-link {
    color: rgba(231, 238, 246, 0.78);
  }

  .nav-link:hover {
    background: rgba(231, 238, 246, 0.08);
  }

  .hero {
    background: var(--bg);
  }

  .terms-card {
    background: #24303c;
    border-color: rgba(223, 232, 243, 0.14);
    box-shadow: 0 18px 42px rgba(8, 12, 18, 0.28);
  }

  .terms-card-title {
    color: var(--text);
  }

  .fineprint,
  .bullets,
  .note p,
  .footer-meta {
    color: rgba(231, 238, 246, 0.72);
  }

  .hero-media,
  .note,
  .contact-actions {
    background: #24303c;
    border-color: rgba(223, 232, 243, 0.14);
    box-shadow: 0 18px 42px rgba(8, 12, 18, 0.28);
  }

  .section-alt {
    background: var(--bg);
    border-top-color: rgba(223, 232, 243, 0.08);
    border-bottom-color: rgba(223, 232, 243, 0.08);
  }

  .site-footer {
    background: rgba(37, 46, 57, 0.82);
    border-top-color: rgba(223, 232, 243, 0.12);
  }
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .nav {
    grid-area: nav;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header .btn {
    grid-area: cta;
  }

  .terms-card {
    width: 100%;
    max-width: 560px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

footer {
  margin-top: auto;
}

/* Footer legal entity */
.footer-llc {
  white-space: nowrap;
}
