/* =========================================================================
   The Survivor PM / Skillyft -- design system
   Aligned with the PM AI Opportunity Report (pm_ai_report.css):
   warm cream canvas + black ink outlines + hard offset shadows +
   pink / yellow / teal / lime accents, inspired by the Gumroad creator look.

   The whole site shares this single visual language so every page reads as
   part of the same "PM opportunity playbook".
   ========================================================================= */

:root {
  /* ---- PM AI Opportunity Report tokens (source of truth) ---- */
  --report-bg: #f7f5ee;
  --report-surface: #ffffff;
  --report-surface-soft: #fffdf7;
  --report-ink: #111111;
  --report-muted: #667085;
  --report-pink: #ff4fa3;
  --report-yellow: #ffe45c;
  --report-teal: #27d7c5;
  --report-lime: #b8f34a;
  --report-blue: #4d8dff;
  --report-success: #13b981;
  --report-warning: #f59e0b;
  --report-danger: #ef4444;

  /* ---- Legacy aliases remapped onto the report palette ---- */
  --pink: #ff4fa3;
  --pink-deep: #e63c8f;
  --ink: #111111;
  --blue: #4d8dff;
  --blue-deep: #2f6fe0;
  --orange: #ff8a3d;
  --cream: #f7f5ee;
  --paper: #ffffff;
  --muted: #667085;
  --line: #111111;
  --soft: #fffdf7;

  /* Section color palette (mapped to the report accents) */
  --green: #13b981;
  --spring: #b8f34a;
  --cyan: #27d7c5;
  --azure: #4d8dff;
  --violet: #a970ff;
  --rose: #ff4fa3;
  --lemon: #ffe45c;

  /* Tinted backgrounds for palette sections and score bands. */
  --greenbg: #e6f7ed;
  --springbg: #f1ffd8;
  --cyanbg: #defaf6;
  --azurebg: #e6f0ff;
  --violetbg: #f3e6ff;
  --rosebg: #ffe6f2;
  --lemonbg: #fff8d6;

  /* AI Skill self-assessment score bands (see app/assessments/scoring.py). */
  --curiousbg: #e6f0ff;
  --explorerbg: #defaf6;
  --integratorbg: #f1ffd8;
  --strategistbg: #fff8d6;
  --ai_savvybg: #ffe6f2;

  --radius: 12px;
  --radius-lg: 16px;
  --border: 2px solid var(--ink);
  --shadow-hard: 3px 4px 0 var(--ink);
  --shadow-hard-sm: 2px 3px 0 var(--ink);
  --shadow-soft: 3px 4px 0 rgba(17, 17, 17, 0.14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", var(--font);

  --maxw: 1140px;

  /* Section flow gradient for dividers */
  --flow: linear-gradient(90deg, var(--report-teal), var(--report-lime), var(--report-yellow), var(--report-pink));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--report-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }

p { margin: 0 0 1rem; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

/* ---------- Highlight / brush titles ------------------------------------ */
/* Marker-pen highlight behind a heading, mirroring the report section titles. */
.brush {
  display: inline-block;
  padding: 0.08em 0.55em 0.14em;
  border-radius: 8px 16px 10px 18px / 18px 8px 18px 10px;
  background: var(--report-yellow);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.12);
}
.brush--pink  { background: var(--report-pink); }
.brush--yellow { background: var(--report-yellow); }
.brush--teal  { background: var(--report-teal); }
.brush--lime  { background: var(--report-lime); }
.brush--blue  { background: var(--report-blue); }

/* Hand-drawn underline for section headings. */
.underline-brush {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 30 2, 55 2, 80 7 S 130 12, 160 6 S 205 2, 217 7' fill='none' stroke='%23FF4FA3' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 8px;
  padding-bottom: 10px;
}

/* Sticker-like callout label (report hero "SAME WORK. HIGHER IMPACT."). */
.sticker-label {
  display: inline-block;
  background: var(--report-yellow);
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hard-sm);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  transform: rotate(-3deg);
}
.sticker-label--pink  { background: var(--report-pink); }
.sticker-label--teal  { background: var(--report-teal); }
.sticker-label--lime  { background: var(--report-lime); }
.sticker-label--surface  { background: var(--report-surface); }
.sticker-label--blue  { background: var(--report-blue); }

/* Sticky note (report decorative callouts). */
.sticky-note {
  display: inline-block;
  background: var(--report-yellow);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-2deg);
}
.sticky-note--pink { background: var(--report-pink); }
.sticky-note--teal { background: var(--report-teal); }
.sticky-note--surface  { background: var(--report-surface); }
/* ---------- Buttons (Gumroad-style pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.35rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--pink { background: var(--report-pink); }
.btn--blue { background: var(--report-blue); color: #fff; }
.btn--orange { background: var(--orange); color: #111; }
.btn--lime { background: var(--report-lime); }
.btn--yellow { background: var(--report-yellow); }
.btn--teal { background: var(--report-teal); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { transform: none; background: var(--report-surface-soft); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { font-size: 1.05rem; padding: 0.95rem 1.8rem; }
.btn--sm { font-size: 0.82rem; padding: 0.42rem 0.9rem; box-shadow: none; }
.btn--sm:hover { transform: translate(1px, 1px); }

/* ---------- Cards (hard-shadow sticker look) ---------- */
.card {
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.card--flat { box-shadow: none; }
.card__body { padding: 1.25rem; }
.card__cover { aspect-ratio: 16 / 10; width: 100%; display: block; }

/* Colored square icon tile (used across report + playbook cards). */
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 12px;
  background: var(--report-yellow);
  color: var(--ink);
  flex: none;
}
.icon-tile--pink  { background: var(--report-pink); }
.icon-tile--yellow { background: var(--report-yellow); }
.icon-tile--teal  { background: var(--report-teal); }
.icon-tile--lime  { background: var(--report-lime); }
.icon-tile--blue  { background: var(--report-blue); }
.icon-tile--violet { background: var(--violet); }
.icon-tile--sm { width: 34px; height: 34px; border-radius: 10px; }

.sticker {
  display: inline-block;
  border: var(--border);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--report-pink);
}

.tag {
  display: inline-block;
  background: var(--report-surface-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.14rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.tag--green   { background: #e6f7ed; border-color: var(--green); color: var(--green); }
.tag--spring  { background: #f1ffd8; border-color: var(--green); color: #4f7a12; }
.tag--cyan    { background: #defaf6; border-color: #0f9c8c; color: #0f9c8c; }
.tag--azure   { background: #e6f0ff; border-color: var(--azure); color: var(--azure); }
.tag--violet  { background: #f3e6ff; border-color: var(--violet); color: var(--violet); }
.tag--rose    { background: #ffe6f2; border-color: var(--rose); color: var(--rose); }
.tag--lemon   { background: #fff8d6; border-color: #b8860b; color: #9a6b00; }

/* ---------- Status pills (report sticker sheet vocabulary) -------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--report-surface-soft);
}
.status-pill--explored  { background: var(--report-lime); border-color: #7fae1f; }
.status-pill--ai        { background: #eaf1ff; border-color: var(--report-blue); color: var(--report-blue); }
.status-pill--automation{ background: #f1ffd8; border-color: #7fae1f; color: #4f7a12; }
.status-pill--quickwin  { background: #f1ffd8; border-color: #7fae1f; color: #4f7a12; }

/* Potential badges (report opportunity score classification). */
.potential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.24rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-display);
  white-space: nowrap;
}
.potential-badge::before {
  content: "";
  width: 13px;
  height: 11px;
  background:
    linear-gradient(currentColor 0 0) 0 100% / 3px 55% no-repeat,
    linear-gradient(currentColor 0 0) 5px 100% / 3px 100% no-repeat,
    linear-gradient(currentColor 0 0) 10px 100% / 3px 75% no-repeat;
}
.potential-badge--high     { background: var(--report-pink); color: #111; }
.potential-badge--moderate { background: var(--report-blue); color: #fff; }
.potential-badge--low      { background: var(--report-lime); color: #111; }

/* Score badge */
.score-badge {
  display: inline-block;
  border: var(--border);
  border-radius: 12px;
  background: var(--report-pink);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.3rem 0.7rem 0.35rem;
  text-align: center;
}
.score-badge__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
}
.score-badge__class {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Rating bars / maturity segments (report ▯□□□□ vocabulary). */
.segments { display: inline-flex; gap: 3px; vertical-align: middle; }
.seg {
  width: 10px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: transparent;
}
.seg--on { background: var(--report-teal); }
.seg--on-pink { background: var(--report-pink); }

.dots { display: inline-flex; gap: 3px; margin-top: 3px; }
.dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
}
.dot--on { background: var(--report-pink); }
.dot--on-teal { background: var(--report-teal); }
.dot--on-yellow { background: var(--report-yellow); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.announce a { color: var(--report-yellow); text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--report-surface);
  border-bottom: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 66px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: var(--border);
  border-radius: 8px;
  background: var(--report-pink);
  font-size: 0.85rem;
}
.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}
.brand-logo--sm { height: 26px; }
.nav__links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.2rem 0;
}
.nav__links a:hover { border-bottom: 2px solid var(--report-pink); }
.nav__cta { display: flex; gap: 0.6rem; align-items: center; }
.nav__account { display: inline-flex; align-items: center; text-decoration: none; }
.nav__mobile-cta { display: none; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--report-bg);
  padding: 44px 0 52px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--report-surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 40px 36px;
}
.hero__grid::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--flow);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
}
.brand-lockup__name {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.brand-lockup__powered {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero__sticker {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__sub { font-size: 1.15rem; max-width: 40ch; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

.panel-search {
  background: var(--report-surface-soft);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 1.2rem;
}
.panel-search h3 { margin-bottom: 0.25rem; }
.searchbar { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.searchbar input {
  flex: 1;
  border: var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--paper);
}
.searchbar input:focus { outline: 3px solid var(--report-blue); outline-offset: 2px; }

/* Hero decorations (sparkle / arrow / target). */
.deco {
  position: absolute;
  pointer-events: none;
  color: var(--report-pink);
  opacity: 0.9;
  z-index: 1;
}
.deco--sparkle { right: 24%; bottom: 14px; }
.deco--target  { right: 34px; bottom: 40px; color: var(--report-teal); opacity: 0.5; }

/* ---------- Proof strip ---------- */
.proof {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 26px 0;
  border-bottom: var(--border);
}
.proof__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1;
}
.proof__label { font-size: 0.82rem; color: var(--muted); }

/* ---------- Feature blocks ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat__icon {
  width: 56px; height: 56px;
  border: var(--border);
  border-radius: 14px;
  background: var(--report-yellow);
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-hard-sm);
}

/* ---------- Playground preview grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card .card__body { display: flex; flex-direction: column; flex: 1; }
.resource-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.8rem;
}

/* ---------- YouTube ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { text-decoration: none; }
.video-card__thumb {
  aspect-ratio: 16 / 9;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--ink);
  display: grid;
  place-items: center;
  color: var(--report-pink);
  overflow: hidden;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__title { font-weight: 700; margin-top: 0.6rem; font-family: var(--font-display); font-size: 0.98rem; }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; border: var(--border); background: var(--paper); }
.compare th, .compare td { padding: 0.85rem 1rem; border-bottom: 1px solid #ece7da; text-align: left; }
.compare thead th { background: var(--report-surface-soft); font-family: var(--font-display); }
.compare td.free { background: var(--report-surface-soft); }
.compare td.paid { background: #f1ffd8; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-hard-sm);
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 1.1rem 1.1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  border-top: var(--border);
  background: var(--ink);
  color: #fff;
  padding: 48px 0 28px;
}
.footer a { color: #fff; text-decoration: none; opacity: 0.82; font-size: 0.9rem; }
.footer a:hover { opacity: 1; color: var(--report-yellow); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; opacity: 0.75;
}

/* ---------- Forms ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--report-bg);
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 2rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}
.field input, .field textarea, .field select,
.form-input {
  width: 100%;
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus,
.form-input:focus {
  outline: 3px solid var(--report-blue); outline-offset: 2px;
}
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.field--error input { border-color: var(--report-danger); }
.field__error { color: var(--report-danger); font-size: 0.8rem; margin-top: 0.25rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}
.btn-google:hover { background: var(--report-surface-soft); }

.divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.1rem 0; color: var(--muted); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: #ece7da;
}

/* ---------- Flash messages ---------- */
.flashes { max-width: var(--maxw); margin: 14px auto 0; padding: 0 20px; }
.flash {
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  background: var(--report-surface-soft);
  box-shadow: var(--shadow-hard-sm);
}
.flash--success { background: #e6f7ed; }
.flash--error { background: #fee2e2; }
.flash--info { background: #eaf1ff; }

/* ---------- App chrome ---------- */
.app-body { background: var(--report-bg); }
.app-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  border: 2px solid var(--ink); object-fit: cover;
  display: grid; place-items: center;
  background: var(--report-pink); font-weight: 700; font-size: 0.85rem;
  color: var(--ink);
}
.app-greeting h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.15rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1.2rem 0; }
.chip {
  border: var(--border); border-radius: 999px;
  padding: 0.32rem 0.85rem; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; background: var(--paper); color: var(--ink);
}
.chip:hover { background: var(--report-surface-soft); }
.chip--active { background: var(--ink); color: #fff; }

.app-search { display: flex; gap: 0.5rem; }
.app-search input {
  border: var(--border); border-radius: 999px;
  padding: 0.5rem 0.95rem; font-size: 0.9rem; min-width: 220px;
  background: var(--paper); color: var(--ink);
}

.app-card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
a.app-card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--ink); }
.app-card__cover { aspect-ratio: 16/10; background: var(--report-surface-soft); display: block; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.empty-state {
  border: 2px dashed var(--ink);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem; text-align: center; color: var(--muted);
  background: var(--report-surface-soft);
}

.locked-card { position: relative; }
.locked-card::after {
  content: "\1F512";
  position: absolute; top: 10px; right: 10px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 0.2rem 0.5rem; font-size: 0.8rem;
}

/* ---------- Detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.detail-side {
  border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard); padding: 1.4rem; background: var(--paper);
  position: sticky; top: 84px;
}
.spec { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #ece7da; font-size: 0.9rem; }
.spec:last-of-type { border-bottom: none; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.breadcrumbs a:hover { border-bottom-color: var(--report-pink); }

/* ---------- Admin table ---------- */
.table-wrap { overflow-x: auto; border: var(--border); border-radius: var(--radius); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; background: var(--paper); }
table.data th, table.data td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid #ece7da; font-size: 0.88rem; vertical-align: middle; }
table.data thead th { background: var(--report-surface-soft); font-family: var(--font-display); }
.inline-form { display: inline; }

/* ---------- Alerts / status ---------- */
.pill-status { border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.72rem; font-weight: 700; border: 2px solid var(--ink); background: var(--report-surface-soft); }
.pill-status--live { background: var(--report-lime); }
.pill-status--draft { background: var(--report-yellow); }
.pill-status--green   { background: #e6f7ed; }
.pill-status--spring  { background: var(--report-lime); }
.pill-status--cyan    { background: #defaf6; }
.pill-status--azure   { background: #e6f0ff; }
.pill-status--violet  { background: #f3e6ff; }
.pill-status--rose    { background: #ffe6f2; }
.pill-status--lemon   { background: var(--report-yellow); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; font-size: 0.88rem;
  box-shadow: var(--shadow-hard);
}
.cookie-banner a { color: var(--report-yellow); }

/* ---------- Error page ---------- */
.error-shell { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--report-pink);
  -webkit-text-stroke: 2px var(--ink);
}

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Section colour system ---------------------------------------
   Each major section carries a distinct colour from the report palette. */

.band { border-top: 6px solid var(--ink); }
.band::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--flow);
}
.band__inner { padding: 72px 0; }

.accent-green   { --accent: var(--green); }
.accent-spring  { --accent: var(--spring); }
.accent-cyan    { --accent: var(--cyan); }
.accent-azure   { --accent: var(--azure); }
.accent-violet  { --accent: var(--violet); }
.accent-rose    { --accent: var(--rose); }
.accent-lemon   { --accent: var(--lemon); }
.accent-pink    { --accent: var(--report-pink); }
.accent-teal    { --accent: var(--report-teal); }
.accent-yellow  { --accent: var(--report-yellow); }
.accent-lime    { --accent: var(--report-lime); }
.accent-blue    { --accent: var(--report-blue); }

/* Section headers get an accent underline that flows through the stop. */
.section-head { border-left: 8px solid var(--accent, var(--report-pink)); padding-left: 1rem; }

/* Hero colour bands (report accents). */
.hero--green  { background: var(--green); color: #fff; }
.hero--spring { background: var(--spring); color: #111; }
.hero--cyan   { background: var(--cyan); color: #111; }
.hero--azure  { background: var(--azure); color: #fff; }
.hero--violet { background: var(--violet); color: #fff; }
.hero--rose   { background: var(--rose); color: #fff; }
.hero--lemon  { background: var(--lemon); color: #111; }
.hero--azure .muted, .hero--violet .muted, .hero--rose .muted { color: rgba(255,255,255,.85); }
.hero--green .muted { color: rgba(255,255,255,.85); }

/* Soft tinted surfaces for cards/sections. */
.surface-green   { background: #e6f7ed; }
.surface-spring  { background: #f1ffd8; }
.surface-cyan    { background: #defaf6; }
.surface-azure   { background: #e6f0ff; }
.surface-violet  { background: #f3e6ff; }
.surface-rose    { background: #ffe6f2; }
.surface-lemon   { background: #fff8d6; }
.surface-pink    { background: #ffe6f2; }
.surface-teal    { background: #defaf6; }

.flow-rule {
  height: 4px;
  background: var(--flow);
  border: none;
  margin: 0;
}

/* Module cards pick up their own accent stripe. */
.module-card { position: relative; }
.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent, var(--report-pink));
}
.module-card--green   { --accent: var(--green); }
.module-card--spring  { --accent: var(--spring); }
.module-card--cyan    { --accent: var(--cyan); }
.module-card--azure   { --accent: var(--azure); }
.module-card--violet  { --accent: var(--violet); }
.module-card--rose    { --accent: var(--rose); }
.module-card--lemon   { --accent: var(--lemon); }
.module-card--pink    { --accent: var(--report-pink); }
.module-card--teal    { --accent: var(--report-teal); }
.module-card--yellow  { --accent: var(--report-yellow); }
.module-card--lime    { --accent: var(--report-lime); }
.module-card--blue    { --accent: var(--report-blue); }

/* Score bands for assessment results. */
.score-band {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  padding: 0.2rem 0.7rem;
  border: var(--border);
  border-radius: 999px;
}

/* Simple radio/scale rows for assessments. */
.scale-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.scale-row label {
  border: var(--border); border-radius: var(--radius);
  padding: .35rem .6rem; font-size: .85rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  background: var(--paper);
}
.scale-row label:hover { background: var(--report-surface-soft); }
.scale-row input { margin-right: .3rem; }
.choice-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice-row label {
  border: var(--border); border-radius: 999px; padding: .35rem .85rem;
  font-size: .85rem; cursor: pointer; font-weight: 600;
  background: var(--paper);
}
.choice-row label:hover { background: var(--report-surface-soft); }

/* Checklist (Y/N) rows. */
.check-row {
  display: flex; align-items: flex-start; gap: .7rem;
  border: var(--border); border-radius: var(--radius);
  padding: .85rem 1rem; background: var(--paper); margin-bottom: .6rem;
  box-shadow: var(--shadow-hard-sm);
}
.check-row input { margin-top: .3rem; }

/* Progress meter (report progress-bar style: teal fill + pink leading edge). */
.meter {
  height: 16px;
  border: var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--report-surface-soft);
}
.meter__fill {
  height: 100%;
  background: var(--report-teal);
  border-right: 6px solid var(--report-pink);
  transition: width 0.7s ease;
}

/* Gated preview cards (public) sit behind a lock overlay. */
.preview-locked { position: relative; }
.preview-locked::after {
  content: "Sign in";
  position: absolute; top: 10px; right: 10px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: .2rem .6rem; font-size: .75rem; font-weight: 700;
}

/* =========================================================================
   PM AI Opportunity Report components (shared across the playbook pages)
   ========================================================================= */

/* Metric grid + tiles (Opportunity snapshot). */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-tile {
  border: var(--border);
  border-radius: 12px;
  background: var(--report-surface-soft);
  padding: 16px;
}
.metric-tile__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.05;
}
.metric-tile__label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.metric-tile__icon {
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-lead { color: var(--muted); font-size: 0.92rem; margin: 0.5rem 0 0; }

/* Opportunity cards. */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.opp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  padding: 24px 22px 22px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.opp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent, var(--report-pink));
}
.opp-card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--ink); }
.opp-card__area {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.opp-card__title { font-family: var(--font-display); font-size: 1.28rem; font-weight: 800; line-height: 1.15; margin: 0.2rem 0 0.15rem; }
.opp-card__meta { font-size: 0.82rem; color: var(--muted); }
.opp-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.opp-card__score { flex-shrink: 0; text-align: right; }
.opp-card__stats { font-size: 0.8rem; color: var(--muted); border-top: 1px dashed #ddd7c8; padding-top: 10px; }
.opp-card__desc { font-size: 0.92rem; margin: 0; }
.note {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--accent, var(--report-pink));
}
.note strong { color: var(--ink); }

/* Roadmap. */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.roadmap::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 12%;
  right: 12%;
  border-top: 3px dotted var(--ink);
  opacity: 0.3;
  z-index: 0;
}
.roadmap__stage {
  position: relative;
  z-index: 1;
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  padding: 22px;
  overflow: hidden;
}
.roadmap__stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent, var(--report-pink));
}
.roadmap__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--accent, var(--report-pink));
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
}
.roadmap__window {
  display: block; margin-top: 14px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted);
}
.roadmap__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin: 0.25rem 0 0.4rem; }
.roadmap__focus { font-size: 0.9rem; color: var(--muted); margin: 0; }
.roadmap__stage ul { margin: 0.7rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; }
.roadmap__stage li { margin-bottom: 0.35rem; }

/* Toolbox (Next steps). */
.toolbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.toolbox__card {
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  padding: 22px 20px;
  overflow: hidden;
}
.toolbox__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.toolbox__label {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent, var(--report-pink));
  box-shadow: var(--shadow-hard-sm);
  padding: 0.14rem 0.66rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.toolbox__card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.toolbox__card li { border-top: 1px dashed #ddd7c8; padding: 11px 0; }
.toolbox__card li:first-child { border-top: none; padding-top: 4px; }
.toolbox__summary { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 3px; }

/* Code / prompt surface. */
.code-block {
  border: var(--border);
  border-radius: 10px;
  background: var(--report-surface-soft);
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .opp-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { display: none; }
  .toolbox { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .nav__links { gap: 0.8rem; }
  .nav__links a { font-size: 0.86rem; }
  .nav__cta { gap: 0.4rem; }
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--paper);
    border-bottom: var(--border); padding: 1rem 20px; gap: 0.8rem;
  }
  .nav__links.open .nav__mobile-cta {
    display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.4rem;
  }
  .nav__links.open .nav__mobile-cta .btn { width: 100%; }
  .nav__links.open .nav__mobile-cta .btn,
  .nav__links.open .nav__mobile-cta .btn:hover {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.42rem 0.9rem;
    border-color: var(--ink);
  }
  .nav__toggle {
    display: inline-flex; margin-left: auto; background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
  }
  .nav__cta { display: none; }
}

@media (max-width: 900px) {
  .hero__grid, .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .feat-grid, .card-grid, .video-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .detail-side { position: static; }
}

@media (max-width: 640px) {
  .feat-grid, .card-grid, .video-grid, .related-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 28px 0 36px; }
  .hero__grid { padding: 26px 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .opp-card__head { flex-direction: column; }
  .opp-card__score { text-align: left; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .meter__fill { transition: none !important; }
}
