:root {
  --black: #000000;
  --green: #2e994d;
  --forest: #243328;
  --white: #ffffff;
  --red: #f70700;
  --blue: #1d387a;
  --cream: #f3f0e9;

  --mat: var(--black);
  --mat-elevated: var(--forest);
  --mat-line: color-mix(in srgb, var(--cream) 14%, transparent);
  --paper: var(--cream);
  --ink: var(--black);
  --accent: var(--green);
  --accent-hot: color-mix(in srgb, var(--green) 82%, var(--black));
  --mist: color-mix(in srgb, var(--cream) 72%, transparent);
  --background: var(--paper);
  --foreground: var(--ink);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body), system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.font-display {
  font-family: var(--font-display), Impact, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 2rem));
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--mat-line);
  background: color-mix(in srgb, var(--black) 92%, transparent);
  backdrop-filter: blur(10px);
  color: var(--cream);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.55rem 0;
}

.site-header-brand {
  font-family: var(--font-display), Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a:not(.btn) {
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}

.site-nav a:not(.btn):hover {
  color: var(--green);
}

.site-nav-login {
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, color-mix(in srgb, var(--green) 32%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 50%),
    linear-gradient(160deg, var(--black) 0%, var(--forest) 48%, var(--black) 100%);
  color: var(--cream);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 18px,
      color-mix(in srgb, var(--cream) 4%, transparent) 18px,
      color-mix(in srgb, var(--cream) 4%, transparent) 19px
    );
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }
}

.home-copy {
  max-width: 36rem;
}

.home-logo {
  display: block;
  height: auto;
  width: min(14rem, 60vw);
}

.eyebrow {
  display: block;
  margin-top: 1.25rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-copy h1,
.page-title {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
}

.home-copy p {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--mist);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero-shot {
  border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent);
  background: color-mix(in srgb, var(--black) 35%, transparent);
  padding: 0.5rem;
}

.home-hero-shot .screen-image {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.15rem;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hot);
}

.btn-ghost {
  border: 1px solid color-mix(in srgb, var(--cream) 35%, transparent);
  background: transparent;
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--white);
}

.btn-ghost-ink {
  border: 1px solid color-mix(in srgb, var(--forest) 28%, transparent);
  background: transparent;
  color: var(--ink);
}

.btn-ghost-ink:hover {
  border-color: var(--green);
  color: var(--forest);
}

/* Sections */
.page-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-section-alt {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--forest) 6%, var(--paper)), var(--paper));
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

.home-hero .section-title,
.contact-band .section-title {
  color: var(--cream);
}

.section-lead {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}

.section-lead a,
.feature-note a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-cta {
  margin-top: 1.75rem;
  text-align: center;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.feature-tile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--green);
  background: color-mix(in srgb, var(--forest) 7%, var(--paper));
  font-weight: 650;
}

.feature-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feature-tile-desc {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.4;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--green) 55%, var(--forest));
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shot-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.shot-grid-1 {
  margin-inline: auto;
  justify-items: center;
}

@media (min-width: 720px) {
  .shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shot-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-grid-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48rem;
  }
}

.shot-figure {
  margin: 0;
}

.shot-figure-wide {
  margin-top: 1.25rem;
}

.shot-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.screen-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--forest) 16%, transparent);
  background: var(--white);
}

.screen-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.screen-image-trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent);
  outline-offset: 2px;
}

.screen-image-trigger .screen-image {
  transition: opacity 140ms ease;
}

.screen-image-trigger:hover .screen-image,
.screen-image-trigger:focus-visible .screen-image {
  opacity: 0.92;
}

.screen-image-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--forest) 88%, transparent);
  color: var(--cream, #f3f0e9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  pointer-events: none;
}

.screen-image-trigger:hover .screen-image-hint,
.screen-image-trigger:focus-visible .screen-image-hint {
  opacity: 1;
  transform: translateY(0);
}

.screen-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.screen-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: color-mix(in srgb, var(--black, #000) 72%, transparent);
  cursor: zoom-out;
}

.screen-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(96vw, 72rem);
  max-height: min(92vh, 56rem);
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--forest) 20%, transparent);
  background: var(--paper, #f3f0e9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.screen-lightbox-title {
  margin: 0;
  padding-right: 5.5rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.screen-lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid color-mix(in srgb, var(--forest) 22%, transparent);
  background: var(--white, #fff);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.screen-lightbox-close:hover,
.screen-lightbox-close:focus-visible {
  border-color: var(--green);
  outline: none;
}

.screen-lightbox-img {
  display: block;
  width: 100%;
  max-height: min(80vh, 48rem);
  height: auto;
  object-fit: contain;
  background: var(--white, #fff);
  border: 1px solid color-mix(in srgb, var(--forest) 14%, transparent);
}

/* Feature carousel */
.feature-carousel {
  outline: none;
  width: 100%;
  max-width: min(52rem, 100%);
  margin-inline: auto;
  overflow: hidden;
}

.feature-carousel:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 55%, transparent);
}

.feature-carousel-stage {
  border: 1px solid color-mix(in srgb, var(--forest) 16%, transparent);
  background: color-mix(in srgb, var(--forest) 5%, var(--paper));
  padding: 0.45rem;
}

.feature-carousel-stage .screen-image,
.feature-carousel-stage .screen-image-trigger {
  display: block;
  border: 0;
}

.feature-carousel-stage .screen-image-trigger .screen-image {
  border: 0;
}

.feature-carousel-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.85rem 0 0;
  min-height: 3.5rem;
  text-align: center;
}

.feature-carousel-caption-title {
  font-family: var(--font-display), Impact, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-carousel-caption-text {
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  font-size: 0.98rem;
  line-height: 1.45;
}

.feature-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.feature-carousel-nav {
  min-height: 2.5rem;
  min-width: 4.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--forest) 28%, transparent);
  background: color-mix(in srgb, var(--forest) 6%, var(--paper));
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.feature-carousel-nav:hover {
  border-color: var(--green);
  color: var(--forest);
}

.feature-carousel-nav:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.feature-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  max-width: 100%;
}

.feature-carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.feature-carousel-dot[aria-current="true"] {
  background: var(--green);
  border-color: var(--green);
}

.feature-carousel-dot:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .feature-carousel-controls {
    gap: 0.55rem;
  }

  .feature-carousel-nav {
    min-width: 3.75rem;
    padding-inline: 0.65rem;
    font-size: 0.82rem;
  }

  .feature-carousel-caption-text {
    font-size: 0.92rem;
  }
}

.licenses-heading {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.license-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 3px solid var(--green);
  background: color-mix(in srgb, var(--forest) 6%, var(--paper));
}

.license-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  text-align: left;
}

.license-table-caption {
  caption-side: top;
  padding: 0.85rem 1rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  text-align: left;
}

.license-table th,
.license-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--forest) 14%, transparent);
  vertical-align: middle;
}

.license-table thead th {
  font-family: var(--font-display), Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.license-table tbody th[scope="row"] {
  max-width: 18rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  line-height: 1.4;
}

.license-table td {
  text-align: center;
  white-space: nowrap;
}

.license-table tfoot td {
  padding-block: 1rem;
}

.tier-check {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 800;
}

.tier-check-empty {
  color: color-mix(in srgb, var(--ink) 35%, transparent);
  font-size: 1rem;
}

.license-tier-link {
  display: inline-block;
  max-width: 9.5rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: normal;
}

.license-tier-link:hover {
  color: var(--accent-hot);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coming-soon {
  margin-left: 0.35rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pair-section .tier-badge {
  margin-bottom: 0.75rem;
}

.text-card {
  max-width: 40rem;
  padding: 1.5rem 0;
  border-top: 3px solid var(--green);
}

.text-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.text-card-head .section-title {
  margin: 0;
}

.text-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.55;
  font-size: 1.05rem;
}

.text-card-cta {
  margin-top: 1.25rem;
}

.contact-band {
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, color-mix(in srgb, var(--green) 28%, transparent), transparent 55%),
    linear-gradient(160deg, var(--black) 0%, var(--forest) 55%, var(--black) 100%);
  color: var(--cream);
}

.contact-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.contact-band .section-title {
  margin: 0;
}

/* Features */
.features-intro {
  padding-bottom: 1.5rem;
}

.features-page .section-title {
  text-align: center;
}

.features-page .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.features-page .feature-topic:nth-child(even) {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--forest) 6%, var(--paper)), var(--paper));
}

.feature-topic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.feature-topic-head .section-title {
  margin-bottom: 0;
}

.features-page .contact-band-inner {
  justify-content: center;
  text-align: center;
}

.feature-note {
  margin: -0.5rem 0 1.25rem;
  max-width: 42rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.55;
}

.feature-note .tier-badge {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Contact */
.contact-privacy-link {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.contact-privacy-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-page-inner {
  max-width: 40rem;
}

.inquiry-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
}

.inquiry-note p {
  margin: 0;
}

.inquiry-note-title {
  font-weight: 700;
  font-size: 1rem;
}

.inquiry-note-helper {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.inquiry-note-routing {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.contact-page #hp-form-root {
  margin-top: 1.5rem;
  min-height: 12rem;
}

/* Footer */
/* Legal document pages */
.legal-page-inner {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-page .page-title {
  text-align: left;
}

.legal-unavailable {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: 0.9rem;
}

.legal-doc-body {
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-doc-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display), Impact, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}

.legal-doc-body p {
  margin: 0 0 1rem;
}

.legal-doc-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc-body li {
  margin-bottom: 0.45rem;
}

.legal-doc-body a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-contact-btn {
  margin-top: 2rem;
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--mat-line);
  background: var(--mat);
  color: var(--paper);
  padding: 1.15rem 0 max(1rem, env(safe-area-inset-bottom));
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer-nav a {
  color: var(--green);
}

.site-footer-nav a:hover {
  color: var(--cream);
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #d9d4c8;
}

.site-footer p a {
  color: var(--green);
  font-weight: 700;
}

.site-footer p a:hover {
  color: var(--cream);
}
