/* products.css — shared design system for the /products/* landing pages.
   Loaded AFTER layout.css on every product page. Keeps all product-page
   styling in one file so the ten pages share one polished, consistent look.
   The header gradient + nav come from layout.css (--hero-gradient, .wrap) —
   this file defines the page-level hero, gallery, pricing, trial and
   coming-soon sections, plus all responsive behaviour. */

:root{
  --ink:#0d1b16;
  --moss:#1f3a2e;
  --leaf:#2f6b4f;
  --lime:#9be564;
  --gold:#e7c46b;
  --cream:#f6f3ea;
  --paper:#fbfaf4;
  --mist:#e9efe8;
  --danger:#c14b3a;
  --ink-60:rgba(13,27,22,.62);
  --ink-10:rgba(13,27,22,.1);
  --line:rgba(13,27,22,.12);
}

/* ---- Base ---- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
  letter-spacing:-.015em;
  line-height:1.15;
  text-wrap:balance;
}
a{color:inherit}
img{max-width:100%;display:block}
.wrap{max-width:1140px;margin:0 auto;padding:0 24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Header: `<header class="hero">` gradient masthead + wrap pinning come from
   layout.css (single source of truth). No local rules here. */

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 28px;border-radius:999px;border:1.5px solid transparent;
  font-weight:700;font-size:16px;font-family:inherit;cursor:pointer;
  text-decoration:none;line-height:1;white-space:nowrap;
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}
.btn:active{transform:translateY(1px) scale(.99)}
.btn-primary{background:var(--ink);color:var(--lime);box-shadow:0 8px 24px rgba(13,27,22,.22)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(13,27,22,.28)}
.btn-ghost{background:transparent;color:var(--cream);border-color:rgba(246,243,234,.35)}
.btn-ghost:hover{border-color:var(--lime);color:var(--lime);background:rgba(246,243,234,.06)}
.btn-dark{background:var(--leaf);color:#fff;box-shadow:0 8px 22px rgba(47,107,79,.28)}
.btn-dark:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(47,107,79,.34)}
.btn-inkline{background:transparent;color:var(--ink);border-color:var(--ink-10)}
.btn-inkline:hover{border-color:var(--leaf);color:var(--leaf);background:var(--mist)}
.btn-lg{padding:17px 34px;font-size:17px}

/* ---- Product hero ---- */
/* Hero lives INSIDE the page <header> (same element that paints the nav
   gradient) so --hero-gradient flows continuously under the nav. No
   background here — the header behind it provides the one continuous
   gradient; this section only layers content + the radial highlight. */
.p-hero{
  color:var(--cream);
  padding:52px 0 84px;
  position:relative;
  overflow:hidden;
}
.p-hero .wrap{position:relative;z-index:1}
/* Hero copy uses the canonical component from /css/layout.css (single
   source): .hero-inner + .hero-eyebrow + .hero-lede + .hero-actions +
   .hero-meta. The .p-hero section supplies its own vertical rhythm
   (padding 52px 0 84px), so the canonical .hero-inner margin-top is
   neutralized here.

   IMPORTANT: no background overlay on .p-hero. The header's --hero-gradient
   must flow continuously from the nav strip through the whole hero (and down
   to the bottom of this section). An earlier .p-hero::after radial glow was
   anchored at its TOP edge -- 85% 0%, exactly where the nav ends (~64px) --
   so it re-lit the hero top and created a visible brighter band / seam at the
   nav->hero boundary on product pages (coaches had no such overlay and stayed
   seamless). Keep .p-hero background-free so every page shows the same
   unbroken gradient. */
.p-hero .hero-inner{margin-top:0;padding:0}

/* ---- Section scaffolding ---- */
.p-section{padding:72px 0}
.p-section.alt{background:var(--mist)}
.p-section .p-kicker{
  font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--leaf);margin:0 0 12px;
}
.p-section h2{font-size:clamp(26px,3.4vw,38px);margin:0 0 10px}
.p-section .lede{font-size:17px;color:var(--ink-60);max-width:64ch;margin:0 0 36px}

/* ---- Overview / features ---- */
.p-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.p-overview-grid .p-copy p{color:rgba(13,27,22,.75);margin:0 0 18px;font-size:16.5px}
.p-overview-grid .p-copy p:last-child{margin-bottom:0}
.p-features{list-style:none;margin:0;padding:0}
.p-features li{
  display:flex;gap:14px;align-items:flex-start;
  padding:16px 18px;border:1px solid var(--line);border-radius:14px;
  background:#fff;margin-bottom:12px;
}
.p-features li:last-child{margin-bottom:0}
.p-features .tick{
  flex-shrink:0;width:26px;height:26px;border-radius:50%;
  background:var(--mist);color:var(--leaf);
  display:grid;place-items:center;font-weight:800;font-size:14px;margin-top:1px;
}
.p-features .ft{font-weight:600;font-size:15.5px;display:block;margin-bottom:2px}
.p-features .fd{font-size:14px;color:rgba(13,27,22,.65)}

/* ---- Feature cards (caseace "What's inside" + "The flow") ---- */
.p-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:18px}
.p-feature-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:20px;min-width:0;box-shadow:0 6px 18px rgba(13,27,22,.05)}
.p-feature-card .p-fc-ic{font-size:26px;line-height:1;margin-bottom:10px}
.p-feature-card h3{margin:0 0 6px;font-family:'Fraunces',serif;font-size:16.5px;font-weight:700;color:var(--ink)}
.p-feature-card p{margin:0;font-size:13.5px;line-height:1.55;color:rgba(13,27,22,.68)}
/* Flow-heading: emoji · number · text stays on one line where it fits; the
   label span wraps (never overflows the card) at narrower widths. */
.p-feature-card h3.p-fc-line{display:flex;align-items:center;gap:8px}
.p-feature-card h3.p-fc-line .p-fc-emoji{font-size:19px;line-height:1;flex-shrink:0}
.p-feature-card h3.p-fc-line .p-fc-num{flex-shrink:0;white-space:nowrap}
.p-feature-card h3.p-fc-line .p-fc-label{min-width:0;overflow-wrap:break-word}
.p-feature-card h3.p-fc-line .p-fc-sep{color:rgba(13,27,22,.35);font-weight:600;flex-shrink:0}
@media(max-width:480px){.p-feature-card h3.p-fc-line{align-items:flex-start}.p-feature-card h3.p-fc-line .p-fc-emoji{margin-top:2px}}

/* ---- Coming-soon pill (caseace landing, issue #180) ---- */
.p-soon-pill{display:inline-block;margin-left:8px;padding:3px 11px;border-radius:999px;border:1px solid rgba(193,75,58,.4);background:rgba(193,75,58,.08);font-family:'Inter',sans-serif;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--danger);vertical-align:middle;white-space:nowrap}

/* ---- Screenshots ---- */
.p-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:22px}
.p-shot{
  border:1px solid var(--line);border-radius:16px;overflow:hidden;
  background:#fff;box-shadow:0 10px 30px rgba(13,27,22,.06);
  min-width:0;
}
.p-shot img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border-bottom:1px solid var(--line)}
.p-shot figcaption{padding:14px 16px;font-size:13.5px;color:rgba(13,27,22,.68)}
.p-shot figcaption b{display:block;color:var(--ink);font-size:14.5px;margin-bottom:2px}

/* ---- Screenshot carousel (PR #181 review: flick through page-width captures) ---- */
.p-carousel{position:relative;margin-top:4px}
.p-carousel .p-car-track{
  display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;
  border-radius:16px;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.p-carousel .p-car-track::-webkit-scrollbar{display:none}
.p-carousel .p-shot{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;border-radius:0;border:none;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.p-carousel .p-shot:first-child{border-left:none}
.p-carousel .p-shot:last-child{border-right:none}
.p-carousel .p-shot img{aspect-ratio:1440/950;object-fit:cover;object-position:top center}
.p-car-btn{
  position:absolute;top:42%;transform:translateY(-50%);z-index:2;
  width:44px;height:44px;border-radius:50%;border:1px solid var(--line);
  background:rgba(255,255,255,.94);color:var(--ink);cursor:pointer;
  font-size:20px;line-height:1;display:grid;place-items:center;
  box-shadow:0 4px 14px rgba(13,27,22,.18);
}
.p-car-btn:hover{background:#fff}
.p-car-btn:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
.p-car-btn[data-dir="-1"]{left:12px}
.p-car-btn[data-dir="1"]{right:12px}
.p-car-btn:disabled{opacity:.25;cursor:default;box-shadow:none}
.p-car-dots{display:flex;gap:8px;justify-content:center;padding:14px 0 2px}
.p-car-dot{width:9px;height:9px;border-radius:50%;border:none;background:rgba(13,27,22,.22);cursor:pointer;padding:0}
.p-car-dot.on{background:var(--leaf)}
.p-car-dot:focus-visible{outline:2px solid var(--leaf);outline-offset:2px}
@media(max-width:640px){.p-car-btn{display:none}}

/* ---- Pricing ---- */
.p-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:22px;align-items:stretch}
.p-price-card{
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:18px;background:#fff;
  padding:28px;box-shadow:0 10px 30px rgba(13,27,22,.05);min-width:0;
}
.p-price-card.featured{
  border:1.5px solid var(--leaf);
  background:linear-gradient(180deg,#fff,#f4faf5);
  box-shadow:0 18px 44px rgba(47,107,79,.12);
  position:relative;
}
.p-price-card .corner{
  position:absolute;top:-13px;left:24px;
  background:var(--leaf);color:#fff;font-size:11.5px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;padding:6px 13px;border-radius:999px;
}
.p-price-card .plan-name{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--leaf);margin:0 0 12px}
.p-price-card .price{font-family:'Fraunces',Georgia,serif;font-size:44px;font-weight:800;letter-spacing:-.02em;line-height:1;margin:0 0 6px}
.p-price-card .per{font-size:13.5px;color:rgba(13,27,22,.6);margin-bottom:18px}
.p-price-card ul{list-style:none;margin:0 0 22px;padding:0;flex:1}
.p-price-card ul li{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:rgba(13,27,22,.78);padding:7px 0}
.p-price-card ul li::before{content:"✓";color:var(--leaf);font-weight:800;flex-shrink:0}
.p-price-card .btn{width:100%}

/* ---- Trial banner (mirrors index.html trial-strip) ---- */
.p-trial{
  background:linear-gradient(135deg,#1f3a2e 0%,#2f6b4f 45%,#3d7d5f 100%);
  padding:40px 0;position:relative;overflow:hidden;
}
.p-trial::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 30% 0%,rgba(155,229,100,.12),transparent 60%),radial-gradient(ellipse at 80% 100%,rgba(231,196,107,.08),transparent 55%);
  pointer-events:none;
}
.p-trial .wrap{display:flex;align-items:center;justify-content:center;gap:12px 26px;flex-wrap:wrap;position:relative;z-index:1}
.p-trial .trial-copy{flex:0 1 auto;max-width:100%;text-align:center}
.p-trial .trial-copy h2{font-family:'Fraunces',Georgia,serif;font-size:clamp(22px,2.6vw,30px);margin:0;color:#fff;line-height:1.15;letter-spacing:-.01em}
.p-trial .trial-copy h2 em{font-style:italic;color:var(--lime)}
.p-trial .trial-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center}
.p-trial input[type=email]{width:min(300px,82vw);padding:14px 18px;border:2px solid rgba(255,255,255,.15);border-radius:999px;font-size:15px;font-family:inherit;background:rgba(255,255,255,.96);color:var(--ink);box-shadow:0 4px 14px rgba(0,0,0,.14)}
.p-trial input[type=email]:focus{outline:none;border-color:var(--lime);box-shadow:0 0 0 4px rgba(155,229,100,.22),0 4px 14px rgba(0,0,0,.12)}
.p-trial .btn-trial{
  background:linear-gradient(135deg,#9be564 0%,#7bc94c 100%);color:#0d1b16;
  padding:14px 28px;border-radius:999px;border:none;font-weight:700;font-size:15px;
  cursor:pointer;font-family:inherit;white-space:nowrap;
  transition:transform .15s,box-shadow .3s;
  box-shadow:0 0 12px rgba(155,229,100,.4),0 4px 16px rgba(0,0,0,.18);
  animation:trialBtnGlow 2.5s ease-in-out infinite;
}
.p-trial .trial-consent{display:flex;align-items:center;gap:8px;justify-content:center;width:100%;cursor:pointer;font-size:13px;color:rgba(255,255,255,.78)}
.p-trial .trial-consent input{width:16px;height:16px;cursor:pointer;accent-color:#9be564}
.p-trial .trial-consent span{line-height:1.35}
.p-trial .trial-note{font-size:11.5px;color:rgba(255,255,255,.6);margin-top:10px;text-align:center;width:100%}
.p-trial .trial-note a{color:rgba(255,255,255,.85);text-decoration:underline}
.p-trial .trial-msg{font-size:14px;font-weight:600;color:#fff;margin-top:10px;text-align:center;width:100%;display:none}
.p-trial .trial-msg.show{display:block}
.p-trial .trial-msg.err{color:#ffd0c8}
@keyframes trialBtnGlow{
  0%,100%{box-shadow:0 0 12px rgba(155,229,100,.4),0 4px 16px rgba(0,0,0,.18)}
  50%{box-shadow:0 0 24px rgba(155,229,100,.62),0 6px 22px rgba(0,0,0,.22)}
}
@media(max-width:560px){.p-trial .wrap{flex-direction:column;gap:14px}.p-trial .trial-copy{width:100%}}

/* ---- Coming soon (light waitlist page) ----
   This is a centered, LIGHT pattern (sits on --paper below the dark
   masthead), per ui-ux-pro-max's waitlist-coming-soon hero. It uses the
   canonical anatomy (.hero-inner--center + .hero-eyebrow + .hero-lede +
   .hero-actions) with a danger-red "soon" pill; all copy is ink (it renders
   on the cream page, not on the gradient). */
.p-soon{
  color:var(--ink);
  padding:64px 0 56px;text-align:center;position:relative;overflow:hidden;
}
.p-soon::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 55% 40% at 50% 0%,rgba(193,75,58,.1),transparent 70%);
  pointer-events:none;
}
.p-soon .wrap{position:relative;z-index:1;max-width:820px}
/* The .hero-inner--center wrapper is centered by layout.css; only ink
   inversion + the danger pill differ from the dark heroes. */
.p-soon .hero-inner h1{color:var(--ink)}
.p-soon .hero-eyebrow--soon{
  background:rgba(193,75,58,.1);border-color:rgba(193,75,58,.4);color:var(--danger);
}
.p-soon .hero-eyebrow--soon::before{background:var(--danger);box-shadow:0 0 0 3px rgba(193,75,58,.2)}
.p-soon .hero-lede{color:rgba(13,27,22,.68);margin:0 auto}
.p-soon .hero-actions{justify-content:center}
/* These pages sit on the light page, so ghost buttons need ink styling
   (the global .btn-ghost is tuned for the dark gradient). */
.p-soon .btn-ghost{color:var(--ink);border-color:rgba(13,27,22,.25)}
.p-soon .btn-ghost:hover{border-color:var(--ink);color:var(--ink);background:rgba(13,27,22,.05)}

.p-alt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:18px;margin-top:8px}
.p-alt-card{
  border:1px solid var(--line);border-radius:16px;background:#fff;
  padding:22px;text-decoration:none;display:block;min-width:0;
  transition:transform .15s ease,box-shadow .2s ease,border-color .2s ease;
}
.p-alt-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(13,27,22,.1);border-color:var(--leaf)}
.p-alt-card .aic{font-size:26px;margin-bottom:10px}
.p-alt-card h3{font-size:17px;margin:0 0 6px}
.p-alt-card p{font-size:13.5px;color:rgba(13,27,22,.65);margin:0 0 12px}
.p-alt-card .go{font-size:13.5px;font-weight:700;color:var(--leaf)}
.p-alt-card .go::after{content:"→";margin-left:5px}

/* ---- Responsive ---- */
@media(max-width:900px){
  .p-overview-grid{grid-template-columns:1fr;gap:32px}
  .p-section{padding:56px 0}
  .p-hero{padding:42px 0}
}
@media(max-width:560px){
  .p-hero .hero-actions{flex-direction:column;align-items:stretch}
}