/*
 * Meadow Haze: components
 * Every value comes from tokens.css. Load tokens.css first.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mh-night);
  color: var(--mh-cloud);
  font-family: var(--mh-font-body);
  font-size: var(--mh-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* Layout */
.mh-container { width: 100%; max-width: var(--mh-container); margin: 0 auto; padding: 0 24px; }
.mh-section { padding: var(--mh-space-9) 0; }
.mh-section-tight { padding: var(--mh-space-8) 0; }
.mh-center { text-align: center; }
.mh-stack > * + * { margin-top: var(--mh-space-4); }

/* Type */
.mh-display, .mh-h1, .mh-h2 {
  font-family: var(--mh-font-head);
  font-stretch: var(--mh-stretch-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--mh-track-head);
  line-height: var(--mh-lh-head);
  margin: 0;
  text-wrap: balance;
}
.mh-display { font-size: var(--mh-text-display); }
.mh-h1 { font-size: var(--mh-text-h1); }
.mh-h2 { font-size: var(--mh-text-h2); font-weight: 700; }
.mh-h3 { font-family: var(--mh-font-body); font-size: var(--mh-text-h3); font-weight: 600; margin: 0; line-height: 1.3; }
.mh-lead { font-size: var(--mh-text-lead); color: var(--mh-mist); max-width: 580px; margin: var(--mh-space-4) 0 0; }
.mh-center .mh-lead { margin-left: auto; margin-right: auto; }
.mh-label {
  font-family: var(--mh-font-head);
  font-stretch: var(--mh-stretch-head);
  font-weight: 600;
  font-size: var(--mh-text-micro);
  letter-spacing: var(--mh-track-label);
  text-transform: uppercase;
  color: var(--mh-meadow);
}
.mh-muted { color: var(--mh-dim); }
.mh-blush-text { color: var(--mh-blush); }

/* Buttons */
.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--mh-space-2);
  padding: 12px 22px;
  border-radius: var(--mh-radius-pill);
  border: 1px solid transparent;
  font: 600 15px/1 var(--mh-font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.mh-btn:hover { transform: translateY(-1px); }
.mh-btn-light { background: var(--mh-cloud); color: var(--mh-on-light); }
.mh-btn-glass { background: var(--mh-glass); color: var(--mh-cloud); border-color: var(--mh-glass-line); backdrop-filter: var(--mh-blur); -webkit-backdrop-filter: var(--mh-blur); }
.mh-btn-ghost { background: transparent; color: var(--mh-cloud); border-color: var(--mh-line-bright); }
.mh-btn-sm { padding: 9px 16px; font-size: 14px; }
.mh-btn-block { width: 100%; }
.mh-btn:focus-visible, .mh-input:focus-visible, .mh-prompt input:focus-visible { outline: 2px solid var(--mh-blush); outline-offset: 2px; }

/* Nav: brand left, a dark glass pill of links in the middle, actions right */
.mh-nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--mh-space-4); padding: 18px 24px; }
.mh-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mh-font-head); font-stretch: var(--mh-stretch-head); font-weight: 800; font-size: 18px; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.mh-brand-mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(60% 60% at 50% 35%, var(--mh-sky) 0 48%, transparent 50%), radial-gradient(90% 60% at 50% 100%, var(--mh-meadow) 0 60%, transparent 62%), var(--mh-cloud); }
.mh-nav-links { display: flex; gap: var(--mh-space-1); padding: 5px; border-radius: var(--mh-radius-pill); background: var(--mh-glass); border: 1px solid var(--mh-glass-line); backdrop-filter: var(--mh-blur); -webkit-backdrop-filter: var(--mh-blur); }
.mh-nav-links a { padding: 8px 14px; border-radius: var(--mh-radius-pill); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--mh-mist); white-space: nowrap; }
.mh-nav-links a:hover, .mh-nav-links a[aria-current] { color: var(--mh-cloud); background: rgba(246, 244, 238, .08); }
.mh-nav-actions { display: flex; align-items: center; gap: var(--mh-space-3); }
.mh-nav-actions .mh-link { font-size: 14px; color: var(--mh-mist); text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) { .mh-nav-links { display: none; } }
@media (max-width: 420px) { .mh-nav-actions .mh-link { display: none; } }

/* The frame: an inset rounded picture that holds the painted afternoon */
.mh-frame { position: relative; margin: var(--mh-frame-inset); border-radius: var(--mh-radius-frame); overflow: hidden; isolation: isolate; }
.mh-frame > .mh-nav { position: absolute; top: 0; left: 0; right: 0; }
.mh-scene { position: absolute; inset: 0; z-index: -1; background: var(--mh-paint-shade), var(--mh-paint-hill), var(--mh-paint-sky); }
.mh-scene::before { content: ""; position: absolute; inset: -4%; background: var(--mh-paint-clouds); filter: blur(14px); animation: mh-drift 40s ease-in-out infinite alternate; }
.mh-scene::after { content: ""; position: absolute; inset: 0; background: var(--mh-paint-bloom); filter: blur(10px); }
.mh-scene-prop { position: absolute; left: 85%; bottom: 20%; width: clamp(70px, 8vw, 110px); transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(30, 50, 25, .35)); }
@media (max-width: 900px) { .mh-scene-prop { display: none; } }
.mh-frame .mh-nav-actions .mh-link { color: var(--mh-cloud); }
@keyframes mh-drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@media (prefers-reduced-motion: reduce) { .mh-scene::before { animation: none; } }

/* Hero inside the frame */
.mh-hero { min-height: min(860px, 96vh); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 140px 24px 40px; }
.mh-hero .mh-display { text-shadow: 0 2px 30px rgba(20, 40, 30, .35); }
.mh-hero .mh-lead { color: rgba(246, 244, 238, .9); text-shadow: 0 1px 12px rgba(10, 20, 15, .5); }
.mh-hero-short { min-height: 0; padding: 130px 24px 64px; }

/* Prompt bar: the bright white input, the one loud thing on the page */
.mh-prompt { display: flex; align-items: center; gap: var(--mh-space-3); width: 100%; max-width: 640px; margin: var(--mh-space-6) auto 0; padding: 8px 8px 8px 18px; background: var(--mh-cloud); border-radius: var(--mh-radius-bar); box-shadow: var(--mh-shadow-bar); color: var(--mh-on-light); }
.mh-prompt-plus { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(16, 21, 18, .15); color: var(--mh-on-light-dim); font-size: 18px; line-height: 1; }
.mh-prompt input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 17px var(--mh-font-body); color: var(--mh-on-light); padding: 10px 0; }
.mh-prompt input::placeholder { color: var(--mh-on-light-dim); }
.mh-prompt-go { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--mh-on-light); color: var(--mh-cloud); display: grid; place-items: center; cursor: pointer; }

/* Shortcut tiles under the prompt */
.mh-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--mh-space-3); margin-top: var(--mh-space-4); }
.mh-shortcut { display: flex; align-items: center; gap: var(--mh-space-3); padding: 7px 14px 7px 7px; border-radius: 14px; background: var(--mh-glass); border: 1px solid var(--mh-glass-line); backdrop-filter: var(--mh-blur); -webkit-backdrop-filter: var(--mh-blur); text-align: left; text-decoration: none; }
.mh-shortcut-thumb { width: 40px; height: 32px; border-radius: 8px; flex: none; }
.mh-shortcut b { display: block; font-size: 13px; font-weight: 600; }
.mh-shortcut span { display: block; font-size: 12px; color: var(--mh-mist); }

/* Ticker: a slow line of names along the bottom of the frame */
.mh-ticker { overflow-x: clip; width: 100%; margin-top: var(--mh-space-7); border-top: 1px solid var(--mh-glass-line); padding-top: var(--mh-space-4); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mh-ticker-track { display: flex; gap: var(--mh-space-7); width: max-content; animation: mh-tick 50s linear infinite; }
.mh-ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: rgba(246, 244, 238, .85); white-space: nowrap; }
.mh-ticker-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mh-blush); }
@keyframes mh-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mh-ticker-track { animation: none; } }

/* Badges and chips */
.mh-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--mh-radius-pill); border: 1px solid var(--mh-glass-line); background: var(--mh-glass); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mh-badge-new { border-color: var(--mh-cloud); color: var(--mh-cloud); background: transparent; }
.mh-badge-meadow { background: var(--mh-meadow-soft); border-color: transparent; color: var(--mh-meadow); }
.mh-badge-blush { background: var(--mh-blush-soft); border-color: transparent; color: var(--mh-blush); }

/* Cards */
.mh-grid { display: grid; gap: var(--mh-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.mh-card { background: var(--mh-deep); border: 1px solid var(--mh-line); border-radius: var(--mh-radius-card); padding: var(--mh-space-5); box-shadow: var(--mh-highlight); }
.mh-card p { color: var(--mh-mist); margin: var(--mh-space-2) 0 0; }
.mh-card-scene { position: relative; height: 180px; border-radius: var(--mh-radius-thumb); margin-bottom: var(--mh-space-4); overflow: hidden; }
.mh-card-scene::after { content: ""; position: absolute; inset: 0; background: var(--mh-paint-bloom); filter: blur(8px); opacity: .8; }
.mh-noon { background: var(--mh-scene-noon); }
.mh-gold { background: var(--mh-scene-gold); }
.mh-mist { background: var(--mh-scene-mist); }
.mh-blush { background: var(--mh-scene-blush); }

/* Feature row: a small scene beside copy */
.mh-split { display: grid; gap: var(--mh-space-7); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .mh-split { grid-template-columns: 1fr; } }
.mh-window { position: relative; border-radius: var(--mh-radius-card); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--mh-shadow); isolation: isolate; }
.mh-window-card { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 16px; background: var(--mh-glass-strong); border: 1px solid var(--mh-glass-line); backdrop-filter: var(--mh-blur); -webkit-backdrop-filter: var(--mh-blur); }
.mh-list { list-style: none; padding: 0; margin: var(--mh-space-5) 0 0; }
.mh-list li { position: relative; padding-left: 26px; margin-top: 10px; color: var(--mh-mist); }
.mh-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--mh-meadow); box-shadow: 0 0 0 4px var(--mh-meadow-soft); }

/* Stats */
.mh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--mh-space-5); }
.mh-stat b { display: block; font-family: var(--mh-font-head); font-stretch: var(--mh-stretch-head); font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.mh-stat span { color: var(--mh-dim); font-size: var(--mh-text-small); }

/* Quote */
.mh-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.mh-quote blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.35; font-weight: 500; }
.mh-quote cite { display: block; margin-top: var(--mh-space-5); font-style: normal; color: var(--mh-dim); font-size: var(--mh-text-small); }

/* Pricing */
.mh-toggle { display: inline-flex; padding: 4px; border-radius: var(--mh-radius-pill); background: var(--mh-glass); border: 1px solid var(--mh-glass-line); backdrop-filter: var(--mh-blur); -webkit-backdrop-filter: var(--mh-blur); }
.mh-toggle button { border: 0; background: transparent; color: var(--mh-mist); font: 500 14px var(--mh-font-body); padding: 8px 16px; border-radius: var(--mh-radius-pill); cursor: pointer; white-space: nowrap; }
.mh-toggle button[aria-pressed="true"] { background: var(--mh-cloud); color: var(--mh-on-light); }
.mh-plans { display: grid; gap: var(--mh-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.mh-plan { display: flex; flex-direction: column; background: var(--mh-deep); border: 1px solid var(--mh-line); border-radius: var(--mh-radius-card); padding: var(--mh-space-6); box-shadow: var(--mh-highlight); }
.mh-plan-featured { position: relative; overflow: hidden; isolation: isolate; border-color: transparent; }
.mh-plan-featured::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--mh-scene-blush); }
.mh-plan-featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 16, 14, .25), rgba(12, 16, 14, .82) 55%); }
.mh-price { font-family: var(--mh-font-head); font-stretch: var(--mh-stretch-head); font-weight: 800; font-size: 46px; line-height: 1; margin: var(--mh-space-5) 0 var(--mh-space-1); }
.mh-price small { font-family: var(--mh-font-body); font-weight: 500; font-size: 14px; color: var(--mh-mist); margin-left: 4px; }
.mh-plan .mh-list { flex: 1; margin-bottom: var(--mh-space-6); }
.mh-table-wrap { overflow-x: auto; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-card); }
.mh-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.mh-table th, .mh-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--mh-line); font-size: var(--mh-text-small); }
.mh-table th { font-family: var(--mh-font-head); font-stretch: var(--mh-stretch-head); font-weight: 600; font-size: var(--mh-text-micro); letter-spacing: var(--mh-track-label); text-transform: uppercase; color: var(--mh-dim); }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-yes { color: var(--mh-meadow); font-weight: 600; }
.mh-no { color: var(--mh-dim); }

/* FAQ */
.mh-faq { max-width: 760px; margin: 0 auto; }
.mh-faq details { border-bottom: 1px solid var(--mh-line); padding: var(--mh-space-5) 0; }
.mh-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: var(--mh-space-4); }
.mh-faq summary::after { content: "+"; color: var(--mh-blush); font-size: 22px; line-height: 1; }
.mh-faq details[open] summary::after { content: "\2212"; }
.mh-faq p { color: var(--mh-mist); margin: var(--mh-space-3) 0 0; }

/* Forms */
.mh-form { display: grid; gap: var(--mh-space-4); }
.mh-field { display: grid; gap: 6px; }
.mh-field label { font-size: var(--mh-text-small); font-weight: 500; color: var(--mh-mist); }
.mh-input { width: 100%; padding: 13px 15px; border-radius: var(--mh-radius-input); border: 1px solid var(--mh-line-bright); background: var(--mh-night); color: var(--mh-cloud); font: 400 16px var(--mh-font-body); }
.mh-input::placeholder { color: var(--mh-dim); }
.mh-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--mh-text-small); color: var(--mh-mist); }
.mh-check input { margin-top: 4px; accent-color: var(--mh-meadow); }
.mh-divider { display: flex; align-items: center; gap: var(--mh-space-3); color: var(--mh-dim); font-size: 13px; }
.mh-divider::before, .mh-divider::after { content: ""; flex: 1; height: 1px; background: var(--mh-line); }
.mh-panel { background: var(--mh-glass-strong); border: 1px solid var(--mh-glass-line); border-radius: var(--mh-radius-card); padding: var(--mh-space-6); backdrop-filter: var(--mh-blur); -webkit-backdrop-filter: var(--mh-blur); box-shadow: var(--mh-shadow); }
.mh-chips { display: flex; flex-wrap: wrap; gap: var(--mh-space-2); }
.mh-chip { position: relative; }
.mh-chip input { position: absolute; opacity: 0; }
.mh-chip span { display: inline-block; padding: 8px 14px; border-radius: var(--mh-radius-pill); border: 1px solid var(--mh-line-bright); font-size: 14px; color: var(--mh-mist); cursor: pointer; white-space: nowrap; }
.mh-chip input:checked + span { background: var(--mh-cloud); border-color: var(--mh-cloud); color: var(--mh-on-light); }

/* Article */
.mh-article { max-width: var(--mh-article); margin: 0 auto; padding: 0 24px; font-size: 18px; line-height: 1.75; }
.mh-article p { color: #D8DCD6; margin: 0 0 1.2em; }
.mh-article h2 { font-family: var(--mh-font-head); font-stretch: var(--mh-stretch-head); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.1; margin: 2em 0 .7em; }
.mh-article blockquote { margin: 2em 0; padding: var(--mh-space-5) var(--mh-space-6); border-radius: var(--mh-radius-card); background: var(--mh-deep); border: 1px solid var(--mh-line); font-size: 21px; line-height: 1.5; color: var(--mh-cloud); }
.mh-article blockquote::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--mh-blush); margin-bottom: var(--mh-space-4); }
.mh-article ul { padding-left: 1.2em; color: #D8DCD6; }
.mh-article li::marker { color: var(--mh-meadow); }
.mh-article figure { margin: 2em 0; }
.mh-article figcaption { font-size: 13px; color: var(--mh-dim); margin-top: 10px; }
.mh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mh-space-3); justify-content: center; color: rgba(246, 244, 238, .85); font-size: var(--mh-text-small); margin-top: var(--mh-space-5); }
.mh-avatar { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--mh-straw) 0 26%, transparent 28%), radial-gradient(70% 50% at 50% 100%, var(--mh-blush) 0 70%, transparent 72%), var(--mh-sky-deep); flex: none; }

/* CTA band: a second, smaller frame */
.mh-cta { position: relative; border-radius: var(--mh-radius-frame); overflow: hidden; isolation: isolate; padding: var(--mh-space-9) 24px; text-align: center; }

/* Footer */
.mh-footer { border-top: 1px solid var(--mh-line); padding: var(--mh-space-8) 0 var(--mh-space-6); color: var(--mh-dim); font-size: var(--mh-text-small); }
.mh-footer-grid { display: grid; gap: var(--mh-space-6); grid-template-columns: 2fr repeat(3, 1fr); }
.mh-footer h4 { margin: 0 0 var(--mh-space-3); font-family: var(--mh-font-head); font-stretch: var(--mh-stretch-head); font-size: var(--mh-text-micro); letter-spacing: var(--mh-track-label); text-transform: uppercase; color: var(--mh-mist); }
.mh-footer a { display: block; text-decoration: none; margin-top: 8px; }
.mh-footer a:hover { color: var(--mh-cloud); }
.mh-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--mh-space-3); margin-top: var(--mh-space-7); padding-top: var(--mh-space-5); border-top: 1px solid var(--mh-line); }
@media (max-width: 760px) { .mh-footer-grid { grid-template-columns: 1fr 1fr; } }
