/* ==========================================================================
   BikeAdWall design tokens and global styles.
   Ported from the supplied visual reference, then hardened for production.
   ========================================================================== */

:root {
  --canvas: #f5f4ef;
  --ink: #20231f;
  --ink-soft: #343b31;
  --muted: #666b61; /* ≥ 4.5:1 on canvas and white for small text */
  --line: #d8d9d0;
  --lime: #e6fb62;
  --coral: #f46242;
  --focus: #ff8b4b;
  --radius: 12px;
  --wall-gap: 10px;
  --header-height: 76px;
  --shell-max: 1480px;
  --shell-pad: 34px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-height);
  background: rgb(245 244 239 / 97%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(15px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  transform: rotate(-18deg);
}

.brand-word {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.1px;
}

.brand-word span {
  color: #ed6345;
}

.header-middle {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #54594f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8bc23e;
  box-shadow: 0 0 0 4px #e7efdb;
}

.button-primary {
  padding: 12px 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.button-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.main {
  padding-top: var(--header-height);
}

/* --------------------------------------------------------------------------
   Wall intro and legend
   -------------------------------------------------------------------------- */

.wall-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 17px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.wall-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 0;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.starburst {
  color: #f66d3d;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0;
}

.wall-caption {
  max-width: 365px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.wall-caption strong {
  color: var(--ink);
}

.top-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.rail-left {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #555b50;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.rail-left strong {
  color: #1f2b1b;
  font-variant-numeric: tabular-nums;
}

.rail-serial {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rail-right {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.rail-live {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #f47d5d;
}

.swatch.available {
  border: 1.5px dashed #979a8e;
  background: transparent;
}

.rail-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rail-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rail-dims {
  color: #555b50;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Grids and tiles
   -------------------------------------------------------------------------- */

.grid-frame {
  width: 100%;
  container-type: inline-size;
}

.ad-grid {
  --cols: 8;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: var(--wall-gap);
  width: 100%;
}

@supports (width: 1cqw) {
  .ad-grid {
    /* Square cells without runtime JS: container width minus gaps / columns. */
    grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--wall-gap)) / var(--cols));
  }
}

.ad-grid--available {
  padding-bottom: 54px;
}

.paid-section {
  min-height: 1px;
}

.tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1.5px dashed #383d34;
  border-radius: var(--radius);
  background: #fff;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.tile--small {
  grid-column: span 1;
  grid-row: span 1;
}

.tile--medium {
  grid-column: span 2;
  grid-row: span 1;
}

.tile--large {
  grid-column: span 2;
  grid-row: span 2;
}

.tile--featured {
  grid-column: span 3;
  grid-row: span 2;
}

.tile--paid {
  text-decoration: none;
}

@media (hover: hover) {
  .tile--paid:hover {
    z-index: 2;
    transform: translateY(-3px);
    box-shadow: 0 11px 30px rgb(30 38 31 / 17%);
  }

  .tile--paid:hover .tile-img {
    transform: scale(1.055);
  }

  .tile--paid:hover .tile-overlay,
  .tile--available:hover {
    opacity: 1;
  }
}

.tile--paid:focus-visible {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgb(255 139 75 / 22%);
}

.tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  user-select: none;
}

.tile-overlay {
  position: absolute;
  inset: auto 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 7px;
  background: rgb(23 25 22 / 92%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.18s,
    transform 0.18s;
  pointer-events: none;
}

.tile--paid:focus-visible .tile-overlay {
  opacity: 1;
  transform: translateY(0);
}

.tile-overlay .arrow {
  font-size: 16px;
  line-height: 1;
}

.founder-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 2px 6px rgb(0 0 0 / 9%);
  color: #262925;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.wall-empty {
  margin: 0;
  padding: 30px;
  border: 1.5px dashed #a8aca1;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Available placements
   -------------------------------------------------------------------------- */

.section-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 31px 0 16px;
}

.section-separator h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.section-separator .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-separator p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.tile--available {
  padding: 0;
  border: 1.5px dashed #a8aca1;
  background: rgb(255 255 255 / 32%);
  box-shadow: inset 0 0 0 4px rgb(255 255 255 / 27%);
  color: #43483e;
  text-align: left;
  appearance: none;
}

@media (hover: hover) {
  .tile--available:hover {
    border-color: #5a7231;
    background: #ebf5c9;
    transform: translateY(-2px);
  }
}

.tile--available:focus-visible {
  background: #ebf5c9;
}

.available-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(10px, 1.3vw, 20px);
}

.available-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.available-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px dashed #9ea392;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.available-price {
  font-size: clamp(18px, 2.3vw, 33px);
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1;
}

.available-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.available-size {
  font-size: clamp(11px, 1.3vw, 16px);
  font-weight: 900;
  line-height: 1.2;
}

.available-desc {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.tile--available.tile--small .available-icon {
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.tile--available.tile--small .available-inner {
  padding: 10px;
}

.tile--available.tile--small .available-size {
  font-size: 12px;
}

.tile--available.tile--small .available-desc {
  display: none;
}

/* --------------------------------------------------------------------------
   Bottom strip and footer
   -------------------------------------------------------------------------- */

.bottom-strip {
  background: #232923;
  color: #f5f4ea;
  padding: 22px 0;
}

.bottom-strip .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bottom-strip strong {
  font-size: 15px;
  letter-spacing: -0.3px;
}

.bottom-strip p {
  margin: 4px 0 0;
  color: #adb4aa;
  font-size: 12px;
}

.button-lime {
  padding: 12px 21px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #20251c;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.2s;
}

.button-lime:hover {
  background: #f0ff9d;
}

.site-footer {
  padding: 24px 0 35px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.site-footer a {
  text-underline-offset: 3px;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buy dialog
   -------------------------------------------------------------------------- */

.buy-dialog {
  width: min(540px, calc(100vw - 28px));
  max-height: min(93vh, 860px);
  padding: 0;
  overflow: auto;
  border: 1px solid #deded3;
  border-radius: 20px;
  background: #fafaf7;
  color: #242822;
  box-shadow: 0 30px 100px rgb(20 26 20 / 30%);
}

.buy-dialog::backdrop {
  background: rgb(24 31 24 / 68%);
  backdrop-filter: blur(3px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 28px 16px;
}

.modal-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-head h2 {
  margin: 8px 0 4px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -1.4px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #d9dccf;
  border-radius: 50%;
  background: #fff;
  color: inherit;
  font-size: 23px;
  line-height: 1;
}

.icon-button:hover {
  background: #f0f1e8;
}

.modal-body {
  padding: 0 28px 26px;
}

.size-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-title {
  display: block;
  margin: 24px 0 11px;
  color: #656d5e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.size-fieldset .form-title {
  margin-top: 0;
}

.size-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.size-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 13px 7px;
  border: 1.5px solid #d9dbd0;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.size-choice:hover {
  border-color: #b7bda9;
}

.size-choice[aria-pressed='true'] {
  border-color: #202923;
  background: #effab6;
  box-shadow: inset 0 0 0 1px #202923;
}

.size-choice .size-name {
  font-size: 11px;
  font-weight: 800;
}

.size-choice .size-cost {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1;
}

.size-choice .size-foot {
  color: var(--muted);
  font-size: 10px;
}

.preview-card {
  display: grid;
  grid-template-columns: minmax(0, 170px) 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e0e2d8;
  border-radius: 12px;
  background: #f1f2e9;
}

.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  border: 1.5px dashed #9ea392;
  border-radius: 9px;
  background: #fff;
}

.preview-stage--small,
.preview-stage--large {
  aspect-ratio: 1 / 1;
}

.preview-stage--medium {
  aspect-ratio: 2 / 1;
}

.preview-stage--featured {
  aspect-ratio: 3 / 2;
}

.preview-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.preview-plus {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.preview-meta .form-title {
  margin: 0 0 4px;
}

.preview-size {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.fields {
  display: grid;
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  color: #4c5548;
  font-size: 11px;
  font-weight: 900;
}

.field input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid #dadfd1;
  border-radius: 9px;
  background: #fff;
  color: #232822;
  outline: none;
}

.field input:focus-visible {
  border-color: #556b36;
  box-shadow: 0 0 0 3px #e2eacb;
}

.field input[type='file'] {
  height: auto;
  padding: 10px;
  font-size: 12px;
}

.upload-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.upload-hint a {
  color: #556b36;
  text-underline-offset: 2px;
}

.turnstile-field {
  margin-top: 18px;
}

.turnstile-field .upload-hint {
  margin-top: 6px;
}

.modal-submit {
  width: 100%;
  margin-top: 23px;
  padding: 15px;
  border: 0;
  border-radius: 10px;
  background: #242a21;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  transition: background 0.2s;
}

.modal-submit:hover:not(:disabled) {
  background: #424b3c;
}

.modal-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.demo-disclaimer {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.form-status {
  margin: 10px 0 0;
  color: #a1331d;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  border-radius: 11px;
  background: #1f2b20;
  color: #fff;
  font-weight: 750;
  text-align: center;
  box-shadow: 0 12px 35px rgb(0 0 0 / 20%);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Policy / prose pages
   -------------------------------------------------------------------------- */

.prose-main {
  padding-bottom: 60px;
}

.prose {
  max-width: 760px;
  padding-top: 42px;
  color: #3f463b;
  font-size: 14px;
  line-height: 1.7;
}

.prose h1 {
  margin: 4px 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -2px;
}

.prose h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.prose p,
.prose li {
  margin-bottom: 12px;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose a {
  color: #3e5a1f;
  text-underline-offset: 3px;
}

.prose code {
  padding: 1px 5px;
  border: 1px solid #e0e2d8;
  border-radius: 4px;
  background: #eeefe7;
  font-size: 0.92em;
}

.prose .eyebrow {
  margin-bottom: 6px;
}

.prose .lede {
  max-width: 640px;
  margin-bottom: 22px;
  color: #596052;
  font-size: 17px;
  line-height: 1.6;
}

.draft-note {
  padding: 11px 14px;
  border: 1px dashed #b9bda9;
  border-radius: 9px;
  background: #eef2dd;
  color: #4f5a3b;
  font-size: 12px;
  font-weight: 700;
}

.prose-meta {
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
}

.contact-email {
  margin: 8px 0 28px;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 950;
  letter-spacing: -1px;
}

.contact-email a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .ad-grid {
    --cols: 6;
  }

  .header-middle {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 800px) {
  :root {
    --shell-pad: 20px;
  }

  .ad-grid {
    --cols: 4;
  }

  .wall-caption {
    max-width: 260px;
  }

  .wall-title {
    font-size: 28px;
  }

  .top-rail {
    align-items: flex-start;
  }

  .rail-serial {
    display: none;
  }

  .rail-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px dashed var(--line);
  }
}

@media (max-width: 540px) {
  :root {
    --radius: 9px;
    --wall-gap: 8px;
    --shell-pad: 12px;
    --header-height: 65px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .brand-word {
    font-size: 17px;
    letter-spacing: -0.9px;
  }

  .live-tag {
    display: none;
  }

  .button-primary {
    padding: 10px 13px;
    font-size: 12px;
  }

  .wall-top {
    display: block;
    padding-top: 18px;
    padding-bottom: 13px;
  }

  .wall-title {
    font-size: 27px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .wall-caption {
    max-width: none;
    margin-top: 8px;
    font-size: 12px;
    text-align: left;
  }

  .top-rail {
    margin-bottom: 10px;
    padding: 10px 0;
  }

  .rail-left {
    gap: 12px;
    font-size: 10px;
  }

  .rail-right {
    gap: 8px 12px;
    font-size: 9px;
  }

  .rail-live {
    display: none;
  }

  .rail-pricing {
    width: 100%;
    justify-content: space-between;
    padding-left: 0;
    border-left: 0;
  }

  .ad-grid {
    --cols: 2;
  }

  .tile--featured,
  .tile--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tile--medium {
    grid-column: span 2;
    grid-row: span 1;
  }

  .tile--small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .tile--featured .tile-img {
    object-fit: fill;
  }

  .founder-flag {
    top: 7px;
    left: 7px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .tile-overlay {
    display: none;
  }

  .section-separator {
    margin: 24px 0 12px;
  }

  .section-separator p {
    font-size: 10px;
  }

  .available-inner {
    padding: 13px;
  }

  .available-price {
    font-size: 25px;
  }

  .ad-grid--available {
    padding-bottom: 40px;
  }

  .bottom-strip .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .modal-head {
    padding: 22px 20px 15px;
  }

  .modal-body {
    padding: 0 20px 22px;
  }

  .modal-head h2 {
    font-size: 25px;
  }

  .size-picker {
    gap: 6px;
  }

  .size-choice {
    padding: 10px 4px;
  }

  .size-choice .size-name {
    font-size: 10px;
  }

  .size-choice .size-cost {
    font-size: 19px;
  }

  .preview-card {
    grid-template-columns: minmax(0, 130px) 1fr;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .brand-word {
    font-size: 15px;
  }

  .brand {
    gap: 8px;
  }

  .button-primary {
    padding: 9px 11px;
  }

  .rail-pricing {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .section-separator {
    gap: 8px;
  }

  .section-separator h2 {
    font-size: 12px;
  }

  .section-separator p {
    font-size: 9px;
  }
}

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

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

/* --------------------------------------------------------------------------
   Minimal analytics consent banner
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 10px 30px rgb(32 35 31 / 18%);
  font-size: 12px;
}

.cookie-banner p {
  margin: 0 0 10px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-actions button,
.footer-link-button {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}

.cookie-actions .cookie-accept {
  background: var(--ink);
  color: var(--canvas);
}

.cookie-actions button:hover,
.footer-link-button:hover {
  background: var(--ink);
  color: var(--canvas);
}

.footer-link-button {
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .cookie-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}
