:root {
    --mch-bg: #fff8f3;
    --mch-bg-soft: #fff1e8;
    --mch-card: #ffffff;
    --mch-card-soft: #fffaf7;
    --mch-text: #2f2f2f;
    --mch-muted: #6d6761;
    --mch-primary: #e88e8e;
    --mch-primary-dark: #c76474;
    --mch-secondary: #7c9d96;
    --mch-accent: #f6c177;
    --mch-border: rgba(47,47,47,.10);
    --mch-shadow: 0 24px 70px rgba(114, 75, 55, .12);
    --mch-radius-lg: 32px;
    --mch-radius-md: 22px;
    --mch-radius-sm: 14px;
    --mch-shell: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--mch-bg);
    color: var(--mch-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mch-primary-dark); }
img { max-width: 100%; height: auto; }
.site-shell { width: min(var(--mch-shell), calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: #fff; border-radius: 10px; z-index: 99; }
.skip-link:focus { left: 12px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 243, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--mch-border);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand-mark { width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--mch-primary), var(--mch-accent)); color: #fff; font-weight: 900; box-shadow: 0 12px 30px rgba(232,142,142,.28); }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-text strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--mch-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.primary-nav { flex: 0 1 auto; }
.nav-list { list-style: none; display: flex; gap: clamp(12px, 1.5vw, 22px); margin: 0; padding: 0; align-items: center; flex-wrap: nowrap; }
.nav-list li { white-space: nowrap; }
.nav-list a { color: var(--mch-muted); font-weight: 700; font-size: clamp(.84rem, .95vw, .94rem); white-space: nowrap; }
.nav-list a:hover { color: var(--mch-primary-dark); }
.nav-toggle { display: none; border: 0; border-radius: 999px; background: var(--mch-card); box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 10px 16px; font-weight: 800; color: var(--mch-text); }
.hero-section { padding: 78px 0 52px; background: radial-gradient(circle at 15% 15%, rgba(246,193,119,.34), transparent 28%), radial-gradient(circle at 90% 12%, rgba(124,157,150,.20), transparent 28%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .74fr); gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; width: fit-content; gap: 8px; color: var(--mch-primary-dark); background: rgba(232,142,142,.12); padding: 8px 13px; border-radius: 999px; font-size: .84rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; color: var(--mch-text); }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 16px; color: var(--mch-muted); }
.hero-copy p { font-size: 1.16rem; max-width: 690px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; padding: 13px 20px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); color: inherit; }
.button-primary { background: var(--mch-text); color: #fff; box-shadow: 0 18px 36px rgba(47,47,47,.17); }
.button-primary:hover { color: #fff; }
.button-secondary { background: #fff; color: var(--mch-text); border: 1px solid var(--mch-border); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-row span { border: 1px solid rgba(124,157,150,.35); color: #4f746c; background: rgba(124,157,150,.10); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: .88rem; }
.hero-card { background: linear-gradient(180deg, #fff, #fff8f3); border: 1px solid rgba(255,255,255,.65); border-radius: var(--mch-radius-lg); box-shadow: var(--mch-shadow); padding: 28px; min-height: 430px; position: relative; overflow: hidden; }
.hero-card:before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 999px; background: rgba(232,142,142,.16); right: -80px; top: -80px; }
.mini-card-header { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 38px; }
.mini-card-header span { color: var(--mch-muted); font-weight: 800; }
.mini-card-header strong { background: rgba(246,193,119,.20); padding: 8px 12px; border-radius: 999px; }
.mini-form-row { height: 58px; border-radius: 18px; background: #fff; border: 1px solid var(--mch-border); margin-bottom: 16px; box-shadow: 0 12px 30px rgba(47,47,47,.05); }
.mini-form-row.short { width: 74%; }
.mini-result { margin-top: 28px; background: #2f2f2f; color: #fff; border-radius: 24px; padding: 24px; position: relative; }
.mini-result span { color: rgba(255,255,255,.66); font-weight: 800; }
.mini-result strong { display: block; font-size: 2rem; line-height: 1; margin: 12px 0; }
.mini-result p { color: rgba(255,255,255,.72); margin: 0; }
.category-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; margin-bottom: 72px; }
.category-strip article { background: rgba(255,255,255,.78); border: 1px solid var(--mch-border); border-radius: var(--mch-radius-md); padding: 24px; box-shadow: 0 18px 42px rgba(114, 75, 55, .08); }
.category-strip span { font-size: 1.8rem; display: inline-block; margin-bottom: 12px; }
.category-strip h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.category-strip p { margin: 0; }
.section-block { padding: 28px 0 82px; }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 28px; max-width: 750px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.calculator-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.calculator-card { background: #fff; border: 1px solid var(--mch-border); border-radius: var(--mch-radius-md); padding: 23px; min-height: 238px; display: flex; flex-direction: column; box-shadow: 0 16px 44px rgba(114,75,55,.08); transition: transform .18s ease, box-shadow .18s ease; }
.calculator-card:hover { transform: translateY(-4px); box-shadow: var(--mch-shadow); color: inherit; }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--mch-card-soft); font-size: 1.65rem; margin-bottom: 18px; }
.calculator-card p { flex: 1; }
.calculator-card strong { color: var(--mch-primary-dark); }
.soft-section { background: linear-gradient(180deg, var(--mch-bg-soft), #fff8f3); padding: 76px 0; border-top: 1px solid var(--mch-border); }
.feature-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center; }
.feature-grid > :first-child { max-width: 620px; }
.feature-grid .eyebrow { margin-bottom: 16px; }
.feature-list { display: grid; gap: 14px; align-self: center; }
.feature-list article { display: grid; gap: 4px; background: #fff; border: 1px solid var(--mch-border); border-radius: var(--mch-radius-md); padding: 22px; box-shadow: 0 16px 42px rgba(114,75,55,.07); }
.feature-list strong { font-size: 1.05rem; }
.feature-list span { color: var(--mch-muted); }
.page-main { padding: 48px 0 78px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.content-card { background: #fff; border: 1px solid var(--mch-border); border-radius: var(--mch-radius-lg); padding: clamp(24px, 4vw, 52px); box-shadow: var(--mch-shadow); }
.page-header { margin-bottom: 28px; }
.page-header .eyebrow { margin-bottom: 14px; }
.entry-content > *:first-child { margin-top: 0; }
.site-footer { background: #2f2f2f; color: #fff; padding: 58px 0 24px; }
.site-footer p, .site-footer a, .site-footer small { color: rgba(255,255,255,.70); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 34px; padding-bottom: 32px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-note { max-width: 390px; }
.footer-links, .footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.60); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 1120px) {
    .brand-text small { display: none; }
    .header-inner { gap: 14px; }
    .nav-list { gap: 14px; }
}
@media (max-width: 860px) {
    .brand-mark { width: 40px; min-width: 40px; height: 40px; border-radius: 14px; }
    .brand-text strong { font-size: 1rem; }
    .nav-list a { font-size: .88rem; }
}
@media (max-width: 980px) {
    .hero-grid, .feature-grid { grid-template-columns: 1fr; }
    .calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-strip { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .header-inner { min-height: 68px; }
    .nav-toggle { display: inline-flex; }
    .primary-nav { position: absolute; inset: 68px 16px auto 16px; background: #fff; border: 1px solid var(--mch-border); border-radius: 20px; padding: 16px; box-shadow: var(--mch-shadow); display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 12px; }
    .brand-text small { display: none; }
    .hero-section { padding-top: 48px; }
    .calculator-grid { grid-template-columns: 1fr; }
    .content-card { border-radius: 22px; }
}
.calculator-card small { color: var(--mch-secondary); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.editorial-section { padding: 78px 0; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.editorial-grid article { background: #fff; border: 1px solid var(--mch-border); border-radius: var(--mch-radius-md); padding: 24px; box-shadow: 0 16px 42px rgba(114,75,55,.07); }
.editorial-grid article p { margin-bottom: 0; }
.footer-contact { display: inline-flex; margin-top: 4px; font-weight: 900; color: #fff !important; }
.footer-menu a { color: rgba(255,255,255,.72); }
@media (max-width: 980px) { .editorial-grid { grid-template-columns: 1fr; } }

.hero-tool-card { min-height: auto; }
.hero-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.small-eyebrow { font-size: .72rem; padding: 6px 10px; }
.hero-card-top strong { background: rgba(246,193,119,.20); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.hero-link-list { position: relative; display: grid; gap: 12px; margin-top: 20px; }
.hero-link-list a { display: grid; grid-template-columns: 42px 1fr; grid-template-areas: "icon title" "icon text"; gap: 2px 12px; align-items: center; background: rgba(255,255,255,.86); border: 1px solid var(--mch-border); border-radius: 18px; padding: 14px; box-shadow: 0 12px 30px rgba(47,47,47,.05); }
.hero-link-list a:hover { color: inherit; border-color: rgba(232,142,142,.44); transform: translateY(-2px); }
.hero-link-list span { grid-area: icon; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--mch-card-soft); font-size: 1.25rem; }
.hero-link-list strong { grid-area: title; font-size: .98rem; }
.hero-link-list small { grid-area: text; color: var(--mch-muted); line-height: 1.35; }
.hero-card h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }

/* v1.7 header refinements */
.brand-text small { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary-nav .nav-list a { white-space: nowrap; }
@media (max-width: 1080px) { .brand-text small { max-width: 260px; } }
@media (max-width: 980px) { .brand-text small { display: none; } }

@media (min-width: 981px) {
    .feature-list { margin-top: 10px; }
}
