/* ─────────────────────────────────────────────────────────────────────────
   /products/assets/products.css
   Shared chrome for the May 2026 marcom refresh.
   Loaded by /products/index.html and the four flagship landings.
   Extends — never replaces — the homepage tokens established in
   /index.html (Source Serif 4, Inter, JetBrains Mono).

   Aesthetic contract:
   - Breathing motion on hero illustrations (4s slow scale)
   - 200ms ease-out hovers, 2–4px lift, 12% shadow
   - prefers-reduced-motion → all motion goes instant
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Homepage palette (mirrors / index.html tokens) */
  --c-navy:        #0E2742;
  --c-brass:       #B08838;
  --c-brass-soft:  #C99F4A;
  --c-paper:       #F7F4EC;
  --c-white:       #FFFFFF;
  --c-ink:         #1A1F26;
  --c-steel:       #5B6770;
  --c-mist:        #EEEBE3;
  --c-linen:       #DCD8CE;
  --c-pewter:      #9AA0A6;
  --c-carried:     #2F6F4F;

  /* Watercolor washes — used inside hero illustration backdrops */
  --w-coral:       #F4C9B9;
  --w-sage:        #C9D9C0;
  --w-indigo:      #C7CCE3;
  --w-amber:       #F4DBA2;
  --w-teal:        #B9D8D4;

  /* Flagship accents — one per flagship */
  --acc-parl:      #1F3D6E;   /* parliamentarian — navy */
  --acc-meet:      #D87559;   /* meetings — coral */
  --acc-pball:     #2A8C84;   /* arena: pickleball — teal */
  --acc-bowl:      #D89B36;   /* arena: bowling — amber */

  /* Motion */
  --p-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --p-dur-fast: 180ms;
  --p-dur-med:  240ms;
  --p-dur-slow: 320ms;
}

/* ─── Page baseline ─────────────────────────────────────────────────── */

.p-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.p-section { padding: 88px 0; }
@media (max-width: 900px) { .p-section { padding: 56px 0; } }
@media (max-width: 600px) { .p-section { padding: 44px 0; } }

.p-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-steel); margin: 0 0 16px;
}

.p-h1 {
  font-family: 'Source Serif 4', ui-serif, Georgia, Cambria, serif;
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin: 0 0 22px;
  max-width: 22ch;
}
.p-h2 {
  font-family: 'Source Serif 4', ui-serif, Georgia, Cambria, serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-navy);
  margin: 0 0 16px;
}
.p-h3 {
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--c-navy);
  margin: 0 0 8px;
}

.p-lede {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--c-steel);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 28px;
}
.p-lede b, .p-lede strong { color: var(--c-navy); font-weight: 600; }

/* ─── Buttons ───────────────────────────────────────────────────────── */

.p-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em; text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--p-dur-fast) var(--p-ease),
              background var(--p-dur-fast) var(--p-ease),
              color var(--p-dur-fast) var(--p-ease),
              border-color var(--p-dur-fast) var(--p-ease),
              box-shadow var(--p-dur-fast) var(--p-ease);
}
.p-btn--primary { background: var(--c-navy); color: var(--c-paper); }
.p-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(14,39,66,0.18); }
.p-btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.p-btn--ghost:hover { background: var(--c-navy); color: var(--c-paper); transform: translateY(-2px); }
.p-btn:focus-visible { outline: 2px solid var(--c-brass); outline-offset: 3px; }

.p-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ─── Hero: shared flagship hero block ─────────────────────────────── */

.p-flagship-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--c-linen);
}
.p-flagship-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .p-flagship-hero__grid { grid-template-columns: 1fr; gap: 32px; } }

.p-flagship-hero__art {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--c-mist);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(14, 39, 66, 0.10);
}
.p-flagship-hero__art svg { display: block; width: 100%; height: 100%; }

/* Breathing motion — applied to inline SVG art via .p-breathe */
@keyframes p-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}
@keyframes p-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.p-breathe { animation: p-breathe 4.4s var(--p-ease) infinite; transform-origin: center; }
.p-drift   { animation: p-drift   5.8s var(--p-ease) infinite; transform-origin: center; }

/* ─── Section wrappers ─────────────────────────────────────────────── */

.p-strip { background: var(--c-mist); }
.p-strip--paper { background: var(--c-paper); }

/* ─── Workbench strip (recurring — UNIFYING §4) ────────────────────── */

.p-workspace { background: var(--c-paper); border-top: 1px solid var(--c-linen); border-bottom: 1px solid var(--c-linen); }
.p-workspace__head { max-width: 56ch; margin: 0 0 36px; }
.p-workspace__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .p-workspace__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .p-workspace__grid { grid-template-columns: 1fr; } }

.p-tile {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: 6px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--p-dur-med) var(--p-ease),
              box-shadow var(--p-dur-med) var(--p-ease);
}
.p-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 39, 66, 0.10);
}
.p-tile__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--c-mist);
  margin-bottom: 4px;
}
.p-tile__icon svg { width: 38px; height: 38px; }
.p-tile h3 { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 18px; color: var(--c-navy); margin: 0; line-height: 1.25; }
.p-tile p  { font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--c-steel); line-height: 1.55; margin: 0; }

/* ─── Siblings strip (cross-link to the other three flagships) ─────── */

.p-siblings { background: var(--c-navy); color: var(--c-paper); }
.p-siblings .p-eyebrow { color: var(--c-brass-soft); }
.p-siblings h2 { color: var(--c-paper); }
.p-siblings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
@media (max-width: 900px) { .p-siblings__grid { grid-template-columns: 1fr; } }
.p-sibling {
  display: block;
  padding: 22px 22px 22px;
  background: rgba(247, 244, 236, 0.06);
  border: 1px solid rgba(247, 244, 236, 0.18);
  border-radius: 6px;
  text-decoration: none;
  color: var(--c-paper);
  transition: transform var(--p-dur-med) var(--p-ease),
              background var(--p-dur-med) var(--p-ease),
              border-color var(--p-dur-med) var(--p-ease);
}
.p-sibling:hover {
  transform: translateY(-3px);
  background: rgba(247, 244, 236, 0.10);
  border-color: var(--c-brass);
}
.p-sibling h3 {
  font-family: 'Source Serif 4', serif; font-weight: 600;
  font-size: 19px; color: var(--c-paper); margin: 0 0 6px;
}
.p-sibling p  { font-family: 'Inter', sans-serif; font-size: 14px; color: rgba(247,244,236,0.82); margin: 0; line-height: 1.5; }
.p-sibling__arrow { display: inline-block; margin-top: 12px; color: var(--c-brass-soft); font-weight: 600; font-size: 13px; font-family: 'Inter', sans-serif; letter-spacing: 0.02em; }

/* ─── Reduced motion killswitch ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
  }
  .p-breathe, .p-drift { animation: none !important; }
}
