@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nunito-400.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-700.woff2") format("woff2");
}

:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #f3f4f6;
  --line-strong: #e5e7eb;
  --canvas: #fafafa;
  --white: #ffffff;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --shadow: 0 12px 40px rgba(17, 24, 39, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.045em;
}

a {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
}

.skip:focus {
  top: 0.5rem;
}

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

.narrow {
  width: min(44rem, calc(100% - 2.5rem));
}

.accent {
  color: var(--blue);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 36rem;
}

.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid rgba(243, 244, 246, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.5rem;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo img {
  width: 2rem;
  height: auto;
  flex: 0 0 auto;
}

.logo span {
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  background: var(--line);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--line-strong);
}

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

.nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: inline;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  margin: -1px 0 0 -0.575rem;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before {
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle::after {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.nav-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .site-header {
  background: var(--white);
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.7rem 1.15rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

a.button,
a.button:visited {
  color: var(--white);
}

.button:hover {
  background: #1f2937;
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

a.button-secondary,
a.button-secondary:visited {
  color: var(--ink);
}

.button-secondary:hover {
  background: #f9fafb;
}

.button-compact {
  padding: 0.5rem 0.85rem;
}

.nav-cta,
.header-cta {
  background: var(--blue-deep);
  border-radius: 0.75rem;
}

.nav-cta:hover,
.header-cta:hover {
  background: #1d4ed8;
}

.hero {
  padding: 4.5rem 0 1rem;
}

.hero-grid,
.split,
.bento,
.steps,
.price-grid,
.related,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  justify-items: center;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 auto 1rem;
  max-width: 14ch;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}

.hero .lede {
  margin-inline: auto;
}

.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.75rem;
  width: min(36rem, 100%);
  margin: 1.35rem auto 0;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.offer strong {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 1rem;
  white-space: nowrap;
}

.offer span {
  font-size: 0.95rem;
}

.offer + .actions {
  margin-top: 1.15rem;
}

@media (max-width: 640px) {
  .offer {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem 0.85rem;
    border-radius: 1.15rem;
    text-align: center;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.8rem;
}

.hero .button:not(.button-secondary) {
  background: var(--blue);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
}

.hero .button:not(.button-secondary):hover {
  background: var(--blue-deep);
}

.frame {
  width: min(920px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 0.65rem;
  box-shadow: var(--shadow);
}

.frame img,
.shot {
  display: block;
  width: 100%;
  border-radius: 1rem;
}

.problem {
  padding: 3.5rem 0 1rem;
  text-align: center;
}

.problem-line span {
  display: block;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
}

.problem-line .resolve {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section {
  padding: 4.25rem 0;
}

.section > .container > h2,
.page-hero h1 {
  letter-spacing: -0.045em;
}

.section > .container > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  text-align: center;
}

.tile,
.points li,
.steps li,
.related a,
.price-card {
  background: var(--white);
  border: 1px solid #f3f4f6;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.tile {
  padding: 1.35rem;
}

.tile-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tile-row .illus {
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
}

.tile h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.tile p,
.price-card li,
.points p,
.steps li {
  color: var(--muted);
}

.tile .shot {
  margin-top: 1rem;
  border: 1px solid var(--line);
}

.more {
  font-weight: 700;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 0.7rem;
  background: #eff6ff;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.3rem 1.3rem;
  text-align: left;
}

.price-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.price {
  margin-bottom: 1rem;
}

.price span {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.price small {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card ul {
  flex: 1;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.45rem 0;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.price-card .button {
  width: 100%;
  background: var(--ink);
}

.price-grid .price-card:nth-child(3) {
  background: var(--blue-deep);
  border-color: transparent;
  color: var(--white);
}

.price-grid .price-card:nth-child(3) .price small,
.price-grid .price-card:nth-child(3) li {
  color: rgba(255, 255, 255, 0.88);
}

.price-grid .price-card:nth-child(3) li::before {
  color: var(--white);
}

.price-grid .price-card:nth-child(3) .button {
  background: var(--white);
  color: var(--blue-deep);
}

.price-grid .price-card:nth-child(3) .button:hover {
  background: #eff6ff;
}

.price-note {
  margin: 1.25rem 0 0;
  text-align: center;
}

.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 0.35rem 1.25rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: #9ca3af;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.faq details p:last-child {
  margin-bottom: 0.2rem;
}

.faq details strong {
  color: var(--ink);
}

.faq details a {
  color: var(--blue-deep);
}

.faq-contents {
  position: sticky;
  top: var(--header-h, 4.5rem);
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0 0.75rem;
  background: var(--canvas);
}

.faq-contents a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.faq-contents a:hover {
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.faq-group {
  margin-top: 2.25rem;
  scroll-margin-top: 12rem;
}

.section > .container > .faq-group h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  text-align: left;
  letter-spacing: -0.03em;
}

.faq-more {
  display: flex;
  justify-content: center;
  margin: 1.35rem 0 0;
}

.faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem 0.55rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.faq-more a:hover {
  background: #dbeafe;
}

.faq-more svg {
  flex: 0 0 auto;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 3rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--white);
}

.footer-brand {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-footer h2 {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-base p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin: 0;
}

.social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social li + li {
  margin-top: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ink);
}

.social a:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.social svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.page-hero {
  padding: 3.2rem 0 0.4rem;
}

.page-hero-split {
  padding-bottom: 2.5rem;
}

.hero-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.page-hero-split .actions {
  justify-content: flex-start;
}

.page-hero-split .fine {
  margin: 0;
}

.page-hero-split .button:not(.button-secondary) {
  background: var(--blue);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
}

.page-hero-split .button:not(.button-secondary):hover {
  background: var(--blue-deep);
}

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

.trademark {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.cards {
  display: grid;
  gap: 0.85rem;
}

.page-hero h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  max-width: 16ch;
}

.page-hero-center {
  text-align: center;
}

.page-hero-center h1,
.page-hero-center .lede {
  margin-inline: auto;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.points li {
  padding: 1.2rem 1.25rem;
}

.points h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  text-align: left;
}

.prose {
  max-width: 42rem;
}

.prose-center {
  margin-inline: auto;
  text-align: center;
}

.prose.prose-center h2 {
  text-align: center;
}

.cta-line {
  margin: 1.75rem 0 0;
  text-align: center;
}

.cta-line .button {
  background: var(--blue-deep);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
}

.cta-line .button:hover {
  background: #1d4ed8;
}

.prose h2 {
  margin: 1.8rem 0 0.45rem;
  font-size: 1.25rem;
  text-align: left;
}

.prose ul {
  margin: 0.35rem 0 1rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.page-hero.terms {
  padding-bottom: 4.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

caption {
  caption-side: top;
  padding: 1rem 1rem 0.4rem;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #f9fafb;
  border-top: 0;
}

.missing {
  padding: 4.5rem 0 5rem;
}

.missing h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.related a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.related a img {
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
}

.related a strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.related a strong::after {
  content: "→";
  margin-left: 0.4rem;
  color: var(--blue);
}

.related a span span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.related a:hover {
  color: var(--ink);
  border-color: #dbeafe;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

@media (max-width: 479px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1079px) {
  .site-nav {
    position: fixed;
    top: var(--header-h, 4.5rem);
    left: 0;
    z-index: 30;
    width: 100%;
    height: calc(100vh - var(--header-h, 4.5rem));
    height: calc(100dvh - var(--header-h, 4.5rem));
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    padding: 0.75rem 1rem 1.5rem;
    background: var(--white);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0 0.9rem;
    border-radius: 0.9rem;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 700;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: #eff6ff;
    color: var(--blue-deep);
  }

  .site-nav .js-signin {
    margin-top: 0.35rem;
    color: var(--muted);
    font-weight: 700;
  }

  .site-nav .js-signin:hover {
    color: var(--ink);
    background: var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.65rem;
    min-height: 3.25rem;
    justify-content: center;
    color: var(--white);
  }

  .site-nav .nav-cta:hover {
    background: #1d4ed8;
    color: var(--white);
  }
}

@media (min-width: 700px) {
  .price-grid,
  .related,
  .points,
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .scroll-hint {
    display: none;
  }
}

@media (max-width: 899px) {
  .page-hero-split .hero-split {
    justify-items: center;
    text-align: center;
  }

  .page-hero-split h1,
  .page-hero-split .lede,
  .page-hero-split .fine {
    margin-inline: auto;
  }

  .page-hero-split .actions {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .tile-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1.5rem;
    align-items: center;
  }

  .tile-wide .shot {
    margin-top: 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1080px) {
  .header-tools {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    margin-left: auto;
    padding: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .price-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .related {
    grid-template-columns: repeat(3, 1fr);
  }
}

.try-bar {
  display: none;
}

@media (max-width: 799px) {
  .try-bar {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--blue-deep);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
    transform: translateY(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }

  .try-bar:visited {
    color: var(--white);
  }

  .try-bar:hover {
    background: #1d4ed8;
    color: var(--white);
  }

  body.try-bar-on .try-bar {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.try-bar-on {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  body.nav-open .try-bar,
  body.cookie-open .try-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle::before,
  .nav-toggle::after,
  .site-nav,
  .try-bar,
  .cookie-consent {
    transition: none;
  }
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 36;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.cookie-consent.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-consent-accept,
.cookie-consent-decline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent-accept {
  border: 0;
  background: var(--blue-deep);
  color: var(--white);
}

.cookie-consent-accept:hover {
  background: #1d4ed8;
}

.cookie-consent-decline {
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.cookie-consent-decline:hover {
  background: #f9fafb;
}

@media (max-width: 640px) {
  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-consent-accept,
  .cookie-consent-decline {
    width: 100%;
  }
}
