@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #f5ecd6;
  --cream-deep: #eadbb8;
  --navy: #1c2541;
  --red: #e0442a;
  --white: #fffaf0;
  --muted: #5f6270;
  --border: rgba(28, 37, 65, 0.28);
  --page: min(1160px, calc(100% - 2rem));
  --reading: 720px;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(5rem, 9vw, 7.5rem);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: var(--page);
  margin-inline: auto;
}

.reading {
  max-width: var(--reading);
}

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

.section--compact {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.section--navy {
  color: var(--cream);
  background: var(--navy);
}

.section--paper {
  background-color: var(--white);
}

.section--rule {
  border-block: 1px solid var(--border);
}

.kicker {
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker::after {
  width: 2.5rem;
  height: 0.25rem;
  background: var(--red);
  content: "";
}

h1,
h2,
h3 {
  margin: 0 0 1.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 72, "WONK" 0, "SOFT" 0;
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.75rem, 8vw, 6.7rem);
  letter-spacing: -0.045em;
}

h2 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.lede {
  max-width: 47rem;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.42;
}

.fine-print {
  font-size: 0.92rem;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.optional-label {
  color: var(--navy);
  font-weight: 700;
}

.section--navy .muted {
  color: rgba(245, 236, 214, 0.72);
}

.number {
  color: var(--red);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.85;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 236, 214, 0.97);
}

.site-header__inner {
  display: flex;
  min-height: 5.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand__icon {
  width: 2.8rem;
  height: auto;
  aspect-ratio: 1084 / 1300;
  flex: 0 0 auto;
}

.brand__name {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.1;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero--five-seconds {
  padding-block: clamp(2rem, 3.5vw, 3.5rem);
}

.hero--five-seconds h1 {
  max-width: 19ch;
  font-size: clamp(2.75rem, 4.2vw, 4.1rem);
}

.hero--five-seconds .lede {
  font-size: clamp(1.18rem, 1.75vw, 1.5rem);
}

.hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 17rem;
  height: 17rem;
  border: 2px solid var(--red);
  border-radius: 50%;
  opacity: 0.35;
  content: "";
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.split,
.split-reverse {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 2px solid var(--red);
  border-radius: 3px;
  background: var(--red);
  color: var(--cream);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cream);
}

.section--navy .btn:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--navy);
}

.btn--outline {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.section--navy .btn--outline {
  border-color: var(--cream);
  color: var(--cream);
}

.text-link {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero-art {
  position: relative;
  min-height: 22rem;
}

.hero-art__stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 7.5rem;
  height: 7.5rem;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  border: 1px solid var(--navy);
  filter: saturate(0.78) contrast(1.05);
}

.illustration-slot {
  position: relative;
  display: grid;
  min-height: 20rem;
  place-items: center;
  overflow: hidden;
  padding: 2rem;
  border: 2px dashed var(--navy);
  background: var(--cream-deep);
  text-align: center;
}

.illustration-slot::before,
.illustration-slot::after {
  position: absolute;
  width: 8rem;
  height: 8rem;
  border: 1px solid var(--red);
  border-radius: 50%;
  content: "";
}

.illustration-slot::before {
  top: -3rem;
  left: -3rem;
}

.illustration-slot::after {
  right: -3rem;
  bottom: -3rem;
}

.illustration-slot__label {
  position: relative;
  z-index: 1;
  max-width: 28ch;
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.illustration-slot--sito {
  border-style: solid;
}

.illustration-slot--sito img {
  width: min(310px, 80%);
  max-height: 21rem;
  object-fit: contain;
}

.illustration-slot--compact {
  min-height: 9rem;
  margin-block: 1.25rem;
  padding: 1rem;
}

.illustration-slot--compact .illustration-slot__label {
  font-size: 0.65rem;
}

.illustration-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--navy);
  background: var(--cream-deep);
}

.illustration-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.illustration-frame picture {
  display: block;
}

.illustration-frame--landscape {
  align-self: center;
}

.illustration-frame--landscape img {
  aspect-ratio: auto;
  object-fit: contain;
}

.illustration-frame--wide {
  width: 100%;
}

.illustration-frame--compact {
  margin-block: 1.25rem;
}

.illustration-frame--hero {
  align-self: center;
}

.illustration-frame--case {
  width: 100%;
}

.photo-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--navy);
  background: var(--cream-deep);
}

.photo-frame img {
  width: 100%;
  min-height: 22rem;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

.photo-frame__media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.photo-frame--portrait .photo-frame__media {
  aspect-ratio: 4 / 5;
}

.photo-frame--portrait .photo-frame__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.photo-frame--landscape .photo-frame__media {
  aspect-ratio: 4 / 3;
}

.photo-frame--landscape .photo-frame__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.photo-frame figcaption {
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--navy);
  background: var(--cream-deep);
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portrait-pending {
  display: grid;
  min-height: 14rem;
  place-items: center;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 2px dashed var(--navy);
  background: var(--cream-deep);
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  text-align: center;
  text-transform: uppercase;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--navy);
  background: var(--cream);
  color: var(--navy);
}

.card--dark {
  border-color: var(--cream);
  background: transparent;
  color: var(--cream);
}

.card__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__number {
  margin-bottom: 1rem;
  color: var(--red);
  font-family: "Archivo Black", sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.quote {
  margin: 2rem 0;
  padding: 1.4rem 0 1.4rem 1.5rem;
  border-left: 0.35rem solid var(--red);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.check-list,
.plain-list {
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.7rem;
}

.check-list li::before {
  position: absolute;
  top: 0.05rem;
  left: 0;
  color: var(--red);
  font-family: "Space Mono", monospace;
  font-weight: 700;
  content: "✓";
}

.plain-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--red);
  content: "";
}

.form-card {
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.75rem;
}

.field label,
.field-label {
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--cream);
  color: var(--navy);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(224, 68, 42, 0.35);
  outline-offset: 1px;
}

.checkbox {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: start;
  gap: 0.65rem;
  font-size: 1.125rem;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.2rem 0 0;
  accent-color: var(--red);
}

.form-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

#formulario-gratis .form-actions .btn,
#formulario-gratis .form-actions .btn:hover {
  border-color: #e0442a;
  background: #e0442a;
  color: var(--cream);
}

.form-legal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.5;
}

.case-layout {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.case-form {
  width: min(100%, 640px);
  min-width: 0;
  justify-self: center;
  scroll-margin-top: 1rem;
}

.case-form__intro,
.case-step__intro {
  font-size: 1.08rem;
  line-height: 1.5;
}

.case-intro .btn {
  margin-top: 1rem;
}

.case-form__nav {
  margin-bottom: 2rem;
}

.case-back {
  min-height: 3rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.case-progress {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-progress progress {
  width: 100%;
  height: 0.4rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--cream-deep);
}

.case-progress progress::-webkit-progress-bar {
  background: var(--cream-deep);
}

.case-progress progress::-webkit-progress-value {
  background: var(--red);
}

.case-progress progress::-moz-progress-bar {
  background: var(--red);
}

.case-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.case-form--enhanced .case-step:not(.is-active) {
  display: none;
}

.case-step > legend {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.case-step__intro {
  display: block;
  margin-bottom: 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
}

.question-note {
  display: block;
  margin-top: 0.4rem;
  color: var(--navy);
  font-family: "Space Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.choice-grid {
  display: grid;
  gap: 0.75rem;
}

.choice {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 3rem;
  grid-template-columns: 1.25rem 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--navy);
  background: var(--cream);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
  background: var(--white);
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--red);
}

.choice span {
  font-size: 1.125rem;
  line-height: 1.45;
}

.field-help {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.5;
}

.case-step__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.case-step__actions .btn {
  width: 100%;
}

.case-step__actions .btn:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--cream);
}

.case-data-fields {
  gap: 2rem;
}

.case-data-fields .field {
  gap: 0.5rem;
}

.case-step--data .checkbox {
  margin-top: 0.25rem;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.vigia-strip {
  display: grid;
  grid-auto-columns: min(78vw, 390px);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem max(1rem, calc((100vw - 1160px) / 2)) 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--red) var(--cream-deep);
}

.vigia-strip figure {
  margin: 0;
  scroll-snap-align: start;
}

.vigia-strip img {
  width: 100%;
  border: 1px solid var(--navy);
}

.day-grid {
  counter-reset: workday;
}

.day-grid .card {
  counter-increment: workday;
}

.day-grid .card::before {
  display: block;
  margin-bottom: 1rem;
  color: var(--red);
  font-family: "Archivo Black", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  content: "0" counter(workday);
}

.closing {
  padding-block: clamp(4rem, 11vw, 9rem);
  text-align: center;
}

.closing h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.closing .button-row {
  justify-content: center;
}

.hero .container.reading > .btn {
  margin-top: 2rem;
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid rgba(245, 236, 214, 0.25);
  background: var(--navy);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-logo {
  width: auto;
  height: clamp(3rem, 4vw, 3.5rem);
  max-width: min(280px, 70vw);
  padding: 0;
  background: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-transform: inherit;
  cursor: pointer;
}

.legal-header {
  padding-block: clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.legal-content {
  max-width: 850px;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.legal-content h3 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 1.5rem;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

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

th {
  background: var(--navy);
  color: var(--cream);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pending {
  padding: 0.8rem 1rem;
  border-left: 0.3rem solid var(--red);
  background: var(--cream-deep);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  padding: 1rem;
  border-top: 2px solid var(--navy);
  background: var(--cream);
  color: var(--navy);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner__inner {
  width: var(--page);
  margin-inline: auto;
}

.cookie-banner__copy p {
  margin-bottom: 0.55rem;
}

.cookie-banner__title {
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-btn {
  min-height: 3rem;
  padding: 0.65rem 0.35rem;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: var(--cream);
  font-family: "Space Mono", monospace;
  font-size: clamp(0.62rem, 2.4vw, 0.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-btn:hover {
  border-color: var(--red);
  background: var(--red);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(28, 37, 65, 0.7);
}

.cookie-modal__panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 2px solid var(--navy);
  background: var(--cream);
  color: var(--navy);
}

.cookie-modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__header h2 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.cookie-close {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: "Space Mono", monospace;
  cursor: pointer;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.75rem;
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid var(--navy);
}

.cookie-option input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--red);
}

.cookie-option strong {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.preview-hub {
  min-height: 100vh;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.preview-hub__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .grid-2,
  .split,
  .split-reverse,
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-reverse > :first-child {
    order: 2;
  }

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

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

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

  .field--full {
    grid-column: 1 / -1;
  }

  .case-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-layout > :first-child {
    width: min(100%, 920px);
    justify-self: center;
  }

  .case-layout .illustration-frame--case {
    width: min(100%, 640px);
    margin: 2rem auto 0;
  }

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

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

  .footer-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .cookie-banner__inner {
    display: grid;
    grid-template-columns: 1fr minmax(380px, 0.75fr);
    align-items: center;
    gap: 1.5rem;
  }

  .cookie-actions {
    margin-top: 0;
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

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

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

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
  }

  .hero--five-seconds .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

@media (max-width: 699px) {
  .hero::after {
    display: none;
  }

  .site-header__inner {
    min-height: 4.5rem;
  }

  .hero {
    padding-block: 1.25rem;
  }

  .hero h1,
  .hero--five-seconds h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.9rem, 8.4vw, 2.65rem);
    line-height: 1.02;
  }

  .hero .lede,
  .hero--five-seconds .lede {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .hero--five-seconds .hero-copy > p:not(.kicker):not(.lede) {
    margin-bottom: 0.9rem;
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .illustration-frame,
  .illustration-slot,
  .photo-frame {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .illustration-frame img,
  .illustration-slot img,
  .photo-frame img {
    width: 100%;
  }

  .cookie-banner {
    position: fixed;
    max-height: 43vh;
    padding: 0.75rem;
    overflow-y: auto;
    border-top: 2px solid var(--navy);
    border-bottom: 0;
  }

  .cookie-banner__copy p {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .cookie-actions {
    gap: 0.35rem;
    margin-top: 0.6rem;
  }

  .cookie-btn {
    min-height: 3rem;
    padding-inline: 0.2rem;
  }

  .form-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .table-wrap {
    overflow-x: visible;
  }

  table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 1rem;
  }

  table thead {
    display: none;
  }

  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  table tr {
    border: 1px solid var(--navy);
    background: var(--cream);
  }

  table td {
    display: grid;
    grid-template-columns: minmax(7.25rem, 0.42fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--navy);
  }

  table td:last-child {
    border-bottom: 0;
  }

  table td::before {
    content: attr(data-label);
    color: var(--navy);
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
