/* Freshly Made marketing foundation. Opt in per template while migrating. */
@font-face { font-family: "DM Sans"; src: url("/previews/freshly-made/assets/dm-sans-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/previews/freshly-made/assets/dm-sans-semibold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("/previews/freshly-made/assets/dm-serif-display.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("/previews/freshly-made/assets/dm-serif-display-italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
:root, :root[data-theme="dark"] {
  --fresh-serif: "DM Serif Display", Georgia, serif;
  --fresh-sans: "DM Sans", Arial, sans-serif;
  --ink: #211e28; --panel: #2b2732;
  --surface-0: #211e28; --surface-1: #2b2732; --surface-2: #302a36; --surface-3: #3b3344;
  --text: #f5ede3; --headline: #f5ede3; --sub: #c0b7c4;
  --text-soft: #c0b7c4; --text-muted: #c0b7c4; --text-dim: #b6a9bd;
  --line: #4a414f; --edge: #786884; --muted: #3b3344;
  --primary: #ceb4f7; --primary-hover: #e0ccff; --accent: #ceb4f7; --accent2: #ceb4f7; --link: #ceb4f7;
  --btn-text: #2c1c43; --ghost-text: #f5ede3; --ghost-border: #4a414f;
  --nav-link: #f5ede3; --nav-link-hover: #ceb4f7; --hdr-bg: #211e28;
  --fresh-lilac: #494052; --fresh-peach: #524238; --fresh-footer: #27222d;
  --marketing-card-radius: 12px; --marketing-card-shadow: none;
  --marketing-accent-gradient: linear-gradient(110deg,#ceb4f7,#ceb4f7);
  --focus-ring: #ceb4f7; --theme-color: #211e28; --nav-offset: 96px;
}
:root[data-theme="light"] {
  --ink: #f8f5ee; --panel: #fffcf7;
  --surface-0: #f8f5ee; --surface-1: #fffcf7; --surface-2: #f0ece3; --surface-3: #e9e0f2;
  --text: #302c2a; --headline: #302c2a; --sub: #6c6662;
  --text-soft: #6c6662; --text-muted: #6c6662; --text-dim: #766e69;
  --line: #ded8cf; --edge: #b5a5bd; --muted: #e9e0f2;
  --primary: #6242a5; --primary-hover: #4d318c; --accent: #6242a5; --accent2: #6242a5; --link: #6242a5;
  --btn-text: #fffaf5; --ghost-text: #302c2a; --ghost-border: #ded8cf;
  --nav-link: #302c2a; --nav-link-hover: #6242a5; --hdr-bg: #f8f5ee;
  --fresh-lilac: #e9e0f2; --fresh-peach: #f2e3d5; --fresh-footer: #eee9df;
  --marketing-accent-gradient: linear-gradient(110deg,#6242a5,#6242a5);
  --focus-ring: #6242a5; --theme-color: #f8f5ee;
}
body.fresh-marketing { min-width: 0; background: var(--ink); color: var(--text); font-family: var(--fresh-sans); }
.fresh-marketing button, .fresh-marketing input, .fresh-marketing select { font-family: var(--fresh-sans); }
.fresh-marketing .wrap { width: calc(100% - 96px); max-width: 1460px; padding-inline: 0; }
.fresh-marketing h1, .fresh-marketing h2, .fresh-marketing h3 { color: var(--headline); }
.fresh-marketing :is(a,button,input,select):focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.fresh-marketing .btn { border-radius: 6px; box-shadow: none; font-weight: 600; letter-spacing: 0; min-height: 46px; padding: 13px 20px; }
:root .fresh-marketing .btn--primary { background: var(--primary); color: var(--btn-text); border: 1px solid var(--primary); box-shadow: none; }
:root .fresh-marketing .btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: none; filter: none; }
.fresh-marketing .btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.fresh-eyebrow { color: var(--text-soft); font: 600 11px/1.5 var(--fresh-sans); letter-spacing: .14em; text-transform: uppercase; }
.fresh-header { position: relative; background: var(--ink); backdrop-filter: none; border-bottom: 1px solid var(--line); }
.fresh-header .hdr__row { display: flex; align-items: center; gap: 26px; min-height: 96px; padding-block: 16px; }
.fresh-header .brand { width: 190px; flex: 0 0 auto; margin-right: auto; }
.fresh-header .brand__logo { width: 100%; height: auto; }
.fresh-header .nav { display: flex; gap: 26px; padding: 0; margin: 0; }
.fresh-header .nav a { font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--text); padding: 0; background: none; border: 0; }
.fresh-header .nav a:hover { color: var(--primary); }
.fresh-header .hdr__cta { display: flex; align-items: center; gap: 16px; }
.fresh-header .hdr__cta .btn--primary { min-height: 48px; font-size: 14px; gap: 24px; white-space: nowrap; }
.fresh-header .btn--theme { border: 0; width: 34px; min-height: 40px; padding: 4px; font-size: 23px; background: none; color: var(--text); }
.fresh-header .btn--theme [data-theme-toggle-icon] { font-size: 23px; color: var(--text); }
.fresh-header .burger { background: none; border: 0; color: var(--text); width: 38px; height: 40px; font-size: 24px; padding: 4px; }
.fresh-header .nav--mobile { background: var(--ink); border-color: var(--line); }
.fresh-footer { margin-top: 80px; padding: 64px 0 26px; border-top: 1px solid var(--line); background: var(--fresh-footer); }
.fresh-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.fresh-footer .brand { display: block; width: 185px; }
.fresh-footer .brand__logo { width: 100%; height: auto; }
.fresh-footer__brand p { font-size: 13px; color: var(--text-soft); margin-top: 20px; }
.fresh-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fresh-footer nav strong { font-size: 14px; margin-bottom: 7px; }
.fresh-footer a { color: var(--text-soft); text-decoration: none; font-size: 13px; }
.fresh-footer a:hover { color: var(--primary); }
.fresh-footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; }
.fresh-footer__bottom > div { display: flex; gap: 20px; }
.fresh-footer .ftr__copy { font-size: 12px; color: var(--text-soft); margin: 0; }

/* Collection: a quiet editorial introduction, then functional browsing. */
.hub-hero { background: var(--ink); padding: 55px 0 42px; }
.hub-hero__inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 30px; }
.hub-hero .fresh-eyebrow { font-size: 11px; margin: 0 0 22px; letter-spacing: .14em; }
.hub-hero h1 { font: 400 clamp(45px,5vw,76px)/1.04 var(--fresh-serif); letter-spacing: -.035em; margin: 0 0 22px; }
.hub-hero h1 em { color: var(--primary); font-weight: 400; }
.hub-hero .collection-intro > p:not(.fresh-eyebrow) { max-width: 520px; font-size: 16px; line-height: 1.75; }
.collection-steps { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; align-items: center; font-size: 12px; color: var(--text-soft); }
.collection-steps b { font-size: 20px; font-weight: 400; color: var(--primary); }
.collection-art { position: relative; width: 100%; max-width: 500px; height: 300px; justify-self: end; isolation: isolate; }
.collection-art img { height: auto; }
.collection-art__disc { position: absolute; inset: 0 10% 0 7%; background: var(--fresh-lilac); border-radius: 50%; z-index: -1; }
.collection-art__flower { position: absolute; width: 58%; left: 1%; top: -6%; transform: rotate(-15deg); }
.collection-art__rex { position: absolute; width: 59%; right: 0; bottom: -4%; transform: rotate(12deg); }
.collection-art__spark { position: absolute; right: 9%; top: 0; color: var(--primary); font-size: 42px; }
#catalog-shell { padding-top: 42px; padding-bottom: 0; max-width: 1460px; }
.catalog-layout { grid-template-columns: 220px minmax(0,1fr); gap: 38px; }
.catalog-filters { top: 24px; max-height: calc(100vh - 48px); padding-right: 24px; }
.catalog-filter-group { padding: 20px 0; }
.catalog-filter-group legend { font-size: 13px; color: var(--text); }
.catalog-filter-option, .catalog-price-option { font-size: 13px; }
.catalog-filter-option input, .catalog-price-option input { accent-color: var(--primary); }
.catalog-tools { padding: 0; margin-bottom: 24px; background: none; border: 0; box-shadow: none; }
.fresh-marketing .catalog-tools input[type="search"] { border-radius: 7px; background: var(--surface-1); border: 1px solid var(--line); min-height: 54px; padding: 15px 18px; font-size: 16px; color: var(--text); }
.catalog-tools__search input::placeholder { color: var(--text-muted); opacity: 1; }
.catalog-results__meta { margin-top: 18px; }
.catalog-sort select { background: var(--surface-1); border: 1px solid var(--line); color: var(--text); padding: 9px 12px; border-radius: 5px; }
.catalog-result-count { color: var(--text-soft); font-size: 13px; }
.catalog-active-filter { background: var(--fresh-lilac); color: var(--text); border: 1px solid var(--line); border-radius: 5px; }
.hub-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.tmpl-card { border-radius: 10px; background: var(--surface-1); box-shadow: none; }
.tmpl-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px #0000000b; }
.tmpl-card__img { aspect-ratio: 4/3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tmpl-card__img img { object-fit: contain; transition: transform .25s; }
.tmpl-card:hover img { transform: scale(1.035); }
.tmpl-card__body { gap: 12px; padding: 20px; }
.tmpl-card__title { font: 400 25px/1.15 var(--fresh-serif); letter-spacing: -.02em; }
.tmpl-card__tag { border: 0; padding: 0; color: var(--text-soft); font-size: 11px; }
.tmpl-card__tag + .tmpl-card__tag::before { content: '·'; margin-right: 7px; }
.tmpl-card__footer { font-size: 12px; padding-top: 10px; margin-top: auto; color: var(--primary); }
.free-pill.design-card__badge, .free-pill { background: var(--primary); color: var(--btn-text); border: 0; border-radius: 5px; padding: 6px 10px; box-shadow: none; }
.catalog-empty { padding: 55px 25px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-1); }
.catalog-empty h2 { font: 400 32px/1.1 var(--fresh-serif); }

/* Design detail: the actual tool is the hero; controls stay in one clear column. */
.prod-hero { padding: 44px 0 56px; background: var(--ink); border-bottom: 1px solid var(--line); }
.prod-hero__grid { grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); column-gap: clamp(35px,5vw,80px); align-items: center; }
.prod-hero__visual { grid-column: 1; grid-row: 1; min-width: 0; }
.prod-hero__content { grid-column: 2; grid-row: 1; min-width: 0; text-align: left; }
.back-row { margin-bottom: 18px; }
.back-link { font-size: 12px; color: var(--primary); }
.crumb-text { font-size: 11px; margin-bottom: 24px; color: var(--text-soft); }
.prod-hero__content .fresh-eyebrow { margin: 0 0 16px; }
.prod-hero__content h1 { font: 400 clamp(36px,3.9vw,62px)/1.06 var(--fresh-serif); letter-spacing: -.03em; margin: 0 0 22px; background: none; -webkit-text-fill-color: currentColor; color: var(--headline); }
.prod-hero__desc { font-size: 15px; line-height: 1.75; color: var(--text-soft); margin: 0 0 26px; max-width: 55ch; }
.product-preview-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text-soft); margin-bottom: 16px; }
.product-preview-heading > span:first-child { text-transform: uppercase; letter-spacing: .12em; }
.product-preview-heading > span:last-child { display: flex; gap: 10px; align-items: center; }
.product-preview-heading > span:last-child span { color: var(--primary); font-size: 24px; }
.prod-image-card { border-radius: 50% 50% 12px 12px; border: 1px solid var(--line); background: var(--fresh-peach); box-shadow: none; aspect-ratio: 1/1; }
.prod-image-card img { object-fit: contain; }
.prod-image-card .free-pill { top: auto; bottom: 18px; right: 18px; }
.product-preview-note { color: var(--text-soft); font-size: 12px; line-height: 1.5; margin: 15px 0 0; text-align: center; }
.style-selector { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.style-selector__label { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 15px; margin-bottom: 14px; }
.style-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.style-card { border-radius: 6px; background: var(--surface-1); min-height: 62px; padding: 10px 5px; box-shadow: none; }
.style-card__name { font-size: 12px; font-weight: 600; }
.style-card:hover { transform: translateY(-2px); background: var(--fresh-lilac); box-shadow: none; }
.style-selector__sub .btn { gap: 18px; min-height: 54px; font-size: 14px; }
.style-selector__sub { opacity: 1; }
.prod-hero__meta { font-size: 11px; flex-wrap: wrap; gap: 9px; margin-top: 20px; justify-content: flex-start; }
.prod-price { margin-top: 22px; padding: 18px 20px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.prod-price__label { color: var(--text-soft); }
.prod-price__amount { color: var(--primary); }
.prod-price__breakdown { font-size: 12px; white-space: normal; }
.feature-grid { margin: 44px 0 50px; gap: 24px; }
.feature-card { padding: 24px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.feature-card:hover { transform: none; }
.icon-box { color: var(--primary); background: var(--fresh-lilac); border-radius: 50%; }
.feature-card h3 { font: 400 25px/1.1 var(--fresh-serif); margin-bottom: 12px; }
.feature-card p { font-size: 14px; line-height: 1.7; }
.learn-section { padding: 30px; border: 1px solid var(--line); background: var(--surface-1); border-radius: 10px; box-shadow: none; }
.learn-section h2 { font: 400 34px/1.15 var(--fresh-serif); padding-left: 0; margin-bottom: 20px; }
.learn-section h2::before { display: none; }
.learn-section ul.list, .learn-section p { font-size: 15px; line-height: 1.75; }
.learn-section details { border-color: var(--line); padding: 17px 0; }
.learn-section details summary { font-size: 15px; }
.guide-layout { gap: 24px; }
.sticky-bar, .scroll-open { background: var(--surface-1); border-color: var(--line); box-shadow: 0 -4px 18px #0000000a; }
.scroll-open { border-radius: 10px; }
/* Override the legacy light-theme gradients without changing other pages. */
:root .fresh-marketing :is(.learn-section,.guide-cta,.scroll-open,.prod-price) { background: var(--surface-1); border: 1px solid var(--line); box-shadow: none; }
:root .fresh-marketing :is(.guide-cta,.scroll-open) .btn { box-shadow: none; }

@media (max-width: 1150px) {
  .fresh-marketing .wrap { width: calc(100% - 64px); }
  .fresh-header .hdr__row { gap: 20px; }
  .fresh-header .brand { width: 165px; }
  .fresh-header .nav { gap: 18px; }
  .fresh-header .nav a { font-size: 13px; }
  .fresh-header .hdr__cta { gap: 10px; }
  .fresh-header .hdr__cta .btn--primary { font-size: 13px; gap: 12px; padding-inline: 15px; }
  .catalog-layout { grid-template-columns: 195px minmax(0,1fr); gap: 24px; }
  .hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .hub-hero h1 { font-size: 60px; }
  .collection-art { height: 250px; }
  .style-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .style-card:nth-last-child(-n+2) { min-height: 48px; }
}
@media (max-width: 900px) {
  .fresh-header .nav { display: none; }
  .fresh-header .burger { display: block; }
  .fresh-header .hdr__row { min-height: 84px; }
  .hub-hero h1 { font-size: 49px; }
  .collection-art { height: 220px; }
  .collection-steps { gap: 8px; font-size: 11px; }
  .fresh-footer__grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .prod-hero__grid { column-gap: 30px; }
}
@media (max-width: 820px) {
  .catalog-layout { grid-template-columns: minmax(0,1fr); }
  .catalog-filters { position: static; max-height: none; padding: 20px; border: 1px solid var(--line); background: var(--surface-1); }
  .catalog-filters[data-open="false"] { display: none; }
  .catalog-mobile-bar { margin-bottom: 20px; }
  .catalog-mobile-toggle { background: var(--surface-1); color: var(--text); border: 1px solid var(--line); border-radius: 6px; min-height: 44px; }
  .prod-hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .prod-hero__visual { order: 0; width: min(100%,510px); margin-inline: auto; }
  .prod-hero__content { order: 1; }
  .prod-hero__content h1 { font-size: 46px; }
  .style-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .style-card:nth-last-child(-n+2) { min-height: 62px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .fresh-marketing .wrap { width: calc(100% - 40px); }
  .fresh-header .hdr__row { gap: 12px; min-height: 72px; padding-block: 12px; }
  .fresh-header .brand { width: 130px; }
  .fresh-header .hdr__cta { gap: 7px; }
  .fresh-header .hdr__cta .btn--primary { min-height: 42px; font-size: 12px; gap: 7px; padding-inline: 10px; }
  .fresh-header .btn--theme { width: 28px; }
  .fresh-header .burger { width: 28px; font-size: 22px; }
  .hub-hero { padding: 35px 0 30px; }
  .hub-hero__inner { grid-template-columns: 1fr; gap: 22px; }
  .hub-hero .fresh-eyebrow { font-size: 10px; margin-bottom: 17px; }
  .hub-hero h1 { font-size: clamp(40px,8vw,52px); margin-bottom: 18px; }
  .hub-hero .collection-intro > p:not(.fresh-eyebrow) { font-size: 14px; }
  .collection-steps { font-size: 11px; gap: 10px; margin-top: 18px; }
  .collection-art { max-width: 300px; height: 165px; justify-self: center; }
  .collection-art__flower { width: 54%; left: 5%; }
  .collection-art__rex { width: 53%; right: 6%; }
  .collection-art__spark { font-size: 30px; }
  #catalog-shell { padding-top: 28px; }
  .hub-grid { gap: 15px; }
  .tmpl-card__body { padding: 15px; gap: 10px; }
  .tmpl-card__title { font-size: 24px; }
  .catalog-sort { font-size: 12px; }
  .catalog-sort select { max-width: 145px; font-size: 12px; }
  .catalog-results__meta { gap: 12px; flex-wrap: wrap; }
  .prod-hero { padding: 28px 0 35px; }
  .prod-hero__visual { max-width: 390px; }
  .product-preview-heading { font-size: 10px; margin-bottom: 12px; }
  .product-preview-note { font-size: 11px; }
  .prod-hero__content h1 { font-size: 42px; }
  .prod-hero__desc { font-size: 14px; }
  .style-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .style-card:nth-last-child(-n+2) { min-height: 50px; }
  .feature-grid { grid-template-columns: 1fr; margin-block: 30px; gap: 14px; }
  .feature-card { padding: 22px; }
  .learn-section { padding: 24px 20px; }
  .learn-section h2 { font-size: 30px; }
  .learn-section ul.list, .learn-section p { font-size: 14px; }
  .sticky-bar { gap: 15px; padding-inline: 16px; }
  .sticky-bar__info { min-width: 0; }
  .sticky-bar__title { font-size: 12px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-bar .btn { font-size: 12px; min-height: 42px; padding: 10px 14px; white-space: nowrap; }
  .fresh-footer { margin-top: 45px; padding-top: 40px; }
  .design-detail .fresh-footer { padding-bottom: 100px; }
  .fresh-footer__grid { gap: 30px 20px; }
  .fresh-footer__brand { grid-column: 1/-1; }
  .fresh-footer__bottom { flex-direction: column; gap: 15px; }
}
@media (max-width: 520px) {
  .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .fresh-header .hdr__cta .btn--primary { display: none; }
  .collection-steps { gap: 6px; font-size: 10px; }
  .prod-hero__content h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .tmpl-card, .tmpl-card img, .style-card { transition: none; }
}
