/* ─────────────────────────────────────────────────────────────
   Campfire public site — style-sections.css   (THE LAYOUTS)

   The whole site is built from FIVE layouts. Every body section on
   every page is one of these, and nothing else:

     L1  HERO       .hero          banner: copy left, media right
     L2  STATEMENT  .statement     heading left, prose right
     L3  TILES      .tiles/.tile   three cards, a visual on top
     L4  SPLIT      .feature       copy beside a screenshot, alternating
     L5  GRID       .specs         label / value / note, 3 or 6
                    .trust-grid    the dark-band variant, 6 cards

   Plus the shared closers every page ends on (style-pages.css):
   FAQ → crosslinks → CTA → footer.

   Two helpers sit above them:
     .section-head   the centred eyebrow / h2 / lead over L3 and L5
     .band           a white surface band — alternate it with the
                     page ground so sections read as separate

   INTERIOR PAGE FLOW (Chat, Jobs, Calendar), in this order:
     L1 hero → L3 "How it works" → L4 splits (+ one L5 grid) → FAQ
   ───────────────────────────────────────────────────────────── */


/* ═══════════ HELPERS ═══════════ */
.band      { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-warm { background: var(--bg-warm); }
.band-warm .eyebrow.ink { background: var(--surface); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-top: 14px; text-wrap: balance; }
.section-head .lead { margin-top: 18px; }


/* ═══════════ L1 · HERO — .hero ═══════════
   The banner on every page. Home adds .hero--home for a louder h1
   and the three-device diorama (style-feature.css).

       <section class="hero">
         <div class="wrap hero-grid">
           <div> eyebrow · h1 · .lead · .hero-ctas </div>
           <div class="hero-media"> a framed screenshot </div>
         </div>
       </section>
*/
.hero { padding-top: 56px; padding-bottom: 64px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-top: 18px;
  text-wrap: balance;
}
.hero--home h1 { font-size: clamp(40px, 6vw, 76px); margin-top: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { margin-top: 20px; max-width: 540px; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.hero-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* The screenshot sits on a soft accent bloom. */
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-media::before {
  content: '';
  position: absolute; inset: -6% -4%;
  background: radial-gradient(circle at 55% 45%, var(--accent-soft) 0%, transparent 62%);
  border-radius: 46% 54% 52% 48% / 52% 48% 52% 48%;
  filter: blur(10px);
  z-index: 0;
}
.hero-media > * { position: relative; z-index: 1; }


/* ═══════════ L2 · STATEMENT — .statement ═══════════
   A heading on the left and a few paragraphs on the right. Home's
   "Why Campfire" and the founder note.

       <section class="statement band">
         <div class="wrap statement-grid">
           <div> eyebrow · h2 </div>
           <div class="statement-body"> .lead · p · p </div>
         </div>
       </section>
*/
.statement-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 820px) { .statement-grid { grid-template-columns: 1fr; gap: 28px; } }
.statement h2 { margin-top: 18px; text-wrap: balance; }
.statement h2 strong { color: var(--orange-dark); font-weight: 700; }
.statement-body p { font-size: 18px; line-height: 1.6; }
.statement-body p + p { margin-top: 16px; }
.statement-body .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.statement-body .lead + p { margin-top: 24px; }
.statement-body strong { color: var(--ink); font-weight: 600; }


/* ═══════════ L3 · TILES — .tiles / .tile ═══════════
   Three cards, each with a tinted visual on top. Used for Home's
   "What's inside" (tiles are links) and every "How it works"
   (tiles are steps). Same card, same visual panel, same type.

       <div class="tiles">
         <article class="tile">                  ← or <a class="tile is-chat" href>
           <div class="tile-visual"> … </div>    ← see variants below
           <span class="eyebrow">Step 1</span>
           <h3>…</h3>
           <p>…</p>
           <ul class="tile-points"> … </ul>      ← optional
           <span class="tile-go"> … </span>      ← link tiles only
         </article>
       </div>

   ⚠ ONE TAB STOP PER LINK TILE. The whole card is the <a>;
   .tile-go is a <span> and must never become a second anchor.

   .tile-visual variants
     (none)      a hand-built .sv-card illustration, centred
     .is-peek    a phone screenshot peeking up from the bottom
     .is-screen  a landscape (tablet) screenshot peeking up
*/
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tiles.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 880px) { .tiles, .tiles.two { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* A tile can carry a module's accent rather than the page's — Home
   previews the colour of the page each card links to. */
.is-chat     { --accent:var(--teal); --accent-soft:var(--teal-soft); --accent-ink:var(--teal-ink); }
.is-jobs     { --accent:var(--gold); --accent-soft:var(--gold-soft); --accent-ink:var(--gold-ink); }
.is-calendar { --accent:var(--blue); --accent-soft:var(--blue-soft); --accent-ink:var(--blue-ink); }

.tile {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 18px 24px;
}
.band .tile { background: var(--bg); }
a.tile { transition: transform .18s, box-shadow .18s, border-color .18s; }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
a.tile:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.tile .eyebrow { align-self: flex-start; margin: 20px 4px 0; }
.tile h3 { margin: 12px 4px 0; font-size: 22px; letter-spacing: -0.02em; text-wrap: balance; }
.tile > p { margin: 10px 4px 0; font-size: 15px; color: var(--ink-3); }

.tile-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  overflow: hidden;
  display: grid; place-items: center;
  padding: 18px;
}
.tile-visual .sv-card {
  width: 100%; max-width: 280px;
  background: var(--surface);
  border: 0;
  box-shadow: var(--shadow-md);
}
.tile-visual.is-peek   { display: block; padding: 18px 21% 0; }
.tile-visual.is-screen { display: block; padding: 20px 20px 0; }
.tile-visual.is-peek img,
.tile-visual.is-screen img {
  width: 100%; height: auto; display: block;
  object-fit: cover; object-position: top;
  box-shadow: 0 10px 28px -12px rgba(15,27,46,.35);
}
.tile-visual.is-peek img   { aspect-ratio: 390 / 800; border-radius: 14px 14px 0 0; }
.tile-visual.is-screen img { aspect-ratio: 16 / 10;   border-radius: 10px 10px 0 0; }

.tile-points {
  list-style: none; padding: 0;
  margin: 16px 4px 0;
  display: grid; gap: 8px;
}
.tile-points li { position: relative; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.tile-points li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Ember on every tile: the accent tints, the orange thing leads. */
.tile-go {
  margin: auto 4px 0; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600;
  color: var(--orange-ink);
}
.tile-go svg { width: 15px; height: 15px; transition: transform .18s; }
a.tile:hover .tile-go svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  a.tile, .tile-go svg { transition: none; }
  a.tile:hover { transform: none; }
}


/* ═══════════ L4 · SPLIT — .feature ═══════════
   Copy beside a screenshot. Add .reverse to put the picture on the
   left; alternate down the page. 2–3 bullets, never 4.

       <div class="feature [reverse]">
         <div class="feature-copy"> eyebrow · h2 · .lead · .feature-list </div>
         <div class="phone-stage [is-wide]"> a framed screenshot </div>
       </div>
*/
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature.reverse { grid-template-columns: 1fr 1.05fr; }
.feature.reverse .feature-copy { order: 2; }
@media (max-width: 880px) {
  .feature, .feature.reverse { display: flex; flex-direction: column; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
}
.feature h2 { margin-top: 14px; text-wrap: balance; }
.feature .lead { margin-top: 20px; max-width: 520px; }
.feature .lead strong { color: var(--ink); font-weight: 600; }
.feature-list {
  margin-top: 28px;
  list-style: none; padding: 0;
  display: grid; gap: 14px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--ink-2);
}
.feature-list strong { color: var(--ink); font-weight: 600; }
.feature-list svg {
  width: 22px; height: 22px; flex: 0 0 22px;
  color: var(--accent); margin-top: 1px;
}

/* The stage behind the screenshot: a soft accent wash.
   Default holds a phone; .is-wide holds a tablet or a wide shot. */
.phone-stage {
  position: relative;
  display: flex; justify-content: center;
  width: 100%; max-width: 320px;
  margin: 0 auto;
  padding: 30px 0;
}
.phone-stage.is-wide { max-width: none; }
.phone-stage::before {
  content: '';
  position: absolute; inset: 6% 4%;
  background: linear-gradient(135deg, var(--accent-soft), transparent 65%);
  border-radius: 36px;
  z-index: 0;
}
.phone-stage > * { position: relative; z-index: 1; width: 100%; }
@media (max-width: 880px) {
  .phone-stage:not(.is-wide) { max-width: 60%; }
}
@media (max-width: 480px) {
  .phone-stage:not(.is-wide) { max-width: 72%; }
}

/* A small row of labelled chips under a split — the Calendar colour
   key. Colour is never the only signal: every chip carries its name. */
.chip-key { max-width: 760px; margin: 56px auto 0; text-align: center; }
.chip-key ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip-key li { font-size: 15px; font-weight: 600; padding: 8px 18px; border-radius: 100px; background: var(--m-bg); color: var(--m-fg); }
.chip-key p { margin-top: 18px; font-size: 16px; }


/* ═══════════ L5 · GRID — .specs / .trust-grid ═══════════
   A grid of short facts. Exactly 3 or 6 items so it fills
   3 / 2 / 1 columns cleanly.

       <dl class="specs">
         <div class="spec">
           <dt>Label</dt>
           <dd class="spec-val">Value</dd>
           <dd class="spec-note">Note</dd>
         </div>
       </dl>
*/
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  margin: 0;
}
@media (max-width: 860px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } }
.spec { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.spec dt {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.spec dd { margin: 0; }
.spec-val { margin-top: 8px; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.spec-note { margin-top: 5px; font-size: 14px; color: var(--ink-3); line-height: 1.45; }

/* The dark variant: Home's trust band.
   It must not change hue from page to page, so it overrides the
   accent and stays ember. #FFB48A is a deliberate one-off: the ink
   tokens are measured against light grounds and are unreadable on
   --night. #FFB48A on --night is 9.99:1. */
.trust { background: var(--night); color: #fff; }
.trust h2 { color: #fff; }
.trust .lead { color: rgba(255,255,255,.7); }
.trust .section-head .eyebrow { background: rgba(255,106,26,.15); color: #FFB48A; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: background .2s, border-color .2s;
}
.trust-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.trust-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,106,26,.15);
  color: #FFB48A;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-card h4 { color: #fff; margin-bottom: 8px; font-size: 18px; }
.trust-card p { color: rgba(255,255,255,.65); font-size: 14px; }
