/* =========================================================
   DhiEd theme layer: motion, components, forms.
   Colours come from theme.json presets.
   ========================================================= */
:root {
  --dh-navy: var(--wp--preset--color--contrast);
  --dh-cream: var(--wp--preset--color--base);
  --dh-amber: var(--wp--preset--color--accent-1);
  --dh-glow: var(--wp--preset--color--accent-2);
  --dh-teal: var(--wp--preset--color--accent-3);
  --dh-text: var(--wp--preset--color--accent-4);
  --dh-white: var(--wp--preset--color--accent-5);
  --dh-line: var(--wp--preset--color--accent-6);
  --dh-radius: 16px;
  --dh-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  --dh-shadow-lift: 0 2px 4px rgba(20, 33, 61, .06), 0 18px 40px rgba(20, 33, 61, .12);
  --dh-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Header ---------- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--dh-cream) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .3s var(--dh-ease);
}
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0); }
.dh-scrolled header.wp-block-template-part { box-shadow: 0 1px 0 var(--dh-line), 0 6px 20px rgba(20, 33, 61, .06); }

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link {
  transition: transform .2s var(--dh-ease), box-shadow .2s var(--dh-ease), background-color .2s ease;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wp-element-button:hover,
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(229, 166, 59, .35); }
.wp-element-button:active,
.wp-block-button__link:active { transform: translateY(0) scale(.98); box-shadow: none; }
.wp-block-button.is-style-outline > .wp-block-button__link {
  border: 2px solid var(--dh-navy);
  color: var(--dh-navy);
  background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--dh-navy); color: var(--dh-cream); box-shadow: 0 10px 22px rgba(20, 33, 61, .2); }

/* ---------- Cards ---------- */
.dh-card {
  background: var(--dh-white);
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  transition: transform .3s var(--dh-ease), box-shadow .3s var(--dh-ease), border-color .3s ease;
}
.dh-card:hover { transform: translateY(-4px); box-shadow: var(--dh-shadow-lift); border-color: color-mix(in srgb, var(--dh-amber) 45%, var(--dh-line)); }
.dh-card--dark { background: var(--dh-navy); border-color: var(--dh-navy); color: var(--dh-cream); }
.dh-card--dark :where(h1, h2, h3, h4, p) { color: var(--dh-cream); }

.dh-pill {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .8em; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
  background: var(--dh-glow); color: var(--dh-navy);
}

/* Soft lamp glow behind a hero (decorative). */
.dh-glow { position: relative; isolation: isolate; }
.dh-glow::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -20% auto auto;
  width: min(520px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dh-glow) 85%, transparent) 0%, transparent 65%);
  animation: dh-breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dh-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* Hand-drawn underline that draws in on a highlighted word (brush stroke in Bulb Amber, #E5A63B). */
.dh-mark { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath fill='%23E5A63B' d='M5 9.6C32 9 52 8.6 75 8.7S121 9.6 150 9.4S206 8.3 235 8.5S278 8.2 292 7.6C297 7.4 299.4 9.4 298.6 12C297.8 14.6 294 15.6 289 15.8C270 16.4 254 16.4 236 16.5S186 17.2 152 17.4S101 17.2 74 16.8S29 17.6 8 17.4C3 17.3 1 15.3 1 13.4C1 11.4 2.6 9.8 5 9.6Z'/%3E%3C/svg%3E") 0 100% / 0 .55em no-repeat; transition: background-size 1.25s var(--dh-ease) .25s; }
.dh-reveal.is-visible .dh-mark, .dh-mark.is-visible { background-size: 100% .55em; }
.dh-no-js .dh-mark { background-size: 100% .55em; }

/* ---------- Scroll reveal ---------- */
.dh-js .dh-reveal:not(.is-visible),
.dh-js .dh-stagger:not(.is-visible) > * { opacity: 0; transform: translateY(18px); }
.dh-reveal, .dh-stagger > * { transition: opacity .7s var(--dh-ease), transform .7s var(--dh-ease); }
.dh-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.dh-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.dh-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.dh-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.dh-stagger.is-visible > *:nth-child(n+6) { transition-delay: .4s; }

/* ---------- Forms: Fluent Forms ---------- */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label {
  font-weight: 700; font-size: .9375rem; color: var(--dh-navy); margin-bottom: 6px;
}
.fluentform .ff-el-is-required.asterisk-right label::after { color: #B4471F; }
.fluentform .ff-el-form-control,
.fluentform select.ff-el-form-control {
  width: 100%; min-height: 52px; box-sizing: border-box;
  padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--dh-line); background: var(--dh-white);
  font: inherit; font-size: 1rem; color: var(--dh-navy);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.fluentform select.ff-el-form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314213D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.fluentform .ff-el-form-control::placeholder { color: color-mix(in srgb, var(--dh-teal) 75%, transparent); }
.fluentform .ff-el-form-control:hover { border-color: color-mix(in srgb, var(--dh-teal) 45%, var(--dh-line)); }
.fluentform .ff-el-form-control:focus {
  outline: none; border-color: var(--dh-navy);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dh-amber) 35%, transparent);
}
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #B4471F; background: #FFF8F5; }
.fluentform .ff-el-is-error .text-danger,
.fluentform .error { color: #B4471F; font-size: .875rem; margin-top: 6px; }
.fluentform .ff-el-form-check { margin-bottom: 8px; }
.fluentform .ff-el-form-check-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; }
.fluentform input[type=checkbox], .fluentform input[type=radio] { width: 20px; height: 20px; accent-color: var(--dh-navy); }
.fluentform .ff-el-help-message { font-size: .875rem; color: var(--dh-teal); }
.fluentform .ff_submit_btn_wrapper .ff-btn-submit,
.fluentform .ff-btn-submit {
  width: 100%; min-height: 54px; border: 0; border-radius: 14px;
  background: var(--dh-amber) !important; color: var(--dh-navy) !important;
  font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer;
  transition: transform .2s var(--dh-ease), box-shadow .2s var(--dh-ease), background-color .2s ease;
}
.fluentform .ff-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(229, 166, 59, .35); background: #D4952C !important; }
.fluentform .ff-btn-submit:active { transform: scale(.98); }
.fluentform .ff-btn-submit:disabled { opacity: .7; cursor: progress; }
.ff-message-success {
  border: 0 !important; border-radius: var(--dh-radius); padding: 20px 22px !important;
  background: #E3F2E9 !important; color: var(--dh-navy) !important; box-shadow: var(--dh-shadow);
  animation: dh-pop .5s var(--dh-ease) both;
}
@keyframes dh-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* A form placed in a card gets the card look. */
.dh-form-card { background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 20px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--dh-shadow-lift); }

/* ---------- Forms: WooCommerce checkout blocks ---------- */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select {
  border-radius: 12px !important; border: 1.5px solid var(--dh-line) !important; background: var(--dh-white) !important;
  min-height: 54px; color: var(--dh-navy) !important;
}
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-color: var(--dh-navy) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--dh-amber) 35%, transparent) !important; outline: none;
}
.wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link) {
  border-radius: 14px !important; min-height: 54px; font-weight: 700 !important;
  background: var(--dh-amber) !important; color: var(--dh-navy) !important;
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dh-js .dh-reveal:not(.is-visible), .dh-js .dh-stagger:not(.is-visible) > * { opacity: 1; transform: none; }
}

/* =========================================================
   Page sections and components
   ========================================================= */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
h1.wp-block-heading, .dh-h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.02em; }
h2.wp-block-heading { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3.wp-block-heading { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.25; }

.dh-section { padding-block: clamp(56px, 9vw, 112px); padding-inline: 20px; }
.dh-section--white { background: var(--dh-white); }
.dh-section--navy { background: var(--dh-navy); color: var(--dh-cream); }
.dh-section--navy :where(h1, h2, h3, h4) { color: var(--dh-cream); }
.dh-section--glow { background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--dh-glow) 55%, var(--dh-cream)) 0%, var(--dh-cream) 70%); }
.dh-eyebrow { font-size: .8125rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dh-teal); margin-bottom: 12px !important; }
.dh-section--navy .dh-eyebrow { color: var(--dh-glow); }
.dh-lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 40em; }
.dh-center { text-align: center; margin-inline: auto; }
.dh-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.dh-head > * { margin-inline: auto; }

/* Header */
.dh-header { padding: 12px 20px; }
.dh-header__bar { gap: 16px; }
.dh-logo { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.75rem !important; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.dh-logo a { display: inline-flex; align-items: center; gap: .35em; color: var(--dh-navy); text-decoration: none; }
.dh-logo__mark { display: block; flex: none; width: auto; height: 1.4em; }
.dh-header__right { gap: 20px; }
.dh-nav { font-weight: 600; font-size: .975rem; gap: 26px; }
.dh-nav a { text-decoration: none; color: var(--dh-navy); }
.dh-nav .wp-block-navigation-item__content { position: relative; padding-block: 6px; }
.dh-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dh-amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--dh-ease); }
.dh-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.dh-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--dh-cream); padding: 24px; }
.dh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; font-size: 1.35rem; font-family: var(--wp--preset--font-family--fraunces); }
.dh-btn-sm .wp-block-button__link { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.dh-header__cta { gap: 10px; flex-wrap: nowrap; }
@media (max-width: 781px) { .dh-hide-sm { display: none !important; } .dh-header__right { gap: 10px; } }

/* Hero */
.dh-hero { padding-top: clamp(32px, 6vw, 72px); overflow: hidden; }
.dh-hero__cols { align-items: center; gap: clamp(32px, 5vw, 72px); }
.dh-hero h1 { margin: 16px 0 18px; }
.dh-hero .wp-block-buttons { gap: 12px; margin-top: 28px; }
.dh-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px !important; font-size: .9375rem; color: var(--dh-teal); }
.dh-trust strong { color: var(--dh-navy); }
.dh-avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dh-navy); color: var(--dh-glow); font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; flex-shrink: 0; overflow: hidden; }
.dh-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Phone preview */
.dh-phone-wrap { position: relative; display: flex; justify-content: center; padding: 12px 0 24px; }
.dh-phone { width: min(320px, 86vw); border-radius: 38px; background: var(--dh-cream); border: 10px solid var(--dh-navy); box-shadow: 0 30px 60px rgba(20, 33, 61, .22), 0 8px 18px rgba(20, 33, 61, .12); padding: 22px 16px 18px; font-size: 14px; color: var(--dh-text); animation: dh-float 7s ease-in-out infinite; }
@keyframes dh-float { 0%, 100% { transform: translateY(0) rotate(var(--dh-float-tilt, -1.5deg)); } 50% { transform: translateY(var(--dh-float-lift, -10px)) rotate(var(--dh-float-tilt-mid, -.5deg)); } }
.dh-phone__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dh-phone__brand { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 18px; color: var(--dh-navy); }
.dh-phone__chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--dh-white); border: 1px solid var(--dh-line); color: var(--dh-navy); }
.dh-phone__hello { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 21px; color: var(--dh-navy); margin: 0 0 12px; }
.dh-phone__today { background: var(--dh-navy); color: var(--dh-cream); border-radius: 18px; padding: 14px; display: grid; gap: 9px; }
.dh-phone__today b { font-size: 14px; }
.dh-phone__row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.dh-phone__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dh-glow); box-sizing: border-box; flex-shrink: 0; }
.dh-phone__dot.is-done { background: var(--dh-glow); }
.dh-phone__btn { margin-top: 4px; text-align: center; background: var(--dh-amber); color: var(--dh-navy); font-weight: 700; border-radius: 11px; padding: 9px; font-size: 13px; }
.dh-phone__subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.dh-phone__subj { background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 13px; padding: 10px; display: grid; gap: 6px; }
.dh-phone__subj b { color: var(--dh-navy); font-size: 13px; }
.dh-bar { height: 5px; border-radius: 999px; background: #F1E8D6; overflow: hidden; }
.dh-bar i { display: block; height: 100%; border-radius: 999px; background: var(--dh-teal); width: 0; transition: width 1.4s var(--dh-ease) .4s; }
.is-visible .dh-bar i, .dh-no-js .dh-bar i { width: var(--w); }
.dh-phone__small { font-size: 11px; color: var(--dh-teal); }
.dh-badge-float { position: absolute; background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--dh-shadow-lift); font-size: 13px; color: var(--dh-navy); display: flex; gap: 8px; align-items: center; animation: dh-float 6s ease-in-out infinite reverse; }
.dh-badge-float--a { top: 30%; left: max(0px, calc(50% - 305px)); }
.dh-badge-float--b { bottom: 12%; right: max(0px, calc(50% - 305px)); animation-delay: -2s; }
.dh-badge-float span { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--dh-glow); font-weight: 700; }
@media (max-width: 600px) { .dh-badge-float { display: none; } }

/* Strip of facts */
.dh-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dh-facts .dh-pill { background: var(--dh-white); border: 1px solid var(--dh-line); font-size: .9375rem; padding: .55em 1em; }

/* Class picker */
.dh-board-label { display: flex; align-items: center; gap: 12px; margin: 0 auto 14px !important; font-weight: 700; color: var(--dh-navy); }
.dh-board-label::after { content: ""; height: 1px; flex: 1; background: var(--dh-line); }
.dh-class-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; position: relative; overflow: hidden; }
.dh-class-card a { text-decoration: none; }
.dh-class-num { font-family: var(--wp--preset--font-family--fraunces); font-size: 3.25rem !important; font-weight: 700; line-height: 1; color: var(--dh-navy); margin: 0 !important; }
.dh-class-card .dh-class-sub { font-size: .9375rem; color: var(--dh-teal); margin: 0 !important; }
.dh-class-card .dh-class-go { margin-top: 10px !important; font-weight: 700; }
.dh-class-card .dh-class-go a { color: var(--dh-navy); }
.dh-class-card .dh-class-go a::after { content: " \2192"; display: inline-block; transition: transform .25s var(--dh-ease); }
.dh-class-card:hover .dh-class-go a::after { transform: translateX(4px); }
.dh-class-card .dh-class-go a::before { content: ""; position: absolute; inset: 0; }

/* Worries */
.dh-quote { padding: 26px 24px; }
.dh-quote p:first-child { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.3rem !important; font-weight: 600; color: var(--dh-navy); line-height: 1.3; margin: 0 0 10px; }
.dh-quote p:first-child::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--dh-amber); margin-bottom: 10px; }
.dh-quote p:last-child { margin: 0; font-size: .9875rem; }

/* Steps */
.dh-step { padding: 26px 22px; position: relative; }
.dh-step__n { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--dh-glow); color: var(--dh-navy); font-weight: 700; font-family: var(--wp--preset--font-family--fraunces); font-size: 1.25rem !important; margin: 0 0 16px !important; }
.dh-step h3 { margin: 0 0 8px; }
.dh-step p:last-child { margin: 0; }

/* Live flashcard */
.dh-flip { perspective: 1400px; max-width: 420px; width: 100%; margin-inline: auto; }
.dh-flip__card { all: unset; box-sizing: border-box; display: grid; width: 100%; aspect-ratio: 4 / 3.2; cursor: pointer; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.34, 1.35, .5, 1); border-radius: 24px; }
.dh-flip__card:focus-visible { outline: 3px solid var(--dh-amber); outline-offset: 6px; }
.dh-flip.is-flipped .dh-flip__card { transform: rotateY(180deg); }
.dh-flip__face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; text-align: left; }
.dh-flip__front { background: var(--dh-white); border: 1px solid var(--dh-line); box-shadow: var(--dh-shadow-lift); }
.dh-flip__back { background: var(--dh-navy); color: var(--dh-cream); transform: rotateY(180deg); box-shadow: 0 24px 50px rgba(20, 33, 61, .3); }
.dh-flip__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dh-teal); }
.dh-flip__back .dh-flip__tag, .dh-flip__back .dh-flip__hint { color: var(--dh-glow); }
.dh-flip__q { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.25; color: var(--dh-navy); }
.dh-flip__back .dh-flip__q { color: var(--dh-cream); }
.dh-flip__a { display: block; margin-top: 10px; font-family: var(--wp--preset--font-family--dm-sans); font-size: 1rem; font-weight: 400; line-height: 1.5; color: #E9E2D3; }
.dh-flip__hint { font-size: 13px; color: var(--dh-teal); display: flex; align-items: center; gap: 8px; }
.dh-flip-cols { align-items: center; gap: clamp(32px, 5vw, 72px); }
.dh-checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.dh-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.dh-checklist li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--dh-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dh-section--navy .dh-checklist li::before { background-color: var(--dh-amber); }

/* Parent report preview */
.dh-report { background: var(--dh-white); color: var(--dh-text); border-radius: 22px; padding: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); max-width: 420px; margin-inline: auto; }
.dh-report h4 { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.35rem; margin: 0 0 4px; color: var(--dh-navy); }
.dh-report__muted { font-size: 13px; color: var(--dh-teal); margin: 0 0 16px; }
.dh-report__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.dh-report__stat { border: 1px solid var(--dh-line); border-radius: 12px; padding: 10px; }
.dh-report__stat b { display: block; font-size: 1.3rem; color: var(--dh-navy); }
.dh-report__stat small { font-size: 11.5px; color: var(--dh-teal); }
.dh-report__line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 10px; }
.dh-tag { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dh-tag--good { background: #DDEFE3; color: #1F5A3A; }
.dh-tag--work { background: #FBE6C4; color: #8A4B00; }
.dh-report__sample { margin-top: 16px; font-size: 11.5px; color: var(--dh-teal); text-align: center; }

/* Teacher */
.dh-teacher { align-items: center; gap: clamp(28px, 5vw, 64px); }
.dh-teacher__photo { aspect-ratio: 4 / 5; border-radius: 28px; background: linear-gradient(160deg, var(--dh-glow), color-mix(in srgb, var(--dh-amber) 60%, var(--dh-glow))); display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; box-sizing: border-box; position: relative; overflow: hidden; }
.dh-teacher__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dh-teacher__mono { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: .8; color: var(--dh-navy); opacity: .9; }
.dh-creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.dh-creds li { background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 600; color: var(--dh-navy); }

/* Offer cards */
.dh-offer { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; }
.dh-offer h3 { margin: 4px 0 6px; }
.dh-offer .dh-pill { align-self: flex-start; }
.dh-offer.dh-card--dark .dh-pill { background: var(--dh-amber); }
.dh-offer ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }

/* FAQ */
.dh-faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.dh-faq .wp-block-details { background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 16px; padding: 0; transition: box-shadow .3s var(--dh-ease), border-color .3s ease; }
.dh-faq .wp-block-details[open] { box-shadow: var(--dh-shadow); border-color: color-mix(in srgb, var(--dh-amber) 40%, var(--dh-line)); }
.dh-faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--dh-navy); position: relative; font-size: 1.0625rem; }
.dh-faq summary::-webkit-details-marker { display: none; }
.dh-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--dh-navy); border-bottom: 2.5px solid var(--dh-navy); transform: rotate(45deg); transition: transform .3s var(--dh-ease); }
.dh-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.dh-faq .wp-block-details > :not(summary) { padding: 0 22px 18px; margin: 0; }

/* CTA band */
.dh-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.dh-band::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -40%; width: 700px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(243, 211, 160, .28), transparent 65%); animation: dh-breathe 8s ease-in-out infinite; }
.dh-band .wp-block-buttons { justify-content: center; }

/* Footer */
.dh-footer { background: var(--dh-navy); color: #DCD5C6; padding: clamp(48px, 7vw, 80px) 20px 28px; font-size: .9375rem; }
.dh-footer :where(h2, h3, h4) { color: var(--dh-cream); font-family: var(--wp--preset--font-family--dm-sans); font-size: .8125rem !important; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.dh-footer a { color: var(--dh-cream); text-decoration: none; }
.dh-footer a:hover { color: var(--dh-glow); text-decoration: underline; }
.dh-footer .dh-footer__brand { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 2rem !important; color: var(--dh-cream); margin: 0 0 6px; }
.dh-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dh-footer__bottom { border-top: 1px solid rgba(251, 245, 234, .14); margin-top: 40px !important; padding-top: 20px; font-size: .8125rem; color: #B9B3A6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.dh-wa { display: inline-flex; align-items: center; gap: 8px; background: var(--wp--preset--color--whatsapp); color: #fff !important; padding: 10px 16px; border-radius: 12px; font-weight: 700; margin-top: 8px; }
.dh-wa:hover { text-decoration: none !important; filter: brightness(1.08); }

.dh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .dh-phone, .dh-badge-float { animation: none; } }
/* Header: hamburger below 1024px, keep buttons on one line */
.dh-header__cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1023px) {
  .dh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .dh-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.dh-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.dh-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.dh-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
/* Class picker: compact 3-across on phones */
.dh-class-card .dh-class-go a::after { content: "\2192"; margin-left: .35em; }
@media (max-width: 600px) {
  .dh-stagger:has(> .dh-class-card) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .dh-class-card { padding: 14px 12px; gap: 2px; }
  .dh-class-num { font-size: 2.4rem !important; }
  .dh-class-card .dh-class-sub { display: none; }
  .dh-class-card .dh-class-go { margin-top: 6px !important; font-size: .8125rem; line-height: 1.3; }
  .dh-class-card .dh-class-go a::after { display: none; }
}
/* Swipeable card rows on phones */
@media (max-width: 600px) {
  .dh-stagger:has(> .dh-quote), .dh-stagger:has(> .dh-step), .dh-stagger:has(> .dh-offer) {
    display: flex !important; flex-wrap: nowrap !important; gap: 12px !important;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: -20px; padding: 6px 20px 18px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .dh-stagger:has(> .dh-quote)::-webkit-scrollbar, .dh-stagger:has(> .dh-step)::-webkit-scrollbar, .dh-stagger:has(> .dh-offer)::-webkit-scrollbar { display: none; }
  .dh-stagger > .dh-quote, .dh-stagger > .dh-step, .dh-stagger > .dh-offer { flex: 0 0 82%; scroll-snap-align: start; margin: 0 !important; }
  .dh-swipe-hint { display: block !important; }
}
@media (max-width: 781px) { .dh-teacher__photo { aspect-ratio: 16 / 10; max-height: 280px; } }

/* Hero trust points */
ul.dh-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9875rem; font-weight: 600; color: var(--dh-navy); }
ul.dh-trust li { display: inline-flex; align-items: center; gap: 8px; }
ul.dh-trust li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: var(--dh-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Why DhiEd */
.dh-why { align-items: center; gap: clamp(28px, 5vw, 64px); }
.dh-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dh-why-item { padding: 22px; }
.dh-why-item h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.dh-why-item p { margin: 0; font-size: .975rem; }
.dh-why-icon { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--dh-glow); color: var(--dh-navy); }

/* Plans */
.dh-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; }
.dh-plan { padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; }
.dh-plan h3 { font-size: 1.6rem; margin: 6px 0 2px; }
.dh-plan .dh-pill { align-self: flex-start; margin: 0; }
.dh-plan__sum { margin: 0; color: var(--dh-teal); }
.dh-plan .dh-checklist { margin: 12px 0 22px; flex: 0 0 auto; }
.dh-plan .dh-checklist li { font-size: 1rem; }
.dh-plan__btn { width: 100%; box-sizing: border-box; text-decoration: none; text-align: center; flex: 0 0 auto; margin-top: auto; height: auto !important; }
.dh-plan__btn--outline { background: transparent !important; border: 2px solid var(--dh-navy); color: var(--dh-navy) !important; }
.dh-plan__btn--outline:hover { background: var(--dh-navy) !important; color: var(--dh-cream) !important; box-shadow: 0 10px 22px rgba(20, 33, 61, .2); }
.dh-plan--best { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(20, 33, 61, .28); }
.dh-plan--best:hover { transform: translateY(-14px); }
.dh-plan--best .dh-plan__sum { color: var(--dh-glow); }
.dh-plan--best .dh-pill { background: var(--dh-amber); }
.dh-plan--best .dh-checklist li { color: var(--dh-cream); }
.dh-plan--best .dh-checklist li::before { background-color: var(--dh-amber); }
@media (max-width: 900px) {
  .dh-plans { grid-template-columns: 1fr; max-width: 480px; }
  .dh-plan--best { order: -1; transform: none; }
  .dh-plan--best:hover { transform: translateY(-4px); }
}

/* =========================================================
   Phones: larger, more comfortable type and spacing
   ========================================================= */
@media (max-width: 781px) {
  body { font-size: 1.0625rem; line-height: 1.65; }
  .dh-section { padding-block: 64px; padding-inline: 22px; }
  .dh-hero { padding-top: 28px; }
  h1.wp-block-heading { font-size: 2.65rem; line-height: 1.08; }
  h2.wp-block-heading { font-size: 2.05rem; line-height: 1.15; }
  h3.wp-block-heading, .dh-why-item h3 { font-size: 1.3rem; }
  .dh-lede { font-size: 1.1875rem; line-height: 1.6; }
  .dh-eyebrow { font-size: .875rem !important; }
  .dh-pill { font-size: .875rem; }
  .dh-head { margin-bottom: 32px; }
  .dh-head p { font-size: 1.0625rem; }
  ul.dh-trust { font-size: 1rem; flex-direction: column; gap: 10px; }
  .dh-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .dh-hero .wp-block-button, .dh-hero .wp-block-button__link { width: 100%; }
  .wp-block-button__link { font-size: 1.0625rem; min-height: 54px; }
  .dh-card p, .dh-why-item p, .dh-step p:last-child, .dh-quote p:last-child { font-size: 1.0625rem; line-height: 1.6; }
  .dh-quote p:first-child { font-size: 1.45rem !important; }
  .dh-checklist li { font-size: 1.0625rem; }
  .dh-why-grid { grid-template-columns: 1fr; gap: 12px; }
  .dh-why-item { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .dh-why-item .dh-why-icon { grid-row: span 2; }
  .dh-why-item h3 { margin: 2px 0 4px; }
  .dh-faq summary { font-size: 1.0625rem; padding: 18px 52px 18px 18px; }
  .dh-faq .wp-block-details > :not(summary) { padding: 0 18px 18px; font-size: 1.0625rem; }
  .dh-board-label { font-size: 1rem; }
  .dh-class-card .dh-class-go { font-size: .9375rem; }
  .dh-flip__q { font-size: 1.5rem; }
  .dh-flip__a { font-size: 1.0625rem; }
  .dh-report__line { font-size: 1rem; }
  .dh-footer { font-size: 1rem; }
  .dh-footer__links { gap: 14px; }
  .dh-footer__bottom { font-size: .875rem; }
  .dh-logo { font-size: 1.85rem !important; }
  .dh-logo__mark { height: 1.3em; }
  .dh-phone { width: min(300px, 82vw); animation-duration: 5.5s; --dh-float-lift: -18px; --dh-float-tilt: -2deg; --dh-float-tilt-mid: -.25deg; }
}
@media (max-width: 781px) { ul.dh-trust { align-items: flex-start; } .dh-hero { padding-bottom: 40px; } .dh-phone-wrap { padding-bottom: 0; } }

html { scroll-behavior: smooth; }
.wp-site-blocks [id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Card rows: exact column counts so rows sit centred (no empty tracks) */
@media (min-width: 601px) {
  .dh-stagger:has(> .dh-class-card) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .dh-stagger:has(> .dh-quote), .dh-stagger:has(> .dh-step) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .dh-stagger:has(> .dh-quote), .dh-stagger:has(> .dh-step) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* Subjects per board */
.dh-board-label { margin: 0 auto 10px !important; }
.dh-stagger + .dh-board-label { margin-top: 56px !important; }
.dh-subjects { list-style: none; padding: 0; margin: 0 auto 18px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.dh-subjects li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--dh-white); border: 1px solid var(--dh-line); font-size: .9375rem; font-weight: 600; color: var(--dh-navy); }
.dh-subjects li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--dh-teal)); }
.dh-subjects li span { font-weight: 400; color: var(--dh-teal); }
.dh-subjects .is-phy { --c: #2F6FB3; }
.dh-subjects .is-chem { --c: #E5A63B; }
.dh-subjects .is-bio { --c: #2E8B57; }
.dh-subjects .is-math { --c: #8A4FB8; }
.dh-subjects .is-sci { --c: linear-gradient(135deg, #2F6FB3, #E5A63B 55%, #2E8B57); }
.dh-subjects .is-sci::before { background: var(--c); }
@media (max-width: 600px) {
  .dh-stagger + .dh-board-label { margin-top: 36px !important; }
  .dh-subjects { gap: 6px; margin-bottom: 14px !important; }
  .dh-subjects li { font-size: .9375rem; padding: 6px 12px 6px 9px; }
}

/* Mobile action bar */
.dh-mbar { display: none; }
@media (max-width: 781px) {
  .dh-mbar { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--dh-navy) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(20, 33, 61, .3); transform: translateY(140%); opacity: 0; pointer-events: none;
    transition: transform .45s var(--dh-ease), opacity .3s ease; }
  .dh-mbar.is-shown { transform: none; opacity: 1; pointer-events: auto; }
  .dh-mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .dh-mbar__main { flex: 1; background: var(--dh-amber); color: var(--dh-navy) !important; }
  .dh-mbar__wa { padding: 0 16px; background: var(--wp--preset--color--whatsapp); color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) { .dh-mbar { transition: none; } }
/* Inner pages */
.dh-page-hero { padding: clamp(40px, 7vw, 88px) var(--wp--style--root--padding-right, 20px) clamp(24px, 4vw, 40px) var(--wp--style--root--padding-left, 20px); background: radial-gradient(90% 120% at 50% -20%, color-mix(in srgb, var(--dh-glow) 60%, var(--dh-cream)) 0%, var(--dh-cream) 70%); }
.dh-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.dh-page-body { padding: 8px 0 clamp(56px, 8vw, 96px); }
.dh-page-body h2.wp-block-heading { font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-top: 2.2em; margin-bottom: .5em; }
.dh-page-body p, .dh-page-body li { font-size: 1.0625rem; line-height: 1.7; }
.dh-page-body ul { padding-left: 1.2em; }
.dh-page-body li { margin-bottom: .45em; }
.dh-page-body li::marker { color: var(--dh-amber); }
.dh-page-meta { font-size: .9375rem !important; color: var(--dh-teal); margin-top: 0; }

/* Contact */
.dh-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 8px; }
.dh-contact-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.dh-contact-card .dh-why-icon { margin-bottom: 8px; }
.dh-contact-card__label { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dh-teal); }
.dh-contact-card__value { font-weight: 700; font-size: 1.15rem; color: var(--dh-navy); word-break: break-word; }
.dh-contact-card__note { font-size: .9375rem; color: var(--dh-text); }
.dh-contact-card--wa .dh-why-icon { background: var(--wp--preset--color--whatsapp); color: #fff; }
@media (max-width: 781px) { .dh-contact-grid { grid-template-columns: 1fr; } }
.dh-page-body .dh-lede { max-width: none; }

/* =========================================================
   Class pages
   ========================================================= */
.dh-landing > .wp-block-post-content > * { margin-block: 0; }
.dh-wrap { max-width: 1200px; margin-inline: auto; }
.dh-class-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dh-class-hero h1 { margin: 16px 0 18px; }
.dh-class-hero .dh-subjects { margin-top: 22px !important; }
.dh-class-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dh-inside { padding: 28px; }
.dh-inside .dh-checklist { margin-top: 6px; }
.dh-subject-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dh-subject-card { padding: 24px; position: relative; overflow: hidden; }
.dh-subject-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--dh-teal)); }
.dh-subject-card.is-phy { --c: #2F6FB3; } .dh-subject-card.is-chem { --c: #E5A63B; } .dh-subject-card.is-bio { --c: #2E8B57; } .dh-subject-card.is-math { --c: #8A4FB8; } .dh-subject-card.is-sci { --c: linear-gradient(90deg, #2F6FB3, #E5A63B, #2E8B57); }
.dh-subject-card__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.dh-subject-card h3 { font-size: 1.35rem; margin: 10px 0 6px; }
.dh-subject-card p { margin: 0; }
.dh-price { margin: 10px 0 0; display: flex; flex-direction: column; gap: 2px; }
.dh-price__amount { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--dh-navy); }
.dh-price__note { font-size: .875rem; color: var(--dh-teal); }
.dh-price--soon .dh-price__amount { font-size: 1.25rem; }
.dh-plan--best .dh-price__amount { color: var(--dh-cream); }
.dh-plan--best .dh-price__note { color: var(--dh-glow); }
.dh-plan--picked:not(.dh-plan--best) { border-color: var(--dh-amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dh-amber) 45%, transparent), var(--dh-shadow-lift); }
.dh-plan--best.dh-plan--picked { box-shadow: 0 0 0 3px var(--dh-amber), 0 30px 60px rgba(20, 33, 61, .28); }
.dh-enquire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; text-align: left; }
.dh-enquire .dh-lede { color: #E9E2D3; }
.dh-enquire .dh-checklist li { color: var(--dh-cream); }
.dh-enquire .dh-form-card { color: var(--dh-text); }
@media (max-width: 900px) {
  .dh-class-hero__grid, .dh-enquire { grid-template-columns: 1fr; }
  .dh-class-hero__btns { flex-direction: column; }
  .dh-class-hero__btns .wp-block-button, .dh-class-hero__btns .wp-block-button__link { width: 100%; }
}

/* =========================================================
   Lead form
   ========================================================= */
.dh-lead__title { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.5rem; margin: 0 0 6px; color: var(--dh-navy); }
.dh-lead__text { margin: 0 0 20px; color: var(--dh-teal); font-size: 1rem; }
.dh-field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.dh-field > label, .dh-field > legend { display: block; font-weight: 700; font-size: .9375rem; color: var(--dh-navy); margin-bottom: 6px; padding: 0; }
.dh-field input[type=text], .dh-field input[type=tel], .dh-field select {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--dh-line); background: var(--dh-white); color: var(--dh-navy); font: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none;
}
.dh-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314213D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.dh-field input:focus, .dh-field select:focus { outline: none; border-color: var(--dh-navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dh-amber) 35%, transparent); }
.dh-field input::placeholder { color: color-mix(in srgb, var(--dh-teal) 70%, transparent); }
.dh-phone-input { display: flex; align-items: stretch; }
.dh-phone-input span { display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--dh-line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--dh-cream); font-weight: 700; color: var(--dh-navy); }
.dh-phone-input input { border-radius: 0 12px 12px 0 !important; }
.dh-seg__row { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-seg__opt { flex: 1 1 0; min-width: 80px; position: relative; cursor: pointer; }
.dh-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dh-seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--dh-line); background: var(--dh-white); font-weight: 700; color: var(--dh-navy); transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.dh-seg__opt:hover span { border-color: color-mix(in srgb, var(--dh-teal) 45%, var(--dh-line)); }
.dh-seg__opt input:checked + span { background: var(--dh-navy); border-color: var(--dh-navy); color: var(--dh-cream); }
.dh-seg__opt input:focus-visible + span { outline: 2px solid var(--dh-amber); outline-offset: 2px; }
.dh-seg__opt input:active + span { transform: scale(.97); }
.dh-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--dh-text); cursor: pointer; margin: 4px 0 6px; }
.dh-check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--dh-navy); }
.dh-field__error, .dh-lead__form-error { color: #B4471F; font-size: .875rem; margin: 6px 0 0; min-height: 0; }
.dh-field__error:empty, .dh-lead__form-error:empty { display: none; }
.is-invalid input[type=text], .is-invalid input[type=tel], .is-invalid .dh-seg__opt span { border-color: #B4471F; }
.dh-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dh-lead__btn { width: 100%; margin-top: 14px; min-height: 56px; border: 0; cursor: pointer; font-size: 1.0625rem; position: relative; }
.dh-lead__btn.is-loading .dh-lead__btn-label { opacity: 0; }
.dh-lead__btn.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(20, 33, 61, .25); border-top-color: var(--dh-navy); animation: dh-spin .8s linear infinite; }
@keyframes dh-spin { to { transform: rotate(360deg); } }
.dh-lead__done { text-align: center; padding: 12px 4px; animation: dh-pop .5s var(--dh-ease) both; outline: none; }
.dh-lead__done h3 { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.6rem; color: var(--dh-navy); margin: 14px 0 8px; }
.dh-lead__done p { color: var(--dh-text); }
.dh-lead__tick { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E3F2E9; color: #1F7A4D; }

/* Home: lead section */
.dh-home-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .dh-home-lead { grid-template-columns: 1fr; } }

/* Class picker sheet */
.dh-sheet { border: 0; padding: 0; border-radius: 24px; max-width: 520px; width: calc(100% - 32px); background: var(--dh-cream); color: var(--dh-text); box-shadow: 0 30px 80px rgba(20, 33, 61, .35); }
.dh-sheet::backdrop { background: rgba(20, 33, 61, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dh-sheet[open] { animation: dh-pop .35s var(--dh-ease) both; }
.dh-sheet__inner { padding: 26px 24px 24px; }
.dh-sheet__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dh-sheet h2 { font-size: 1.6rem !important; margin: 0 0 4px; }
.dh-sheet__sub { margin: 0 0 18px; color: var(--dh-teal); }
.dh-sheet__close { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--dh-navy); }
.dh-sheet__close:hover { background: var(--dh-white); }
.dh-sheet__close:focus-visible { outline: 2px solid var(--dh-amber); }
.dh-sheet__board { font-weight: 700; color: var(--dh-navy); margin: 14px 0 8px; }
.dh-sheet__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dh-sheet__row a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; border-radius: 14px; background: var(--dh-white); border: 1.5px solid var(--dh-line); text-decoration: none; color: var(--dh-navy); font-weight: 700; transition: transform .2s var(--dh-ease), border-color .2s ease, box-shadow .2s ease; }
.dh-sheet__row a b { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.7rem; line-height: 1; }
.dh-sheet__row a small { font-size: .8125rem; color: var(--dh-teal); font-weight: 600; margin-top: 4px; }
.dh-sheet__row a:hover { transform: translateY(-2px); border-color: var(--dh-amber); box-shadow: var(--dh-shadow); }
@media (max-width: 600px) { .dh-sheet { margin: auto auto 0; border-radius: 24px 24px 0 0; width: 100%; max-width: none; } .dh-sheet[open] { animation: dh-up .35s var(--dh-ease) both; } }
@keyframes dh-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* ---------- Mobile menu (full-screen panel, below 1024px) ---------- */
html { scroll-padding-top: 84px; }
.dh-menu-btn { display: none; }
@media (max-width: 1023px) {
  .dh-header .dh-nav { display: none !important; }
  .dh-menu-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: var(--dh-navy); cursor: pointer; transition: transform .2s var(--dh-ease), box-shadow .2s ease; }
  .dh-menu-btn:hover { box-shadow: var(--dh-shadow-lift); }
  .dh-menu-btn:active { transform: scale(.94); }
  .dh-menu-btn:focus-visible { outline: 3px solid var(--dh-amber); outline-offset: 2px; }
}
.dh-menu-btn__lines { display: grid; gap: 4px; width: 20px; }
.dh-menu-btn__lines span { display: block; height: 2px; border-radius: 2px; background: var(--dh-cream); }
.dh-menu-btn__lines span:nth-child(2) { width: 65%; justify-self: end; }

dialog.dh-menu { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--dh-text); overflow: hidden; }
.dh-menu::backdrop { background: rgba(20, 33, 61, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.dh-menu.is-open::backdrop { opacity: 1; }
.dh-menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px); box-sizing: border-box; display: flex; flex-direction: column; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--dh-glow) 55%, transparent), transparent 60%), var(--dh-cream); box-shadow: -24px 0 60px rgba(20, 33, 61, .22); transform: translateX(100%); transition: transform .4s var(--dh-ease); }
.dh-menu.is-open .dh-menu__panel { transform: none; }

.dh-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 10px; }
.dh-menu__logo { display: inline-flex; align-items: center; gap: .35em; font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 1.55rem; color: var(--dh-navy); text-decoration: none; }
.dh-menu__close { all: unset; box-sizing: border-box; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--dh-white); color: var(--dh-navy); cursor: pointer; box-shadow: var(--dh-shadow); transition: transform .2s var(--dh-ease); }
.dh-menu__close:active { transform: scale(.94); }
.dh-menu__close:focus-visible { outline: 3px solid var(--dh-amber); outline-offset: 2px; }

.dh-menu__nav { display: flex; flex-direction: column; }
.dh-menu__nav a { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--dh-line); text-decoration: none; color: var(--dh-navy); opacity: 0; transform: translateX(18px); transition: opacity .35s ease, transform .5s var(--dh-ease); }
.dh-menu.is-open .dh-menu__nav a { opacity: 1; transform: none; }
.dh-menu.is-open .dh-menu__nav a:nth-child(1) { transition-delay: .06s; }
.dh-menu.is-open .dh-menu__nav a:nth-child(2) { transition-delay: .1s; }
.dh-menu.is-open .dh-menu__nav a:nth-child(3) { transition-delay: .14s; }
.dh-menu.is-open .dh-menu__nav a:nth-child(4) { transition-delay: .18s; }
.dh-menu.is-open .dh-menu__nav a:nth-child(5) { transition-delay: .22s; }
.dh-menu__t { flex: 1; display: flex; flex-direction: column; font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 1.65rem; line-height: 1.15; }
.dh-menu__t small { font-family: var(--wp--preset--font-family--dm-sans); font-size: .9375rem; font-weight: 500; color: var(--dh-teal); margin-top: 4px; line-height: 1.3; }
.dh-menu__nav svg { flex: 0 0 auto; color: var(--dh-teal); transition: transform .25s var(--dh-ease), color .2s ease; }
.dh-menu__nav a:hover svg, .dh-menu__nav a:focus-visible svg { transform: translateX(4px); color: var(--dh-navy); }
.dh-menu__nav a:focus-visible { outline: 2px solid var(--dh-amber); outline-offset: 2px; border-radius: 8px; }

.dh-menu__classes { margin-top: 20px; padding: 16px; background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 18px; box-shadow: var(--dh-shadow); opacity: 0; transform: translateY(12px); transition: opacity .35s ease .26s, transform .5s var(--dh-ease) .26s; }
.dh-menu.is-open .dh-menu__classes { opacity: 1; transform: none; }
.dh-menu__label { margin: 0 0 12px; font-weight: 700; font-size: 1rem; color: var(--dh-navy); }
.dh-menu__grid { display: grid; grid-template-columns: 58px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.dh-menu__board { font-weight: 700; font-size: .875rem; letter-spacing: .05em; color: var(--dh-teal); }
.dh-menu__grid a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; background: var(--dh-cream); border: 1.5px solid var(--dh-line); font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 1.3rem; color: var(--dh-navy); text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s var(--dh-ease); }
.dh-menu__grid a:hover, .dh-menu__grid a:focus-visible { border-color: var(--dh-amber); background: color-mix(in srgb, var(--dh-glow) 40%, var(--dh-white)); }
.dh-menu__grid a:active { transform: scale(.96); }

.dh-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 22px; }
.dh-menu__actions .wp-block-button__link { display: flex; align-items: center; justify-content: center; min-height: 52px; width: 100%; box-sizing: border-box; font-size: 1.0625rem; text-decoration: none; }
.dh-menu__actions .dh-menu__ghost { background: transparent; border: 2px solid var(--dh-navy); color: var(--dh-navy); }
.dh-menu__wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 10px; border-radius: 12px; font-weight: 700; color: #0F7A41; text-decoration: none; }
.dh-menu__wa:hover { background: rgba(15, 122, 65, .08); }

html.dh-menu-open, html.dh-menu-open body { overflow: hidden; }
@media (min-width: 1024px) { dialog.dh-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .dh-menu__panel, .dh-menu__nav a, .dh-menu__classes, .dh-menu::backdrop { transition: none !important; }
}

/* ---------- Plan prices ---------- */
.dh-price__day { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: color-mix(in srgb, var(--dh-glow) 55%, var(--dh-white)); color: var(--dh-navy); }
.dh-plan--best .dh-price__day { background: rgba(243, 211, 160, .18); color: var(--dh-glow); }
.dh-price__from { font-size: .875rem; font-weight: 600; color: var(--dh-teal); margin-bottom: -2px; }
.dh-plan--best .dh-price__from { color: var(--dh-glow); }
.dh-save { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: .9rem; font-weight: 700; background: var(--dh-amber); color: var(--dh-navy); }
.dh-plans__note { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: .95rem; color: var(--dh-teal); }
@media (max-width: 1023px) and (max-height: 880px) {
  .dh-menu__top { min-height: 46px; margin-bottom: 4px; }
  .dh-menu__nav a { padding: 11px 2px; }
  .dh-menu__t { font-size: 1.45rem; }
  .dh-menu__t small { font-size: .875rem; margin-top: 2px; }
  .dh-menu__classes { margin-top: 14px; padding: 14px; }
  .dh-menu__label { margin-bottom: 10px; }
  .dh-menu__grid a { min-height: 44px; }
  .dh-menu__actions { padding-top: 16px; }
  .dh-menu__wa { margin-top: 4px; }
}

/* ---------- Offer prices ---------- */
.dh-price__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.dh-price__was { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 1.3rem; color: var(--dh-teal); text-decoration-thickness: 2px; text-decoration-color: #B4471F; }
.dh-price__was:empty { display: none; }
.dh-plan--best .dh-price__was { color: rgba(251, 245, 234, .62); text-decoration-color: var(--dh-amber); }
.dh-price__offer { display: inline-block; align-self: flex-start; margin: 6px 0 2px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: #1F7A4D; color: #FFFFFF; }

/* ---------- Account page and order confirmation ---------- */
.dh-thanks, .dh-account-cta { background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: 18px; padding: 20px; margin: 0 0 24px; }
.dh-thanks h2 { margin-top: 0; }
.dh-account-cta p { margin: 0 0 12px; }
.dh-account-cta p:last-child { margin: 0; }

/* ---------- Pricing page ---------- */
.dh-pricing { display: grid; gap: clamp(32px, 6vw, 56px); margin-top: 8px; }
.dh-pricing__class h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); }
.dh-pricing__boards { margin: 4px 0 16px; color: var(--dh-teal); font-size: .95rem; }
.dh-pricing__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dh-pricing__plan { display: flex; flex-direction: column; padding: 20px; background: var(--dh-white); border: 1px solid var(--dh-line); border-radius: var(--dh-radius); box-shadow: var(--dh-shadow); }
.dh-pricing__plan h3 { margin: 0 0 8px; font-size: 1.1rem; }
.dh-pricing__price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.dh-pricing__price del { font-family: var(--wp--preset--font-family--fraunces); font-weight: 600; font-size: 1.1rem; color: var(--dh-teal); text-decoration-thickness: 2px; text-decoration-color: #B4471F; }
.dh-pricing__price strong { font-family: var(--wp--preset--font-family--fraunces); font-weight: 700; font-size: 1.9rem; line-height: 1.1; color: var(--dh-navy); }
.dh-pricing__offer { align-self: flex-start; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: #1F7A4D; color: #FFFFFF; }
.dh-pricing__alt { margin: 6px 0 0; font-size: .875rem; color: var(--dh-teal); }
.dh-pricing__what { margin: 12px 0 0; font-size: .95rem; line-height: 1.55; }
.dh-pricing__plan.is-best { background: var(--dh-navy); border-color: var(--dh-navy); color: var(--dh-cream); }
.dh-pricing__plan.is-best h3, .dh-pricing__plan.is-best .dh-pricing__price strong { color: var(--dh-cream); }
.dh-pricing__plan.is-best .dh-pricing__price del { color: rgba(251, 245, 234, .62); text-decoration-color: var(--dh-amber); }
.dh-pricing__plan.is-best .dh-pricing__offer { background: var(--dh-amber); color: var(--dh-navy); }
.dh-pricing__links { margin: 14px 0 0; font-size: .95rem; }
.dh-pricing__links a { font-weight: 600; }
.dh-pricing__notes { margin: 0; padding: 20px 20px 20px 40px; border: 1px solid var(--dh-line); border-radius: var(--dh-radius); background: var(--dh-white); font-size: .95rem; line-height: 1.6; }
.dh-pricing__notes li + li { margin-top: 6px; }
.dh-footer__contact { white-space: nowrap; }

.dh-price__was:empty { display: none; }
.dh-pricing__hook { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-size: .9rem; font-weight: 700; line-height: 1.4; background: var(--dh-amber); color: var(--dh-navy); }
