/* Diturio landing page. Static, no build step. */

:root {
  --ink: #10293f;
  --ink-2: #34475c;
  --muted: #4b5d70;
  --tide: #2e5c8a;
  --tide-deep: #233f5c;
  --lagoon: #2f8a81;
  --lagoon-tint: #d7f3ef;
  --signal: #ab5432;
  --signal-tint: #ffe6d7;
  --signal-dot: #eb854f;
  --mist: #eef3f8;
  --paper: #fafcfe;
  --white: #ffffff;
  --line: #d9e2eb;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 2.125rem;
}

.footer-logo {
  width: auto;
  height: 1.75rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

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

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

.btn--solid {
  background: var(--tide);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--tide-deep);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

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

.btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

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

.btn--light:hover {
  background: var(--lagoon-tint);
}

/* ---------- Hero ---------- */

.hero {
  color: #dbe6f5;
  background: linear-gradient(90deg, rgba(1, 16, 74, 0.8) 0%, rgba(1, 16, 74, 0.5) 45%, rgba(1, 16, 74, 0) 75%), url("assets/wave-bg.webp") right center / cover no-repeat #01104a;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.hero__title {
  max-width: 17ch;
  color: var(--white);
  font-size: clamp(2.5rem, 1.4rem + 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__mark {
  justify-self: center;
  width: min(100%, 18rem);
  height: auto;
}

@media (max-width: 900px) {
  .hero,
  .cta {
    background-image: linear-gradient(rgba(1, 16, 74, 0.62), rgba(1, 16, 74, 0.62)), url("assets/wave-bg.webp");
  }

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

  .hero__mark {
    display: none;
  }
}

.demo {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y);
}

/* ---------- The flow: document to course ---------- */

.flow {
  --doc-w: minmax(0, 1.1fr);
  display: grid;
  grid-template-columns: var(--doc-w) clamp(3rem, 9vw, 7.5rem) minmax(0, 1fr);
  grid-template-areas:
    "doc paths modules"
    "cap cap cap";
  gap: 0;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--mist);
  border-radius: var(--r-lg);
}

.flow__doc {
  grid-area: doc;
  align-self: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.doc__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.875rem;
}

.doc__type {
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: var(--signal-tint);
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 600;
}

.doc__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.doc__pages {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}

.doc__body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.doc__body p + p {
  margin-top: 0.4rem;
}

.doc__body .doc__h {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.doc__body .doc__h:first-child {
  margin-top: 0;
}

.hl {
  padding: 0.05rem 0.15rem;
  border-radius: 3px;
  color: inherit;
  background-color: var(--lagoon-tint);
  box-shadow: inset 0 -2px 0 var(--lagoon);
}

.flow__paths {
  grid-area: paths;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.path {
  fill: none;
  stroke: var(--lagoon);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.flow__modules {
  grid-area: modules;
  display: grid;
  grid-template-rows: 1fr 1fr 1.9fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module {
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.module__tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lagoon);
}

.module__title {
  margin-top: 0.15rem;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.module__text {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.quiz {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  line-height: 1.4;
}

.quiz__q {
  font-weight: 600;
}

.quiz__a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-2);
}

.quiz__a--right {
  border-color: var(--lagoon);
  background: var(--lagoon-tint);
  color: var(--ink);
  font-weight: 600;
}

.quiz__tick {
  flex: none;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2px solid var(--lagoon);
  border-bottom: 2px solid var(--lagoon);
  transform: rotate(-45deg) translateY(-1px);
}

.flow__caption {
  grid-area: cap;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* The one orchestrated moment: highlight, flow, build. Plays once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hl {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(var(--lagoon-tint), var(--lagoon-tint));
    background-color: transparent;
    box-shadow: none;
    animation: mark 0.55s ease-out forwards;
  }

  .hl--1 { animation-delay: 0.5s; }
  .hl--2 { animation-delay: 0.95s; }
  .hl--3 { animation-delay: 1.4s; }

  .flow__paths {
    clip-path: inset(0 100% 0 0);
    animation: reveal 1.1s ease-in-out 0.9s forwards;
  }

  .module {
    opacity: 0;
    transform: translateX(-12px);
    animation: settle 0.5s ease-out forwards;
  }

  .module--1 { animation-delay: 1.5s; }
  .module--2 { animation-delay: 1.95s; }
  .module--3 { animation-delay: 2.4s; }
}

@keyframes mark {
  to {
    background-size: 100% 100%;
    box-shadow: inset 0 -2px 0 var(--lagoon);
  }
}

@keyframes reveal {
  to { clip-path: inset(-4px); }
}

@keyframes settle {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .flow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "doc"
      "paths"
      "modules"
      "cap";
  }

  .flow__paths {
    display: none;
  }

  .flow__modules {
    grid-template-rows: none;
    margin-top: 1rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--mist);
}

.section__title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding-top: 3.25rem;
  color: var(--ink-2);
}

.step::before {
  content: "";
  position: absolute;
  left: 2.75rem;
  right: calc(-1 * clamp(1.25rem, 3vw, 2.5rem) + 0.5rem);
  top: 1rem;
  height: 2px;
  background: var(--line);
}

.step:last-child::before {
  display: none;
}

.step__n {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 700 0.95rem/1 var(--font-display);
}

.step__title {
  margin-bottom: 0.4rem;
  font-size: 1.375rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.25rem;
  }

  .step::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Feature panels ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-2);
}

.panel__title {
  margin-bottom: 0.6rem;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.15;
}

.panel--ask {
  grid-column: span 7;
  display: grid;
  gap: 1.5rem;
  align-content: space-between;
  background: var(--ink);
  border-color: var(--ink);
  color: #c9d7e4;
}

.panel--ask .panel__title {
  color: var(--white);
}

.panel--gaps {
  grid-column: span 5;
}

.panel--compliance {
  grid-column: span 8;
  display: grid;
  gap: 1.5rem;
  align-content: space-between;
}

.panel--lang {
  grid-column: span 4;
}

@media (max-width: 960px) {
  .panel--ask,
  .panel--gaps,
  .panel--compliance,
  .panel--lang {
    grid-column: 1 / -1;
  }
}

/* Chat */

.chat {
  display: grid;
  gap: 0.6rem;
  max-width: 34rem;
}

.chat__you,
.chat__bot {
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--r-md);
  font-size: 0.975rem;
  line-height: 1.5;
}

.chat__you {
  justify-self: end;
  background: var(--tide);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat__bot {
  background: #1b3a56;
  color: #eaf1f8;
  border-bottom-left-radius: 4px;
}

.chat__src {
  padding-left: 0.25rem;
  font-size: 0.85rem;
  color: #9fb4c9;
}

/* Gaps */

.gaps {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gaps__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
}

.gaps__q {
  color: var(--ink);
  font-weight: 500;
}

.gaps__meta {
  flex: none;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.gaps__meta--open {
  background: var(--signal-tint);
  color: var(--signal);
}

.gaps__meta--done {
  background: var(--lagoon-tint);
  color: #1f6a63;
}

.gaps__row--done .gaps__q {
  color: var(--muted);
}

/* Compliance */

.compliance {
  display: grid;
  gap: 0.25rem;
}

.compliance__row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.2fr) minmax(5rem, 2fr) minmax(5.5rem, auto);
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.compliance__name {
  color: var(--ink);
  font-weight: 600;
}

.compliance__n {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.compliance__n--late {
  color: var(--signal);
  font-weight: 600;
}

.compliance__note {
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.bar {
  display: block;
  height: 0.5rem;
  border-radius: 4px;
  background: var(--mist);
  overflow: hidden;
}

.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 4px;
  background: var(--lagoon);
}

.bar .bar__warn {
  background: var(--signal-dot);
}

@media (max-width: 560px) {
  .compliance__row {
    grid-template-columns: 1fr auto;
  }

  .compliance__row .bar {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* Languages */

.lang {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}

.lang div {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.lang div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lang dt {
  flex: none;
  width: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lagoon);
}

.lang dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Roles ---------- */

.roles {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.roles__list {
  margin: 0;
}

.roles__item {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 3fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.roles__item:last-child {
  border-bottom: 1px solid var(--line);
}

.roles__item dt {
  font: 700 1.25rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
}

.roles__item dd {
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .roles__item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ---------- CTA ---------- */

.cta {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(90deg, rgba(1, 16, 74, 0.8) 0%, rgba(1, 16, 74, 0.5) 45%, rgba(1, 16, 74, 0) 75%), url("assets/wave-bg.webp") right bottom / cover no-repeat #01104a;
  color: #dbe6f5;
}

.cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta__title {
  max-width: 20ch;
  color: var(--white);
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta__lead {
  max-width: 34rem;
  margin-top: 0.9rem;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about__lead {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
}

.about__list {
  margin: 0;
}

.about__item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.about__item:last-child {
  border-bottom: 1px solid var(--line);
}

.about__item dt {
  font: 700 1.25rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
}

.about__item dd {
  margin: 0.35rem 0 0;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

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

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-footer__brand {
  max-width: 22rem;
}

.site-footer__brand p {
  margin-top: 0.75rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-content: flex-start;
}

.site-footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--tide);
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* ---------- Legal pages ---------- */

.ph {
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: #fff3c4;
  color: #5c4300;
}

.doc {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.doc__wrap {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 44rem);
  grid-template-areas:
    "head head"
    "toc body";
  column-gap: clamp(2rem, 6vw, 5rem);
  row-gap: 2.5rem;
}

.doc__head {
  grid-area: head;
  max-width: 44rem;
}

.doc__head h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.doc__meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc__intro {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}

.doc__draft {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ecd68a;
  border-radius: var(--r-sm);
  background: #fff8dc;
  color: #5c4300;
  font-size: 0.95rem;
}

.doc__toc {
  grid-area: toc;
  align-self: start;
  position: sticky;
  top: 5.5rem;
  font-size: 0.95rem;
}

.doc__toc p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.doc__toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
}

.doc__toc a:hover {
  color: var(--tide);
}

.doc__body {
  grid-area: body;
}

.doc__body section {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.doc__body section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc__body h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.doc__body p,
.doc__body ul {
  margin-top: 0.85rem;
  color: var(--ink-2);
}

.doc__body ul {
  padding-left: 1.25rem;
}

.doc__body li + li {
  margin-top: 0.45rem;
}

.doc__body a {
  color: var(--tide);
}

@media (max-width: 860px) {
  .doc__wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "toc"
      "body";
  }

  .doc__toc {
    position: static;
  }

  .doc__toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    border-left: 0;
  }

  .doc__toc a {
    padding-left: 0;
  }
}

/* ---------- Cookie consent ---------- */

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  cursor: pointer;
}

.linklike:hover {
  color: var(--tide);
  text-decoration: underline;
}

.consent {
  position: fixed;
  left: var(--gutter);
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  padding: 1.25rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(16, 41, 63, 0.18);
}

.consent[hidden],
.consent [hidden] {
  display: none;
}

.consent:focus {
  outline: none;
}

.consent:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 3px;
}

.consent__title {
  font-size: 1.15rem;
}

.consent__text {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.consent__text a {
  color: var(--tide);
}

.consent__prefs {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.95rem;
}

.consent__row small {
  display: block;
  color: var(--muted);
}

.consent__row input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--tide);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.consent__btn {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--tide);
  border-radius: var(--r-sm);
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
}

.consent__btn--solid {
  background: var(--tide);
  color: var(--white);
}

.consent__btn--solid:hover {
  background: var(--tide-deep);
}

.consent__btn--ghost {
  background: var(--white);
  color: var(--tide);
}

.consent__btn--ghost:hover {
  background: var(--mist);
}

.consent__link {
  margin-left: auto;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 500 0.95rem/1 var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}

.consent__link:hover {
  color: var(--tide);
}

@media (max-width: 520px) {
  .consent__btn {
    flex: 1 1 8rem;
  }

  .consent__link {
    margin-left: 0;
    flex: 1 1 100%;
    text-align: center;
  }
}
