/* ─────────────────────────────────────────────────────────────────────
   Capstones base — the chrome every Capstones product shares.
   (accounts copy of iris/frontend/src/styles/capstones.css — keep in step.)

   Ported from FieldPE (fieldpe/web/home.py product root + capstones_style.py
   SHELL_CSS + EYEBROW_CSS), so Iris and FieldPE read as one company: the same
   tokens, the dark floating nav pill that contracts on scroll, the same pill
   buttons, the same mono eyebrow, the same footer. Values are copied, not
   approximated — if one changes there, change it here.

   Direction (Capstones): ink on paper, enormous type, almost no ornament.
   Colour appears as small marks (the amber accent), not as texture.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --ink: #0b0b0c; --paper: #fff; --soft: #f5f5f7; --line: #e7e7e4;
  /* --faint was #9a9aa0 (2.8:1 on white, 2.6:1 on --soft): too light for the
     captions and detail text it sets. #6e6e73 is 5.1:1 on white and 4.7:1 on
     --soft, so it clears WCAG AA for body-size text on both grounds. */
  --grey: #6b6b70; --faint: #6e6e73;
  --acc: #ffb800; --acc-d: #c98a00; --ok: #12855a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  /* FieldPE's product-page type scale. Product pages sit at 700; the
     Capstones brand page alone uses 600. */
  --d1: clamp(38px, 6vw, 76px); --d2: clamp(36px, 5.6vw, 64px); --d3: clamp(30px, 4.4vw, 48px);
  --d4: clamp(26px, 3.4vw, 36px); --d5: clamp(22px, 3vw, 30px);
  --t1: clamp(17px, 2.2vw, 21px); --t2: clamp(16px, 1.7vw, 18px);
  --hw: 700;
  --tr1: -.028em; --tr2: -.022em; --tr3: -.02em;
  /* The shared eyebrow may only reach for these three. */
  --eb-mono: var(--mono); --eb-ink: var(--faint); --eb-rule: var(--line);
}

/* ── Navigation: the dark floating pill ─────────────────────────────── */
.cs-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; pointer-events: none; }
.cs-nav .navin {
  pointer-events: auto;
  max-width: 1120px; margin: 12px auto 0; width: calc(100% - 24px);
  padding: 11px 16px 11px 20px; display: flex; align-items: center; gap: 14px;
  border-radius: 980px; background: rgba(12, 12, 13, .94); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: background .35s var(--ease), max-width .55s var(--ease), box-shadow .35s var(--ease),
    margin .45s var(--ease), padding .45s var(--ease);
}
/* Over the landing hero's dark footage FieldPE's .62 reads as black; over a
   white page it renders mid-grey, which is why Capstones uses .94 there. */
.cs-nav.over-dark .navin { background: rgba(12, 12, 13, .62); border-color: rgba(255, 255, 255, .09); }
.cs-nav.solid .navin {
  max-width: 880px; margin-top: 8px; padding: 6px 10px 6px 16px;
  background: rgba(12, 12, 13, .98); box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}
/* Brand centred between two equal flex sides. */
.cs-nav .nav-side { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.cs-nav .nav-side.right { justify-content: flex-end; gap: 20px; }
.cs-nav .brand {
  flex: 0 0 auto; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: #fff;
  white-space: nowrap; transition: font-size .45s var(--ease);
}
.cs-nav.solid .brand { font-size: 16px; }
.cs-nav .navlinks { display: flex; gap: 22px; transition: gap .45s var(--ease); }
.cs-nav.solid .navlinks { gap: 18px; }
.cs-nav .navlinks a {
  color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 500; white-space: nowrap;
  letter-spacing: -.011em; transition: color .3s var(--ease);
}
.cs-nav .navlinks a:hover, .cs-nav .navlinks a.on { color: #fff; }
.cs-nav.solid .navin .pill { padding: 8px 16px; font-size: 13px; }

.cs-nav .navburger {
  display: none; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0;
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.cs-nav .navburger i { position: relative; display: block; width: 18px; height: 1.5px; background: currentColor; }
.cs-nav .navburger i::before, .cs-nav .navburger i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
  transition: top .2s var(--ease), transform .2s var(--ease);
}
.cs-nav .navburger i::before { top: -6px; }
.cs-nav .navburger i::after { top: 6px; }
.cs-nav .navburger[aria-expanded="true"] i { background: transparent; }
.cs-nav .navburger[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.cs-nav .navburger[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
.cs-nav .navmenu { display: none; }

@media (max-width: 720px) {
  .cs-nav .navlinks { display: none; }
  .cs-nav .pill { font-size: 13px; padding: 8px 15px; }
  .cs-nav .navin { gap: 10px; position: relative; }
  /* On a phone the left side is empty and the right one overflows its share,
     which would lay the sign-in pill over the wordmark: left-align the brand. */
  .cs-nav .nav-side { flex: 0 0 auto; min-width: 0; }
  .cs-nav .nav-side.right { margin-left: auto; }
  .cs-nav .navburger { display: inline-flex; }
  .cs-nav .navmenu {
    position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; flex-direction: column;
    padding: 6px 22px 14px; border-radius: 22px; background: rgba(12, 12, 13, .98);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  }
  .cs-nav .navmenu.open { display: flex; }
  .cs-nav .navmenu a {
    padding: 14px 2px; font-size: 17px; font-weight: 500; color: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .cs-nav .navmenu a.on { color: #fff; }
  .cs-nav .navmenu a:last-child { border-bottom: 0; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.pill {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; letter-spacing: -.011em;
  border-radius: 980px; padding: 11px 22px; text-decoration: none;
  transition: transform .18s var(--ease), background .2s var(--ease);
}
.pill:active { transform: scale(.96); }
.pill-w { background: #fff; color: #0b0b0c; }
.pill-w:hover { background: #ececec; }
.pill-d { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.pill-d:hover { background: rgba(255, 255, 255, .18); }
.btn-d, .btn-l {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; cursor: pointer;
  border-radius: 980px; padding: 11px 22px; font: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: -.011em; white-space: nowrap; text-decoration: none;
  transition: background .22s var(--ease), transform .18s var(--ease);
}
.btn-d:active, .btn-l:active { transform: scale(.97); }
.btn-d { background: var(--ink); color: #fff; }
.btn-d:hover { background: #2a2a2e; }
.btn-l { background: var(--soft); color: var(--ink); }
.btn-l:hover { background: #ebebee; }

/* ── The shared section-opener eyebrow ──────────────────────────────── */
.eb {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font: 600 11px/1 var(--eb-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--eb-ink);
}
.eb::after { content: ""; height: 1px; flex: 1; max-width: 180px; background: var(--eb-rule); }
.eb.mid { justify-content: center; }
.eb.mid::before { content: ""; height: 1px; background: var(--eb-rule); }
.eb.mid::before, .eb.mid::after { flex: 0 1 64px; }
.on-dark { --eb-ink: rgba(255, 255, 255, .72); --eb-rule: rgba(255, 255, 255, .09); }
.ebfoot {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--eb-rule);
  color: var(--eb-ink); font-size: 13px; line-height: 1.5;
}

/* The hero accent: the one amber, flat. Capstones uses no gradient text. */
.cs-g { color: var(--acc); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.cs-foot { border-top: 1px solid var(--line); background: var(--paper); }
.cs-foot .fin {
  max-width: 1120px; margin: 0 auto; padding: 30px 24px 40px;
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 13px;
}
.cs-foot .brand { font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.cs-foot a { color: var(--faint); text-decoration: none; }
.cs-foot a:hover { color: var(--ink); }
.cs-foot .sp { margin-left: auto; }
.cs-foot .disc { flex-basis: 100%; color: var(--faint); font-size: 12px; line-height: 1.5; max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  .cs-nav .navin, .cs-nav .brand, .cs-nav .navlinks { transition: none; }
  .cs-nav .navburger i::before, .cs-nav .navburger i::after { transition: none; }
}

/* ── Product hero (FieldPE home.py .hero) ────────────────────────────── */
.cs-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82);
  font-size: 13px; font-weight: 600; letter-spacing: -.011em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  padding: 7px 14px; border-radius: 980px;
}
.cs-hero-eyebrow svg { width: 15px; height: 15px; color: var(--acc); }
.cs-hero-title {
  margin: 22px auto 0; font-size: var(--d1); line-height: .98; font-weight: var(--hw);
  letter-spacing: var(--tr1); max-width: 16ch; text-wrap: balance;
}
.cs-hero-lead {
  margin: 22px auto 0; max-width: 600px; font-size: var(--t1); line-height: 1.45;
  color: rgba(255, 255, 255, .7);
}
