@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
    --ink: #101415;
    --paper: #e8ece4;
    --lime: #d9f36a;
    --muted: #7b8580;
    --line: rgba(232, 236, 228, 0.14);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding-top: 72px;
    background: var(--ink);
    color: var(--paper);
    font-family: "Manrope", sans-serif;
}
body.analysis-page-mode {
    padding-top: 72px;
}
body.analysis-page-mode .site-footer {
    display: none;
}
body.analysis-page-mode .site-layout {
    min-height: 100vh;
}
.site-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    flex-direction: column;
}
.site-main {
    flex: 1;
}
.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 30px clamp(20px, 5vw, 76px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.5px;
}
.footer-brand strong,
.footer-brand span {
    display: block;
}
.footer-brand strong {
    color: var(--paper);
    letter-spacing: 1.5px;
}
.footer-brand span {
    margin-top: 6px;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    letter-spacing: 0;
}
.footer-links {
    display: flex;
    gap: 22px;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
}
.footer-links a,
.footer-links .footer-link-button {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-links .footer-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
    -webkit-appearance: none;
    appearance: none;
    text-transform: none;
}
.footer-links a:hover,
.footer-links .footer-link-button:hover,
.footer-links .footer-link-button:focus-visible {
    color: var(--lime);
}
.footer-note {
    text-align: right;
}
.site-nav {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 76px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(10, 14, 18, 0.52);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-brand,
.nav-links a,
.nav-link-button {
    color: var(--paper);
    text-decoration: none;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
}
.nav-brand span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 800;
}
.nav-links {
    display: flex;
    gap: clamp(18px, 3vw, 42px);
    height: 100%;
    align-items: center;
    margin-left: auto;
}
.nav-links a,
.nav-links .nav-link-button {
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    transition: color 0.2s ease;
}
.site-nav-home .nav-links a,
.site-nav-home .nav-links .nav-link-button {
    color: rgba(223, 234, 252, 0.9);
}
.site-nav-home .nav-links a.active,
.site-nav-home .nav-links a:hover,
.site-nav-home .nav-links a:focus-visible,
.site-nav-home .nav-links .nav-link-button:hover,
.site-nav-home .nav-links .nav-link-button:focus-visible {
    color: #93c5fd;
}
.nav-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
    text-transform: none;
}
.nav-links a.active,
.nav-links a:hover,
.nav-links .nav-link-button:hover,
.nav-links .nav-link-button:focus-visible {
    color: var(--lime);
}
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(8px);
}
.contact-modal {
    position: relative;
    width: min(100%, 560px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.96),
        rgba(8, 15, 28, 0.94)
    );
    box-shadow:
        0 28px 80px rgba(2, 6, 23, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.contact-modal-content {
    padding-top: 2.5rem;
}
.contact-modal-copy {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
}
.contact-modal-copy a {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(217, 243, 106, 0.8);
}
.contact-modal-copy a:hover {
    color: var(--lime);
}
.contact-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
.contact-modal-copy-button {
    border: 1px solid rgba(217, 243, 106, 0.38);
    border-radius: 999px;
    background: rgba(217, 243, 106, 0.08);
    color: var(--paper);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
.contact-modal-copy-button:hover,
.contact-modal-copy-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(217, 243, 106, 0.7);
    background: rgba(217, 243, 106, 0.14);
}
.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--paper);
    cursor: pointer;
    font-size: 1.6rem;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}
.contact-modal-close:hover,
.contact-modal-close:focus-visible {
    transform: scale(1.04);
    border-color: rgba(217, 243, 106, 0.5);
}
.nav-status {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 1px;
}
.nav-status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--lime);
}
.marketing-page,
.content-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 76px) 80px;
}
.home-hero {
    min-height: 620px;
    max-width: 850px;
    padding: clamp(100px, 15vw, 180px) 0 100px;
}
.not-found-page {
    display: flex;
    min-height: min(680px, calc(100vh - 210px));
    align-items: center;
}
.not-found-content {
    max-width: 700px;
    padding: 90px 0;
}
.not-found-content h1 {
    margin: 0;
    font-size: clamp(58px, 9vw, 128px);
    line-height: 0.92;
    letter-spacing: -6px;
}
.not-found-content h1 em {
    color: var(--lime);
    font-style: normal;
}
.not-found-copy {
    max-width: 480px;
    margin: 30px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}
.home-hero h1,
.page-intro h1 {
    margin: 0;
    font-size: clamp(58px, 8vw, 116px);
    line-height: 0.95;
    letter-spacing: -5px;
}
.home-hero h1 em,
.page-intro h1 em,
.home-cta h2 em,
.analysis-intro h1 em {
    color: var(--lime);
    font-style: normal;
}
.home-lead {
    max-width: 530px;
    margin: 32px 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.primary-link {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 16px 20px;
    background: var(--lime);
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}
.primary-link b {
    font-size: 21px;
    font-weight: 400;
}
.problem-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10%;
    padding: 80px 0;
    border-top: 1px solid var(--line);
}
.problem-section h2,
.home-cta h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1.03;
    letter-spacing: -2px;
}
.problem-section > p,
.value-grid p,
.home-cta p {
    color: var(--muted);
    line-height: 1.7;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 40px 0 120px;
}
.value-grid article {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    background: #161b1c;
}
.value-grid article > span {
    color: var(--lime);
    font-family: "DM Mono", monospace;
    font-size: 11px;
}
.value-grid h3 {
    margin: 50px 0 0;
    font-size: 18px;
}
.home-cta {
    padding: 80px 0;
    border-top: 1px solid var(--line);
}
.home-cta h2 {
    margin-bottom: 32px;
}
.analysis-intro {
    max-width: 700px;
    padding: 80px 0 55px;
}
.analysis-intro h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1;
    letter-spacing: -3px;
}
.analysis-intro p:last-child {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.7;
}
.page-intro {
    max-width: 740px;
    padding: 90px 0 70px;
}
.page-intro > p:last-child {
    max-width: 500px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}
button,
input,
select {
    font: inherit;
}
.app-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px clamp(20px, 5vw, 76px) 42px;
}
.topbar,
.section-heading,
.history-item,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-mark {
    display: flex;
    gap: 12px;
    align-items: center;
}
.brand-mark > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--ink);
    background: var(--lime);
    font-weight: 800;
    letter-spacing: -1px;
}
.brand-mark strong,
.brand-mark small {
    display: block;
}
.brand-mark strong {
    font-size: 11px;
    letter-spacing: 1.5px;
}
.brand-mark small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}
.status-chip,
.eyebrow,
.section-note,
footer {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1.2px;
}
.status-chip {
    color: var(--muted);
}
.status-chip i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    margin-right: 7px;
    box-shadow: 0 0 12px var(--lime);
}
.hero {
    max-width: 760px;
    padding: clamp(80px, 13vw, 180px) 0 76px;
}
.eyebrow {
    color: var(--lime);
    margin: 0 0 15px;
}
.hero h1 {
    font-size: clamp(48px, 7vw, 102px);
    line-height: 0.98;
    letter-spacing: -4px;
    margin: 0;
    font-weight: 700;
}
.hero h1 em {
    color: var(--lime);
    font-style: normal;
}
.hero-copy {
    max-width: 470px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 28px 0 0;
}
.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
}
.wizard-workspace {
    display: block;
}
.panel {
    border: 1px solid var(--line);
    background: #161b1c;
    padding: clamp(20px, 3vw, 34px);
}
.panel-form {
    min-height: 500px;
    position: relative;
}
.analysis-page {
    max-width: 900px;
    padding-top: 0;
    padding-bottom: 0;
    scroll-margin-top: 72px;
}
.analysis-page .panel-form {
    min-height: 100vh;
    border: 0;
    background: transparent;
    padding: 0;
}
.analysis-page .wizard-step {
    min-height: 0;
    padding: 12px 0;
}
.analysis-page-modal .panel-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 920px);
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    padding-top: clamp(72px, 9vh, 110px);
    padding-bottom: clamp(18px, 4vh, 32px);
    overflow: hidden;
}
.analysis-page-modal .wizard-step {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.analysis-page-modal .wizard-controls {
    position: static;
    z-index: 1;
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 14px;
    background: transparent;
}
.analysis-page-modal {
    overflow: hidden;
}
.analysis-preloader {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(22, 27, 28, 0.96);
    color: var(--paper);
}
.analysis-preloader strong {
    font-size: 18px;
}
.analysis-progress {
    width: min(280px, 75%);
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(217, 243, 106, 0.25);
    background: rgba(217, 243, 106, 0.08);
}
.analysis-progress span {
    display: block;
    height: 100%;
    background: var(--lime);
    transition: width 180ms ease-out;
}
.analysis-progress-value {
    color: var(--lime);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.analysis-preloader > span:last-child {
    color: var(--muted);
    font-size: 12px;
}
.analysis-spinner {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(217, 243, 106, 0.25);
    border-top-color: var(--lime);
    border-radius: 50%;
    animation: analysis-spin 800ms linear infinite;
}
@keyframes analysis-spin {
    to {
        transform: rotate(360deg);
    }
}
.section-heading {
    align-items: flex-start;
    margin-bottom: 30px;
}
.section-heading h2 {
    font-size: 20px;
    margin: 0;
    letter-spacing: -0.5px;
}
.result-panel .section-heading .report-summary-heading {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0;
}
.section-note {
    color: var(--muted);
    padding-top: 4px;
    text-align: right;
}
.field-label,
.amino-field label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
}
.panel select,
.panel input {
    border: 1px solid rgba(232, 236, 228, 0.18);
    background: #202728;
    color: var(--paper);
    padding: 11px 12px;
    outline: none;
}
.panel > select {
    width: 100%;
    margin-bottom: 28px;
}
.panel select:focus,
.panel input:focus {
    border-color: var(--lime);
}
.amino-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
}
.input-row {
    display: flex;
}
.input-row input {
    width: 100%;
    min-width: 0;
}
.input-row select {
    width: 86px;
    border-left: 0;
    padding: 8px 5px;
    font-size: 11px;
}
.check-row {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 28px;
}
.check-row input {
    accent-color: var(--lime);
}
.result-empty {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.result-empty h2 {
    max-width: 220px;
    font-size: 34px;
    line-height: 1.05;
    margin: 0 0 14px;
}
.result-empty p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 280px;
}
.result-panel {
    min-height: 500px;
    background: transparent;
    border: 0;
    padding: 0px 20px 0px 0px;
}
.result-danger {
    border-color: transparent;
}
.result-clear {
    border-color: transparent;
}
.verdict {
    color: var(--lime);
    font-family: "DM Mono", monospace;
    font-size: 10px;
}
.result-danger .verdict,
.text-danger {
    color: #f19a78;
}
.message-list {
    border-top: 1px solid var(--line);
}
.message {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.5;
}
.message-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    background: var(--lime);
    margin-top: 6px;
}
.message-warning .message-dot {
    background: #f0b45e;
}
.message-critical .message-dot {
    background: #f19a78;
}
.message-critical {
    color: #f19a78;
    font-weight: 600;
}
.protein-results {
    display: block;
    width: 100%;
}
.report-section {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.report-section p {
    margin: 0 0 8px;
}
.report-section p:last-child {
    margin-bottom: 0;
}
.report-section h3 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.35;
}
.result-panel .collapsible-profile h3 {
    font-size: 32px;
    line-height: 1.35;
}
.report-product-section {
    border-top: 0;
    padding-top: 0;
}
.collapsible-profile {
    border-top: 1px solid var(--line);
    padding: 16px 0 16px;
}
.collapsible-profile h3 {
    margin: 0 0 12px;
}
.profile-toggle,
.profile-collapse-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    padding: 9px 12px;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        color 180ms ease;
}
.profile-toggle:hover,
.profile-collapse-button:hover {
    border-color: var(--lime);
    color: var(--lime);
}
.profile-collapsible-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 320ms ease,
        opacity 220ms ease;
}
.profile-collapsible-content.is-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
}
.profile-collapsible-content > .protein-results {
    min-height: 0;
    overflow: hidden;
}
.profile-collapse-button {
    justify-self: start;
    margin-top: 14px;
}
.protein-results > strong {
    display: block;
    color: var(--paper);
    margin-bottom: 10px;
}
.protein-result-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 400;
}
.protein-result-row b {
    color: var(--paper);
    font-family: "DM Mono", monospace;
    font-size: 11px;
}
.result-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-top: 25px;
    color: var(--muted);
    font-size: 11px;
}
.result-meta strong {
    color: var(--paper);
    font-family: "DM Mono", monospace;
}
.analyze-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 0;
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--lime);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
}
.analyze-button b {
    font-size: 24px;
    font-weight: 400;
}
.analyze-button:hover {
    background: #efffa4;
}
.error-text {
    color: #f19a78;
    font-size: 12px;
    margin: 14px 0;
}
.history-section {
    padding: 100px 0 35px;
}
.history-section .section-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 0;
}
.history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.history-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    padding: 18px 0;
    text-align: left;
    cursor: pointer;
}
.history-item span strong,
.history-item span small {
    display: block;
}
.history-item small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}
.history-item b {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    font-weight: 400;
}
.text-clear {
    color: var(--lime);
}
.muted,
footer {
    color: var(--muted);
}
.muted {
    font-size: 13px;
}
footer {
    padding-top: 45px;
    border-top: 1px solid var(--line);
    margin-top: 45px;
}
footer span {
    letter-spacing: 0;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
}
.wizard-step {
    min-height: 250px;
    padding: 16px 0;
}
.step-kicker {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;
}
.wizard-step h3 {
    max-width: 520px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    margin: 28px 0;
}
.wizard-intro-text {
    max-width: 560px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}
.product-name-input {
    width: min(100%, 620px);
    font-size: 22px;
}
.review-product-name {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.review-product-name strong {
    color: var(--paper);
    text-align: right;
}
.intro-start-button {
    max-width: 420px;
    margin-top: 10px;
}
.mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.unit-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mode-option {
    min-height: 105px;
    padding: 18px;
    border: 1px solid var(--line);
    background: #202728;
    color: var(--paper);
    text-align: left;
    cursor: pointer;
}
.mode-option strong,
.mode-option small {
    display: block;
}
.mode-option strong {
    font-size: 14px;
}
.mode-option small {
    color: var(--muted);
    margin-top: 9px;
    font-size: 11px;
}
.mode-option.selected {
    border-color: var(--lime);
    box-shadow: inset 3px 0 var(--lime);
}
.protein-addition-options {
    display: grid;
    gap: 1px;
    max-width: 620px;
    background: var(--line);
    border: 1px solid var(--line);
}
.protein-addition-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: #202728;
    color: var(--paper);
    cursor: pointer;
    font-size: 14px;
}
.protein-addition-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--lime);
}
.protein-addition-option small {
    grid-column: 2;
    margin-top: -6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}
.protein-addition-option:has(input:disabled) {
    cursor: default;
}
.wizard-input {
    display: flex;
    align-items: center;
    max-width: 420px;
}
.wizard-input span {
    margin-left: 0.5rem;
}
.wizard-input input {
    flex: 1;
    min-width: 0;
    font-size: 28px;
}
.wizard-input select {
    width: 110px;
    border-left: 0;
}
.protein-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}
.wizard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.back-button,
.next-button {
    border: 0;
    cursor: pointer;
    padding: 11px 0;
}
.back-button {
    background: transparent;
    color: var(--muted);
}
.back-button:disabled {
    opacity: 0.35;
    cursor: default;
}
.next-button {
    padding: 12px 18px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 700;
}
.next-button b {
    font-size: 18px;
    margin-left: 10px;
}
.protein-options .mode-option {
    min-height: 92px;
}
.validation-error {
    color: #f19a78;
    font-size: 12px;
    margin: -8px 0 18px;
}
.review-list {
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.review-row:last-child {
    border-bottom: 0;
}
.review-row strong,
.review-row small {
    display: block;
}
.review-row strong {
    font-size: 12px;
}
.review-row small {
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    margin-top: 4px;
}
.edit-button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--lime);
    cursor: pointer;
    font-size: 10px;
    padding: 8px 10px;
}
.edit-button:hover {
    border-color: var(--lime);
}
.review-analyze-button {
    margin-top: 22px;
}
.new-research-button {
    width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    font-weight: 700;
}
.new-research-button:hover {
    border-color: var(--lime);
    color: var(--lime);
}
@media (max-width: 800px) {
    .workspace {
        grid-template-columns: 1fr;
    }
    .amino-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .result-empty,
    .result-panel {
        min-height: auto;
    }
    .hero {
        padding-top: 100px;
    }
    .history-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .analysis-page-modal .panel-form {
        display: block;
        justify-content: flex-start;
        padding-top: 78px;
    }
    .analysis-page-modal .wizard-step {
        display: block;
        justify-content: flex-start;
        padding-top: 22px;
        max-height: calc(100vh - 170px);
        overflow-y: auto;
    }
    .analysis-page-modal .wizard-controls {
        margin-top: 18px;
    }
    .app-shell {
        padding: 20px 16px 30px;
    }
    .status-chip {
        display: none;
    }
    .brand-mark small {
        display: none;
    }
    .hero {
        padding: 90px 0 55px;
    }
    .hero h1 {
        letter-spacing: -2px;
        font-size: 48px;
    }
    .hero-copy {
        font-size: 14px;
    }
    .panel {
        padding: 20px 16px;
    }
    .analysis-page {
        padding: 0 16px;
    }
    .amino-grid {
        grid-template-columns: 1fr;
    }
    .section-note {
        max-width: 110px;
        line-height: 1.5;
    }
    footer {
        display: block;
        line-height: 2;
    }
    footer span {
        display: block;
    }
}
@media (max-width: 650px) {
    .site-footer {
        flex-direction: column;
        gap: 18px;
    }
    .footer-note {
        text-align: left;
    }
    .site-nav {
        padding: 0 16px;
    }
    .nav-brand strong,
    .nav-status {
        display: none;
    }
    .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 11px;
    }
    .home-hero h1,
    .page-intro h1,
    .not-found-content h1 {
        letter-spacing: -3px;
    }
    .problem-section,
    .value-grid {
        grid-template-columns: 1fr;
    }
    .problem-section {
        gap: 24px;
    }
    .value-grid {
        padding-bottom: 70px;
    }
}

/* Home page */
.home-page {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(217, 243, 106, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(217, 243, 106, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
}
.home-hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 72px 0 100px;
}
.home-hero-content {
    max-width: 980px;
}
.home-eyebrow {
    margin: 0 0 28px;
    color: var(--lime);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.home-hero h1 {
    max-width: 940px;
    margin: 0;
    color: var(--paper);
    font-size: clamp(44px, 6.5vw, 92px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -2px;
}
.home-subtitle {
    margin: 34px 0 0;
    color: var(--muted);
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.25;
}
.home-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: fit-content;
    margin-top: 54px;
}
.home-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: auto;
    min-height: 72px;
    padding: 18px 22px;
    border: 1px solid var(--lime);
    color: var(--lime);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}
.home-action span {
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}
.home-action:hover {
    background: var(--lime);
    color: var(--ink);
}
.home-how-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    padding: 12px 0;
    border-bottom: 1px solid var(--muted);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    color: var(--paper);
    font-size: 16px;
    text-align: left;
    text-decoration: none;
}
.home-how-link:hover {
    color: var(--lime);
    border-color: var(--lime);
}
.how-it-works-page-modal {
    position: relative;
}
.how-it-works-page-modal .contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}
.how-it-works-page {
    background:
        linear-gradient(90deg, rgba(217, 243, 106, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(217, 243, 106, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
}
.how-it-works-header {
    position: relative;
    max-width: 960px;
    padding: 46px 0 110px;
}
.how-it-works-back {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 100px;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
}
.how-it-works-back:hover {
    color: var(--lime);
}
.how-it-works-kicker,
.how-it-works-result-label {
    margin: 0 0 24px;
    color: var(--lime);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.how-it-works-header h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(58px, 9vw, 128px);
    line-height: 0.92;
    letter-spacing: -5px;
}
.how-it-works-intro {
    max-width: 480px;
    margin: 38px 0 0 auto;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}
.how-it-works-story {
    position: relative;
    max-width: 1060px;
    margin-left: auto;
    padding-bottom: 110px;
}
.how-it-works-story::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 112px;
    width: 1px;
    background: var(--line);
    content: "";
}
.how-it-works-section {
    position: relative;
    display: grid;
    grid-template-columns: 225px minmax(0, 620px);
    gap: 72px;
    padding: 42px 0 76px;
    border-top: 1px solid var(--line);
}
.how-it-works-section-label span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--lime);
    font-family: "DM Mono", monospace;
    font-size: 12px;
}
.how-it-works-section h2 {
    max-width: 190px;
    margin: 32px 0 0;
    font-size: 24px;
    line-height: 1.1;
}
.how-it-works-section-copy p,
.how-it-works-result-copy p {
    margin: 0 0 24px;
    color: var(--paper);
    font-size: 18px;
    line-height: 1.7;
}
.how-it-works-section-copy p:last-child,
.how-it-works-result-copy p:last-child {
    margin-bottom: 0;
}
.how-it-works-result {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px 72px;
    padding: 58px clamp(24px, 5vw, 76px) 72px;
    border: 1px solid var(--lime);
    background: rgba(217, 243, 106, 0.07);
}
.how-it-works-result-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.how-it-works-result h2 {
    margin: 0;
    color: var(--lime);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
}
.how-it-works-result-copy {
    max-width: 540px;
}
.how-it-works-action {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    gap: 28px;
    min-height: 64px;
    padding: 16px 20px;
    border: 1px solid var(--lime);
    color: var(--lime);
    font-weight: 800;
    text-decoration: none;
}
.how-it-works-action:hover {
    background: var(--lime);
    color: var(--ink);
}
@media (max-width: 650px) {
    .home-page {
        background-size: 44px 44px;
    }
    .home-hero {
        min-height: calc(100vh - 64px);
        padding: 54px 0 70px;
    }
    .home-hero h1 {
        font-size: 43px;
        letter-spacing: -1px;
    }
    .home-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 42px;
    }
    .home-action {
        width: 100%;
        min-height: 68px;
        font-size: 17px;
    }
    .home-how-link {
        align-self: flex-start;
        text-align: left;
    }
    .how-it-works-page {
        background-size: 44px 44px;
    }
    .how-it-works-header {
        padding: 30px 0 76px;
    }
    .how-it-works-back {
        margin-bottom: 78px;
    }
    .how-it-works-header h1 {
        font-size: 56px;
        letter-spacing: -3px;
    }
    .how-it-works-intro {
        margin-top: 28px;
        font-size: 18px;
    }
    .how-it-works-story {
        padding-bottom: 72px;
    }
    .how-it-works-story::before {
        left: 20px;
    }
    .how-it-works-section {
        display: block;
        padding: 32px 0 56px 52px;
    }
    .how-it-works-section-label span {
        margin-left: -52px;
    }
    .how-it-works-section h2 {
        max-width: none;
        margin: 22px 0 24px;
        font-size: 22px;
    }
    .how-it-works-section-copy p,
    .how-it-works-result-copy p {
        font-size: 16px;
        line-height: 1.6;
    }
    .how-it-works-result {
        display: block;
        padding: 34px 22px 40px;
    }
    .how-it-works-result h2 {
        margin: 24px 0 28px;
        font-size: 38px;
    }
    .how-it-works-action {
        width: 100%;
        margin-top: 34px;
    }
}
