/* acidripp.com: page layout only (taken from the product sites). Every colour, size, radius and font
   comes from /brand/acidripp.css tokens; no raw colours here (brand book chapter 12). */
[hidden] { display: none !important; }
/* The hatched shape may reach past the edge of the page; never let it add a sideways scroll. */
main { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--ar-s-8); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap, .site-head, .site-foot { width: min(100% - 2 * var(--ar-s-4), 1280px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: var(--ar-s-2); padding: var(--ar-s-2) var(--ar-s-3); background: var(--ar-surface); color: var(--ar-text); border-radius: var(--ar-r-sm); z-index: 20; }
.skip:focus { left: var(--ar-s-2); }

.site-head { display: flex; align-items: center; gap: var(--ar-s-5); padding-block: var(--ar-s-5); }
.brand { display: inline-flex; line-height: 0; margin-right: auto; }
.logo { height: 25px; width: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark { display: inline; }
.site-nav { display: none; gap: var(--ar-s-5); }
.site-nav a { color: var(--ar-text-muted); font-size: var(--ar-fs-sm); font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--ar-text); }
@media (min-width: 760px) { .site-nav { display: flex; } }

h2 { font: 700 var(--ar-fs-3xl)/1.06 var(--ar-font-display); letter-spacing: -0.03em; margin: var(--ar-s-3) 0 var(--ar-s-4); text-wrap: balance; }
h3 { font: 700 var(--ar-fs-lg)/1.25 var(--ar-font-body); margin: 0; }
.sub { font-size: var(--ar-fs-lg); line-height: 1.45; color: var(--ar-text-muted); max-width: 46ch; margin: 0 0 var(--ar-s-5); text-wrap: pretty; }
.req { margin: var(--ar-s-5) 0 0; }

/* Early access. The one hatched shape of the layout sits behind the form's corner, never
   under words, and is hidden on narrow screens. */
.access { position: relative; display: grid; gap: var(--ar-s-7); padding-block: var(--ar-s-9); border-top: 1px solid var(--ar-line); align-items: start; }
@media (min-width: 1000px) { .access { grid-template-columns: 1.1fr 0.9fr; gap: var(--ar-s-8); } }
.etch { display: none; position: absolute; z-index: 0; width: 460px; right: calc(-1 * var(--ar-s-7)); bottom: var(--ar-s-5); color: var(--ar-line-strong); pointer-events: none; }
@media (min-width: 1000px) { .etch { display: block; } }
.access-copy, .request { position: relative; z-index: 1; }
.request { padding: var(--ar-s-6); border-radius: var(--ar-r-lg); }
.request h3 { font: 700 var(--ar-fs-xl)/1.2 var(--ar-font-display); margin: 0; }
.request form, #done { display: grid; gap: var(--ar-s-4); }
.request .ar-btn { width: 100%; }
.subs { border: 0; padding: 0; margin: 0; }
.subs legend { padding: 0; margin-bottom: 6px; }
.boxes { display: flex; flex-wrap: wrap; gap: var(--ar-s-2) var(--ar-s-4); }
.boxes label, .check { display: inline-flex; align-items: center; gap: var(--ar-s-2); font-size: var(--ar-fs-sm); color: var(--ar-text); min-height: 32px; }
.boxes input, .check input { width: 18px; height: 18px; accent-color: var(--ar-text); margin: 0; }
.consent { margin: 0; }
.cf-turnstile { min-height: 65px; }

.site-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ar-s-4) var(--ar-s-5); padding-block: var(--ar-s-6) var(--ar-s-7); border-top: 1px solid var(--ar-line); }
.site-foot .theme { margin-left: auto; }
.fine { font-size: var(--ar-fs-sm); }

.doc { width: min(100% - 2 * var(--ar-s-4), 760px); margin: var(--ar-s-6) auto var(--ar-s-9); }
.doc h1 { font: 700 var(--ar-fs-2xl)/1.15 var(--ar-font-display); margin: var(--ar-s-3) 0 var(--ar-s-5); }
.doc h2 { font: 700 var(--ar-fs-lg)/1.3 var(--ar-font-body); letter-spacing: 0; margin: var(--ar-s-6) 0 var(--ar-s-2); }
.doc p, .doc li { font-size: var(--ar-fs-md); line-height: 1.6; color: var(--ar-text); }
.doc table { width: 100%; }


/* Visit statistics consent: a dialog over the page. Named sa-consent so it can never match
   the early access form's own .consent note. */
.sa-consent-open { overflow: hidden; }
.sa-consent, .sa-consent-plate { box-sizing: border-box; }
.sa-consent-plate:focus { outline: none; }
.sa-consent { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--ar-s-4);
  background: rgb(8 9 7 / .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sa-consent-plate { width: min(100%, 520px); max-height: calc(100vh - 2 * var(--ar-s-4)); overflow: auto; padding: var(--ar-s-6);
  background: var(--ar-surface); color: var(--ar-text); border: 1px solid var(--ar-line-strong); border-radius: var(--ar-r-lg); box-shadow: var(--ar-raise-3); }
.sa-consent-plate h2 { margin: var(--ar-s-2) 0 var(--ar-s-3); font: 700 1.5rem/1.15 var(--ar-font-display); letter-spacing: -0.03em; }
.sa-consent-plate p { margin: 0 0 var(--ar-s-3); font-size: var(--ar-fs-md); line-height: 1.55; }
.sa-consent-plate ul { margin: 0 0 var(--ar-s-4); padding-left: 1.1em; font-size: var(--ar-fs-sm); line-height: 1.55; color: var(--ar-text-muted); }
.sa-consent-plate li + li { margin-top: 4px; }
.sa-consent-plate li b { color: var(--ar-text); font-weight: 600; }
.sa-consent-keys { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ar-s-3); margin-top: var(--ar-s-5); }
.sa-consent-keys .ar-btn { width: 100%; justify-content: center; min-height: 48px; }
.sa-consent-more { margin: var(--ar-s-4) 0 0 !important; font-size: var(--ar-fs-sm) !important; color: var(--ar-text-muted); }
@media (max-width: 480px) { .sa-consent-plate { padding: var(--ar-s-5); } .sa-consent-keys { grid-template-columns: 1fr; } }

/* Request form: two fields a row on wide screens */
.pair { display: grid; gap: var(--ar-s-4); }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.request .ar-textarea { min-height: 96px; resize: vertical; }
.steps-after { margin: var(--ar-s-5) 0 0; padding-left: 1.2em; display: grid; gap: var(--ar-s-2); font-size: var(--ar-fs-md); line-height: 1.5; color: var(--ar-text-muted); max-width: 52ch; }
.steps-after b { color: var(--ar-text); font-weight: 600; }

.access > *, .request form > *, .pair > * { min-width: 0; }
.request .ar-select { width: 100%; max-width: 100%; }


.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#done .ar-chip { justify-self: start; }

/* Intro */
.lead { font-size: var(--ar-fs-lg); line-height: 1.45; color: var(--ar-text); max-width: 36ch; margin: 0 0 var(--ar-s-6); text-wrap: pretty; }
.intro { padding-block: var(--ar-s-6) var(--ar-s-7); }
.intro h1 { margin: var(--ar-s-3) 0 var(--ar-s-5); font: 700 var(--ar-fs-4xl)/1.02 var(--ar-font-display); letter-spacing: -0.035em; max-width: 20ch; text-wrap: balance; }
.intro .lead { max-width: 52ch; margin: 0; }

/* The three products, side by side and equal. Each card leads to its own site. */
.offer { display: grid; gap: var(--ar-s-5); padding-block: 0 var(--ar-s-9); }
@media (min-width: 980px) { .offer { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product { display: flex; flex-direction: column; padding: var(--ar-s-3); border-radius: var(--ar-r-xl); box-shadow: var(--ar-raise-3); min-width: 0; }
.shot { display: block; aspect-ratio: 6 / 5; overflow: hidden; border-radius: var(--ar-r-lg); background: var(--ar-sunken); border: 1px solid var(--ar-line); line-height: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot--dark { display: none; }
[data-theme="dark"] .shot--light { display: none; }
[data-theme="dark"] .shot--dark { display: block; }
.product-copy { display: flex; flex-direction: column; flex: 1; gap: var(--ar-s-3); padding: var(--ar-s-5) var(--ar-s-3) var(--ar-s-3); }
.product-copy .ar-legend { margin: 0; }
.product-copy h2 { font-size: var(--ar-fs-2xl); margin: 0; }
.product-copy p:not(.ar-legend) { margin: 0; font-size: var(--ar-fs-md); line-height: 1.55; color: var(--ar-text-muted); text-wrap: pretty; }
.product-copy .note { margin-top: auto !important; padding-top: var(--ar-s-3); }
.product-copy .ar-btn { align-self: stretch; justify-content: center; }

/* Custom work */
.custom { padding-block: var(--ar-s-9); border-top: 1px solid var(--ar-line); }
.custom-head { display: grid; gap: var(--ar-s-5); align-items: end; margin-bottom: var(--ar-s-7); }
@media (min-width: 900px) { .custom-head { grid-template-columns: 1fr auto; } }
.custom-head h2 { margin-top: var(--ar-s-3); }
.custom-head .sub { margin: 0; max-width: 56ch; }
.kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ar-s-4); }
@media (min-width: 700px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kinds { grid-template-columns: repeat(5, 1fr); } }
.kinds li { display: flex; flex-direction: column; gap: var(--ar-s-3); padding: var(--ar-s-5); border-radius: var(--ar-r-lg); background: var(--ar-surface); border: 1px solid var(--ar-line); box-shadow: var(--ar-raise-2); }
.kinds h3 { font: 700 var(--ar-fs-lg)/1.2 var(--ar-font-display); letter-spacing: -0.02em; }
.kinds p { margin: 0; flex: 1; font-size: var(--ar-fs-sm); line-height: 1.55; color: var(--ar-text-muted); }
.kinds .ar-link { font-size: var(--ar-fs-sm); font-weight: 600; }
