/* Dizaf 2026 — loaded after theme.css. Restyles every public page and draws the home page (dzh-*). */
:root {
  --dz-ground: #F1F1EC;
  --dz-panel: #E6E6DF;
  --dz-paper: #FFFFFF;
  --dz-ink: #0F1311;
  --dz-ink-2: #3D4440;
  --dz-accent: #0C6B4E;
  --dz-accent-dark: #08513A;
  --dz-lime: #D3F15A;
  --dz-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dz-max: 1240px;
  --tone: #0C6B4E;
  --tone-soft: #DCEBE4;
  --tone-ink: #08513A;
  /* legacy tokens still read by theme.css / app.css */
  --md-primary: var(--dz-accent);
  --md-primary-dark: var(--dz-accent-dark);
  --md-primary-container: #DCEBE4;
  --md-secondary: var(--dz-lime);
  --md-on-secondary: var(--dz-ink);
  --md-surface: var(--dz-ground);
  --md-surface-container: var(--dz-paper);
  --md-outline: #DADAD2;
  --md-outline-strong: #BDBDB3;
  --md-on-surface: var(--dz-ink);
  --md-on-surface-variant: var(--dz-ink-2);
  --md-font: var(--dz-font);
}

/* tones: one colour per health goal, shared with the product page families */
.dz-tone[data-tone="ember"]  { --tone: #D9531E; --tone-soft: #F8E3D8; --tone-ink: #8F3410; }
.dz-tone[data-tone="teal"]   { --tone: #0E8C7D; --tone-soft: #DCF0EC; --tone-ink: #0A5F55; }
.dz-tone[data-tone="indigo"] { --tone: #3F4A8C; --tone-soft: #E2E4F0; --tone-ink: #2C3466; }
.dz-tone[data-tone="bronze"] { --tone: #9A6A1E; --tone-soft: #F1E7D6; --tone-ink: #6A4710; }
.dz-tone[data-tone="mint"]   { --tone: #13958A; --tone-soft: #DCF2EF; --tone-ink: #0B655D; }
.dz-tone[data-tone="sage"]   { --tone: #557A35; --tone-soft: #E6EDDD; --tone-ink: #3A5623; }
.dz-tone[data-tone="rose"]   { --tone: #A8506A; --tone-soft: #F3E1E6; --tone-ink: #763549; }
.dz-tone[data-tone="sky"]    { --tone: #2766C9; --tone-soft: #E0EAF8; --tone-ink: #1A478F; }
.dz-tone[data-tone="clay"]   { --tone: #B2552F; --tone-soft: #F4E3DA; --tone-ink: #7C3A1E; }
.dz-tone[data-tone="lagoon"] { --tone: #0B7287; --tone-soft: #DCEEF1; --tone-ink: #075263; }
.dz-tone[data-tone="sun"]    { --tone: #C98512; --tone-soft: #F7ECD6; --tone-ink: #7F530A; }

.md-body { background: var(--dz-ground); font-family: var(--dz-font); color: var(--dz-ink); font-size: 17px; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--dz-font); letter-spacing: -0.035em; text-wrap: balance; font-weight: 700; }
.md-body :focus-visible { outline: 3px solid var(--dz-accent); outline-offset: 3px; }
.md-container { width: min(var(--dz-max), calc(100% - 48px)); max-width: none; margin-inline: auto; padding-inline: 0; }
.md-skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--dz-ink); color: #fff; padding: 12px 16px; }
.md-skip:focus { top: 12px; }

/* buttons + inputs */
.md-btn { border-radius: 0; min-height: 50px; padding: 0 24px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: transform .18s ease, background-color .18s ease; box-shadow: none; }
.md-btn:hover { transform: translateY(-2px); }
.md-btn--gold { background: var(--dz-lime); color: var(--dz-ink); }
.md-btn--gold:hover { background: #C2E24A; }
.md-btn--teal { background: var(--dz-accent); color: #fff; }
.md-btn--teal:hover { background: var(--dz-accent-dark); }
.md-btn--ghost { background: transparent; color: var(--dz-ink); box-shadow: inset 0 0 0 2px var(--dz-ink); }
.md-btn--ghost:hover { background: var(--dz-ink); color: var(--dz-ground); }
.md-input { border-radius: 0; border: 0; background: var(--dz-paper); min-height: 50px; padding: 0 18px; font: inherit; }
.md-input:focus { outline: 3px solid var(--dz-accent); outline-offset: 0; box-shadow: none; }

/* header: a plain bar */
.md-sticky { position: sticky; top: 0; z-index: 50; }
.md-header { background: var(--dz-ground); border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.md-header__bar { min-height: 76px; }
.md-logo { font-family: var(--dz-font); font-weight: 800; font-size: 28px; letter-spacing: -0.06em; color: var(--dz-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.md-logo::before { content: ""; width: 22px; height: 22px; background: var(--dz-accent); border-radius: 50% 50% 0 50%; }
.md-nav-link { color: var(--dz-ink); font-weight: 500; border-radius: 0; padding: 8px 12px; text-decoration: none; }
.md-nav-link:hover { color: var(--dz-accent); background: transparent; }
.md-icon-btn { border-radius: 0; }

/* product cards (all listing pages) */
.md-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; list-style: none; padding: 0; margin: 0; }
.md-product-card { position: relative; background: var(--dz-paper); border: 0; border-radius: 0; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: none; transition: transform .2s ease; }
.md-product-card:hover { transform: translateY(-4px); box-shadow: none; }
.md-product-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--tone-soft); padding: 18px; }
.md-product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.md-product-card:hover .md-product-card__media img { transform: scale(1.05); }
.md-product-card__badge { display: none; }
.md-product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.md-product-card__body h2 { font-size: 22px; margin: 0; line-height: 1.15; }
.md-product-card__body h2 a { text-decoration: none; color: inherit; }
.md-product-card__body h2 a::after { content: ""; position: absolute; inset: 0; }
.md-product-card .md-chip { align-self: flex-start; margin: 0; background: transparent; color: var(--tone-ink); border: 0; border-radius: 0; padding: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.md-product-card__go { margin-top: auto; padding-top: 10px; font-size: 15px; font-weight: 600; color: var(--dz-ink); }

/* inner pages */
.md-main { padding-top: 48px; padding-bottom: 96px; }
.md-page-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.md-bc { font-size: 15px; color: var(--dz-ink-2); }
.md-pager a, .md-pager span { border-radius: 0; }
.md-pager .is-current { background: var(--dz-ink); color: #fff; }

/* footer: the name returns at full width */
.md-footer { background: var(--dz-ink); color: #C9CEC9; border: 0; padding-top: 72px; overflow: hidden; }
.md-footer a { color: #F1F1EC; }
.md-footer__brand { font-family: var(--dz-font); font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.05em; }
.md-footer .md-kicker { color: var(--dz-lime); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.dz-foot-mark { margin: 48px 0 -0.18em; font: 800 clamp(96px, 26vw, 380px)/.8 var(--dz-font); letter-spacing: -0.08em; color: var(--dz-lime); white-space: nowrap; }

/* ---------------- home ---------------- */
.dz-home { background: var(--dz-ground); }
.dzh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dzh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border: 0; background: var(--dz-ink); color: var(--dz-ground); font: 600 17px/1 var(--dz-font); text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.dzh-btn:hover { background: var(--dz-accent); transform: translateY(-2px); }
.dzh-btn--line { background: transparent; color: var(--dz-ink); box-shadow: inset 0 0 0 2px var(--dz-ink); }
.dzh-btn--line:hover { background: var(--dz-ink); color: var(--dz-ground); }

.dzh-hero { padding: 64px 0 120px; }
.dzh-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.dzh-hero h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: .95; letter-spacing: -0.055em; margin: 0; max-width: 12ch; font-weight: 800; }
.dzh-lead { font-size: 21px; line-height: 1.5; margin: 36px 0 34px; max-width: 34rem; }
.dzh-search { position: relative; display: flex; background: var(--dz-paper); max-width: 560px; }
.dzh-search__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--dz-ink-2); display: flex; }
.dzh-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 18px/1 var(--dz-font); padding: 0 16px 0 52px; min-height: 58px; color: var(--dz-ink); }
.dzh-search input:focus { outline: 3px solid var(--dz-accent); outline-offset: -3px; }
.dzh-count { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 44px 0 0; }
.dzh-count div { margin: 0; }
.dzh-count dt { font: 800 46px/1 var(--dz-font); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.dzh-count dd { margin: 6px 0 0; font-size: 16px; color: var(--dz-ink-2); }

.dzh-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dzh-shelf li { background: var(--tone-soft); }
.dzh-shelf li:nth-child(2), .dzh-shelf li:nth-child(4) { background: var(--tone); }
.dzh-shelf a { display: grid; grid-template-rows: 1fr auto; aspect-ratio: 3 / 4; padding: 18px 16px 16px; text-decoration: none; color: var(--dz-ink); }
.dzh-shelf li:nth-child(2) a, .dzh-shelf li:nth-child(4) a { color: #fff; }
.dzh-shelf img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.dzh-shelf a:hover img { transform: scale(1.07) rotate(-2deg); }
.dzh-shelf span { font-weight: 600; font-size: 16px; margin-top: 10px; }

.dzh-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.dzh-head h2 { font-size: clamp(38px, 4.8vw, 68px); line-height: 1; letter-spacing: -0.05em; margin: 0; max-width: 16ch; }
.dzh-head p { font-size: 19px; margin: 0; max-width: 32rem; }
.dzh-head--row { grid-template-columns: 1fr auto; }
.dzh-head--row p { margin-top: 16px; }

.dzh-goals { padding: 40px 0 150px; }
.dzh-goal-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dzh-goal-list a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px; align-items: center; padding: 22px 26px; background: var(--dz-paper); text-decoration: none; color: var(--dz-ink); transition: background-color .2s ease, color .2s ease; }
.dzh-goal-list a:hover { background: var(--tone); color: #fff; }
.dzh-goal__icon .ci { background: var(--tone-soft) !important; color: var(--tone-ink) !important; border-radius: 0 !important; }
.dzh-goal-list a:hover .ci { background: rgba(255,255,255,.18) !important; color: #fff !important; }
.dzh-goal__name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.dzh-goal__n { font-size: 15px; font-variant-numeric: tabular-nums; }
.dzh-goal__go { display: flex; transition: transform .2s ease; }
.dzh-goal-list a:hover .dzh-goal__go { transform: translateX(4px); }

.dzh-picks { padding: 0 0 150px; }

.dzh-how { background: var(--dz-accent); color: #fff; padding: 140px 0; }
.dzh-how__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.dzh-how h2 { font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -0.05em; margin: 0; }
.dzh-how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.dzh-how__list h3 { font-size: clamp(26px, 2.6vw, 36px); margin: 0 0 10px; color: var(--dz-lime); letter-spacing: -0.04em; }
.dzh-how__list p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 36rem; }

.dzh-find { padding: 140px 0 120px; }
.dzh-find__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dzh-find h2 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -0.05em; margin: 0 0 12px; line-height: 1; }
.dzh-find p { font-size: 19px; margin: 0; }
.dzh-find .dzh-search { max-width: none; }
.dzh-disclosure { margin-top: 72px !important; font-size: 15px !important; color: var(--dz-ink-2); max-width: 62rem; }

/* entrance */
.dz-rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.dz-rise.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .dzh-hero__grid, .dzh-head, .dzh-how__grid, .dzh-find__grid { grid-template-columns: 1fr; gap: 32px; }
  .dzh-goal-list { grid-template-columns: 1fr; }
  .dzh-hero { padding: 32px 0 88px; }
  .dzh-goals, .dzh-picks { padding-bottom: 96px; }
  .dzh-how, .dzh-find { padding: 96px 0; }
}
@media (max-width: 600px) {
  .md-container { width: calc(100% - 36px); }
  .md-product-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .md-product-card__body h2 { font-size: 18px; }
  .dzh-search { flex-wrap: wrap; }
  .dzh-search button { width: 100%; }
  .dzh-goal-list a { grid-template-columns: auto 1fr auto; padding: 18px; }
  .dzh-goal__n { grid-column: 2; grid-row: 2; margin-top: -14px; }
  .dzh-goal__go { grid-row: 1 / 3; grid-column: 3; }
  .dzh-count dt { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-rise { opacity: 1; transform: none; }
  .dzh-shelf img, .dzh-btn, .md-product-card, .md-btn { transition: none; }
}

.md-footer .md-kicker{background:none!important;padding:0!important;border-radius:0!important}
.md-footer [class*="grid"],.md-footer .md-copy{border:0!important}
