:root {
    --tool-bg: #f3f3ef;
    --panel-bg: #ffffff;
    --ink: #111111;
    --muted: #444444;
    --navy: #0b2f89;
    --line: #111111;
    --shadow-offset: 8px;
}

* {
    box-sizing: border-box;
}

body.nutrition-tool-page {
    margin: 0;
    background: var(--tool-bg);
    color: var(--ink);
    font-family: "Gothic A1", sans-serif;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000;
    background: #fff;
    color: #000;
    padding: 12px 14px;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
}

.tool-header {
    border-bottom: 4px solid #000;
    background: #fff;
}

.tool-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #000;
    text-decoration: none;
    font-weight: 900;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 3px solid #000;
    background: var(--navy);
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.08em;
    box-shadow: 5px 5px 0 #000;
}

.brand-text,
.nav-link,
.hero-copy h1,
.hero-hook,
.panel-head h2,
.preview-card h2,
.purchase-card h2,
.faq-shell h2,
.faq-item h3,
.accordion-title,
.format-option span,
.nutrition-label-title {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.04em;
}

.brand-text,
.nav-link {
    color: #000 !important;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--navy) !important;
}

.navbar-toggler,
.quote-btn,
.language-switch-btn {
    border-radius: 0;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
}

.quote-btn,
.language-switch-btn {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.quote-btn {
    background: var(--navy);
    color: #fff;
}

.quote-btn:hover,
.quote-btn:focus-visible {
    background: #08256c;
    color: #fff;
    transform: translate(-2px, -2px);
}

.language-switch-btn {
    background: #fff;
    color: #000;
}

.language-switch-btn:hover,
.language-switch-btn:focus-visible {
    background: #000;
    color: #fff;
    transform: translate(-2px, -2px);
}

.nav-toggle {
    width: 52px;
    height: 52px;
    border: 3px solid #000;
    background: #fff;
    box-shadow: 5px 5px 0 #000;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    margin: 0 auto;
    background: #000;
}

.nav-links-shell {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
    display: none;
    z-index: 20;
}

.nav-links-shell.is-open {
    display: block;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 18px 0;
}

.nav-links li {
    border-bottom: 2px solid #000;
}

.nav-links li:last-child {
    border-bottom: 0;
}

.nav-links a,
.tools-menu-toggle {
    display: block;
    width: 100%;
    padding: 14px 16px;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    background: transparent;
    border: 0;
    text-align: left;
}

.tools-menu {
    display: none;
    border-top: 2px solid #000;
    background: #f2f6ff;
}

.tools-menu.is-open {
    display: block;
}

.tools-menu a {
    padding-left: 28px;
}

.tools-menu .is-active {
    background: var(--navy);
    color: #fff;
}

.nav-cta {
    background: var(--navy);
    color: #fff !important;
}

.tool-hero {
    padding: 28px 0 18px;
}

.tool-main-section {
    padding: 32px 0 48px;
}

.hero-layout {
    display: grid;
    gap: 20px;
}

.hero-badge,
.panel-badge {
    display: inline-block;
    padding: 8px 12px;
    background: var(--navy);
    color: #fff;
    border: 3px solid #000;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-tag {
    display: inline-block;
    padding: 8px 12px;
    background: var(--navy);
    color: #fff;
    border: 3px solid #000;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.faq-shell h2 {
    font-size: clamp(2.6rem, 9vw, 4.9rem);
    line-height: 0.9;
    margin: 14px 0 10px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.6rem, 9vw, 4.9rem);
    line-height: 0.9;
    margin: 14px 0 10px;
    text-transform: uppercase;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.04em;
}

.hero-hook {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 5.5vw, 2.2rem);
    text-transform: uppercase;
}

.hero-text,
.disclaimer-copy,
.hero-note p,
.accordion-copy p,
.helper-text,
.placeholder-copy,
.result-note,
.purchase-card p,
.quote-card p,
.faq-item p,
.payment-status,
.checkout-status,
.nutrition-label-note,
.nutrition-microcopy {
    color: var(--muted);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-note,
.workspace-panel,
.faq-shell,
.quote-card,
.hero-shell {
    background: #fff;
    border: 4px solid #000;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 #000;
}

.hero-note,
.hero-shell {
    padding: 18px;
}

.tool-workspace {
    padding: 10px 0 22px;
}

.workspace-grid {
    display: grid;
    gap: 24px;
}

.workspace-panel {
    padding: 18px;
    position: relative;
}

.panel-head {
    margin-bottom: 16px;
}

.panel-head h2,
.preview-card h2,
.purchase-card h2 {
    margin: 12px 0 0;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 0.96;
}

.accordion-group {
    display: grid;
    gap: 14px;
}

.tool-accordion {
    border: 4px solid #000;
}

.accordion-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 0;
    background: #fff;
    text-align: left;
}

.accordion-index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
}

.accordion-title {
    font-size: 1.55rem;
    text-transform: uppercase;
}

.accordion-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #000;
    transform: translateY(-50%);
}

.accordion-icon::after {
    transform: translateY(-50%) rotate(90deg);
}

.accordion-toggle[aria-expanded="true"] .accordion-icon::after {
    display: none;
}

.accordion-panel {
    padding: 0 14px 14px;
    border-top: 4px solid #000;
    background: #f7f7f4;
}

.field-stack,
.field-grid {
    display: grid;
    gap: 14px;
}

.field-shell {
    display: grid;
    gap: 8px;
}

.field-shell label {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.field-shell input,
.field-shell textarea {
    min-height: 52px;
    width: 100%;
    border: 3px solid #000;
    background: #fff;
    padding: 12px 14px;
    color: #000;
    border-radius: 0;
}

.field-shell textarea {
    min-height: 120px;
    resize: vertical;
}

.field-shell input:focus,
.field-shell textarea:focus,
.cta-button:focus,
.secondary-button:focus,
.accordion-toggle:focus,
.nav-toggle:focus,
.tools-menu-toggle:focus,
.nav-links a:focus,
.format-option input:focus + span {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

.helper-text,
.error-text,
.payment-status {
    margin: 0;
    font-size: 0.9rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-button,
.secondary-button,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border: 3px solid #000;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
}

.cta-button,
.primary-btn {
    background: var(--navy);
    color: #fff;
    box-shadow: 6px 6px 0 #000;
}

.secondary-button,
.secondary-btn {
    background: #fff;
    color: #000;
    box-shadow: 6px 6px 0 #000;
}

.error-text {
    min-height: 22px;
    color: #8d1414;
    font-weight: 700;
}

.preview-panel {
    display: grid;
    gap: 18px;
}

.result-backdrop {
    position: absolute;
    width: 92%;
    height: 52%;
    border: 4px solid #000;
    background: #dbe7ff;
    z-index: 0;
}

.result-backdrop-one {
    top: 18px;
    left: 16px;
}

.result-backdrop-two {
    top: 34px;
    left: 28px;
    background: #bed0ff;
}

.preview-card,
.purchase-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 4px solid #000;
    padding: 18px;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 #000;
}

.purchase-card {
    z-index: 1;
}

.purchase-card-inline,
.quote-card-inline {
    margin-top: 18px;
}

.payment-status {
    min-height: 22px;
    margin-top: 12px;
    font-weight: 700;
}

.payment-status.is-success {
    color: #0d642c;
}

.payment-status.is-cancel {
    color: #7b4b00;
}

.nutrition-preview-stage {
    margin-top: 18px;
}

.nutrition-preview-shell {
    position: relative;
    background: #fff;
    border: 4px solid #000;
    padding: 18px;
}

.nutrition-preview-shell.is-locked {
    position: relative;
}

.nutrition-preview-shell.is-locked::after {
    content: "Free classic preview";
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--navy);
    color: #fff;
    border: 3px solid #000;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nutrition-preview-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    z-index: 2;
    border: 3px solid #000;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(11, 47, 137, 0.5);
    padding: 10px 20px;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}

.preview-tabular .nutrition-label-title {
    font-size: 2.6rem;
}

.preview-linear {
    padding-bottom: 14px;
}

.preview-linear .nutrition-row,
.preview-linear .nutrition-vitamin-row {
    font-size: 0.9rem;
}

.preview-small-package {
    max-width: 340px;
    margin: 0 auto;
}

.preview-small-package .nutrition-label-title {
    font-size: 2.3rem;
}

.nutrition-label-title {
    font-size: 3rem;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nutrition-serving-line,
.nutrition-microcopy {
    font-size: 0.88rem;
}

.nutrition-divider-thick,
.nutrition-divider-thin {
    width: 100%;
    background: #000;
}

.nutrition-divider-thick {
    height: 8px;
    margin: 8px 0 6px;
}

.nutrition-divider-thin {
    height: 2px;
    margin: 5px 0;
}

.nutrition-calories-row,
.nutrition-row,
.nutrition-vitamin-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.nutrition-calories-row {
    margin: 6px 0;
}

.nutrition-calories-row strong {
    font-size: 1.25rem;
}

.nutrition-calories-value {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 0.95;
}

.nutrition-row strong {
    font-weight: 800;
}

.nutrition-row.is-indent {
    padding-left: 16px;
}

.nutrition-label-note {
    margin-top: 12px;
    font-size: 0.86rem;
}

.format-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.format-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 3px solid #000;
    padding: 12px;
    background: #fff;
}

.format-option input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.format-option span {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.format-option small {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
}

.format-option-disabled {
    background: #ececec;
}

.quote-card {
    padding: 18px;
}

.quote-card p {
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 900;
    color: #000;
}

.cta-link {
    width: 100%;
}

.nutrition-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.nutrition-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.7);
}

.nutrition-contact-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1020px);
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    overflow: auto;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 12px 12px 0 #000;
}

.nutrition-contact-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-left: 4px solid #000;
    border-bottom: 4px solid #000;
    background: #fff;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
}

.nutrition-contact-shell {
    padding: 1.5rem;
}

.nutrition-contact-shell h2 {
    margin: 0.8rem 0;
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nutrition-contact-form-shell {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 #000;
    padding: 1.25rem;
}

.nutrition-contact-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.form-field {
    display: grid;
    gap: 0.55rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.label-text {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-text-box {
    width: 100%;
    min-height: 52px;
    border: 3px solid #000;
    background: #fff;
    padding: 0.9rem 1rem;
    color: #000;
    border-radius: 0;
}

textarea.form-text-box {
    min-height: 96px;
    resize: vertical;
}

.form-status {
    min-height: 24px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-status-success {
    color: #0d642c;
}

.form-status-error {
    color: #8d1414;
}

.form-status-loading {
    color: var(--muted);
}

.contact-submit {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    background: var(--navy);
    color: #fff;
    box-shadow: 6px 6px 0 #000;
    padding: 0.9rem 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tool-faq {
    padding: 10px 0 42px;
}

.faq-shell {
    padding: 18px;
}

.faq-list {
    margin-top: 18px;
}

.faq-item {
    padding: 14px 0;
    border-top: 3px solid #000;
}

.faq-item h3 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    text-transform: uppercase;
}

.nutrition-tool-page .footer-test {
    background: #000;
    color: #fff;
    border-top: 4px solid var(--navy);
}

.nutrition-tool-page .footer-grid-test {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}

.nutrition-tool-page .footer-brand-block .section-tag {
    margin-bottom: 1rem;
}

.nutrition-tool-page .footer-copy {
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.nutrition-tool-page .footer-heading {
    margin: 0 0 1rem;
    font-size: 1.9rem;
    letter-spacing: 0.03em;
}

.nutrition-tool-page .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.nutrition-tool-page .footer-links-list a,
.nutrition-tool-page .footer-back-top {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.nutrition-tool-page .footer-links-list a:hover,
.nutrition-tool-page .footer-links-list a:focus-visible,
.nutrition-tool-page .footer-back-top:hover,
.nutrition-tool-page .footer-back-top:focus-visible {
    color: #8fb1ff;
}

.nutrition-tool-page .footer-bottom-test {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, 0.86);
}

.nutrition-tool-page .footer-back-top {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.index-test-page .footer-test {
    background: var(--test-black);
    color: var(--test-white);
    border-top: 4px solid var(--test-blue);
}

@media (min-width: 768px) {
    .field-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nutrition-contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .tool-header {
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .nav-toggle {
        display: none;
    }

    .nav-links-shell {
        position: static;
        display: block;
        border: 0;
        background: transparent;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    .nav-links li,
    .nav-links li:last-child {
        border: 0;
        position: relative;
    }

    .nav-links a,
    .tools-menu-toggle {
        padding: 10px 14px;
    }

    .tools-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 270px;
        border: 4px solid #000;
        box-shadow: 8px 8px 0 #000;
        background: #fff;
    }

    .tools-menu a {
        padding-left: 16px;
    }

    .hero-layout,
    .workspace-grid {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 440px);
        align-items: start;
    }

    .preview-panel {
        position: sticky;
        top: 98px;
    }

    .cta-link {
        width: auto;
    }
}

@media (max-width: 767px) {
    .nutrition-tool-page .footer-grid-test,
    .nutrition-tool-page .footer-bottom-test {
        grid-template-columns: 1fr;
        display: grid;
    }

    .nutrition-tool-page .footer-bottom-test {
        justify-content: start;
    }
}