:root {
    --nw-accent: #0b6e4f;
    --nw-accent-hover: #08553d;
    --nw-ink: #0d0d0d;
    --nw-ink-2: #3c3c3c;
    --nw-ink-3: #6b6b6b;
    --nw-line: #e4e4e4;
    --nw-grey: #efefef;
    --nw-grey-2: #f6f6f6;
    --nw-radius: 16px;
    --nw-font: 'Montserrat', system-ui, sans-serif;
    /* Read by the AI chat add-on, which otherwise falls back to its own red. */
    --color-accent: var(--nw-accent);
    --color-accent-hover: var(--nw-accent-hover);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--nw-font); font-size: 16px; line-height: 1.55; color: var(--nw-ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--nw-accent); }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
.nw-container { width: 100%; max-width: 1202px; margin: 0 auto; padding-inline: 16px; }

/* buttons */
.nw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: 12px; font: 600 15px/1.2 var(--nw-font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.nw-btn--lg { min-height: 56px; padding: 14px 32px; font-size: 16px; }
.nw-btn--accent { background: var(--nw-accent); color: #fff; }
.nw-btn--accent:hover { background: var(--nw-accent-hover); color: #fff; }
.nw-btn--ghost { border-color: var(--nw-ink); color: var(--nw-ink); background: transparent; }
.nw-btn--ghost:hover { background: var(--nw-ink); color: #fff; }
.nw-btn--dark { background: var(--nw-ink); color: #fff; }
.nw-btn--dark:hover { background: #333; }
.nw-btn--light { background: #fff; color: var(--nw-ink); }
.nw-btn--light:hover { background: var(--nw-grey); }
form.ep-demo-login { display: inline-block; margin: 0; }
.nw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* top bar and header */
.nw-topbar { background: var(--nw-grey); font-size: 13px; color: var(--nw-ink-2); }
.nw-topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.nw-topbar-links { display: flex; gap: 20px; }
.nw-topbar a { color: inherit; text-decoration: none; }
.nw-topbar a:hover { color: var(--nw-accent); }
.nw-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.nw-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nw-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--nw-ink); text-decoration: none; }
.nw-logo-mark { width: 36px; height: 36px; color: var(--nw-accent); }
.nw-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nw-logo-text b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.nw-logo-text small { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--nw-ink-3); margin-top: 3px; }
.nw-logo--light { color: #fff; }
.nw-logo--light .nw-logo-text small { color: #9a9a9a; }
.nw-logo--light .nw-logo-mark { color: #3fd6a1; }
.nw-nav { display: flex; align-items: center; gap: 32px; }
.nw-menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nw-menu a { color: var(--nw-ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nw-menu a:hover, .nw-menu .current-menu-item a { color: var(--nw-accent); }
.nw-nav-toggle, .nw-burger { display: none; }
.nw-langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nw-langs a { display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border-radius: 8px; color: var(--nw-ink-3); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.nw-langs a:hover { color: var(--nw-ink); background: var(--nw-grey-2); }
.nw-langs a.is-current { color: var(--nw-accent); background: var(--nw-accent-soft, #e6f2ed); }

/* sections */
.nw-main { display: block; }
.nw-section { padding-block: 96px; }
.nw-section--grey { background: var(--nw-grey-2); }
.nw-section--dark { background: var(--nw-ink); color: #fff; }
.nw-h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 48px; }
.nw-center { text-align: center; margin-top: 48px; }
.nw-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nw-accent); margin: 0 0 16px; }
.nw-grid { display: grid; gap: 32px; }
.nw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-feature h3 { font-size: 20px; margin: 20px 0 8px; }
.nw-feature p { margin: 0; color: var(--nw-ink-2); font-size: 15px; }
.nw-feature--dark p { color: #b5b5b5; }
.nw-feature-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 14px; background: #e6f2ed; color: var(--nw-accent); }
.nw-feature--dark .nw-feature-icon { background: #1d2a25; color: #3fd6a1; }
.nw-icon { width: 30px; height: 30px; }

/* hero */
.nw-hero { background: linear-gradient(180deg, var(--nw-grey) 0%, #fff 100%); padding-block: 96px 80px; overflow: hidden; }
.nw-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.nw-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 24px; }
.nw-lead { font-size: 18px; color: var(--nw-ink-2); max-width: 560px; margin: 0; }
.nw-hero-art { position: relative; display: flex; justify-content: center; }
.nw-hero-art::before { content: ""; position: absolute; inset: -40px -80px; background: radial-gradient(circle at 60% 40%, #cfe8dd 0, transparent 60%); }
.nw-hero-card { position: relative; width: min(360px, 100%); padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.12); }
.nw-hero-cube { display: flex; align-items: center; justify-content: center; height: 180px; border-radius: 16px; background: var(--nw-grey-2); color: var(--nw-accent); }
.nw-hero-cube .nw-icon { width: 110px; height: 110px; stroke-width: 1.2; }
.nw-hero-card dl { margin: 20px 0 0; }
.nw-hero-card dl div { display: flex; justify-content: space-between; padding-block: 8px; border-bottom: 1px solid var(--nw-line); }
.nw-hero-card dt { color: var(--nw-ink-2); }
.nw-hero-card dd { margin: 0; font-weight: 600; }
.nw-hero-card dl div:last-child dd { color: var(--nw-accent); font-size: 22px; }
.nw-hero-chip { position: absolute; top: -14px; right: 20px; padding: 6px 14px; border-radius: 999px; background: var(--nw-ink); color: #fff; font-size: 12px; font-weight: 600; }

/* steps */
.nw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; counter-reset: none; }
.nw-step { position: relative; padding: 32px; border-radius: var(--nw-radius); background: #fff; }
.nw-step h3 { font-size: 20px; margin: 20px 0 8px; }
.nw-step p { margin: 0; color: var(--nw-ink-2); }
.nw-step-num { position: absolute; top: 24px; right: 28px; font-size: 48px; font-weight: 700; color: var(--nw-grey); line-height: 1; }

/* materials */
.nw-material { padding: 32px; border: 1px solid var(--nw-line); border-radius: var(--nw-radius); transition: border-color .15s, box-shadow .15s; }
.nw-material:hover { border-color: var(--nw-accent); box-shadow: 0 12px 32px rgba(11,110,79,.08); }
.nw-material header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nw-material-tag { padding: 4px 12px; border-radius: 999px; background: var(--nw-ink); color: #fff; font-size: 13px; font-weight: 600; }
.nw-material-price { color: var(--nw-accent); font-weight: 600; }
.nw-material h3 { font-size: 20px; }
.nw-material p { margin: 0; color: var(--nw-ink-2); }

/* faq */
.nw-faq { display: grid; gap: 12px; }
.nw-faq-item { border-radius: var(--nw-radius); background: var(--nw-grey); }
.nw-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 32px; font-weight: 600; cursor: pointer; list-style: none; }
.nw-faq-item summary::-webkit-details-marker { display: none; }
.nw-faq-item summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; transition: transform .2s; }
.nw-faq-item[open] summary::after { transform: rotate(45deg); }
.nw-faq-item p { margin: 0; padding: 0 32px 24px; color: var(--nw-ink-2); max-width: 820px; }

/* pages */
.nw-page { padding-block: 64px 96px; }
.nw-page-title { font-size: clamp(34px, 4.5vw, 60px); margin-bottom: 32px; }
.nw-content > :first-child { margin-top: 0; }
.nw-calculator { padding-block: 16px 32px; }

/* footer */
.nw-footer { background: var(--nw-ink); color: #fff; padding-block: 72px; }
.nw-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.nw-footer h3 { font-size: 16px; margin-bottom: 20px; }
.nw-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: #b5b5b5; }
.nw-footer-menu a { color: #b5b5b5; text-decoration: none; }
.nw-footer-menu a:hover { color: #fff; }
.nw-footer-note { margin-top: 20px; font-size: 14px; color: #9a9a9a; max-width: 300px; }

/* the demo tour */
.ep-tour { background: #fff; }
.tour-header { background: var(--nw-ink); color: #fff; }
.tour-header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 16px; }
.tour-brand { font-weight: 700; letter-spacing: .02em; font-size: 18px; }
.tour-brand b { color: #e8173a; font-weight: 700; }
.tour-brand small { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #ffd400; color: #111; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.tour-header-right { display: flex; align-items: center; gap: 16px; }
.tour-header-right .nw-langs a { color: #9aa5a0; }
.tour-header-right .nw-langs a:hover { color: #fff; background: #1d2724; }
.tour-header-right .nw-langs a.is-current { color: #3fd6a1; background: #16231e; }
.tour-link { color: #fff; text-decoration: none; font-size: 14px; opacity: .85; }
.tour-link:hover { opacity: 1; }
.tour-hero { background: radial-gradient(1200px 500px at 80% 0%, #1f3b31 0%, transparent 60%), var(--nw-ink); color: #fff; padding-block: 88px 96px; }
.tour-hero h1 { font-size: clamp(36px, 5.5vw, 64px); max-width: 900px; margin-bottom: 24px; }
.tour-eyebrow { color: #3fd6a1; }
.tour-lead { font-size: 19px; color: #c9c9c9; max-width: 760px; margin: 0; }
.tour-note { margin: 24px 0 0; color: #9a9a9a; font-size: 14px; }
.tour-note a { color: #fff; }
.tour-chapters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.tour-chapter { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border: 1px solid var(--nw-line); border-radius: 20px; }
.tour-chapter-num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--nw-ink); color: #fff; font-weight: 700; margin-bottom: 20px; }
.tour-chapter h2 { font-size: 26px; margin-bottom: 4px; }
.tour-chapter > p { margin: 0 0 20px; color: var(--nw-ink-3); }
.tour-chapter ol { margin: 0 0 28px; padding-left: 20px; display: grid; gap: 10px; color: var(--nw-ink-2); flex: 1; }
.tour-chapter .ep-demo-login, .tour-chapter .ep-demo-login button { width: 100%; }
.tour-models { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.tour-model { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--nw-radius); background: #fff; color: var(--nw-ink); text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.tour-model:hover { border-color: var(--nw-accent); }
.tour-model b { display: block; }
.tour-model small { color: var(--nw-ink-3); }
.tour-model-get { color: var(--nw-accent); font-weight: 600; font-size: 14px; }
.tour-footer { background: var(--nw-ink); color: #9a9a9a; padding-block: 32px; font-size: 14px; }
.tour-footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tour-footer .tour-brand { color: #fff; }

/* narrow */
@media (max-width: 1024px) {
    .nw-grid--4, .tour-models { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .nw-grid--3, .nw-steps, .tour-chapters { grid-template-columns: 1fr; }
    .nw-hero-grid { grid-template-columns: 1fr; }
    .nw-footer-grid { grid-template-columns: 1fr 1fr; }
    .nw-burger { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
    .nw-burger span, .nw-burger span::before, .nw-burger span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--nw-ink); position: relative; }
    .nw-burger span::before { position: absolute; top: -7px; } .nw-burger span::after { position: absolute; top: 7px; }
    .nw-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; background: #fff; box-shadow: 0 16px 24px rgba(0,0,0,.08); }
    .nw-menu { flex-direction: column; gap: 14px; }
    .nw-nav-toggle:checked ~ .nw-nav { display: flex; }
    .nw-header-inner { position: relative; }
}
@media (max-width: 600px) {
    .nw-section { padding-block: 64px; }
    .nw-grid--4, .tour-models, .nw-footer-grid { grid-template-columns: 1fr; }
    .nw-topbar-inner > span:first-child { display: none; }
    .nw-topbar-inner { justify-content: center; }
    .nw-hero { padding-block: 56px; }
    .nw-actions .nw-btn, .nw-actions form, .nw-actions form button { width: 100%; }
    .nw-faq-item summary { padding: 18px 20px; } .nw-faq-item p { padding: 0 20px 20px; }
    .tour-link { display: none; }
    .nw-calculator { padding-block: 0 16px; }
}
