:root {
  --flower-paper: #f7f7f7;
  --flower-card: #f2f2f2;
  --flower-white: #fff;
  --flower-ink: #222;
  --flower-muted: #565656;
  --flower-line: #dedede;
  --flower-card-edge: #d1d1d1;
  --flower-yellow: #ffc400;
  --flower-purple: #6c3bd2;
  --ink: var(--flower-ink);
  --paper: var(--flower-paper);
  --olive: var(--flower-ink);
  accent-color: var(--flower-yellow);
}

body main .support-email-label { color: #555; font-weight: 400; }
body main a.support-email {
  color: #222;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
  text-decoration-skip-ink: none;
  overflow-wrap: anywhere;
  border-radius: 2px;
}
body main a.support-email:hover { text-decoration-thickness: 2px; }
body main a.support-email:focus-visible { outline: 2px solid #222; outline-offset: 3px; }

body, .intro, .collection, .model-explorer, .explorer-info,
.order-issue-page {
  background: var(--flower-paper);
  color: var(--flower-ink);
}
body header, body header nav { background: var(--flower-white); }
body header { border-bottom: 1px solid var(--flower-card-edge); }
.home-hero-stage, .home-guide-stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--flower-paper);
}
.home-guide-stage {
  display: flow-root;
  --grid-rest: .15;
  --grid-peak: .38;
  --grid-scale: 1.01;
}
body .intro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(22px, 3.5vw, 48px) clamp(20px, 2.6vw, 35px);
  border-bottom: 1px solid var(--flower-line);
}
.home-hero-stage .intro, .home-guide-stage .starter-section { background: transparent; }
:is(.home-hero-stage, .home-guide-stage)::before {
  --intro-grid-cell: clamp(28px, 4vw, 44px);
  --intro-grid-line: #cdcdcd;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at center, #f7f7f7f5 10%, #f7f7f7b8 42%, transparent 85%),
    linear-gradient(to right, var(--intro-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--intro-grid-line) 1px, transparent 1px);
  background-size: 100% 100%, var(--intro-grid-cell) var(--intro-grid-cell), var(--intro-grid-cell) var(--intro-grid-cell);
  background-position: center;
  opacity: var(--grid-peak, .5);
}
@media (prefers-reduced-motion: no-preference) {
  :is(.home-hero-stage, .home-guide-stage)::before { animation: intro-grid-breathe 6s ease-in-out infinite; }
}
@keyframes intro-grid-breathe {
  0%, 100% { opacity: var(--grid-rest, .07); transform: scale(1); }
  50% { opacity: var(--grid-peak, .95); transform: scale(var(--grid-scale, 1.035)); }
}
body .intro .intro-product-copy { color: var(--flower-muted); }
body .intro .intro-dispatch-copy { margin-bottom: 0; }
.home-page main :is(.feature-heading, .arrangement-heading, .faq-intro, .catalogue-heading) > h2,
.home-page .starter-section > h2 {
  font-weight: 550;
  text-wrap: balance;
}
.home-page .arrangement-heading {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.home-page .arrangement-heading > p {
  max-inline-size: 62ch;
  text-wrap: balance;
}
/* Keep the four model/assembly sections compact without changing their hierarchy. */
.home-page :is(#collection, #arrangement, #assembly, #hardware) > h2,
.home-page :is(#arrangement, #assembly, #hardware) .arrangement-heading > h2 {
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.16;
}
.home-page .arrangement.section-pad { padding: clamp(24px, 2.4vw, 36px) clamp(16px, 2.4vw, 36px); }
.home-page .arrangement-heading { gap: 8px; margin-bottom: 16px; }
.home-page .arrangement-label { padding: 6px 10px; font-size: 12px; }
.home-page .arrangement-heading > p { font-size: 14px; line-height: 1.5; }
.home-page .arrangement-tabs { margin-bottom: 14px; padding: 4px; max-width: 580px; }
.home-page .arrangement-tabs button { min-height: 40px; padding: 7px 10px; font-size: 13px; }
.home-page .arrangement-details { padding: clamp(18px, 2vw, 28px); }
.home-page .arrangement-details > h3 { font-size: clamp(23px, 2vw, 28px); line-height: 1.15; margin-block: 6px 10px; }
.home-page .arrangement-details > p { font-size: 14px; line-height: 1.55; margin-block: 8px; }
.home-page .arrangement-details .eyebrow { margin-bottom: 8px; font-size: 12px; }
.home-page :is(.size-views, .arrangement-links) { margin-top: 12px; gap: 6px; }
.home-page .size-views button, .home-page .arrangement-links a { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.home-page .build-guide { margin-top: 20px; }
.home-page .build-steps li { padding-block: 8px; }
.home-page .build-steps h3 { font-size: 18px; line-height: 1.25; }
.home-page .build-steps p, .home-page .hardware-note { font-size: 13px; line-height: 1.55; }
.home-page .hardware-table th, .home-page .hardware-table td { padding-block: 7px; }
.home-page .starter-section.section-pad { padding-block: 24px 28px; }
.home-page .starter-section > h2 { margin-bottom: 12px; }
.home-page .starter-section .starter-section-sub { margin: 0 auto 16px; font-size: 14px; line-height: 1.5; }
.home-page .starter-picker { padding: 14px 20px; }
.home-page .starter-options { margin-bottom: 10px; }
.home-page .starter-options button { padding: 8px 12px; }
.home-page .starter-image img { width: auto; max-width: 100%; height: 320px; aspect-ratio: auto; object-fit: contain; }
.home-page .starter-details { padding: 22px; }
.home-page .starter-details h3 { font-size: clamp(23px, 2vw, 28px); }
.home-page .starter-details p { font-size: 14px; line-height: 1.55; margin-block: 8px 12px; }
.home-page .starter-exterior { margin-block: 12px 8px; }
.home-page .starter-exterior dd { font-size: 18px; }
@media (max-width: 767px) {
  .home-page .arrangement.section-pad { padding: 22px 16px; }
  .home-page .arrangement-heading { gap: 7px; margin-bottom: 14px; }
  .home-page .arrangement-details { padding: 18px; }
  .home-page .starter-picker { padding: 10px; }
  .home-page .starter-details { padding: 18px; }
  .home-page .starter-image img { height: 260px; }
  .home-page .arrangement-tabs button, .home-page .size-views button, .home-page .arrangement-links a { min-height: 44px; }
}
@media (max-width: 767px) {
  .home-page main :is(.feature-heading, .arrangement-heading, .faq-intro, .catalogue-heading) > h2,
  .home-page .starter-section > h2 {
    font-size: clamp(24px, 7.4vw, 29px);
    line-height: 1.18;
  }
  .home-page .arrangement-heading > h2,
  .home-page .starter-section > h2 {
    max-inline-size: 17ch;
    margin-inline: auto;
  }
  .home-page .arrangement-heading > p,
  .home-page .starter-section-sub {
    max-inline-size: 32ch;
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
  }
}
.intro-actions { gap: 12px; }
body .intro .intro-build-link { padding: 8px 16px; text-decoration: none; }
.feature-card { background: var(--flower-card); border: 1px solid var(--flower-card-edge); }

body .starter-picker, body .arrangement.section-pad,
body .catalogue-offer, body #compose {
  background: var(--flower-card);
  color: var(--flower-ink);
  border: 1px solid var(--flower-card-edge);
  border-radius: 10px;
}
.home-page .faq-section {
  width: 100%;
  padding-inline: max(24px, 8vw);
  background: var(--flower-white);
  color: var(--flower-ink);
  border-top: 1px solid var(--flower-line);
  border-radius: 0;
}
.home-page .catalogue-band {
  display: flow-root;
  background: var(--flower-paper);
  border-top: 1px solid var(--flower-line);
}
body .starter-panel, body .arrangement-panel, body .catalogue-licence,
body .explorer-figure, body .storage-panel, body .print-card, body .gridfinity-metric,
body .printer-selection, body .explorer-metrics > div:not(.overview-metrics > div) {
  background: var(--flower-white);
  color: var(--flower-ink);
  border: 1px solid var(--flower-card-edge);
  border-radius: 8px;
}
body :is(.starter-details p, .starter-exterior dt, .starter-details .eyebrow,
  .arrangement-heading p, .arrangement-details p, .arrangement-details .eyebrow, .faq-intro p,
  .faq-questions p, .catalogue-heading p, .catalogue-facts dt, .catalogue-benefits span,
  #catalogue-net span, #catalogue-total, .hardware-render figcaption, .hardware-table thead th,
  .explorer-kicker, .overview-metrics h3, .storage-stats span, .print-card h3,
  .explorer-details dt, .printer-fit-grid th) { color: var(--flower-muted); }
body :is(.faq-questions a, .hardware-table caption), body .build-steps li::before { color: var(--flower-purple); }
body :is(.starter-exterior, .faq-questions details, .build-steps li, .hardware-table th, .hardware-table td,
  .explorer-details, .explorer-details dl > div, .print-subtotals > div,
  .printer-fit-grid th, .printer-fit-grid td, #printer-fit, #stack-plan li) { border-color: var(--flower-line); }

body :is(.button.dark, .button.light), body .contact-form .contact-submit, body .order-issue-button,
body .catalogue-licence .button.light, body #stack-add, body header .nav-shop {
  background: var(--flower-yellow);
  color: var(--flower-ink);
  border-color: transparent;
  border-radius: 6px;
}
body header .nav-shop { padding: 8px 12px; }
body :is(.button.dark, .button.light, .contact-form .contact-submit, .order-issue-button, #stack-add, header .nav-shop):hover,
body .catalogue-licence .button.light:hover { background: #eeb500; color: var(--flower-ink); }
body :is(.intro .intro-build-link, .starter-details .starter-actions a, .arrangement-label,
  .arrangement-tabs, .arrangement-links a, .size-views button, .starter-options button,
  .explorer-modes a, .explorer-tabs button, .printer-mode) {
  background: #eaeaea;
  color: var(--flower-ink);
  border-color: var(--flower-line);
  border-radius: 6px;
}
body .starter-details .starter-actions a:hover, body .intro .intro-build-link:hover { background: #dedede; }
body :is(.starter-options, .arrangement-tabs, .size-views, .size-picker-options, .explorer-tabs) button,
body .explorer-modes a,
body .printer-fit-grid button {
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
body :is(.starter-options, .arrangement-tabs, .size-views, .size-picker-options, .explorer-tabs) button:is([aria-pressed="true"], :active),
body .explorer-modes a:is([aria-current], :active),
body .printer-fit-grid button:active {
  background: var(--flower-yellow);
  color: var(--flower-ink);
  box-shadow: inset 0 0 0 2px var(--flower-ink);
}
body :is(.button.dark, .button.light) { transition: transform .2s; }
body :is(.button.dark, .button.light, .contact-form .contact-submit, .order-issue-button, #stack-add, header .nav-shop):active {
  background: var(--flower-yellow);
  color: var(--flower-ink);
}
body .model-explorer :is(select, input) {
  background: var(--flower-white);
  color: var(--flower-ink);
  border-color: #adadad;
  color-scheme: light;
}
body .storage-envelope { background: #efefef; }
body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--flower-purple);
  outline-offset: 3px;
}

/* Fine charcoal grain for the trial footers. */
footer.global-footer {
  background: #222 url("assets/flower-footer-grain.png") repeat;
  color: #f5f5f5;
  border-top-color: #404040;
}
.global-footer .brand-logo { filter: invert(1); }
footer.global-footer :is(.newsletter-consent, .footer-signup-status) { color: #d5d5d5; }
.global-footer .footer-email-field {
  background: #303030;
  border-color: #747474;
}
.global-footer .footer-email-field input { color: #f5f5f5; }
.global-footer .footer-email-field input::placeholder { color: #ccc; }
.global-footer .footer-email-field button { color: #ffcf27; }
.global-footer :is(a, button, input):focus-visible { outline-color: #ffcf27; }
