/* LYXOMED — static site
   White paper + hospital-curtain indigo. Slope-rule in --mark only. */

:root {
  --bg: #f5f5f7;
  --bg-2: #f5f5f7;
  --paper: #ffffff;
  --ink: #12161c;
  --ink-2: #3a4450;
  --mute: #5c6773;
  --line: #e4e7ea;
  --line-2: #d5d9de;
  --accent: #1a3a5c;
  --accent-ink: #122a44;
  --accent-soft: #d5deea;
  --accent-wash: #eef3f7;
  --mark: #c99212;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(18, 22, 28, 0.07);
  --radius: 7px;
  --media-radius: 24px;  /* all product image frames */
  --max: 1120px;
  --measure: 44rem;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }
:target { scroll-margin-top: 5.2rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }

a:hover { color: var(--accent-ink); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* Header — full-bleed locked 44px three-slot bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 44px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(18, 22, 28, 0.08);
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  width: 100%;
  max-width: none;
  height: 44px;
  margin-inline: 0;
  padding-inline: 22px;
  column-gap: 0;
  background: transparent;
}

.brand {
  justify-self: start;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover,
.brand:hover .wordmark { color: var(--accent); }

.brand-mark {
  width: 140px;
  height: 28px;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.wordmark {
  display: inline;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
  text-decoration: none;
  color: inherit;
}

a.wordmark { color: var(--ink); }
a.wordmark:hover { color: var(--accent); }

.nav {
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.8rem;
  font-size: 12px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.header-end {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.nav-buy {
  color: var(--white) !important;
  background: var(--accent);
  padding: 0.28rem 0.72rem;
  border-radius: 980px;
  text-decoration: none;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-buy:hover { background: var(--accent-ink); }

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0.25rem 0.1rem;
  cursor: pointer;
}

@media (max-width: 1140px) {
  .site-header { height: 44px; }
  .header-inner { height: 44px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-self: stretch;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    gap: 0;
    padding: 0.4rem 1.25rem 0.85rem;
    background: rgba(245, 245, 247, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(18, 22, 28, 0.08);
    font-size: 15px;
  }
  .site-header.is-open .nav a {
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .nav a:last-child { border-bottom: 0; }
}

/* Type */
.kicker {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.85rem; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.5rem; }

.lede {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38rem;
}

.prose { max-width: var(--measure); color: var(--ink-2); }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.fine {
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.5;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.68rem 1.05rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover { background: var(--accent-ink); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover { background: var(--accent-wash); color: var(--accent-ink); }

.btn .ext { font-size: 0.85em; opacity: 0.8; }

/* Hero */
.hero {
  padding: 3.2rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.2rem;
  align-items: center;
}

.hero-photo {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.caption {
  font-size: 0.75rem;
  color: var(--mute);
  margin: 0.55rem 0 0;
}

/* Sections */
.band { padding: 4.2rem 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-paper { background: var(--paper); }
.band-accent {
  background: var(--accent);
  color: #e8eef4;
}
.band-accent h2, .band-accent h3 { color: var(--white); }
.band-accent p { color: #d5dee8; }
.band-accent a { color: #c9d7e6; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse .copy { order: 2; }

.frame {
  border-radius: var(--media-radius);
  overflow: hidden;
  border: 0;
  background: #ffffff;
}

.frame img { width: 100%; }

/* Cards */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.size-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.size-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.size-card .pad { padding: 1.1rem 1.2rem 1.3rem; }
.size-card h3 { margin-bottom: 0.25rem; }
.size-card p { margin: 0 0 0.9rem; color: var(--ink-2); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 300px));
  justify-content: start;
  gap: 24px;
  margin-top: 1.8rem;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  max-width: 300px;
}

.catalog-card:hover {
  color: inherit;
}

.catalog-card:hover > h2 {
  color: var(--accent);
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: var(--media-radius);
}

.catalog-card > h2,
.catalog-card > h3,
.catalog-card h2,
.catalog-card h3 {
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  padding: 14px 0 0;
}

.catalog-card p,
.catalog-card > p {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0.3rem 0 0;
}

.catalog-kicker { margin-top: 2.8rem; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
}

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

.jump a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.catalog-group h2 a {
  color: inherit;
  text-decoration: none;
}

.catalog-group h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.catalog-group .q-row {
  margin-top: 1.25rem;
}

/* Quote */
.protocol {
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.25rem 0;
}

.protocol blockquote {
  margin: 0 0 0.45rem;
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}

.protocol cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--mute);
}

/* Heights */
.height-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.4rem 0;
}

.height {
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.height strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--accent);
}

.height span { color: var(--ink-2); font-size: 0.95rem; }

.note {
  background: var(--accent-wash);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Steps */
.steps {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
}

/* Specs */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.specs th, .specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.72rem 0.6rem 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.specs th {
  width: 34%;
  font-family: var(--body);
  font-weight: 700;
  color: var(--ink);
}

.specs td {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Research */
.cite-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  counter-reset: cite;
}

.cite-list li {
  counter-increment: cite;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.7rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.96rem;
}

.cite-list li::before {
  content: counter(cite);
  font-family: var(--mono);
  color: var(--accent);
}

.cite-list a { word-break: break-word; }

.agent-tools-note { margin-top: 1.6rem; }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; }

.gallery-main {
  background: #ffffff;
  border: 0;
  border-radius: var(--media-radius);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ffffff;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}

.thumbs button {
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
}

.thumbs button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ffffff;
}

.thumbs button[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Product hero extras */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0.2rem;
}

.pill {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.28rem 0.55rem;
  color: var(--ink-2);
  background: var(--paper);
}

/* Product story */
.hero-specs {
  margin-top: 1.5rem;
}

.hero-specs th {
  width: 28%;
}

body.product .band {
  padding: 3.4rem 0;
}

.story-measure {
  max-width: 42rem;
}

.story-measure .prose,
.story-measure .protocol,
.story-measure .cite-list,
.story-measure .source-stack {
  max-width: none;
}

.sources-kicker {
  margin-top: 2.2rem;
}

/* Source stack — collapsed citations */
.source-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.8rem;
}

.source-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.8rem;
  padding: 0.72rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

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

.source-card summary::marker {
  content: "";
}

.source-card summary::after {
  content: "+";
  color: var(--mute);
  font-weight: 700;
  line-height: 1.35;
  font-size: 0.95rem;
}

.source-card[open] summary::after {
  content: "−";
}

.source-conclusion {
  display: block;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  font-size: 0.94rem;
}

.source-name {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.76rem;
  color: var(--mute);
  font-weight: 400;
}

.source-body {
  padding: 0.95rem 1rem 1.15rem;
  border-top: 1px solid var(--line);
}

.source-doc {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.source-note {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  color: var(--mute);
}

.source-excerpt {
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 0.95rem;
  margin: 0 0 0.85rem;
}

.source-excerpt p {
  margin: 0 0 0.7rem;
}

.source-excerpt p:last-child {
  margin-bottom: 0;
}

.source-excerpt ul {
  margin: 0;
  padding-left: 1.15rem;
}

.source-excerpt li {
  margin: 0.35rem 0;
}

.source-cite {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: var(--mute);
  line-height: 1.45;
}

.source-link {
  margin: 0;
  font-size: 0.86rem;
}

.source-link a {
  word-break: break-word;
}

.story-measure .prose + .prose,
.copy .prose + .prose,
.prose-block .prose + .prose {
  margin-top: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }

.disclaimer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--mute);
  max-width: 52rem;
}

.footer-home {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}

.footer-about {
  margin: 0;
  font-size: 0.8125rem;
}

/* 404 */
.page-404 {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

/* Sticky buy removed — one Amazon CTA in basics + header */
.sticky-buy { display: none !important; }

/* Home honesty */
.honesty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.4rem;
  align-items: start;
}

.honesty .mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 1rem;
}

@media (max-width: 880px) {
  .hero-grid,
  .split,
  .trio,
  .sizes,
  .height-pair,
  .footer-grid,
  .thumbs { grid-template-columns: 1fr 1fr; }

  .hero-grid { gap: 1.6rem; }
  .split-reverse .copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.3rem; }
}


@media (max-width: 640px) {
  .hero { padding-top: 1.8rem; }
  .hero-grid,
  .trio,
  .sizes,
  .height-pair,
  .thumbs { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .band { padding: 2.8rem 0; }
}

@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;
  }
}

.size-card h3 a {
  color: inherit;
  text-decoration: none;
}
.size-card h3 a:hover { color: var(--accent); text-decoration: underline; }

.size-card .btn-row { margin-top: 0.2rem; }

/* FAQ — visible Q&A for humans and featured snippets */
.faq {
  margin-top: 1.6rem;
  max-width: 44rem;
}

.faq-item {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.faq-item:first-child { border-top: 0; padding-top: 0; }

.faq-item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

.faq-item p {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
}

.faq-item p:last-child { margin-bottom: 0; }

.faq-more { margin-top: 1.4rem; }


/* Breadcrumb — small trail, not a section */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--mute);
  margin: 0 0 1.15rem;
}

.crumb a {
  color: var(--mute);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.crumb [aria-current="page"] {
  color: var(--ink-2);
}

/* FAQ list — tight stack, answers always open */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
}

.faq-list > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.78rem 0.95rem 0.88rem;
}

.faq-list dt {
  margin: 0 0 0.28rem;
  font-family: var(--body);
  font-size: 0.94rem;
  line-height: 1.35;
}

.faq-list dt strong {
  font-weight: 700;
  color: var(--ink);
}

.faq-list dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Homepage questions row */
.q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.q-row li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}

.q-row a {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.q-row a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.q-row p {
  margin: 0.45rem 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .q-row { grid-template-columns: 1fr; }
}

.questions-kicker { margin-top: 2.4rem; }

.steps + .prose { margin-top: 1.4rem; }



body.product .site-footer .wrap,
body.home .site-footer .wrap,
body.about .site-footer .wrap,
body.collection .site-footer .wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 1.25rem;
}

body.product .site-footer,
body.home .site-footer,
body.about .site-footer,
body.collection .site-footer {
  padding: 1.4rem 0 1.8rem;
}

body.product .disclaimer,
body.home .disclaimer,
body.about .disclaimer,
body.collection .disclaimer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Signature: left-edge slope rule on product #basics */
body.product #basics {
  position: relative;
}

body.product #basics::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 2.15rem;
  width: 16px;
  height: 96px;
  pointer-events: none;
  background:
    linear-gradient(var(--mark), var(--mark)) 3px 0 / 1.5px 30px no-repeat,
    linear-gradient(148deg, transparent 45%, var(--mark) 45%, var(--mark) 55%, transparent 55%) 3px 28px / 12px 36px no-repeat,
    linear-gradient(var(--mark), var(--mark)) 13px 62px / 1.5px 34px no-repeat;
}

.slope-rule {
  display: none;
}

body.product #basics.has-slope-labels::before {
  display: none;
}

/* Slope rule was a docs-gutter glyph. Full-bleed chapters have no gutter. */
.slope-rule,
body.product #basics.has-slope-labels::before {
  display: none !important;
}

/* —— Home: stacked centered promo modules —— */

.ticker {
  text-align: center;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--mute);
  margin: 0;
  padding: 0.7rem 1.25rem;
  background: #ffffff;
}

.promo {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 4.75rem 1.5rem 3.25rem;
  background: #ffffff;
}

.promo-alt,
.promo:nth-of-type(2) {
  background: #ffffff;
}

.promo > h2 {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.45rem;
}

.promo > p {
  margin: 0 auto 1.35rem;
  max-width: 34rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.promo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 2.4rem;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  padding: 0.58rem 1.4rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background 0.12s ease, color 0.12s ease;
}

.promo-pill-fill {
  background: var(--accent);
  color: var(--white);
}

.promo-pill-fill:hover {
  background: var(--accent-ink);
  color: var(--white);
  border-color: var(--accent-ink);
}

.promo-pill-outline {
  background: transparent;
  color: var(--accent);
}

.promo-pill-outline:hover {
  background: var(--accent-wash);
  color: var(--accent-ink);
}

.promo-photo {
  margin: 0 auto;
  width: min(72rem, 92vw);
  background: #ffffff;
  border-radius: var(--media-radius);
  overflow: hidden;
}

.promo-photo img {
  width: 100%;
  height: auto;
  max-height: 56vh;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  margin-inline: auto;
  border-radius: var(--media-radius);
}

@media (min-width: 881px) {
  .promo {
    padding: 5.5rem 2rem 4rem;
    min-height: 36rem;
  }
}

@media (max-width: 640px) {
  .promo {
    padding: 3.2rem 1.15rem 2.4rem;
  }
  .promo > p { font-size: 1.05rem; }
  .promo-pills { margin-bottom: 1.6rem; }
  .ticker { padding: 0.6rem 1.15rem; }
}

/* —— About: same stacked promo modules as home —— */

body.about h1,
body.about .promo h1 {
  font-size: clamp(2.8rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.45rem;
}

body.about .promo-alt {
  min-height: 0;
}

body.about .promo-alt > p {
  margin-bottom: 1rem;
}

body.about .promo-alt > p:last-of-type {
  margin-bottom: 0;
}

body.about .promo-photo {
  max-width: min(72rem, 92vw);
}

body.about .promo-photo img {
  object-fit: contain;
}


/* Brand lockup + family / shop pages */

.family-block {
  scroll-margin-top: 5.2rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  max-width: 300px;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: var(--media-radius);
}

.shop-card .pad {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 14px 0 0;
  flex: 1;
  text-align: left;
}

.shop-card h2,
.shop-card .pad > h2 {
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.shop-card .shop-amazon {
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-card .shop-amazon:hover { text-decoration: underline; }

.shop-card .shop-page {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.chapter-sub {
  margin-top: 2.1rem;
}

.chapter-sub:first-of-type { margin-top: 1.35rem; }

.chapter-sub h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.chapter-sub .chapter-tiles { margin-top: 0; }

.support-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.support-list li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.support-list li:first-child { border-top: 0; padding-top: 0; }

.support-list a {
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.support-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.support-list span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* —— Chapters: full-bleed Apple-like sections. --max does not constrain these. —— */

.promo > h1 {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.45rem;
}

.promo > .lede {
  margin: 0 0 1.35rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-2);
  text-align: left;
}

.promo-pill {
  height: 44px;
  padding: 0 1.3rem;
  font-size: 17px;
}

.chapter {
  text-align: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 4.75rem 1.5rem 3.25rem;
  background: #f5f5f7;
}

.chapter > .kicker { text-align: center; }

.chapter > h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22em;
  margin: 0 auto 1.1rem;
}

.chapter > .lede {
  margin: 0 auto 1.35rem;
  max-width: 34rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink-2);
  text-align: center;
}

.chapter .prose,
.chapter .prose-block,
.chapter .source-stack,
.chapter .faq-list,
.chapter .aftercare-list,
.chapter .height-pair,
.chapter .btn-row {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

.chapter .design-figure {
  max-width: min(42rem, 92vw);
  margin: 1.35rem auto 0;
}

.chapter .design-figure img,
.chapter .frame img {
  background: #ffffff;
}

.promo .catalog-grid,
.chapter .catalog-grid {
  width: min(80rem, 100%);
  margin-inline: auto;
  text-align: left;
}

.promo .shop-card,
.promo .catalog-card,
.chapter .shop-card,
.chapter .catalog-card {
  text-align: left;
}

.promo .support-list {
  max-width: 46rem;
  margin: 1.6rem auto 0;
  text-align: left;
}

.promo .crumb,
.chapter .crumb {
  justify-content: center;
}

body.collection .promo,
body.collection .chapter,
body.product .chapter,
body.product #basics.promo {
  min-height: 0;
  background: #f5f5f7;
  max-width: none;
}

/* Collection / Shop: left-aligned Apple lineup (home stays centered). */
body.collection .promo,
body.collection .chapter {
  text-align: left;
  padding-inline: max(1.5rem, calc((100% - 80rem) / 2));
}

body.collection .promo > h1 {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  text-align: left;
}

body.collection .promo > .lede,
body.collection .chapter > .lede {
  margin-inline: 0;
  margin-bottom: 1.35rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-align: left;
}

body.collection .promo .crumb,
body.collection .chapter .crumb {
  justify-content: flex-start;
}

body.collection .chapter > h2 {
  margin-inline: 0;
  text-align: left;
}

body.collection .promo .support-list {
  margin-inline: 0;
  max-width: 46rem;
}

body.collection .promo .catalog-grid,
body.collection .chapter .catalog-grid {
  width: 100%;
  margin-inline: 0;
  justify-content: start;
}

/* Card titles locked: never inherit chapter .promo > h2 size. */
.catalog-card h2,
.catalog-card h3,
.shop-card h2,
.promo .catalog-card h2,
.promo .shop-card h2,
.chapter .catalog-card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

body.product #basics.promo {
  text-align: left;
}

body.product #basics .hero-grid {
  width: min(72rem, 92vw);
  max-width: none;
  margin-inline: auto;
  align-items: start;
  gap: 2rem;
  text-align: left;
}

body.product #basics .gallery,
body.product #basics .gallery-main {
  background: #ffffff;
}

body.product .chapter .prose { max-width: 46rem; }
body.product .chapter .source-stack { max-width: 46rem; }
body.product .chapter .faq-list { max-width: 46rem; }

@media (min-width: 881px) {
  .chapter {
    padding: 5.5rem 2rem 4rem;
  }
}

@media (max-width: 640px) {
  .chapter {
    padding: 3.2rem 1.15rem 2.4rem;
  }
}
