/* Generated by scripts/port-landing.mjs from the marketing repo. */
@scope (.landing-root) {
/* ==========================================================================
   Projet — shared styles for the small marketing subpages (about.html,
   faq.html). Loaded after landing.css, which owns the shared nav/footer/
   buttons/tokens; this file only adds what those two pages need on top.
   ========================================================================== */

/* ---------- generic page header, used by both pages ----------
   Vertical spacing only — this class is combined with .wrap on the same
   element (<section class="page-hero wrap">), so it must never touch
   horizontal padding or max-width: a 3-value padding shorthand or a max-width
   here would silently override .wrap's own 32px side padding / var(--maxw),
   leaving the hero indented far more than every section below it. Line
   length for the intro paragraph is already handled on .page-hero-sub's own
   max-width, not here. */
.page-hero{position:relative; padding-top:64px; padding-bottom:12px;}
.page-hero::before{
  content:''; position:absolute; z-index:0; pointer-events:none;
  top:0; bottom:-42vh; left:50%; width:100vw; margin-left:-50vw;
  background:
    var(--grad-glow),
    var(--grad-soft);
}
.page-hero > *{position:relative; z-index:1;}
.page-hero h1{font-size:clamp(38px,5.4vw,58px); margin:14px 0 18px;}
.page-hero-sub{font-size:17.5px; line-height:1.6; color:var(--ink-soft); max-width:56ch;}

/* ---------- about.html ---------- */
/* Vertical-only, same reason as .page-hero above: this class is combined
   with .wrap on the same element (twice, on the two .about-section rows),
   so a 2-value shorthand here (which also sets left/right) would zero out
   .wrap's own horizontal padding below --maxw. Was actually doing exactly
   that until this pass — found via measuring computed padding at mobile
   widths, not just checking for horizontal overflow (zero padding doesn't
   overflow, it just runs content flush to the edges). */
.about-section{padding-top:56px; padding-bottom:56px;}
/* ==========================================================================
   THE STORY — pinned, one column, four rows
   Problem / Mission / Vision / How it works, replacing the old 2x2
   .about-grid across two sections.

   The mechanic: .story-scroll is tall scroll-room, .story-stage sticks
   inside it for the whole range, and landing.js maps progress through the
   wrapper onto one of four .story-item beats. Every HEADING stays on
   screen the entire time and only the active item's BODY is expanded --
   that is what lets four full points share one viewport, and it means the
   reader can always see the whole argument and where they are in it.

   The expand is grid-template-rows 0fr -> 1fr on .story-p with the inner
   div clipped. Worth stating why that trick is safe here when it was
   abandoned for faq.html's accordion: the failure there was specific to
   <details>, whose non-summary children Chrome wraps in an internal
   ::details-content box that stops updating layout the moment [open] is
   removed. .story-p is a plain div with no such box, so the pure-CSS
   version works in both directions with no JS height measurement.
   ========================================================================== */
.story-scroll{position:relative;}
.story-stage{display:flex; align-items:center;}
/* width:100% on the inner .wrap, not just its own margin-inline:auto — the
   same trap .faq-group hit. .story-stage is a flex container (it has to be,
   to centre the list vertically in the sticky 100vh box), so the .wrap
   inside it is a flex item and shrinks to fit-content instead of filling to
   var(--maxw). Measured before the fix: the story list started at x=335 on
   a 1440px viewport while every other section on the page started at 132. */
.story-stage > .wrap{width:100%;}
.story-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; width:100%;}
.story-item{
  display:flex; gap:20px; align-items:flex-start;
  padding:18px 0; border-top:1px solid var(--line);
  transition:opacity .4s var(--ease);
}
.story-item:first-child{border-top:0;}
.story-num{
  flex:none; width:34px; height:34px; border-radius:50%; margin-top:2px;
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono', monospace; font-size:10.5px; font-weight:700;
  border:2px solid var(--line); background:var(--paper); color:var(--muted);
  transition:background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.story-body{min-width:0;}
.story-item .eyebrow{display:block; margin-bottom:6px;}
.story-item h2{
  font-size:clamp(20px,2.4vw,27px); margin:0; line-height:1.22;
  transition:color .35s var(--ease);
}
.story-p{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .45s var(--ease), opacity .35s var(--ease);
  opacity:0;
}
.story-p > div{overflow:hidden;}
.story-p p{font-size:15.5px; line-height:1.65; color:var(--ink-soft); max-width:52ch; margin:12px 0 0;}
.story-p a{font-weight:700; color:var(--accent-deep);}

/* the active beat: number fills, heading goes to full ink, body expands */
.story-item.is-active .story-num{background:var(--accent-deep); border-color:transparent; color:#fff;}
.story-item.is-active .story-p{grid-template-rows:1fr; opacity:1;}
/* Inactive headings dim rather than disappear -- .55 is the same resting
   opacity the home page's own step list uses, and it stays comfortably
   readable, so nothing is hidden, only de-emphasised. */
.story-item:not(.is-active){opacity:.55;}
.story-item.is-done .story-num{border-color:var(--accent); color:var(--accent-deep);}

/* the pin itself, desktop + motion only */
@media (min-width:801px) and (prefers-reduced-motion: no-preference){
  .story-scroll{height:340vh;}
  .story-stage{position:sticky; top:0; height:100vh; height:100svh;}
}

/* Fallbacks, written for both axes the pin can be switched off on. Every
   point is fully expanded and at full opacity -- the same contract as
   every other scroll effect on this site: the end state is what renders
   when the effect cannot run. */
@media (max-width:800px), (prefers-reduced-motion: reduce){
  .story-scroll{height:auto;}
  .story-stage{position:static; height:auto; display:block;}
  /* !important, not just opacity:1 — a real bug, caught by screenshot, not
     by reading the CSS. The base dimming rule is .story-item:not(.is-active)
     (two selectors' worth of specificity), which beats a plain single-class
     .story-item{opacity:1} regardless of media-query placement or source
     order. Since the JS pin never runs here, NO item ever gets .is-active,
     so every item but the first matched :not(.is-active) and rendered stuck
     at .55 opacity — on every phone-width visit, not just reduced-motion.
     Same site-wide convention already established for this exact conflict
     (see CLAUDE.md's "two co-applied classes" note): the fallback needs
     !important when a JS-added state class can still out-rank it. */
  .story-item{opacity:1 !important;}
  .story-p{grid-template-rows:1fr; opacity:1;}
}
.no-js .story-scroll{height:auto;}
.no-js .story-stage{position:static; height:auto; display:block;}
.no-js .story-item{opacity:1 !important;}
.no-js .story-p{grid-template-rows:1fr; opacity:1;}

/* Our founders — real, named people, so this reuses the dashboard's
   initials-in-a-gradient-circle avatar treatment (.dash-avatar), not the
   illustrated-silhouette placeholder used for the anonymous testimonial
   quotes elsewhere on the site. The whole card is a link out to that
   person's own LinkedIn (a real destination), unlike the challenge/ticket
   cards elsewhere which are deliberately non-links because they have
   nowhere real to go yet. */
.founders-head{margin-bottom:28px;}
.founders-head h2{font-size:clamp(24px,2.8vw,30px); margin:10px 0 0;}
.founders{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
@media (max-width:640px){ .founders{grid-template-columns:1fr;} }
.founder-card{
  display:flex; flex-direction:column; align-items:flex-start; gap:10px;
  padding:26px; border-radius:var(--radius-lg); border:1px solid var(--line);
  background:var(--paper);
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.founder-card:hover{transform:translateY(-3px); box-shadow:0 20px 44px -28px rgba(20,19,15,.3);}
.founder-card:focus-visible{outline:none; box-shadow:0 0 0 2px var(--paper), 0 0 0 4px var(--ink);}
.founder-avatar{
  width:56px; height:56px; border-radius:50%; flex:none;
  background:var(--grad-accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono',monospace; font-size:18px; font-weight:700;
  overflow:hidden;
}
.founder-avatar img{width:100%; height:100%; object-fit:cover;}
.founder-name{font-size:18px; font-weight:800; color:var(--ink);}
.founder-role{font-size:13.5px; color:var(--ink-soft);}
.founder-link{
  margin-top:6px; font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700;
  color:var(--accent-deep); display:inline-flex; align-items:center; gap:6px;
}

/* same wrap-padding trap, same fix */
.about-stats{padding-top:16px; padding-bottom:72px;}
.about-stats-inner{
  padding:36px 40px; border-radius:var(--radius-xl); background:var(--paper-warm);
  border:1px solid var(--line);
}
.about-stats .hero-stat-row{border-left:0; padding-left:0; font-size:14px; gap:32px;}
.about-stats .hero-stat-row b{font-size:26px;}

/* ---------- faq.html ---------- */
/* same wrap-padding trap as .about-section above — was zeroing .wrap's own
   horizontal padding here too, which is what actually made the page read
   as edge-to-edge on mobile (a plain overflow check doesn't catch this:
   zero padding doesn't overflow, it just removes the margin). */
.faq-section{padding-top:48px; padding-bottom:72px; display:flex; flex-direction:column; gap:40px;}
/* Capped narrower than --maxw on purpose: .faq-item summary is a single
   full-width flex row (question left, +/x toggle right via
   justify-content:space-between), and at the section's full 1240px content
   width that put a very long stretch of empty space between a short
   question and its own toggle icon — every other section on the site
   fills that width with its own multi-column layout, but a flat Q&A list
   has nothing to put in the middle. 720px keeps the question and its icon
   close together at any viewport, the same way a reading-width column
   would in a document. */
/* Two columns: the group label on the left, its questions on the right.

   This replaces a centred max-width:720px column, which is what made the
   page feel misaligned — .page-hero above is a .wrap and starts at the
   content column's left edge, while the Q&A block was centred inside that
   same wrap, so the heading and the list visibly did not share an edge.

   Left-aligning the old single column would have fixed the edge but left
   ~500px of dead space beside it at desktop widths. Putting the group
   label in that space fixes both at once: everything now starts on the
   wrap's left edge, and the reason the 720px cap existed in the first
   place still holds — a .faq-item summary is one full-width flex row with
   the question left and the +/x toggle right, and at the full 1240px
   content width a short question sat a very long way from its own toggle.

   The label is sticky so it stays with its questions while they scroll,
   which is the other thing the empty column can usefully do. */
.faq-group{
  width:100%;
  display:grid; grid-template-columns:minmax(150px,230px) minmax(0,720px);
  column-gap:clamp(24px,4vw,64px);
  align-items:start;
}
.faq-group h2{
  grid-column:1; grid-row:1 / -1; align-self:start;
  position:sticky; top:104px;
  font-family:'JetBrains Mono',monospace; font-size:12px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--accent-deep);
  /* padding-top aligns the label's cap-height with the first question's,
     since .faq-item carries 18px of its own top padding */
  padding-top:20px; margin-bottom:0;
}
.faq-group .faq-item{grid-column:2;}

/* One column below 900px: there is no room for a label gutter, so the
   group heading goes back above its own questions. */
@media (max-width:900px){
  .faq-group{display:block;}
  .faq-group h2{position:static; padding-top:0; margin-bottom:14px;}
}
.faq-item{
  border-bottom:1px solid var(--line); padding:18px 0;
}
.faq-item summary{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  cursor:pointer; list-style:none; font-size:16.5px; font-weight:700; color:var(--ink);
  border-radius:10px;
  transition:color .22s var(--ease);
}
.faq-item summary::-webkit-details-marker{display:none;}
/* Hover highlights both the question and the toggle circle toward the
   accent, but only the QUESTION TEXT nudges right — the + stays in a fixed
   position (moving both together, the original version, read as the whole
   row sliding rather than a "here, click this" invitation on the text
   alone). Needs .faq-q as its own element: summary's own ::after (the +)
   is generated content of summary itself, so a transform on summary would
   have carried both along together regardless of which one visually looks
   like it should move. Skipped once open: an expanded card has nothing
   left to invite the reader to do. */
.faq-item:not([open]) summary:hover{color:var(--accent-deep);}
.faq-item:not([open]) summary:hover .faq-q{transform:translateX(10px);}
.faq-item:not([open]) summary:hover::after{border-color:var(--accent-deep); color:var(--accent-deep); transform:scale(1.12);}
.faq-q{
  display:inline-block;
  /* transform, not padding-left: nudging via a layout property forces a
     reflow of the row (and everything sized against it) on every animation
     frame, where translateX is compositor-only. */
  transition:transform .22s var(--ease);
}
.faq-item summary::after{
  content:'+'; flex:none; width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:400; color:var(--muted); border:1px solid var(--line);
  transition:transform .25s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item summary:focus-visible{outline:2px solid var(--ink); outline-offset:4px; border-radius:4px;}

/* ---------- expand/retract animation ----------
   A pure grid-template-rows(0fr/1fr) CSS trick was tried first and had to
   be dropped: modern Chrome wraps a <details>'s non-summary children in
   its own internal ::details-content box, which silently stops updating
   layout for that box the instant [open] is removed (it snaps to a
   content-visibility-hidden state under the hood) — so OPENING animated
   correctly but CLOSING just froze at full height, confirmed by polling
   computed style every 50ms after the close click and watching it never
   move. landing.js instead drives .faq-a's height directly with inline
   styles, which are unaffected by that internal box's own state, and
   calls preventDefault() on the summary click so the native toggle (and
   whatever ::details-content does) never fires mid-animation — only
   flips <details>.open itself once the visible animation is already
   done. See the JS comment for the open/close sequence.

   No-js (and reduced-motion, where the JS below just skips entirely)
   fall back to this base CSS alone: height:0 + overflow:hidden when
   closed, height:auto once [open] is present — correct end state with
   no animation, same contract as every other JS-enhanced effect here. */
.faq-item .faq-a{overflow:hidden; height:0; transition:height .3s var(--ease);}
.faq-item[open] .faq-a{height:auto;}
.faq-item .faq-a-in{overflow:hidden;}
.faq-item p{margin-top:12px; font-size:15px; line-height:1.65; color:var(--ink-soft); max-width:64ch;}

}
