/* ───────── multi-page concept: the parts the homepage did not need ───────── */

/* nav menus */
.nav-links { gap: 6px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button:hover, .nav-item.open > button { color: var(--ink); background: var(--bg-2); }
.nav-item > button svg { transition: transform .2s ease; }
.nav-item.open > button svg { transform: rotate(180deg); }
.nav-item.here > a, .nav-item.here > button { color: var(--ink); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); z-index: 60;
  width: max-content; min-width: 300px; max-width: 560px; padding: 10px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover .menu, .nav-item.open .menu, .nav-item:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; min-width: 520px; }
.menu a { display: block; padding: 10px 14px; border-radius: 12px; }
.menu a:hover { background: var(--brand-50); }
.menu a b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.menu a small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.menu .menu-h { grid-column: 1 / -1; padding: 8px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* phone menu with groups */
.mobile-menu .mm-h { display: block; padding: 18px var(--gutter) 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); }
.mobile-menu .mm-h + a { border-top: 0; }
@media (max-width: 1023px) {
  .mobile-menu.open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
}

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a:hover { color: var(--brand); }

/* page hero */
.phero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); background:
  radial-gradient(60% 80% at 85% 0%, var(--brand-100), transparent 70%), radial-gradient(40% 60% at 0% 100%, var(--brand-50), transparent 70%), var(--white); }
.phero .pill-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--brand); box-shadow: 0 1px 2px rgba(11, 11, 23, .04); }
.phero h1 { margin: 18px 0 0; max-width: 18ch; font-size: clamp(40px, 6.2vw, 84px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.phero.long h1 { max-width: 24ch; font-size: clamp(34px, 4.6vw, 64px); }
.phero .lede { font-size: clamp(17px, 1.45vw, 20px); max-width: 62ch; }
.phero .lede + .lede { margin-top: 12px; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.phero-meta span + span::before { content: '·'; margin-right: 18px; }
.phero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.phero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.phero-media img, .phero-media video { width: 100%; height: 100%; object-fit: cover; }
.phero-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phero-quad figure { margin: 0; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); aspect-ratio: 1; }
.phero-quad figure:nth-child(2n) { transform: translateY(28px); }
.phero-quad img { width: 100%; height: 100%; object-fit: cover; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* section heads that are only a heading */
.sh { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.sh .h2 { font-size: clamp(30px, 3.8vw, 52px); text-wrap: balance; }
.sh.center { margin-left: auto; margin-right: auto; text-align: center; }
.sh.center .lede { margin-left: auto; margin-right: auto; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat .meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.feat .num { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.feat ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.feat .go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--brand); }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feat h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
a.feat:hover h3 { color: var(--brand); }

.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.pcards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pcard figure { margin: 0 0 6px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg-2); }
.pcards.square .pcard figure { aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); }
.pcard figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.pcard:hover figure img { transform: scale(1.035); }
.pcard h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
a.pcard:hover h3 { color: var(--brand); }
.pcard p { margin: 0; font-size: 15px; color: var(--ink-2); }
.pcard .meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: clamp(22px, 2.4vw, 34px); background: var(--white); }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.bg-night .stats { background: var(--line-dark); border-color: var(--line-dark); }
.bg-night .stat { background: rgba(255, 255, 255, .03); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 920px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 20px; font-weight: 500; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 10px; }

/* prose */
.prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 1.8em 0 .5em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .4em; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.prose h4 { margin: 1.4em 0 .3em; font-size: 18px; font-weight: 700; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose > :first-child { margin-top: 0; }
.prose figure { margin: 1.6em 0; border-radius: 20px; overflow: hidden; }
.prose blockquote, .quote { margin: 1.6em 0; padding: 24px 28px; border-radius: 20px; background: var(--brand-50); color: var(--ink); font-size: 20px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.prose table, .tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.2em 0; }
.prose th, .prose td, .tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th, .tbl th { font-weight: 700; color: var(--ink); background: var(--bg-2); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.tbl-wrap .tbl { margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; border-radius: 20px; background: var(--bg-2); font-size: 14px; }
.toc h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); line-height: 1.4; }
.toc a:hover { color: var(--brand); }
.toc .btn { margin-top: 16px; width: 100%; }
.article-img { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }

/* checklist columns */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li .tick { flex-shrink: 0; margin-top: 2px; }
.checks.one { grid-template-columns: 1fr; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gal figure { margin: 0; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal figcaption { padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.gal.capt figure { aspect-ratio: auto; }
.gal.capt figure img { aspect-ratio: 1; height: auto; }
.wide-img { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.wide-img img, .wide-img video { width: 100%; }
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.media-split.flip > :first-child { order: 2; }

/* logos */
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; justify-content: center; }
.logo-row img { height: 28px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .75; }

/* forms */
.lead-form.full { grid-template-columns: 1fr 1fr; }
.fld textarea { display: block; width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 15px; resize: vertical; }
.form-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card .lead-form { margin-top: 18px; }

/* night section */
.bg-night { background: var(--night); color: var(--white); }
.bg-night .lede, .bg-night .prose, .bg-night .feat p { color: rgba(255, 255, 255, .72); }
.bg-night .feat { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.bg-night .feat h3, .bg-night .stat b { color: var(--white); }
.bg-night .stat span { color: rgba(255, 255, 255, .7); }
.bg-night .eyebrow { color: #a5a5ff; }
.bg-night .h2 em { color: #a5a5ff; }
.bg-night .text-link { color: var(--white); }

/* chips (tags, categories) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chips a:hover, .chips a.on { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

/* small print and steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.note { font-size: 14px; color: var(--ink-3); }
.back-row { margin-top: 32px; }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pdp-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp-gal figure:first-child { grid-column: 1 / -1; }
.pdp-gal figure { margin: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.pdp-gal img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .cards, .pcards, .pcards.c4, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phero-split, .media-split, .pdp, .article-grid { grid-template-columns: 1fr; }
  .media-split.flip > :first-child { order: 0; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .cards, .cards.c2, .cards.c4, .pcards, .pcards.c2, .pcards.c4, .checks, .lead-form.full { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phero-quad figure:nth-child(2n) { transform: none; }
  .prose { font-size: 17px; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq details > div { padding: 0 18px 18px; }
}
@media (max-width: 1023px) {
  .nav-login { display: none; }
  .nav-cta { margin-left: auto; gap: 10px; }
  .burger { display: inline-flex; }
  .mobile-menu.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--gutter); font-size: 16px; font-weight: 500; border-top: 1px solid var(--line); }
}
.section .wrap > :not(.sh) + :not(.sh), .media-split > div > :not(.sh) + :not(.sh) { margin-top: 28px; }
.section .wrap > .prose + .lead-form, .section .wrap > .checks + .prose { margin-top: 40px; }
.cta-note { margin-top: 18px; font-size: 14px; opacity: .75; }
.toc a.btn { display: flex; padding: 0 22px; color: var(--white); }
.toc a.btn:hover { color: var(--white); }
.article-grid .wrap { padding: 0; }
img.contain { object-fit: contain !important; padding: 12%; background: var(--white); }
.logo-row img.contain, .hero-logos img { padding: 0; background: none; }
.hero-logos { justify-content: flex-start; margin-top: 28px; gap: 20px 32px; }
.hero-logos img { height: 22px; }
/* the homepage turns its icon cards into rows on phones; the page cards have no icon and stay a column */
.cards .feat { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .cards .feat { padding: 20px; } }
