/* ==========================================================================
   LaunchCo, stylesheet
   Built from "LaunchCo Home v3" + the brand kit. Brand colours, fonts and the
   logo scale are CSS variables so Admin -> Brand & site recolours live.
   ========================================================================== */

:root {
  /* Brand kit (overridden at runtime from settings.brand.colors) */
  --ink: #0c0f0a;
  --blue: #48639c;
  --pink: #bf2e8f;
  --sand: #e0dad2;
  --bg: #1f1f1e; /* tone: Charcoal */
  --card: #2b2b29;

  /* Derived, public site (dark) */
  --fg: #ffffff;
  --fg-82: color-mix(in srgb, var(--sand) 82%, transparent);
  --fg-78: color-mix(in srgb, var(--sand) 78%, transparent);
  --fg-70: color-mix(in srgb, var(--sand) 70%, transparent);
  --fg-60: color-mix(in srgb, var(--sand) 60%, transparent);
  --rule: color-mix(in srgb, var(--sand) 16%, transparent);
  --rule-strong: color-mix(in srgb, var(--sand) 35%, transparent);

  /* Admin + dialogs (light) */
  --text: #22211f;
  --muted: #6b6862;
  --line: #e7e3dd;
  --brand: var(--pink);
  --accent: var(--pink);

  --font-head: "Kdam Thmor Pro", system-ui, sans-serif;
  --font-body: "Dosis", system-ui, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 16px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(12, 15, 10, 0.06);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.55);
  --logo-scale: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html[data-motion="off"] {
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0;
  line-height: 1.02;
}
p {
  margin: 0;
}
a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover {
  color: var(--pink);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: var(--pink);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.muted {
  color: var(--fg-70);
}
.pink {
  color: var(--pink);
}
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rv-wait {
  opacity: 0;
}
html[data-motion="off"] .rv-wait {
  opacity: 1;
}

/* type helpers */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}
.sec-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  color: var(--fg-70);
}
.display {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
}
.display--md {
  font-size: clamp(40px, 5vw, 80px);
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

/* pills (nav + buttons) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.pill:hover {
  background: color-mix(in srgb, var(--sand) 14%, transparent);
  border-color: color-mix(in srgb, var(--sand) 70%, transparent);
  color: var(--fg);
}
.pill svg {
  width: 15px;
  height: 15px;
}
.pill:disabled {
  opacity: 0.4;
  cursor: default;
}
.pill--cta {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.pill--cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pill--block {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
}

/* scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pink);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.lc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(16px, 3vw, 40px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
.lc-nav.is-solid {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lc-nav__side {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lc-nav__side--end {
  justify-content: flex-end;
}
.brand {
  display: block;
}
.brand__img {
  height: calc(34px * var(--logo-scale));
  width: auto;
}
/* Header logo: double the base size (Grant, v0.1.3). Logo size in Brand & site
   still scales it. Smaller on phones so it doesn't crowd the menu button. */
.lc-nav__logo .brand__img {
  height: calc(68px * var(--logo-scale));
}
@media (max-width: 720px) {
  .lc-nav__logo .brand__img {
    height: calc(46px * var(--logo-scale));
  }
}
.lc-burger,
.lc-mobile {
  display: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__imgwrap {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__shade--x {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 55%, transparent) 0%,
    transparent 38%,
    transparent 70%,
    color-mix(in srgb, var(--bg) 45%, transparent) 100%
  );
}
.hero__shade--y {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 45%, transparent) 0%,
    transparent 22%,
    transparent 50%,
    color-mix(in srgb, var(--bg) 55%, transparent) 82%,
    var(--bg) 100%
  );
}
.hero__intro {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  top: 54%;
  max-width: min(560px, 60vw);
  z-index: 2;
}
.hero__intro p {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}
.hero__line {
  display: block;
}
.hero__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  display: flex;
  justify-content: center;
  font-family: var(--font-head);
  font-size: clamp(88px, 21vw, 330px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow: hidden;
  padding-top: 0.05em;
  pointer-events: none;
  z-index: 1;
}
.hero__letter {
  display: inline-block;
}

/* ==========================================================================
   STATEMENT + MARQUEE
   ========================================================================== */
.lc-main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.statement {
  padding-top: clamp(96px, 12vw, 180px);
  padding-bottom: clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px clamp(40px, 6vw, 120px);
  align-items: end;
}
.statement__title {
  font-size: clamp(40px, 5.2vw, 80px);
  letter-spacing: -0.01em;
}
.statement__body {
  font-size: 18px;
  line-height: 1.65;
  max-width: 46ch;
  color: var(--fg-78);
}
.mq {
  overflow: hidden;
  padding-bottom: clamp(72px, 9vw, 128px);
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 12%, transparent);
}
.mq__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1.05;
  animation: lc-marquee 45s linear infinite;
}
html[data-motion="calm"] .mq__track {
  animation-duration: 120s;
}
html[data-motion="off"] .mq__track {
  animation: none;
}
.mq__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding-right: clamp(32px, 4vw, 64px);
}
.mq__alt {
  color: var(--blue);
}
.mq__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
.mq__dot--pink {
  background: var(--pink);
}
@keyframes lc-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   PILLARS (What we do)
   ========================================================================== */
.pillars {
  padding-top: clamp(80px, 10vw, 144px);
  padding-bottom: clamp(80px, 10vw, 144px);
  scroll-margin-top: 80px;
}
.pillars .sec-head {
  margin-bottom: 48px;
}
.pillar {
  border-top: 1px solid var(--rule);
}
.pillar__rule {
  border-top: 1px solid var(--rule);
}
.pillar__head {
  cursor: pointer;
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(18px, 2vw, 28px) 0;
  color: var(--fg);
  transition: color 0.4s ease;
  outline: none;
}
.pillar__head:hover,
.pillar.is-open .pillar__head {
  color: var(--pink);
}
.pillar__head:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
.pillar__num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--sand) 55%, transparent);
}
.pillar__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 40px;
}
.pillar__title {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.005em;
}
.pillar__line {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--fg-70);
}
.pillar__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  color: #fff;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease;
}
.pillar.is-open .pillar__btn {
  background: var(--pink);
  border-color: var(--pink);
  transform: rotate(45deg);
}
.pillar__detail {
  display: none;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 0 0 clamp(32px, 3vw, 48px);
}
.pillar.is-open .pillar__detail,
body.edit-mode .pillar__detail {
  display: grid;
}
.pillar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px 64px;
}
.pillar__grid p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 50ch;
  color: var(--fg-82);
}
.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.tag {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue) 90%, transparent);
  color: #fff;
}
.tag:empty {
  display: none;
}
body.edit-mode .tag:empty {
  display: inline-block;
  min-width: 4em;
}

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach {
  position: relative;
  overflow: hidden;
}
.bgimg {
  position: absolute;
  inset: -15% 0;
}
.bgimg__wrap {
  position: absolute;
  inset: 0;
}
.bgimg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bgimg__img--approach {
  filter: saturate(0.7) brightness(0.45);
}
.bgimg__img--contact {
  filter: saturate(0.8) brightness(0.55);
}
.approach__inner {
  position: relative;
  padding-top: clamp(96px, 12vw, 180px);
  padding-bottom: clamp(96px, 12vw, 180px);
  pointer-events: none; /* lets edit-mode clicks reach the background image */
}
.approach__inner > * {
  pointer-events: auto;
}
.approach__inner .eyebrow {
  margin-bottom: 28px;
}
.approach__title {
  max-width: 14ch;
}
.approach__track {
  position: relative;
  height: 1px;
  background: color-mix(in srgb, var(--sand) 25%, transparent);
  margin: clamp(56px, 7vw, 96px) 0 56px;
}
.approach__line {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: var(--pink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.approach__dot {
  position: absolute;
  left: 0;
  top: -6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pink);
}
.approach__dot--end {
  left: auto;
  right: 0;
  border: 1px solid #fff;
  background: var(--bg);
  animation: lc-pulse 2.4s ease-in-out infinite;
}
html[data-motion="off"] .approach__dot--end {
  animation: none;
}
@keyframes lc-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.5;
  }
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 56px clamp(40px, 8vw, 140px);
}
.approach__num {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.approach__num--pink {
  color: var(--pink);
}
.approach h3 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.approach p {
  font-size: 17px;
  line-height: 1.65;
  max-width: 44ch;
  color: color-mix(in srgb, var(--sand) 80%, transparent);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
  padding-top: clamp(96px, 12vw, 180px);
  padding-bottom: clamp(72px, 9vw, 128px);
  scroll-margin-top: 80px;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 48px 0;
}
.step {
  border-left: 1px solid var(--rule);
  padding: 0 clamp(20px, 2vw, 32px);
}
.step__num {
  font-family: var(--font-head);
  font-size: clamp(64px, 6vw, 96px);
  line-height: 1;
  color: var(--blue);
}
.step h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 26px;
  margin: 28px 0 14px;
}
.step p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 32ch;
  color: color-mix(in srgb, var(--sand) 75%, transparent);
}

/* ==========================================================================
   RESULTS
   ========================================================================== */
.results {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(96px, 12vw, 180px);
  scroll-margin-top: 80px;
}
.results__grid,
.testi__grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.case {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  transition: transform 0.6s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.case:hover {
  transform: translateY(-8px);
  border-color: var(--pink);
  background: color-mix(in srgb, var(--card) 88%, var(--pink));
}
.case__pillar {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue) 90%, transparent);
  color: var(--pink);
}
.case__metric {
  font-family: var(--font-head);
  font-size: clamp(56px, 5vw, 80px);
  line-height: 1;
  margin-top: 24px;
}
.case__label {
  font-weight: 500;
  font-size: 22px;
}
.case__summary {
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--sand) 72%, transparent);
}
.case__client {
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 16px;
  color: var(--fg-60);
}
.edit-note {
  display: none;
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-70);
}
.edit-note a {
  color: var(--pink);
  text-decoration: underline;
}
body.edit-mode .edit-note {
  display: block;
}

/* ==========================================================================
   TESTIMONIALS + BLOG TEASER
   ========================================================================== */
.testimonials,
.teaser {
  padding-bottom: clamp(96px, 12vw, 160px);
}
.testi {
  margin: 0;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi__mark {
  font-family: var(--font-head);
  font-size: 72px;
  line-height: 0.6;
  color: var(--pink);
  height: 30px;
}
.testi blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-82);
}
.testi figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.testi figcaption span {
  color: var(--fg-60);
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  transition: transform 0.6s var(--ease), border-color 0.4s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  color: var(--fg);
}
.post-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--blue) 45%, var(--ink)));
  display: grid;
  place-items: center;
}
.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post-card:hover .post-card__cover img {
  transform: scale(1.04);
}
.post-card__ph {
  font-family: var(--font-head);
  font-size: 28px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sand) 30%, transparent);
}
.post-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card__date,
.post__date {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}
.post-card h3 {
  font-size: 24px;
  line-height: 1.15;
}
.post-card p {
  font-size: 15px;
  color: color-mix(in srgb, var(--sand) 72%, transparent);
}
.post-card__more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg);
}
.post-card__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.post-card:hover .post-card__more svg {
  transform: translateX(4px);
}
.blog-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.blog-pager__info {
  font-size: 14px;
  color: var(--fg-70);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
}
.contact__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    transparent 35%,
    color-mix(in srgb, var(--bg) 40%, transparent) 70%,
    var(--bg) 100%
  );
}
.contact__inner {
  position: relative;
  width: 100%;
  padding-top: clamp(96px, 12vw, 180px);
  padding-bottom: clamp(56px, 7vw, 96px);
  pointer-events: none;
}
.contact__inner > * {
  pointer-events: auto;
}
.contact__title {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.9;
}
.contact__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px 80px;
  margin-top: 48px;
  align-items: end;
}
.contact__lead {
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  max-width: 34ch;
}
.pillform {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sand) 40%, transparent);
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  max-width: 520px;
  width: 100%;
}
.pillform input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
}
.pillform input::placeholder {
  color: var(--fg-60);
}
.pillform button {
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s;
}
.pillform button:hover {
  background: var(--blue);
}
.pillform button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pillform button:disabled {
  opacity: 0.6;
}
.sent-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 500;
}
.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  font-size: 15px;
}
.contact__details a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-82);
}
.contact__details svg {
  width: 17px;
  height: 17px;
  color: var(--pink);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lc-footer__row {
  padding-top: 32px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-60);
}
.lc-footer__row a {
  color: var(--fg-60);
}
.lc-footer__row a:hover {
  color: var(--pink);
}
.lc-footer__logo {
  margin-right: auto;
}
.lc-footer__logo .brand__img {
  height: calc(24px * var(--logo-scale));
}

/* ==========================================================================
   BLOG PAGES
   ========================================================================== */
.page-head {
  padding-top: clamp(140px, 16vw, 220px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.page-head .eyebrow {
  margin-bottom: 20px;
}
.page-head .sec-sub {
  display: block;
  margin-top: 20px;
  max-width: 46ch;
}
.blog-list {
  padding-bottom: clamp(96px, 12vw, 160px);
}
.post {
  max-width: 820px;
  padding-top: clamp(130px, 14vw, 190px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--fg-70);
  margin-bottom: 28px;
}
.post__title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin: 14px 0 32px;
}
.post__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16 / 9;
}
.post__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post__body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-82);
}
.post__body > * + * {
  margin-top: 1.1em;
}
.post__body h2,
.post__body h3 {
  color: #fff;
  margin-top: 1.6em;
  line-height: 1.15;
}
.post__body h2 {
  font-size: 32px;
}
.post__body h3 {
  font-size: 24px;
}
.post__body a {
  color: var(--pink);
  text-decoration: underline;
}
.post__body ul,
.post__body ol {
  padding-left: 1.3em;
}
.post__body li + li {
  margin-top: 0.4em;
}
.post__body li::marker {
  color: var(--pink);
}
.post__body img {
  border-radius: 12px;
  height: auto;
}
.post__cta {
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.post__cta p {
  font-weight: 500;
  font-size: 20px;
  max-width: 34ch;
}

/* Server-rendered content fallback (for crawlers / no-JS; the SPA replaces it) */
.ssr-fallback {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  line-height: 1.6;
  color: var(--fg-82);
}
.ssr-fallback h1,
.ssr-fallback h2 {
  color: #fff;
  margin: 1em 0 0.4em;
}
.ssr-fallback img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}

/* ==========================================================================
   LOGIN
   ========================================================================== */
.auth-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--pink) 22%, transparent), transparent 55%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sand) 12%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-size: 34px;
  text-transform: uppercase;
  margin: 1.4rem 0 0.3rem;
}
.auth-card .field label {
  color: var(--fg-82);
}
.auth-card .field input {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-color: color-mix(in srgb, var(--sand) 22%, transparent);
  color: #fff;
}
.auth-card a {
  color: var(--fg-70);
}

/* ==========================================================================
   CLIENT AREA (My User Login)
   ========================================================================== */
.client-auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
}
.client-auth .auth-card h1 {
  margin-top: 0.8rem;
}
.client-home__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
  margin-top: 48px;
}
.client-card {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.client-card--note {
  border-color: color-mix(in srgb, var(--pink) 55%, transparent);
}
.client-card h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}
.client-card p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-82);
}
.client-home__foot {
  margin-top: 32px;
  font-size: 14px;
}
.client-home__foot a {
  color: var(--pink);
}

/* ==========================================================================
   FORMS (shared by login, admin, modals)
   ========================================================================== */
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.form__msg {
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}
.form__msg a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.form__msg.show {
  display: block;
}
.form__msg.ok {
  background: color-mix(in srgb, #17a672 14%, #fff);
  color: #0d7a52;
}
.form__msg.err {
  background: color-mix(in srgb, #e5484d 14%, #fff);
  color: #b4262b;
}
.contact .form__msg {
  max-width: 520px;
}

/* ==========================================================================
   EDIT MODE + editbar
   ========================================================================== */
.editbar {
  position: fixed;
  z-index: 200;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--sand) 18%, transparent);
  border-radius: 999px;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  white-space: nowrap;
}
.editbar .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17a672;
  box-shadow: 0 0 0 4px rgba(23, 166, 114, 0.25);
}
.editbar button {
  border: 0;
  border-radius: 999px;
  padding: 0.5em 1em;
  font-weight: 600;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.2s;
}
.editbar button:hover {
  background: rgba(255, 255, 255, 0.26);
}
.editbar button.primary {
  background: var(--pink);
}
.editbar button.primary.on {
  background: #17a672;
}

body.edit-mode [data-edit],
body.edit-mode [data-editpost] {
  outline: 2px dashed color-mix(in srgb, var(--pink) 75%, transparent);
  outline-offset: 3px;
  cursor: text;
  border-radius: 4px;
  transition: outline-color 0.2s, background 0.2s;
}
body.edit-mode [data-edit]:hover,
body.edit-mode [data-editpost]:hover {
  outline-color: var(--pink);
  background: color-mix(in srgb, var(--pink) 10%, transparent);
}
body.edit-mode [data-edit][contenteditable="true"]:focus,
body.edit-mode [data-editpost][contenteditable="true"]:focus {
  outline: 2px solid var(--pink);
  background: color-mix(in srgb, var(--pink) 8%, transparent);
}
/* While editing, freeze parallax and pull the backgrounds back into frame so
   the image tools (Replace, focus point) are reachable. */
body.edit-mode [data-parallax] {
  translate: none !important;
}
body.edit-mode .bgimg {
  inset: 0;
}
body.edit-mode .rv-wait {
  opacity: 1;
}
body.edit-mode .hero__word {
  opacity: 0.35;
}
/* :where() = zero specificity, so wrappers that are absolutely positioned
   (hero, approach and contact photos) keep their own position. */
:where([data-edit-img]) {
  position: relative;
}
body.edit-mode [data-edit-img] {
  outline: 2px dashed color-mix(in srgb, var(--pink) 75%, transparent);
  outline-offset: -6px;
  cursor: pointer;
}
body.edit-mode [data-edit-img].has-image {
  cursor: crosshair;
}
body.edit-mode [data-edit-img].has-image::after {
  content: "Click the photo to set its focus point";
  position: absolute;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: rgba(12, 15, 10, 0.82);
  color: #fff;
  font-weight: 600;
  font-size: 0.76rem;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s;
}
body.edit-mode [data-edit-img].has-image:hover::after {
  opacity: 1;
}
.img-focus-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pink) 40%, transparent);
  box-shadow: 0 0 0 2px var(--pink), 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 6;
}
.img-focus-dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}
.img-replace-btn {
  position: absolute;
  top: 96px;
  right: 24px;
  z-index: 7;
  background: rgba(12, 15, 10, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.5em 1em;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
body.edit-mode [data-edit-img]:hover .img-replace-btn {
  opacity: 1;
}
.img-add-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  background: rgba(12, 15, 10, 0.85);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 0.55em 0.95em;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.img-add-btn:hover {
  background: var(--pink);
}
.placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg-60);
  background: var(--card);
}

/* staff-login cog (bottom-right) */
.login-cog {
  position: fixed;
  z-index: 150;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--fg-70);
  border: 1px solid var(--rule);
  opacity: 0.4;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.6s var(--ease), color 0.25s ease;
}
.login-cog:hover {
  opacity: 1;
  color: var(--pink);
  transform: rotate(90deg);
}
.login-cog svg {
  width: 20px;
  height: 20px;
}
/* version badge */
.version-badge {
  position: fixed;
  z-index: 150;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  color: var(--fg-60);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
  pointer-events: none;
}
.version-badge.warn {
  color: #ff8a8f;
}

/* ==========================================================================
   ADMIN (light workspace, dark brand sidebar)
   ========================================================================== */
body.is-admin {
  background: #f5f3f0;
  color: var(--text);
}
.admin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f5f3f0;
  color: var(--text);
}
.admin a {
  color: var(--pink);
}
.admin h1,
.admin h2 {
  color: var(--ink);
}
.admin__side {
  background: var(--ink);
  color: #cfc9c1;
  padding: 1.6rem 1rem;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
}
.admin__logo {
  margin: 0 0.4rem 2rem;
}
.admin__logo .brand__img {
  height: 30px;
}
.admin__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin__nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  color: #bdb6ad;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.admin__nav button svg {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.admin__nav button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.admin__nav button.active {
  background: var(--pink);
  color: #fff;
}
.admin__side .side-foot {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.admin__side .side-foot a {
  color: #e9a6d2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.admin__side .side-foot svg {
  width: 16px;
  height: 16px;
}
.admin__main {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  overflow-x: hidden;
  min-width: 0;
}
.admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.admin__head h1 {
  font-size: 2rem;
  text-transform: uppercase;
}
.admin .muted,
.modal .muted {
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.card h2,
.card__h {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.kpi b {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--pink);
  display: block;
  line-height: 1;
}
.kpi span {
  color: var(--muted);
  font-size: 0.9rem;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  vertical-align: top;
}
table.data th {
  background: #faf8f6;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.data tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-block;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.badge.new { background: #e8edf7; color: var(--blue); }
.badge.contacted { background: #fff2d9; color: #96690a; }
.badge.closed { background: #e6f6ee; color: #14855a; }
.badge.draft { background: #eeece9; color: #6b6862; }
.badge.scheduled { background: #fff2d9; color: #96690a; }
.badge.published { background: #e6f6ee; color: #14855a; }
.badge.archived { background: #f6e9e9; color: #a4494b; }
.admin-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6em 1.15em;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--pink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: filter 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.admin-btn svg {
  width: 16px;
  height: 16px;
}
.admin-btn:hover {
  filter: brightness(1.08);
}
.admin-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.admin-btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.admin-btn.ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.admin-btn.danger {
  background: #fff;
  color: #b4262b;
  border: 1.5px solid #f0d2d3;
}
.admin-btn.danger:hover {
  background: #b4262b;
  color: #fff;
}
.admin-btn.sm {
  padding: 0.38em 0.8em;
  font-size: 0.82rem;
}
.admin select[data-action="lead-status"] {
  font: inherit;
}
.logo-prev {
  margin-top: 0.7rem;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
}
.logo-prev img {
  display: block;
  width: auto;
}
.brand-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.color-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.color-field input[type="color"] {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 0;
}
.color-field .cf-meta b {
  display: block;
  font-size: 0.84rem;
  color: var(--ink);
}
.color-field .cf-meta input[type="text"] {
  border: 0;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--muted);
  width: 90px;
  padding: 0;
}
.color-field .cf-meta input:focus {
  outline: none;
}
input[type="range"] {
  accent-color: var(--pink);
}

/* image styles (AI setup) */
.style-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.style-row__main { flex: 1 1 auto; min-width: 0; }
.style-row__ref { flex: 0 0 260px; }
.style-row__ref > label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }
.style-ref {
  width: 260px;
  height: 175px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.style-ref:hover { border-color: var(--pink); color: var(--pink); }
.style-ref img { width: 100%; height: 100%; object-fit: cover; }
.style-ref__hint { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 0.35rem; }
.gen-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gen-style {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
}
.gen-style:hover { border-color: var(--pink); }
.gen-style__name { font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.gen-style__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f1ee;
  display: grid;
  place-items: center;
}
.gen-style__img img { width: 100%; height: 100%; object-fit: cover; }
.gen-style__ph { font-size: 0.68rem; color: var(--muted); }
.gen-progress {
  height: 6px;
  border-radius: 999px;
  background: #eeece9;
  overflow: hidden;
  margin-top: 0.7rem;
}
.gen-progress__bar {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--pink);
  animation: genslide 1.1s ease-in-out infinite;
}
@keyframes genslide {
  0% { margin-left: -42%; }
  100% { margin-left: 100%; }
}

/* sub-navigation (Posts / Suggested ideas, Anthropic / OpenAI) */
.admin-subnav { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.admin-subtab {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 0.3em 0.85em;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.admin-subtab:hover { border-color: var(--pink); color: var(--pink); }
.admin-subtab.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* list rows (ideas, testimonials, results) */
.idea-list { display: flex; flex-direction: column; }
.idea {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.idea:last-child { border-bottom: 0; }
.idea__title {
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.3;
}
.idea__src {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-weight: 700;
}
.idea__brief { margin: 0.35rem 0 0.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.idea__kw { font-size: 0.8rem; color: var(--muted); }
.idea__kw b { color: var(--ink); }
.idea__actions { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; white-space: nowrap; align-items: flex-end; }

/* post editor cover focus */
.cover-focus-box {
  position: relative;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  cursor: crosshair;
  background: #eee;
}
.cover-focus-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot-dot {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}
.slot-dot::after {
  inset: 5px;
}
#postBody h2 { font-size: 1.5rem; margin: 1em 0 0.4em; }
#postBody h3 { font-size: 1.2rem; margin: 1em 0 0.4em; }
#postBody p { margin: 0 0 0.9em; }

/* ==========================================================================
   TOAST + dialogs
   ========================================================================== */
.toast-wrap {
  position: fixed;
  z-index: 600;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  animation: toastin 0.3s var(--ease);
  max-width: 340px;
}
.toast.ok { background: #0d7a52; }
.toast.err { background: #b4262b; }
@keyframes toastin {
  from { opacity: 0; transform: translateY(12px); }
}
.modal-back,
.gen-prompt-back {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(12, 15, 10, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: fadein 0.2s;
}
.gen-prompt-back {
  z-index: 500;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal h2 {
  font-size: 1.6rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.modal h2 svg {
  width: 22px;
  height: 22px;
  color: var(--pink);
}
.modal__scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.modal--wide { max-width: 1100px; width: 92vw; height: 90vh; }
.gen-prompt-back .modal { max-width: 560px; }
.gen-prompt-back textarea { width: 100%; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .lc-nav {
    grid-template-columns: auto 1fr auto;
  }
  .lc-nav__side {
    display: none;
  }
  .lc-nav__logo {
    grid-column: 1;
  }
  .lc-burger {
    grid-column: 3;
    display: grid;
    gap: 6px;
    place-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
    background: color-mix(in srgb, var(--bg) 40%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .lc-burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.35s var(--ease);
  }
  body.nav-open .lc-burger span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  body.nav-open .lc-burger span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  .lc-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: fixed;
    inset: 0;
    z-index: 45; /* under the nav (50) so the logo and close button stay on top */
    padding: 110px 24px 32px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .lc-mobile .pill {
    font-size: 17px;
    padding: 12px 22px;
  }
  body.nav-open .lc-mobile {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
  }
}
@media (max-width: 720px) {
  .hero__intro {
    top: auto;
    bottom: calc(clamp(88px, 21vw, 330px) * 0.95 + 28px);
    max-width: calc(100% - 32px);
  }
  .pillar__head {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
  .pillar__btn {
    width: 44px;
    height: 44px;
  }
  /* The 56px desktop minimum made OPERATIONS wider than a phone screen,
     so the whole page could be dragged sideways. */
  .pillar__title {
    font-size: clamp(32px, 10.5vw, 56px);
    overflow-wrap: anywhere;
  }
  .pillar__detail {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  .pillform {
    flex-direction: column;
    border-radius: 24px;
  }
  .pillform input[type="email"] {
    padding: 12px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .editbar {
    bottom: 12px;
    font-size: 0.8rem;
    max-width: calc(100vw - 24px);
  }
  .editbar > span:nth-child(2) {
    display: none;
  }
  .admin {
    grid-template-columns: 1fr;
  }
  .admin__side {
    position: static;
    height: auto;
  }
  .admin__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin__nav button {
    width: auto;
  }
  .idea {
    flex-direction: column;
  }
  .idea__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .gen-styles {
    grid-template-columns: repeat(2, 1fr);
  }
  .style-row {
    flex-direction: column;
  }
  .style-row__ref {
    flex: 0 0 auto;
  }
  .modal--wide {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PAGE BUILDER (v0.3.0), ported from the LaunchCo Training Platform v0.29.0.
   The builder uses its own light tokens. They are set on .pb-overlay so they
   override the site's dark tokens (e.g. --bg) only inside the builder.
   ========================================================================== */
.pb-overlay {
  --bg: #f5f4f1;
  --panel: #ffffff;
  --line: #e7e3dc;
  --muted: #757067;
  --text: #23211d;
  --accent: var(--pink);
  --font-headline: var(--font-head);
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 15, 10, 0.06), 0 8px 24px rgba(12, 15, 10, 0.06);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
}
.pb-overlay h1, .pb-overlay h2, .pb-overlay h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
.pb-overlay p { margin: 0 0 .6em; }
.pb-overlay a { color: var(--accent); }
/* Buttons the builder uses (the site has none called .btn) */
.pb-overlay .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: .5rem .95rem; font: inherit; font-weight: 600; cursor: pointer; }
.pb-overlay .btn:hover { border-color: #cfc9bf; }
.pb-overlay .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb-overlay .btn-primary:hover { filter: brightness(1.05); }
.pb-overlay .btn-ghost { background: transparent; }
.pb-overlay .btn:disabled { opacity: .5; cursor: not-allowed; }
.pb-overlay .btn-sm { padding: .35rem .75rem; font-size: .85rem; }
.pb-overlay .form-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.pb-overlay .form-row .pb-field { flex: 1 1 100px; }

/* ── Visual page builder ─────────────────────────────────────────────── */
.pb-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(12,15,10,.5); display: grid; place-items: center; }
.pb-modal { width: 100vw; height: 100vh; background: var(--bg); border-radius: 0; box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
.pb-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.pb-title { flex: 1; font-family: var(--font-headline); font-size: 1.15rem; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 6px 10px; background: transparent; color: var(--text); }
.pb-title:hover { border-color: var(--line); }
.pb-title:focus { outline: none; border-color: var(--accent); background: #fff; }
.pb-top-actions { display: flex; gap: 8px; }
.pb-warn { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: #fff6e5; border-bottom: 1px solid #f0d9a8; color: #7a5a12; font-size: .88rem; }
.pb-warn span { flex: 1; }
.pb-warn-x { border: 1px solid #e0c584; background: #fff; color: #7a5a12; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: var(--font-body); font-size: .82rem; }
.pb-warn-x:hover { background: #f6ecd4; }
.pb-main { flex: 1; position: relative; min-height: 0; overflow: hidden; }
/* Floating, draggable panels (palette + inspector) so the canvas gets the full width. */
.pb-float { position: absolute; z-index: 30; width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 34px rgba(12,15,10,.22); display: flex; flex-direction: column; max-height: calc(100% - 28px); }
.pb-float.dragging { box-shadow: 0 16px 44px rgba(12,15,10,.30); }
.pb-palette-panel { top: 14px; left: 14px; }
.pb-inspector-panel { top: 14px; right: 14px; width: 288px; }
.pb-float-head { cursor: move; user-select: none; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #faf8f5; border-radius: 10px 10px 0 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.pb-float-body { padding: 12px; overflow: auto; }
.pb-palette { display: flex; flex-direction: column; gap: 8px; }
.pb-insp-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.pb-add { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); cursor: pointer; font-family: var(--font-body); font-size: .92rem; }
.pb-add:hover { border-color: var(--accent); color: var(--accent); }
.pb-add-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--sand); color: var(--ink); font-size: .8rem; }
.pb-add:hover .pb-add-ic { background: var(--accent); color: #fff; }
.pb-canvas-wrap { position: absolute; inset: 0; overflow: auto; padding: 20px; background: var(--bg); }
.pb-canvas { max-width: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px; min-height: 200px; box-shadow: var(--shadow); }
.pb-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.pb-block { position: relative; border: 1.5px solid transparent; border-radius: 8px; padding: 8px 10px; margin: 2px 0; cursor: pointer; }
.pb-block:hover { border-color: rgba(191,46,143,.35); }
.pb-block.sel { border-color: var(--accent); }
.pb-block-tools { position: absolute; top: -12px; right: 8px; display: none; gap: 3px; }
.pb-block.sel .pb-block-tools, .pb-block:hover .pb-block-tools { display: flex; }
.pb-bt { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: .78rem; line-height: 1; padding: 0; box-shadow: var(--shadow); }
.pb-bt:hover { color: var(--accent); border-color: var(--accent); }
.pb-bt.danger:hover { color: #c0392b; border-color: #c0392b; }
/* Drag-to-reorder: grip handle + drop indicators */
.pb-grip { cursor: grab; display: inline-grid; place-items: center; user-select: none; }
.pb-grip:active { cursor: grabbing; }
.pb-dragging { opacity: .4; }
.pb-drop-before { box-shadow: inset 0 3px 0 0 var(--accent); }
.pb-drop-after { box-shadow: inset 0 -3px 0 0 var(--accent); }
.pb-drop-into { outline: 2px dashed var(--accent); outline-offset: -2px; }
.pb-dnd .pb-ai-frame { pointer-events: none; }
.pb-ph, .pb-imgph, .pb-spacerprev { color: var(--muted); font-style: italic; }
.pb-imgph { display: block; padding: 20px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.pb-spacerprev { display: grid; place-items: center; background: repeating-linear-gradient(45deg,#f3f0ea,#f3f0ea 6px,#fff 6px,#fff 12px); border-radius: 6px; font-size: .75rem; }
.pb-btnprev { display: inline-block; background: var(--accent); color: #fff; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-family: var(--font-body); }
.pb-canvas h1 { font-family: var(--font-headline); }
.pb-canvas h2, .pb-canvas h3 { font-family: var(--font-headline); }
.pb-insp-empty { color: var(--muted); font-size: .9rem; }
.pb-field { margin-bottom: 14px; }
.pb-field > label { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.pb-field input[type=text], .pb-field input:not([type]), .pb-inspector input[data-pb-inp] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; background: #fff; color: var(--text); }
.pb-field input:focus { outline: none; border-color: var(--accent); }
.pb-field input[type=range] { width: 100%; accent-color: var(--accent); }
.pb-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pb-seg button { border: none; background: #fff; padding: 7px 12px; cursor: pointer; font-family: var(--font-body); font-size: .84rem; color: var(--muted); border-left: 1px solid var(--line); }
.pb-seg button:first-child { border-left: none; }
.pb-seg button.on { background: var(--accent); color: #fff; }
/* wrapping variant for the image shape chooser (5 options, narrow inspector) */
.pb-seg-wrap { display: flex; flex-wrap: wrap; }
.pb-seg-wrap button { flex: 1 1 auto; }
/* Focal-point picker: click anywhere on the image to place the focus dot. */
.pb-focus { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: crosshair; background: var(--sand); line-height: 0; }
.pb-focus img { pointer-events: none; }
.pb-focus-dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid #fff; border-radius: 50%; background: rgba(191,46,143,.55); box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; }
.pb-rt-toolbar { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.pb-rt-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 5px 8px; cursor: pointer; font-size: .82rem; color: var(--text); min-width: 28px; }
.pb-rt-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.pb-rt { min-height: 120px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; font-family: var(--font-body); font-size: .92rem; line-height: 1.5; background: #fff; color: var(--text); overflow: auto; }
.pb-rt:focus { outline: none; border-color: var(--accent); }
.pb-imgbtn { width: 100%; text-align: center; }

/* Page builder, section/row/column layout */
.pb-palette-note { font-size: .72rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.pb-section { position: relative; border: 1px dashed transparent; border-radius: 10px; padding: 6px; margin-bottom: 12px; }
.pb-section:hover { border-color: #e4dfd6; }
.pb-section-head { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 0 4px 4px; opacity: 0; transition: opacity .12s; }
.pb-section:hover .pb-section-head { opacity: 1; }
.pb-row { display: flex; align-items: stretch; gap: 6px; margin-bottom: 8px; }
.pb-row-inner { flex: 1; display: flex; align-items: flex-start; min-width: 0; }
.pb-row-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; align-items: center; opacity: 0; transition: opacity .12s; padding-left: 2px; }
.pb-row:hover .pb-row-side { opacity: 1; }
.pb-colctl { display: flex; align-items: center; gap: 2px; margin-bottom: 3px; }
.pb-colnum { font-size: .78rem; color: var(--muted); min-width: 12px; text-align: center; font-weight: 700; }
.pb-col { position: relative; min-width: 0; border: 1.5px dashed #e4dfd6; border-radius: 8px; padding: 8px; }
.pb-col.active { border-color: var(--accent); background: rgba(191, 46, 143, .02); }
.pb-col-empty { color: var(--muted); font-style: italic; font-size: .82rem; text-align: center; padding: 18px 6px; }
.pb-col-divider { flex: 0 0 14px; align-self: stretch; cursor: col-resize; position: relative; border-radius: 5px; }
.pb-col-divider::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 2px; height: 28px; background: #d3ccc1; border-radius: 2px; transition: background .12s, width .12s; }
.pb-col-divider:hover::before, .pb-col-divider.dragging::before { background: var(--accent); width: 4px; }
.pb-row-add, .pb-section-add { display: block; width: 100%; border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 8px; cursor: pointer; font-family: var(--font-body); font-size: .85rem; }
.pb-row-add:hover, .pb-section-add:hover { border-color: var(--accent); color: var(--accent); }
.pb-section-add { margin-top: 6px; border-style: solid; font-weight: 600; }

/* AI module (page builder) */
.pb-ai-card { border: 1.5px dashed var(--accent); border-radius: 8px; padding: 16px; background: rgba(191,46,143,.03); }
.pb-ai-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }
.pb-ai-empty { color: var(--muted); font-style: italic; font-size: .9rem; }
.pb-ai-wrap { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.pb-ai-frame { width: 100%; height: 80px; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: height .12s ease; }
.pb-ai-prompt { width: 100%; font-family: var(--font-body); font-size: .9rem; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); resize: vertical; min-height: 92px; }
.pb-ai-prompt:focus { outline: none; border-color: var(--accent); }
.pb-ai-status { font-size: .8rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.pb-ai-warn { font-size: .82rem; color: #8a5a00; background: #fff6e5; border: 1px solid #f0d9a8; border-radius: 6px; padding: 8px 10px; line-height: 1.45; }
/* AI-image module: style picker as sample-image cards (image on top, name below) */
.pb-imgstyle-grid { display: flex; flex-direction: column; gap: 10px; }
.pb-imgstyle { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; overflow: hidden; text-align: center; font-family: var(--font-body); }
.pb-imgstyle:hover { border-color: rgba(191,46,143,.4); }
.pb-imgstyle.on { border-color: var(--accent); }
.pb-imgstyle img { width: 100%; height: 120px; object-fit: cover; display: block; }
.pb-imgstyle-ph { height: 120px; display: grid; place-items: center; color: var(--muted); font-size: .72rem; line-height: 1.4; background: var(--sand); }
.pb-imgstyle-name { padding: 8px 6px; font-size: .86rem; font-weight: 600; color: var(--text); }
.pb-imgstyle.on .pb-imgstyle-name { color: var(--accent); }
.pb-imgstyle-none { background: var(--sand); }
.pb-imgstyle-none .pb-imgstyle-name { padding: 10px 6px; font-weight: 700; }
.pb-ai-log { margin: 0; padding: 0 0 0 20px; font-size: .82rem; color: var(--text); line-height: 1.5; max-height: 140px; overflow: auto; }
.pb-ai-log li { margin: 2px 0; }
/* Saved-modules palette rows + inline "save to library" form */
.pb-saved-row { display: flex; align-items: stretch; gap: 6px; }
.pb-saved-row .pb-add { flex: 1; min-width: 0; }
.pb-savemod { margin-top: 6px; }
.pb-savemod-name { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .9rem; background: #fff; color: var(--text); }
.pb-savemod-name:focus { outline: none; border-color: var(--accent); }
.pb-savemod-actions { display: flex; gap: 6px; margin-top: 6px; }
.pb-savemod-actions .btn { flex: 1; }

/* Builder, style chips, palette swatches, section selection */
.pb-style-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-style-chip { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-family: var(--font-body); font-size: .82rem; font-weight: 600; }
.pb-style-chip.pb-chip-custom { background: #fff; color: var(--text); }
.pb-style-chip.on { outline: 2px solid var(--accent); outline-offset: 1px; }
.pb-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.pb-sw.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-sw.none { background: #fff; color: var(--muted); display: grid; place-items: center; font-size: .8rem; }
.pb-sw-custom { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--line); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; font-size: .72rem; color: var(--muted); }
.pb-sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pb-section.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-row.sel { outline: 2px dashed var(--accent); outline-offset: 1px; border-radius: 8px; }
.pb-section-head[data-pb="section-select"] { cursor: pointer; }

/* Quiz modules, palette group, canvas preview, inspector editors */
.pb-palette-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 10px 0 2px; padding-top: 8px; border-top: 1px solid var(--line); }
/* Collapsible palette groups (Add module panel) */
.pb-palette { gap: 6px; }
.pb-pgroup { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.pb-pgroup-head { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: none; background: #faf8f5; cursor: pointer; font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.pb-pgroup-head:hover { color: var(--accent); }
.pb-pgroup-caret { display: inline-block; width: 12px; font-size: .78rem; color: var(--accent); }
.pb-pgroup-body { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.pb-pgroup.collapsed .pb-pgroup-body { display: none; }
.pbq { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; }
.pbq-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.pbq-prompt { font-weight: 700; margin-bottom: 2px; }
.pbq-desc { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.pbq-opt { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; margin: 4px 0; font-size: .9rem; }
.pbq-ok { color: #2a8a52; font-weight: 700; }
.pbq-text-ph { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-style: italic; }
.pbq-note { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.pbq-scale { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; margin-right: 4px; }
.pbq-ord { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; margin: 3px 0; font-size: .9rem; }
/* inspector option rows */
.pbq-optrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pbq-optrow input[type=text], .pbq-optrow input:not([type]) { flex: 1; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .88rem; }
.pbq-mark { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: #c9c4bb; font-weight: 700; }
.pbq-mark.on { background: #2a8a52; border-color: #2a8a52; color: #fff; }
.pbq-num { flex: 0 0 auto; width: 20px; text-align: center; color: var(--muted); font-weight: 700; font-size: .82rem; }
.pb-inspector input[type=checkbox] { accent-color: var(--accent); margin-right: 6px; }
.pb-inspector input[type=number] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); }

/* Section columns (scols), each stacks its own rows */
.pb-srow { display: flex; align-items: stretch; gap: 0; }
.pb-scol { flex: 1; min-width: 0; }
.pb-scol-divider { flex: 0 0 16px; align-self: stretch; cursor: col-resize; position: relative; border-radius: 5px; }
.pb-scol-divider::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; transform: translateX(-50%); width: var(--dw, 2px); background: var(--dc, #d3ccc1); border-radius: 2px; transition: background .12s, width .12s; }
.pb-scol-divider:hover::before, .pb-scol-divider.dragging::before { background: var(--accent); width: 4px; }
.pb-sec-ctl { display: inline-flex; align-items: center; gap: 3px; }
.pb-sec-ctl .pb-colnum { min-width: 12px; text-align: center; }

/* Floating panels: collapse/expand toggle */
.pb-float-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-float-toggle { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; line-height: 1; padding: 2px 4px; border-radius: 5px; }
.pb-float-toggle:hover { background: rgba(0,0,0,.06); color: var(--text); }
.pb-float.collapsed .pb-float-body { display: none; }
.pb-float.collapsed { width: auto; }
.pb-float.collapsed .pb-float-head { border-bottom: none; border-radius: 10px; }
/* Docked panels, squared off, flush to their edge, body fills the height */
.pb-float.pb-docked { border-radius: 0; max-height: none; box-shadow: 0 0 18px rgba(12,15,10,.10); }
.pb-float.pb-docked .pb-float-head { border-radius: 0; }
.pb-float.pb-docked .pb-float-body { flex: 1 1 auto; min-height: 0; }
.pb-float.pb-dock-left { border-top: none; border-bottom: none; border-left: none; }
.pb-float.pb-dock-right { border-top: none; border-bottom: none; border-right: none; }
.pb-float.pb-dock-bottom { border-left: none; border-right: none; border-bottom: none; }
/* Drop-zone hint shown while dragging toward an edge */
.pb-dock-preview { position: absolute; z-index: 25; pointer-events: none; display: none; background: rgba(191,46,143,.14); border: 2px dashed var(--accent); border-radius: 8px; }

/* ==========================================================================
   CLIENT PAGES (client side + admin results)
   ========================================================================== */
.client-pages__h { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 56px 0 18px; }
.client-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.client-page-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid color-mix(in srgb, var(--sand) 10%, transparent); transition: transform .5s var(--ease), border-color .3s; }
.client-page-card:hover { transform: translateY(-4px); border-color: var(--pink); color: var(--fg); }
.client-page-card h3 { font-size: 24px; line-height: 1.15; }
.client-page-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-82); }
.client-page-card__go svg { width: 16px; height: 16px; }
.client-badge { align-self: flex-start; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid; }
.client-badge--new { color: var(--pink); border-color: var(--pink); }
.client-badge--wip { color: var(--sand); border-color: color-mix(in srgb, var(--sand) 50%, transparent); }
.client-badge--done { color: #7fd6a4; border-color: #2a8a52; }
.client-page { padding-top: clamp(120px, 13vw, 170px); padding-bottom: 80px; max-width: 980px; }
.client-page__title { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 8px 0 22px; }
.cp-frame-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cp-frame { display: block; width: 100%; height: 320px; border: 0; background: #fff; }
.cp-done { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: color-mix(in srgb, #2a8a52 22%, transparent); color: #bfeccf; margin-bottom: 12px; }
.cp-score { font-size: 20px; margin: 0 0 18px; }
.cp-bar { position: sticky; bottom: 16px; z-index: 5; margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px 12px 22px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 88%, transparent); border: 1px solid color-mix(in srgb, var(--sand) 18%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* A staff member also signed in: sit above the staff edit bar. */
.cp-bar--staff { bottom: 78px; }
.cp-bar__state { color: var(--fg-70); font-size: 14px; }
.cp-bar .form__msg { margin: 0; padding: 6px 12px; flex: 1 1 200px; }
.cp-submit { margin-left: auto; padding: 12px 26px; font-size: 15px; }
.cp-submit:disabled { opacity: .6; cursor: default; }
body.is-admin .cp-frame-card, .modal .cp-frame-card { box-shadow: none; border: 1px solid var(--line); }
.cp-access-list { display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow: auto; margin: 8px 0; }
.cp-access-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cp-access-row input { margin-top: 4px; accent-color: var(--pink); }
.cp-access-all { border-style: dashed; }
.cp-res-list { display: flex; flex-direction: column; gap: 8px; }
.cp-res { border: 1px solid var(--line); border-radius: 12px; }
.cp-res__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; }
.cp-res__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-res__body { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: #faf8f6; border-radius: 0 0 12px 12px; }
.cp-ans__q { font-weight: 700; font-size: .9rem; }
.cp-ans__a { white-space: pre-wrap; }
.cp-ok { color: #2a8a52; font-weight: 700; }
.cp-no { color: #c0392b; font-weight: 700; }
