/* FoilFinder shared base styles — loaded after _tokens.css on every page.
 *
 * Defines: body background, flow-page layout, shared chrome (crumbs, page
 * titles, section eyebrows), and the button kit. All user-facing pages share
 * these; page-specific CSS files add only what's unique to that route.
 *
 * Load order: _tokens.css → large-triangles.css → _base.css → site_chrome.css → page-specific
 */

@import url("next_steps.css");

/* --- Body --- */
body {
  background: var(--bg);
  color: var(--charcoal);
  margin: 0;
  padding: 0;
  font-family:
    "Barlow",
    -apple-system,
    system-ui,
    sans-serif;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Soft radial wash over the cream background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      900px 700px at 8% -10%,
      rgba(160, 74, 252, 0.06),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 105% 12%,
      rgba(0, 119, 170, 0.05),
      transparent 55%
    ),
    radial-gradient(
      700px 500px at 50% 110%,
      rgba(238, 182, 27, 0.04),
      transparent 60%
    );
}

/* --- Flow-page layout --- */
/* Used by /home/*, content pages, and catalog shell.
 * Pages add a scoped modifier (e.g. <main class="flow-page qg-page">) to override
 * max-width or spacing without re-defining the whole rule.
 */
.flow-page {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 24px 4em;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex: 1;
}
.flow-page.wide {
  max-width: 1100px;
}
.flow-page.narrow {
  max-width: 740px;
}
@media (max-width: 600px) {
  .flow-page {
    padding: 0 12px 3em;
    margin-top: 20px;
  }
}

/* --- Breadcrumb trail --- */
.crumbs {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.crumbs a {
  color: var(--teal);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs .sep {
  margin: 0 8px;
}

/* --- Page title + subtitle --- */
.flow-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 0 0 10px;
  line-height: 1.15;
}
.flow-title .accent {
  color: var(--purple);
}
.flow-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.5;
}

/* --- Section eyebrow (label above a section card) --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.section-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

/* --- Section card (white panel with shadow) ---
 * .section is the canonical home-flow content block (HOME_FLOWS.md §1).
 * .section-card is a legacy alias retained for size_collection.html.
 * Keep them visually identical.
 */
.section,
.section-card {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 30px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .section,
  .section-card {
    padding: 22px 18px;
  }
}

/* --- Button kit ---
 * .btn-cta     — purple pill, primary action (also defined in site_chrome.css for
 *                admin/catalog pages that don't load _base.css; keep in sync)
 * .btn-outline — teal outline, secondary action
 * .btn-ghost   — transparent, tertiary/skip actions
 */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  background: var(--purple);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-press);
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    background 0.15s;
}
.btn-cta:hover {
  background: var(--purple-deep);
  color: #fff;
}
.btn-cta:active {
  transform: translateY(2px);
  box-shadow: none;
}
.btn-cta:disabled {
  background: #c9a0f8;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--charcoal);
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-press);
  transition:
    transform 0.08s,
    border-color 0.15s,
    color 0.15s;
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  padding: 14px 8px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover {
  color: var(--purple);
}
