/*
 * LikeHobby Creative Fit v1
 * Task-first starter-path selection, repeat proof, and qualified commerce.
 */

.creative-growth-page {
  --creative-ink: #1f3028;
  --creative-ink-soft: #56665d;
  --creative-paper: #fffdf8;
  --creative-paper-warm: #f5f0e6;
  --creative-sage: #e4ece1;
  --creative-coral: #e66e5c;
  --creative-coral-deep: #a94739;
  --creative-gold: #e3b65e;
  --creative-line: rgba(31, 48, 40, .17);
  --creative-line-strong: rgba(31, 48, 40, .3);
  --creative-shadow: 0 22px 56px rgba(31, 48, 40, .1);
}

.creative-growth-page [hidden] {
  display: none !important;
}

.creative-growth-page :where(
  #creative-fit-chooser,
  .creative-ranked,
  .creative-best-match,
  .creative-alternative-grid,
  .creative-fit-proof,
  .creative-commerce-host,
  .creative-no-buy,
  .creative-path-library
) {
  min-width: 0;
  max-width: 100%;
}

.creative-growth-page :where(
  #creative-fit-chooser,
  .creative-fit-proof,
  .creative-path-library
) {
  scroll-margin-top: 6.5rem;
}

/* Three clear tasks before the reader sees products. */
.creative-growth-page .creative-task-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 20px 0 24px;
  padding: 0;
  border: 1px solid var(--creative-line-strong);
  border-radius: 14px;
  background: var(--creative-ink);
  box-shadow: 0 14px 34px rgba(31, 48, 40, .13);
  color: var(--creative-paper);
  list-style: none;
}

.creative-growth-page .creative-task-rail > * {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.creative-growth-page .creative-task-rail > *:last-child {
  border-right: 0;
}

.creative-growth-page .creative-task-rail :where(span, small) {
  display: block;
  margin: 0 0 6px;
  color: #f2d79f;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.creative-growth-page .creative-task-rail :where(h3, strong, b) {
  display: block;
  margin: 0;
  color: #fff;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.creative-growth-page .creative-task-rail p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: .79rem;
  line-height: 1.5;
}

/* Compatibility chooser */
.creative-growth-page #creative-fit-chooser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--creative-line-strong);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 40px);
  background:
    radial-gradient(circle at 96% 0, rgba(227, 182, 94, .18), transparent 29%),
    linear-gradient(145deg, rgba(255, 253, 248, .98), rgba(238, 244, 236, .95));
  box-shadow: var(--creative-shadow);
}

.creative-growth-page #creative-fit-chooser > h2 {
  max-width: 19ch;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: .98;
  text-wrap: balance;
}

.creative-growth-page #creative-fit-chooser > p {
  max-width: 72ch;
  color: var(--creative-ink-soft);
  line-height: 1.7;
}

.creative-growth-page .creative-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.creative-growth-page .creative-filter-grid fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--creative-line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 253, 248, .9);
}

.creative-growth-page .creative-filter-grid legend {
  max-width: 100%;
  padding: 0 7px;
  color: var(--creative-ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
}

.creative-growth-page .creative-filter-grid legend span {
  display: block;
  margin-bottom: 4px;
  color: var(--creative-coral-deep);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.creative-growth-page :where(
  .creative-filter-options,
  .creative-filter-buttons,
  .creative-filter-grid fieldset > div
) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 0;
}

.creative-growth-page .creative-filter-grid button {
  min-width: 0;
  min-height: 46px;
  max-width: 100%;
  border: 1px solid rgba(31, 48, 40, .2);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--creative-ink);
  font: inherit;
  font-size: .79rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.creative-growth-page .creative-filter-grid button:hover:not(:disabled) {
  border-color: var(--creative-coral);
  transform: translateY(-1px);
}

.creative-growth-page .creative-filter-grid button[aria-pressed="true"],
.creative-growth-page .creative-filter-grid button.is-selected,
.creative-growth-page .creative-filter-grid button.is-active {
  border-color: var(--creative-ink);
  background: var(--creative-ink);
  box-shadow: inset 0 -3px 0 rgba(227, 182, 94, .75);
  color: #fff;
}

.creative-growth-page :where(
  .creative-live-status,
  [data-creative-status],
  [aria-live="polite"]
) {
  min-height: 42px;
  margin: 14px 0 0;
  border-left: 4px solid var(--creative-gold);
  padding: 10px 0 10px 14px;
  color: var(--creative-ink-soft);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.5;
}

/* One strong recommendation; alternatives remain intentionally secondary. */
.creative-growth-page .creative-ranked {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(250px, .58fr);
  gap: 14px;
  margin-top: 24px;
}

.creative-growth-page .creative-best-match {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--creative-line-strong);
  border-top: 5px solid var(--creative-coral);
  border-radius: 15px;
  padding: clamp(22px, 3.5vw, 34px);
  background:
    linear-gradient(132deg, rgba(255, 253, 248, 1), rgba(245, 240, 230, .92));
  box-shadow: 0 20px 48px rgba(31, 48, 40, .11);
}

.creative-growth-page :where(
  .creative-best-label,
  .creative-match-label
) {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--creative-sage);
  color: var(--creative-ink);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.creative-growth-page .creative-best-match :where(h3, h4) {
  max-width: 18ch;
  margin: 0;
  color: var(--creative-ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.9rem, 3.7vw, 2.75rem);
  line-height: 1;
  text-wrap: balance;
}

.creative-growth-page .creative-best-match > p {
  max-width: 65ch;
  margin: 0;
  color: var(--creative-ink-soft);
  line-height: 1.65;
}

.creative-growth-page .creative-best-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0;
}

.creative-growth-page .creative-best-specs > * {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--creative-line);
  border-radius: 11px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, .76);
}

.creative-growth-page .creative-best-specs :where(dt, span, small) {
  display: block;
  margin: 0 0 4px;
  color: var(--creative-coral-deep);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.creative-growth-page .creative-best-specs :where(dd, p, strong) {
  display: block;
  margin: 0;
  color: var(--creative-ink);
  font-size: .84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.creative-growth-page .creative-best-match :where(.button, button, a) {
  width: max-content;
  max-width: 100%;
  min-height: 46px;
}

.creative-growth-page .creative-alternative-grid {
  display: grid;
  align-content: start;
  gap: 10px;
}

.creative-growth-page .creative-alternative-grid > :where(h3, p) {
  margin: 0;
}

.creative-growth-page .creative-alternative-grid > h3 {
  color: var(--creative-ink);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.creative-growth-page :where(
  .creative-alternative-card,
  .creative-alternative-grid > article
) {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--creative-line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 253, 248, .9);
}

.creative-growth-page :where(
  .creative-alternative-card,
  .creative-alternative-grid > article
) :where(span, small) {
  color: var(--creative-coral-deep);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.creative-growth-page :where(
  .creative-alternative-card,
  .creative-alternative-grid > article
) :where(h3, h4) {
  margin: 0;
  color: var(--creative-ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.creative-growth-page :where(
  .creative-alternative-card,
  .creative-alternative-grid > article
) p {
  margin: 0;
  color: var(--creative-ink-soft);
  font-size: .8rem;
  line-height: 1.52;
}

.creative-growth-page :where(
  .creative-alternative-card,
  .creative-alternative-grid > article
) :where(button, a) {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--creative-ink);
  font: inherit;
  font-size: .79rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Repeat proof and blocker qualification */
.creative-growth-page .creative-fit-proof {
  display: grid;
  gap: 18px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--creative-line-strong);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
  background:
    radial-gradient(circle at 100% 0, rgba(230, 110, 92, .11), transparent 31%),
    linear-gradient(140deg, rgba(245, 240, 230, .98), rgba(255, 253, 248, .96));
  box-shadow: var(--creative-shadow);
}

.creative-growth-page .creative-fit-proof > :where(h2, h3) {
  max-width: 22ch;
  margin: 0;
  color: var(--creative-ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.creative-growth-page .creative-fit-proof > p {
  max-width: 72ch;
  margin: 0;
  color: var(--creative-ink-soft);
  line-height: 1.65;
}

.creative-growth-page .creative-proof-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creative-growth-page .creative-proof-progress > * {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 98px;
  border: 1px solid var(--creative-line);
  border-radius: 11px;
  padding: 12px;
  background: rgba(255, 255, 255, .7);
  color: var(--creative-ink-soft);
}

.creative-growth-page .creative-proof-progress > * :where(span, small) {
  color: inherit;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.creative-growth-page .creative-proof-progress > * strong {
  color: inherit;
  font-size: .82rem;
  line-height: 1.35;
}

.creative-growth-page .creative-proof-progress > *.is-current,
.creative-growth-page .creative-proof-progress > *[aria-current="step"] {
  border-color: var(--creative-ink);
  background: var(--creative-ink);
  color: #fff;
}

.creative-growth-page .creative-proof-progress > *.is-complete {
  border-color: rgba(169, 71, 57, .42);
  background: #f8e7df;
  color: #71362d;
}

.creative-growth-page .creative-proof-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.creative-growth-page .creative-proof-actions :where(button, .button, a) {
  min-height: 46px;
}

.creative-growth-page .creative-blocker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.creative-growth-page .creative-blocker-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  min-height: 64px;
  border: 1px solid var(--creative-line);
  border-radius: 10px;
  padding: 12px;
  background: var(--creative-paper);
  color: var(--creative-ink);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.42;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.creative-growth-page .creative-blocker-grid label:has(input:checked),
.creative-growth-page .creative-blocker-grid label.is-selected {
  border-color: var(--creative-ink);
  background: var(--creative-sage);
  box-shadow: inset 0 0 0 1px var(--creative-ink);
}

.creative-growth-page .creative-blocker-grid input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--creative-coral-deep);
}

/* Qualified zero-or-one commerce outcome. */
.creative-growth-page :where(
  .creative-commerce-host,
  .creative-no-buy
) {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--creative-line);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 26px);
}

.creative-growth-page .creative-commerce-host {
  border-color: rgba(169, 71, 57, .35);
  background: rgba(255, 248, 240, .94);
}

.creative-growth-page .creative-no-buy {
  background: rgba(228, 236, 225, .84);
}

.creative-growth-page :where(
  .creative-commerce-host,
  .creative-no-buy
) :where(h3, h4) {
  margin: 0;
  color: var(--creative-ink);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  line-height: 1.1;
}

.creative-growth-page :where(
  .creative-commerce-host,
  .creative-no-buy
) p {
  margin: 0;
  color: var(--creative-ink-soft);
  line-height: 1.62;
}

.creative-growth-page .creative-commerce-host :where(
  .commerce-disclosure,
  [data-commerce-disclosure]
) {
  order: -1;
  margin: 0;
  border: 1px solid rgba(169, 71, 57, .3);
  border-left: 4px solid var(--creative-coral-deep);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbe8e1;
  color: #63362f;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.52;
}

.creative-growth-page .creative-commerce-host :where(
  .shop-link,
  .button
) {
  width: max-content;
  max-width: 100%;
  min-height: 46px;
}

.creative-growth-page .creative-commerce-host .starter-product-card {
  align-content: start;
  gap: 10px;
  min-height: 0;
}

/* Full crawlable path library beneath the matcher. */
.creative-growth-page .creative-path-library {
  overflow: hidden;
  border: 1px solid var(--creative-line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 253, 248, .82);
}

.creative-growth-page .creative-path-library > h2 {
  max-width: 20ch;
  text-wrap: balance;
}

.creative-growth-page .creative-path-library > p {
  max-width: 72ch;
  color: var(--creative-ink-soft);
  line-height: 1.65;
}

.creative-growth-page .creative-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.creative-growth-page .creative-path-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  border: 1px solid var(--creative-line);
  border-radius: 13px;
  padding: 18px;
  background: var(--creative-paper);
}

.creative-growth-page .creative-path-card.is-selected,
.creative-growth-page .creative-path-card[aria-current="true"] {
  border-color: var(--creative-coral-deep);
  box-shadow: inset 0 4px 0 var(--creative-coral);
}

.creative-growth-page .creative-path-card > span {
  color: var(--creative-coral-deep);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.creative-growth-page .creative-path-card h3 {
  margin: 12px 0 8px;
  color: var(--creative-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.08;
}

.creative-growth-page .creative-path-card p {
  margin: 0 0 14px;
  color: var(--creative-ink-soft);
  font-size: .86rem;
  line-height: 1.58;
}

.creative-growth-page .creative-path-card :where(button, a, .button) {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: auto;
}

/* Interaction and keyboard states */
.creative-growth-page :where(
  a,
  button,
  input,
  summary,
  [tabindex]
):focus-visible {
  outline: 3px solid #1554a0;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 253, 248, .94);
}

.creative-growth-page :where(
  button,
  .button,
  .shop-link
):disabled,
.creative-growth-page :where(
  button,
  .button,
  .shop-link
)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .5;
  transform: none !important;
}

.creative-growth-page :where(
  .creative-best-match,
  .creative-alternative-card,
  .creative-path-card,
  .creative-commerce-host,
  .creative-no-buy
) {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .creative-growth-page .creative-ranked {
    grid-template-columns: 1fr;
  }

  .creative-growth-page .creative-alternative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creative-growth-page .creative-alternative-grid > h3 {
    grid-column: 1 / -1;
  }

  .creative-growth-page .creative-filter-grid {
    grid-template-columns: 1fr;
  }

  .creative-growth-page :where(
    .creative-filter-options,
    .creative-filter-buttons,
    .creative-filter-grid fieldset > div
  ) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .creative-growth-page .creative-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creative-growth-page .creative-blocker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .creative-growth-page .creative-task-rail {
    grid-template-columns: 1fr;
  }

  .creative-growth-page .creative-task-rail > * {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .creative-growth-page .creative-task-rail > *:last-child {
    border-bottom: 0;
  }

  .creative-growth-page #creative-fit-chooser,
  .creative-growth-page .creative-fit-proof,
  .creative-growth-page .creative-path-library {
    border-radius: 16px;
    padding: 18px;
  }

  .creative-growth-page :where(
    .creative-filter-options,
    .creative-filter-buttons,
    .creative-filter-grid fieldset > div
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creative-growth-page .creative-filter-grid button {
    width: 100%;
    min-height: 48px;
    padding-inline: 9px;
  }

  .creative-growth-page :where(
    .creative-alternative-grid,
    .creative-best-specs,
    .creative-proof-progress,
    .creative-blocker-grid,
    .creative-path-grid
  ) {
    grid-template-columns: 1fr;
  }

  .creative-growth-page .creative-alternative-grid > h3 {
    grid-column: auto;
  }

  .creative-growth-page .creative-proof-progress > * {
    min-height: 0;
  }

  .creative-growth-page .creative-proof-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .creative-growth-page .creative-proof-actions :where(
    button,
    .button,
    a
  ),
  .creative-growth-page .creative-best-match :where(
    .button,
    button,
    a
  ),
  .creative-growth-page .creative-commerce-host :where(
    .shop-link,
    .button
  ),
  .creative-growth-page .creative-path-card :where(
    button,
    a,
    .button
  ) {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .creative-growth-page :where(
    .creative-filter-options,
    .creative-filter-buttons,
    .creative-filter-grid fieldset > div
  ) {
    grid-template-columns: 1fr;
  }

  .creative-growth-page #creative-fit-chooser > h2 {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creative-growth-page *,
  .creative-growth-page *::before,
  .creative-growth-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
