:root {
  color-scheme: light;
  --ink: #001344;
  --muted: #536072;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --mint: #2dd4bf;
  --amber: #f6c744;
  --rose: #e65780;
  --shadow: 0 18px 50px rgb(17 24 39 / 14%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(217 226 236 / 80%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(14px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 0 22px;
  position: relative;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: auto;
  width: 250px;
  max-width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 18px;
}

.nav-links a:not(.button),
.nav-signin {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:not(.button):hover,
.nav-signin:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links .nav-signin {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.nav-compact {
  align-items: center;
  display: none;
  flex: 0 0 auto;
  gap: 10px;
  white-space: nowrap;
}

.brand {
  min-width: 0;
}

.nav-compact .nav-signin {
  padding: 10px 6px;
}

.nav-menu summary {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  list-style: none;
  min-height: 44px;
  padding: 0 12px;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu[open] summary {
  background: var(--soft);
  border-color: var(--brand);
}

.nav-menu-panel {
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgb(17 24 39 / 12%);
  display: grid;
  left: 0;
  padding: 6px 16px 18px;
  position: absolute;
  right: 0;
  top: 100%;
}

.nav-menu-panel a:not(.button) {
  border-bottom: 1px solid var(--soft);
  color: #334155;
  font-weight: 700;
  padding: 13px 4px;
  text-decoration: none;
}

.nav-menu-panel .button {
  margin-top: 14px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary,
.nav-links .button-primary {
  background: var(--brand);
  color: white;
}

.button-primary:hover {
  background: var(--brand-strong);
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-outline {
  border: 1px solid rgb(255 255 255 / 50%);
  color: white;
}

.hero {
  background: #0e1729;
  color: white;
  overflow: hidden;
  position: relative;
}

.hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  width: 100%;
}

.hero::after {
  background:
    linear-gradient(90deg, rgb(8 13 24 / 92%) 0%, rgb(8 13 24 / 70%) 46%, rgb(8 13 24 / 28%) 100%),
    linear-gradient(0deg, rgb(8 13 24 / 80%) 0%, transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

/* The hero fills the first screen without pushing the CTA below the fold.
   Bottom padding leaves room for the slim consent bar. */
.hero-inner {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: min(calc(100vh - 72px), 760px);
  min-height: min(calc(100svh - 72px), 760px);
  padding: clamp(28px, 5vh, 56px) 22px clamp(84px, 11vh, 104px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.section:not(.section-dark) .eyebrow {
  color: #92400e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 16px;
  max-width: 760px;
}

.hero-copy {
  color: #e5edf6;
  font-size: clamp(1.02rem, 0.92rem + 0.45vw, 1.22rem);
  margin-bottom: 0;
  max-width: 640px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-price {
  color: white;
  font-size: 0.98rem;
  font-weight: 750;
  margin: 16px 0 0;
}

.hero-facts {
  color: #dce9f5;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 6px 18px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.hero-facts li {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.hero-facts li::before {
  background: var(--mint);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.preview-stack {
  display: grid;
  gap: 14px;
}

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

.preview-stack.preview-pair img {
  aspect-ratio: 3 / 4;
  height: auto;
}

.preview-single {
  justify-self: center;
  max-width: 340px;
  width: 100%;
}

.preview-stack figure {
  backdrop-filter: blur(6px);
  background: rgb(8 13 24 / 62%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.preview-stack img {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border-radius: 6px;
  object-fit: contain;
  width: 100%;
}

.preview-stack figcaption {
  color: #dce9f5;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 2px 2px;
}

.section {
  padding: 78px 22px;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: #111827;
  color: white;
}

.wrap {
  margin: 0 auto;
  max-width: 1180px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-head h2,
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 12px;
}

.section-head p,
.cta-panel p,
.split p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.section-dark .cta-panel p {
  color: #cbd5e1;
}

.split {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: 0.9fr 1.1fr;
}

.comparison {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison figure,
.theme-card,
.step,
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.comparison img,
.theme-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.comparison img {
  object-fit: contain;
}

.comparison figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 14px 14px;
}

.theme-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card {
  box-shadow: 0 10px 34px rgb(17 24 39 / 8%);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.theme-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.theme-card-body {
  padding: 20px;
}

.category {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.theme-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.theme-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.theme-facts span {
  background: #eff6ff;
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 9px;
}

.theme-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 24px;
}

.step strong {
  color: var(--rose);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  margin-bottom: 0;
}

.theme-hero .hero-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
}

.head-cta {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: start;
}

.price-note,
.head-cta .price-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 12px 0 0;
}

.head-cta .price-note {
  margin: 0;
  max-width: 300px;
}

.price-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.price-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.price-card p {
  color: var(--muted);
  margin: 0;
}

.price-card .price {
  color: var(--ink);
}

.price b {
  font-size: 2.3rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-weight: 700;
  margin-left: 4px;
}

.price-card .button {
  align-self: flex-start;
  margin-top: auto;
}

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

.price-list li {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.price-list b {
  font-size: 1.7rem;
  line-height: 1.1;
}

.price-list span {
  color: var(--muted);
  font-weight: 700;
}

.metrics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  padding: 22px;
}

.metric b {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 8px;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.benefit-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.video-feature {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.video-feature-copy p:not(.eyebrow) {
  color: #dbe7f5;
  font-size: 1.08rem;
  max-width: 620px;
}

.demo-video {
  aspect-ratio: 9 / 16;
  background: #050a13;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 42%);
  justify-self: end;
  max-height: 720px;
  width: 100%;
}

.benefit-list li {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #064e3b;
  font-weight: 750;
  padding: 14px 16px 14px 44px;
  position: relative;
}

.benefit-list li::before {
  content: "✓";
  font-size: 1.1rem;
  left: 17px;
  position: absolute;
  top: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 860px;
}

.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
  margin: 12px 0 0;
}

.cta-panel {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 34px 22px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-inner a {
  color: #e2e8f0;
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links button {
  appearance: none;
  background: none;
  border: 0;
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

/* Slim bar pinned to the bottom edge; the hero reserves space so it never covers the CTA. */
.privacy-consent {
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -10px 30px rgb(17 24 39 / 12%);
  display: flex;
  gap: 10px 24px;
  justify-content: center;
  left: 0;
  padding: 10px 22px calc(10px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: 0;
  z-index: 40;
}

.privacy-consent[hidden] {
  display: none;
}

/* Keep the end of the page reachable above the bar without a white strip under the footer. */
body:has(.privacy-consent:not([hidden])) .site-footer {
  padding-bottom: 106px;
}

[id] {
  scroll-margin-top: 88px;
}

.privacy-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 760px;
}

.privacy-consent h2,
.privacy-consent p {
  display: inline;
  font-size: inherit;
  margin: 0;
}

.privacy-consent h2 {
  color: var(--ink);
  font-weight: 850;
}

.privacy-consent a {
  color: var(--brand-strong);
  font-weight: 800;
}

.privacy-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.privacy-actions .button {
  font-size: 0.88rem;
  min-height: 40px;
  padding: 0 14px;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .nav-compact {
    display: flex;
  }
}

@media (max-width: 920px) {
  .hero-inner,
  .theme-hero .hero-inner,
  .video-feature,
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .theme-hero .hero-inner {
    align-content: start;
    gap: 28px;
    min-height: 0;
    padding-bottom: 56px;
  }

  /* Single-column hero: darken the whole photo so copy stays readable. */
  .hero::after {
    background: linear-gradient(180deg, rgb(8 13 24 / 84%) 0%, rgb(8 13 24 / 74%) 60%, rgb(8 13 24 / 88%) 100%);
  }

  /* Compact before/after below the CTA on phones and tablets. */
  .preview-stack {
    gap: 10px;
    justify-self: start;
    max-width: 380px;
    width: 100%;
  }

  .preview-single {
    max-width: 220px;
  }

  .preview-stack figure {
    padding: 6px;
  }

  .preview-stack figcaption {
    font-size: 0.78rem;
    padding: 6px 2px 0;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .demo-video {
    justify-self: center;
    max-height: 680px;
    width: min(100%, 383px);
  }

  .theme-grid,
  .steps,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .nav-compact-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand img {
    width: clamp(132px, 40vw, 190px);
  }

  .nav-compact {
    gap: 6px;
  }

  .nav-compact .button {
    min-height: 44px;
    padding: 0 12px;
  }

  .hero-inner,
  .theme-hero .hero-inner {
    padding: 24px 16px 40px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .button {
    min-height: 48px;
  }

  .hero-price {
    font-size: 0.94rem;
    margin-top: 12px;
  }

  .hero-facts {
    font-size: 0.84rem;
  }

  .section {
    padding: 56px 16px;
  }

  .section-head,
  .footer-inner,
  .cta-panel {
    align-items: start;
    flex-direction: column;
  }

  .privacy-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .privacy-text {
    font-size: 0.82rem;
  }

  body:has(.privacy-consent:not([hidden])) .site-footer {
    padding-bottom: 160px;
  }

  .privacy-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .privacy-actions .button {
    min-height: 44px;
  }

  .comparison,
  .theme-grid,
  .steps,
  .metrics {
    grid-template-columns: 1fr;
  }
}

/* Visible keyboard focus on both light and dark surfaces. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white;
}

/* Guides: long-form search pages */
.guide-article {
  max-width: 760px;
}

.guide-article h2 {
  margin-top: 2rem;
}

.guide-article p {
  line-height: 1.7;
}

.guide-crumbs,
.guide-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-note {
  margin-top: 2rem;
}

.guide-group {
  margin-top: 2.5rem;
}

.guide-group > h2 {
  margin-bottom: 1rem;
}
