/* ============================================================================
   ATLAS 3 KIT — page components for NEW marketing surfaces
   ----------------------------------------------------------------------------
   Generalized 2026-08-23 from benali-site's site.css (the shipped, ratified
   implementations) so a new marketing page doesn't start from bare tokens.
   benali-site keeps its own copy of these patterns in site.css — this file is
   for pages OUTSIDE that repo (campaign pages, one-off landings, partners).
   Link AFTER brand.css; pair with brand-artifacts.js for grounds.

     <link rel="stylesheet" href="brand.css">
     <link rel="stylesheet" href="brand-kit.css">
     <script src="brand-artifacts.js"></script> + AtlasArtifacts.mount()

   Class names match site.css deliberately, so knowledge transfers. The
   rendered sheet is components.html, beside this file.
   ========================================================================== */

/* the few site tokens brand.css doesn't carry */
:root {
  --ink-dim: rgba(46, 51, 59, 0.55);
  --wash:    rgba(46, 51, 59, 0.045);
  --wash-2:  rgba(46, 51, 59, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--measure, 1300px);
  margin: 0 auto;
  padding-left: var(--gutter, 24px);
  padding-right: var(--gutter, 24px);
}


/* ============================================================================
   K1 · TYPE HELPERS — the site's working set (sizes match the brand.css scale)
   ========================================================================== */

h1, h2, h3 { margin: 0; font-weight: 500; }

.display { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.15; letter-spacing: -0.028em; }
.hero .display { font-size: clamp(22px, 2.3vw, 31px); max-width: 44ch; }
.display .cont { display: block; color: var(--ink-mid); }

.head-2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.022em; }
.head-2 .cont { display: block; color: var(--ink-mid); }

.kicker { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-dim); margin-bottom: 14px; }
.lede { font-size: 16px; line-height: 1.55; color: var(--ink-mid); max-width: 620px; }
.statement { text-align: center; font-size: 14px; font-weight: 500; color: var(--ink-dim); letter-spacing: 0.01em; }

/* figures are hairline 300 — the brand's thin-figure inheritance */
.fig { font-size: clamp(28px, 2.8vw, 36px); font-weight: 300; letter-spacing: -0.01em; line-height: 1; }
.fig-cap { font-size: 13.5px; color: var(--ink-mid); margin-top: 10px; max-width: 30ch; }

/* ink flips on a navy stage — one block covers every helper */
.a3-on-dark { color: #fff; }
.a3-on-dark .display, .a3-on-dark .head-2,
.a3-on-dark h1, .a3-on-dark h2, .a3-on-dark h3 { color: #fff; }
.a3-on-dark .display .cont, .a3-on-dark .head-2 .cont { color: rgba(255, 255, 255, 0.66); }
.a3-on-dark .kicker, .a3-on-dark .statement { color: rgba(255, 255, 255, 0.62); }
.a3-on-dark .lede { color: rgba(255, 255, 255, 0.66); }


/* ============================================================================
   K2 · CONTROLS — the site's button set (extends brand.css's .a3-btn)
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: var(--r-control, 999px);
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
  border: 0; cursor: pointer; text-decoration: none;
  transition: background 240ms ease, color 240ms ease, transform 240ms var(--ease-breath, ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--majorelle); color: #fff; }
.btn-accent:hover { color: #fff; }
.btn-quiet { background: var(--wash); color: var(--ink); }
.btn-quiet:hover { background: var(--wash-2); color: var(--ink); }
.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* on navy the accent rendition is paper — the ground carries the hue */
.a3-on-dark .btn-accent { background: #fff; color: var(--ink); }
.a3-on-dark .btn-accent:hover { color: var(--ink); }
.a3-on-dark .btn-quiet { background: rgba(255, 255, 255, 0.12); color: #fff; }
.a3-on-dark .btn-quiet:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.link-more .arrow { color: var(--ink-ghost); transition: color 0.16s ease, transform 0.16s ease; }
.link-more:hover .arrow { color: var(--majorelle); transform: translateX(2px); }
.a3-on-dark .link-more { color: var(--majorelle-lift, #9AA0EE); }


/* ============================================================================
   K3 · NAV — lives on two grounds
   ----------------------------------------------------------------------------
   Transparent over a navy hero (white ink) or on paper. Not sticky (Nick,
   2026-09-03): the bar scrolls away with the page, so set .on-dark once at
   load from the hero's [data-nav-dark] and swap the wordmark rendition with
   it. The sticky bar and its 24px crossfade to paper are retired. NEVER
   backdrop-filter (Chrome flickers over canvas).
   ========================================================================== */

.nav { position: relative; z-index: 60; background: transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.nav-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { height: 10px; width: auto; }
.brand-cube { width: 21px; height: 21px; flex: none; }
.brand-cube .bc-hex { fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; transition: stroke 240ms ease; }
.brand-cube .bc-core { fill: var(--majorelle); transition: fill 240ms ease; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  color: var(--ink-mid); background: none; border: 0; cursor: pointer;
  text-decoration: none; transition: color 240ms ease;
}
.nav-link:hover, .nav-dd:hover > .nav-link, .nav-link[aria-current] { color: var(--ink); }
.nav-link .chev { color: var(--ink-ghost); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right .btn { padding: 8px 15px; font-size: 13.5px; }

.nav.on-dark .nav-link { color: rgba(255, 255, 255, 0.78); }
.nav.on-dark .nav-link:hover, .nav.on-dark .nav-dd:hover > .nav-link { color: #fff; }
.nav.on-dark .nav-link .chev { color: rgba(255, 255, 255, 0.45); }
.nav.on-dark .brand-cube .bc-hex { stroke: #fff; }
.nav.on-dark .brand-cube .bc-core { fill: var(--majorelle-lift, #9AA0EE); }
.nav.on-dark .nav-cta { background: #fff; color: var(--ink); }

/* dropdown */
.nav-dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card, 14px);
  box-shadow: 0 20px 50px -20px rgba(27, 30, 35, 0.25);
  padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel, .nav-dd.open .dd-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dd-inner { display: grid; gap: 2px; min-width: 340px; }
.dd-inner.cols2 { grid-template-columns: repeat(2, minmax(270px, 1fr)); }
.dd-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: 8px; text-decoration: none; transition: background 0.13s ease; }
.dd-item:hover { background: var(--wash); }
.dd-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dd-desc { font-size: 12.5px; color: var(--ink-dim); line-height: 1.35; }


/* ============================================================================
   K4 · SECTION PATTERNS
   ========================================================================== */

/* split — copy one side, visual the other */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-copy .lede { margin-top: 12px; }
.split-copy .link-more { margin-top: 18px; }

/* stat band — hairline figures in a row */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.figures .fig-cell { padding-left: 18px; border-left: 2px solid var(--majorelle); }

/* accent-rule list — the /book pattern, reads as "three reasons" */
.points-rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; max-width: 420px; }
.points-rail li { padding-left: 18px; border-left: 2px solid var(--majorelle); }
.points-rail h3 { font-size: 15px; font-weight: 600; margin: 0; }
.points-rail p { font-size: 13.5px; line-height: 1.55; color: var(--ink-mid); margin: 5px 0 0; }

/* quote band — one editorial pull-quote, closed by a hairline */
.quote-band { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-band blockquote { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-size: 13px; color: var(--ink-mid); }
.quote-band cite b { font-weight: 600; color: var(--ink); }

/* logo strip — quiet trust row. Logos are grayscale via opacity, never recolored. */
.logo-strip { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.logo-strip img { height: 22px; width: auto; opacity: 0.45; filter: grayscale(1); }

/* FAQ — marketing scale */
.faq { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--ink-ghost); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .faq-a { padding: 0 2px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-mid); max-width: 62ch; }

/* email capture — input + pill button on one rail */
.capture { display: flex; gap: 10px; max-width: 460px; }
.capture input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 10px 16px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r-control, 999px);
  outline: none; transition: border-color 240ms ease;
}
.capture input::placeholder { color: var(--ink-ghost); }
.capture input:focus { border-color: var(--majorelle); }
.capture .btn { flex: none; }
.a3-on-dark .capture input { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.a3-on-dark .capture input::placeholder { color: rgba(255, 255, 255, 0.38); }
.capture-note { margin-top: 10px; font-size: 12px; color: var(--ink-ghost); }

/* Ledge — the default capture treatment on paper (brand.css §06 treatment 04):
   complete window, seam artifact pooled beneath, ~50px of clear paper below.
   Markup: <div class="ledge"> window + <div class="ledge-seam" data-art="seam">.
   The seam div takes NO a3-art class — a3-art's inset: 0 supplies top: 0, which
   overrides the seam's bottom anchor (top: auto below guards against it anyway). */
.ledge { position: relative; margin-bottom: 50px; }
.ledge > :not(.ledge-seam) { position: relative; }
.ledge-seam { position: absolute; top: auto; left: 2%; right: 2%; bottom: -34px; height: 86px; pointer-events: none; }

/* framed window — title bar + traffic dots, for real product captures */
.framed { border-radius: var(--r-window, 10px); overflow: hidden; background: var(--card); }
.framed-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.framed-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.framed img { width: 100%; display: block; }
.framed-light { box-shadow: 0 34px 60px -30px rgba(27, 30, 35, 0.34), 0 2px 5px rgba(27, 30, 35, 0.05), 0 0 0 1px var(--line); }
.framed-dark { box-shadow: 0 40px 90px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line-on-dark); }
.framed-dark .framed-bar { background: var(--chrome-dark, #23262E); border-bottom-color: rgba(255, 255, 255, 0.07); }
.framed-dark .framed-bar i { background: rgba(255, 255, 255, 0.22); }

/* CTA band — paper, statement + buttons, fan artifact behind (masked in
   brand.css §07b). Markup: .cta-band > .a3-art-fan[data-art=fan] + content */
.cta-band { position: relative; text-align: center; padding: clamp(72px, 11vh, 130px) 24px; overflow: hidden; }
.cta-band > :not(.a3-art-fan) { position: relative; }
.cta-band .display { max-width: 22ch; margin: 0 auto; }
.cta-band .cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }


/* ============================================================================
   K5 · FOOTER — link columns + the giant D-rendition wordmark, rail to rail
   ========================================================================== */

.footer { position: relative; background: #fff; border-top: 1px solid var(--line); padding-top: clamp(48px, 7vh, 72px); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.foot-brand p { font-size: 13px; color: var(--ink-dim); max-width: 30ch; margin: 14px 0 0; }
.foot-brand .foot-legal { font-size: 12px; color: var(--ink-ghost); margin-top: 10px; max-width: none; }
.foot-col h4 { margin: 0 0 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-ghost); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { font-size: 13.5px; color: var(--ink-mid); text-decoration: none; transition: color 0.14s ease; }
.foot-col a:hover { color: var(--ink); }
/* the oversized mark: the D rendition (>64px cap), placed as an image */
.foot-wordmark { padding: 28px 0 40px; }
.foot-wordmark img { width: 100%; height: auto; }


/* ============================================================================
   K6 · MOTION — reveal on entry, never faster than a breath, never re-runs
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ============================================================================
   K7 · RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; gap: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dd-inner.cols2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-menu { display: none; }   /* mobile: brand + one CTA only */
  .capture { flex-direction: column; }
}
