:root {
    --tool-primary: #1266f1;
    --tool-primary-dark: #0b45aa;
    --tool-accent: #ff862c;
    --tool-ink: #101828;
    --tool-muted: #667085;
    --tool-surface: #ffffff;
    --tool-background: #f6f8fc;
    --tool-border: #e4e9f2;
    --tool-radius-sm: 12px;
    --tool-radius-md: 20px;
    --tool-radius-lg: 32px;
    --tool-shadow: 0 24px 70px rgba(5, 25, 66, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tool-ink);
    background: var(--tool-background);
    font-family: "Montserrat", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tool-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.tool-hero {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 5%, rgba(18, 102, 241, 0.42), transparent 31%),
        radial-gradient(circle at 8% 92%, rgba(255, 134, 44, 0.13), transparent 27%),
        linear-gradient(135deg, #06132f 0%, #09255a 56%, #071a40 100%);
}

.tool-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.tool-hero__glow {
    position: absolute;
    z-index: -1;
    top: 155px;
    right: -120px;
    width: 490px;
    height: 490px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
}

.tool-hero__container {
    padding-block: 28px 84px;
}

.tool-hero__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 76px;
}

.tool-brand {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--tool-radius-sm);
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.tool-brand img {
    display: block;
    width: 164px;
    height: auto;
}

.tool-hero__collection {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.78fr);
    align-items: center;
    gap: clamp(42px, 5vw, 72px);
}

.tool-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #b8d0ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tool-hero__eyebrow span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tool-accent);
    box-shadow: 0 0 0 5px rgba(255, 134, 44, 0.16);
}

.tool-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.6rem, 4vw, 3.85rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.06;
    text-wrap: balance;
}

.tool-hero__title-line {
    display: block;
}

.tool-hero h1 em {
    color: #89b4ff;
    font-style: normal;
}

.tool-hero .subtitle {
    max-width: 680px;
    margin: 26px 0 0;
    color: #c7d4eb;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75;
}

.tool-hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
}

.tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.tool-button--primary {
    color: #ffffff;
    background: var(--tool-primary);
    box-shadow: 0 14px 32px rgba(18, 102, 241, 0.34);
}

.tool-button--primary:hover {
    background: #2877f5;
    box-shadow: 0 18px 38px rgba(18, 102, 241, 0.43);
    transform: translateY(-2px);
}

.tool-button:focus-visible,
.tool-brand:focus-visible {
    outline: 3px solid var(--tool-accent);
    outline-offset: 4px;
}

.tool-hero__benefits {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #d9e4f7;
    font-size: 0.83rem;
    list-style: none;
}

.tool-hero__benefits li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tool-hero__benefits .ui-icon {
    width: 15px;
    height: 15px;
    color: #68dfa0;
}

.tool-hero__preview {
    position: relative;
}

.expiry-card {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: var(--tool-radius-lg);
    color: var(--tool-ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--tool-shadow);
    transform: rotate(1.4deg);
}

.expiry-card__header,
.expiry-card__summary,
.expiry-item {
    display: flex;
    align-items: center;
}

.expiry-card__header {
    justify-content: space-between;
    gap: 20px;
}

.expiry-card__header strong {
    display: block;
    margin-top: 5px;
    font-size: 1.02rem;
}

.expiry-card__label {
    color: var(--tool-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.expiry-card__status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #067647;
    background: #dff8ea;
    font-size: 0.7rem;
    font-weight: 800;
}

.expiry-card__summary {
    justify-content: space-between;
    margin-top: 24px;
    padding: 17px 18px;
    border-radius: 16px;
    color: #315483;
    background: #edf4ff;
    font-size: 0.82rem;
}

.expiry-card__summary strong {
    color: var(--tool-primary-dark);
    font-size: 1rem;
}

.expiry-card__items {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.expiry-item {
    gap: 13px;
    padding: 12px;
    border: 1px solid var(--tool-border);
    border-radius: 15px;
    background: #ffffff;
}

.expiry-item__date {
    display: grid;
    flex: 0 0 47px;
    place-items: center;
    height: 48px;
    border-radius: 12px;
    font-size: 0.63rem;
    font-weight: 800;
    line-height: 1;
}

.expiry-item__date strong {
    font-size: 1.05rem;
}

.expiry-item__product {
    display: grid;
    flex: 1;
    gap: 3px;
    color: var(--tool-muted);
    font-size: 0.72rem;
}

.expiry-item__product strong {
    color: var(--tool-ink);
    font-size: 0.82rem;
}

.expiry-item__days {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.expiry-item--urgent .expiry-item__date,
.expiry-item--urgent .expiry-item__days {
    color: #b42318;
    background: #fee4e2;
}

.expiry-item--warning .expiry-item__date,
.expiry-item--warning .expiry-item__days {
    color: #b54708;
    background: #fff0dc;
}

.expiry-item--safe .expiry-item__date,
.expiry-item--safe .expiry-item__days {
    color: #175cd3;
    background: #e8f1ff;
}

.tool-hero__floating-note {
    position: absolute;
    right: -28px;
    bottom: -30px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    color: var(--tool-ink);
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(5, 25, 66, 0.2);
}

.tool-hero__floating-note > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--tool-accent);
    font-weight: 900;
}

.tool-hero__floating-note div {
    display: grid;
    gap: 2px;
    color: var(--tool-muted);
    font-size: 0.67rem;
}

.tool-hero__floating-note strong {
    color: var(--tool-ink);
    font-size: 0.77rem;
}

@media (max-width: 960px) {
    .tool-hero__header {
        padding-bottom: 56px;
    }

    .tool-hero__grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .tool-hero__content {
        max-width: 760px;
    }

    .tool-hero__preview {
        width: min(540px, 92%);
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .tool-container {
        width: min(100% - 32px, 1180px);
    }

    .tool-hero__container {
        padding-block: 18px 72px;
    }

    .tool-hero__header {
        align-items: flex-start;
        padding-bottom: 50px;
    }

    .tool-brand {
        padding: 10px 12px;
    }

    .tool-brand img {
        width: 132px;
    }

    .tool-hero__collection {
        max-width: 128px;
        padding: 7px 10px;
        font-size: 0.62rem;
        text-align: center;
    }

    .tool-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .tool-hero__title-line {
        display: inline;
    }

    .tool-hero .subtitle {
        line-height: 1.65;
    }

    .tool-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-button {
        width: 100%;
    }

    .tool-hero__preview {
        width: 100%;
    }

    .expiry-card {
        padding: 17px;
        border-radius: 24px;
        transform: none;
    }

    .expiry-card__status,
    .expiry-item__days {
        display: none;
    }

    .tool-hero__floating-note {
        right: -4px;
        bottom: -34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tool-button {
        transition: none;
    }
}

/* Shared content system for Evidence tools */
.tool-workspace {
    position: relative;
    z-index: 2;
    padding: 0 0 clamp(76px, 8vw, 112px);
    scroll-margin-top: 24px;
    background:
        radial-gradient(circle at 95% 12%, rgba(18, 102, 241, 0.07), transparent 25%),
        var(--tool-background);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

.calculator-shell {
    overflow: hidden;
    margin-top: -42px;
    border: 1px solid var(--tool-border);
    border-radius: var(--tool-radius-lg);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(11, 36, 77, 0.13);
}

.calculator-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 52px;
    padding: 42px 48px 36px;
}

.calculator-heading h2,
.results-heading h2 {
    margin: 0;
    color: var(--tool-ink);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.calculator-heading > div:first-child > p,
.results-heading > div > p {
    max-width: 650px;
    margin: 15px 0 0;
    color: var(--tool-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid #cdeedc;
    border-radius: 16px;
    background: #f0fbf5;
}

.privacy-note__icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: #ffffff;
    background: #12a463;
    font-size: 0.76rem;
    font-weight: 900;
}

.privacy-note__icon .ui-icon {
    width: 17px;
    height: 17px;
}

.privacy-note div {
    display: grid;
    gap: 4px;
}

.privacy-note strong {
    color: #11613e;
    font-size: 0.82rem;
}

.privacy-note div span {
    color: #387158;
    font-size: 0.74rem;
    line-height: 1.5;
}

.calculator-tabs {
    display: flex;
    gap: 8px;
    padding: 0 48px;
    border-bottom: 1px solid var(--tool-border);
}

.calculator-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 55px;
    padding: 0 18px;
    border: 0;
    color: #667085;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
}

.calculator-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 99px 99px 0 0;
    background: transparent;
    content: "";
}

.calculator-tab span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    background: #eef2f7;
    font-size: 0.85rem;
}

.calculator-tab.is-active {
    color: var(--tool-primary-dark);
}

.calculator-tab.is-active::after {
    background: var(--tool-primary);
}

.calculator-tab.is-active span {
    color: #ffffff;
    background: var(--tool-primary);
}

.calculator-tab:focus-visible,
.upload-zone:focus-within,
.template-button:focus-visible,
.calculator-primary-button:focus-visible,
.add-product-button:focus-visible,
.results-toolbar button:focus-visible,
.results-reset:focus-visible,
.manual-row__remove:focus-visible {
    outline: 3px solid rgba(18, 102, 241, 0.35);
    outline-offset: 3px;
}

.calculator-panel {
    padding: 38px 48px 42px;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
    gap: 28px;
}

.upload-zone {
    display: flex;
    min-height: 292px;
    padding: 34px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 2px dashed #cbd8eb;
    border-radius: var(--tool-radius-md);
    color: var(--tool-muted);
    background: #f9fbff;
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
    border-color: var(--tool-primary);
    background: #f1f6ff;
    transform: translateY(-2px);
}

.upload-zone__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 18px;
    color: var(--tool-primary);
    background: #e7f0ff;
}

.upload-zone strong {
    color: var(--tool-ink);
    font-size: 1.1rem;
}

.upload-zone > span:not(.upload-zone__icon) {
    margin-top: 7px;
    font-size: 0.88rem;
}

.upload-zone small {
    margin-top: 17px;
    color: #98a2b3;
    font-size: 0.72rem;
}

.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.selected-file {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 13px 16px;
    border: 1px solid #c7daf8;
    border-radius: 16px;
    background: #f4f8ff;
}

.selected-file__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    color: #067647;
    background: #dff8ea;
    font-size: 0.65rem;
    font-weight: 900;
}

.selected-file div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.selected-file strong {
    overflow: hidden;
    color: var(--tool-ink);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file div span {
    color: var(--tool-muted);
    font-size: 0.72rem;
}

.selected-file button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    color: #667085;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

.selected-file button:hover {
    color: #b42318;
    background: #fee4e2;
}

.upload-guide {
    padding: 28px;
    border: 1px solid var(--tool-border);
    border-radius: var(--tool-radius-md);
    background: #ffffff;
}

.upload-guide h3 {
    margin: 0 0 18px;
    color: var(--tool-ink);
    font-size: 1rem;
}

.upload-guide ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.upload-guide li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f5;
    color: #344054;
    font-size: 0.79rem;
}

.upload-guide li strong,
.upload-guide li small {
    font-size: 0.65rem;
    font-weight: 750;
}

.upload-guide li strong {
    color: var(--tool-primary-dark);
}

.upload-guide li small {
    color: #98a2b3;
}

.upload-guide > p {
    margin: 17px 0;
    color: var(--tool-muted);
    font-size: 0.73rem;
    line-height: 1.55;
}

.template-button,
.add-product-button,
.results-toolbar button,
.results-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    color: var(--tool-primary-dark);
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.template-button {
    width: 100%;
    min-height: 43px;
    border: 1px solid #c8daf8;
    border-radius: 11px;
    background: #f4f8ff;
}

.template-button:hover {
    border-color: var(--tool-primary);
    background: #eaf2ff;
}

.calculator-error {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #f7c5c0;
    border-radius: 12px;
    color: #912018;
    background: #fff1f0;
    font-size: 0.8rem;
    line-height: 1.55;
}

.calculator-error a,
.calculator-error button {
    padding: 0;
    border: 0;
    color: #912018;
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.calculator-footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid var(--tool-border);
}

.date-format-field {
    display: grid;
    gap: 7px;
    color: #475467;
    font-size: 0.72rem;
    font-weight: 750;
}

.date-format-field select {
    min-width: 250px;
    height: 43px;
    padding: 0 34px 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: #344054;
    background: #ffffff;
    font: inherit;
    font-size: 0.79rem;
}

.calculator-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 52px;
    padding: 0 21px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: var(--tool-primary);
    box-shadow: 0 11px 25px rgba(18, 102, 241, 0.25);
    font: inherit;
    font-size: 0.87rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.calculator-primary-button:hover:not(:disabled) {
    background: #2877f5;
    transform: translateY(-2px);
}

.calculator-primary-button:disabled {
    color: #98a2b3;
    background: #e4e7ec;
    box-shadow: none;
    cursor: not-allowed;
}

.manual-table-heading,
.manual-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(110px, 0.55fr) minmax(180px, 0.85fr) 38px;
    gap: 14px;
}

.manual-table-heading {
    padding: 0 3px 10px;
    color: #667085;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.manual-rows {
    display: grid;
    gap: 12px;
}

.manual-row {
    align-items: end;
}

.manual-row label {
    display: block;
}

.manual-row label > span {
    display: none;
    margin-bottom: 7px;
    color: #475467;
    font-size: 0.7rem;
    font-weight: 750;
}

.manual-row input,
.results-search input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    color: var(--tool-ink);
    background: #ffffff;
    font: inherit;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.manual-row input:focus,
.results-search input:focus,
.date-format-field select:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(18, 102, 241, 0.12);
    outline: none;
}

.manual-row input.is-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.manual-row__remove {
    width: 38px;
    height: 38px;
    margin-bottom: 5px;
    border: 0;
    border-radius: 10px;
    color: #98a2b3;
    background: #f2f4f7;
    font-size: 1.15rem;
    cursor: pointer;
}

.manual-row__remove:hover:not(:disabled) {
    color: #b42318;
    background: #fee4e2;
}

.manual-row__remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.add-product-button {
    margin-top: 20px;
    padding: 11px 0;
}

.calculator-footer-row--manual {
    align-items: center;
}

.calculator-footer-row--manual > span {
    color: var(--tool-muted);
    font-size: 0.75rem;
}

.results-panel {
    margin-top: 32px;
    padding: 42px 48px 34px;
    border: 1px solid var(--tool-border);
    border-radius: var(--tool-radius-lg);
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(11, 36, 77, 0.09);
}

.results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.results-reset {
    flex: 0 0 auto;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: #475467;
}

.results-reset:hover {
    color: var(--tool-primary-dark);
    border-color: #b9d2fa;
    background: #f4f8ff;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.results-import-notice {
    margin: 20px 0 0;
    padding: 12px 15px;
    border: 1px solid #f3d497;
    border-radius: 11px;
    color: #805500;
    background: #fff9e8;
    font-size: 0.76rem;
}

.summary-card {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 23px;
    border: 1px solid var(--tool-border);
    border-radius: 17px;
    background: #ffffff;
}

.summary-card > span {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px currentColor;
    opacity: 0.18;
}

.summary-card strong {
    display: block;
    color: var(--tool-ink);
    font-size: 2rem;
    line-height: 1;
}

.summary-card p {
    margin: 12px 0 0;
    color: var(--tool-muted);
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.35;
}

.summary-card--expired {
    color: #d92d20;
    border-top: 3px solid #d92d20;
}

.summary-card--critical {
    color: #f56a00;
    border-top: 3px solid #f56a00;
}

.summary-card--upcoming {
    color: #d6a400;
    border-top: 3px solid #e5b400;
}

.summary-card--current {
    color: #12a463;
    border-top: 3px solid #12a463;
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 30px;
    padding: 18px;
    border-radius: 15px;
    background: #f7f9fc;
}

.results-search {
    position: relative;
    flex: 1;
    max-width: 390px;
}

.results-search > span:first-child {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #667085;
    font-size: 1.1rem;
    transform: translateY(-50%);
}

.results-search input {
    height: 43px;
    padding-left: 41px;
    background: #ffffff;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.results-toolbar button {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #c9d8ef;
    border-radius: 10px;
    background: #ffffff;
    white-space: nowrap;
}

.results-toolbar button:first-child {
    color: #ffffff;
    border-color: var(--tool-primary);
    background: var(--tool-primary);
}

.results-toolbar button:hover {
    transform: translateY(-1px);
}

.results-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid var(--tool-border);
    border-radius: 15px;
}

.results-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.results-table th {
    padding: 14px 16px;
    color: #667085;
    background: #f8fafc;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.results-table td {
    padding: 16px;
    border-top: 1px solid var(--tool-border);
    color: #475467;
    font-size: 0.8rem;
    vertical-align: middle;
}

.results-table td:first-child {
    max-width: 260px;
    color: var(--tool-ink);
    font-weight: 750;
}

.results-table tr:hover td {
    background: #fbfcfe;
}

.days-value {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.days-value.is-negative {
    color: #b42318;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-badge--expired {
    color: #b42318;
    background: #fee4e2;
}

.status-badge--critical {
    color: #b54708;
    background: #fff0dc;
}

.status-badge--upcoming {
    color: #8a6d00;
    background: #fff7cc;
}

.status-badge--current {
    color: #067647;
    background: #dff8ea;
}

.results-empty {
    margin: 18px 0 0;
    padding: 20px;
    border-radius: 12px;
    color: var(--tool-muted);
    background: #f8fafc;
    font-size: 0.84rem;
    text-align: center;
}

.results-privacy {
    margin: 18px 0 0;
    color: #7a8699;
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
}

.content-section {
    padding-block: clamp(76px, 9vw, 124px);
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading--centered {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--tool-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--tool-accent);
    content: "";
}

.section-kicker--light {
    color: #a9c7ff;
}

.section-heading h2,
.cta-bridge h2 {
    margin: 0;
    color: var(--tool-ink);
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}

.definition-section {
    overflow: hidden;
    background: var(--tool-surface);
}

.definition-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(40px, 7vw, 92px);
    align-items: stretch;
}

.definition-grid__lead {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 30px;
    color: #344054;
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    line-height: 1.62;
}

.definition-grid__lead::before {
    position: absolute;
    inset: 10px auto 10px 0;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(var(--tool-primary), #72a5ff);
    content: "";
}

.definition-grid__lead strong {
    color: var(--tool-primary-dark);
    font-weight: 800;
}

.comparison-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid #dae5f5;
    border-radius: var(--tool-radius-md);
    background: linear-gradient(145deg, #f6f9ff, #edf4ff);
}

.comparison-card::after {
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 145px;
    height: 145px;
    border: 28px solid rgba(18, 102, 241, 0.06);
    border-radius: 50%;
    content: "";
}

.comparison-card__label {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--tool-primary-dark);
    background: #dceaff;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.comparison-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #475467;
    font-size: 1.02rem;
    line-height: 1.78;
}

.audience-section {
    background:
        radial-gradient(circle at 5% 10%, rgba(18, 102, 241, 0.07), transparent 26%),
        var(--tool-background);
}

.audience-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.audience-grid li {
    position: relative;
    min-height: 295px;
    padding: 32px;
    border: 1px solid var(--tool-border);
    border-radius: var(--tool-radius-md);
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(19, 51, 99, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.audience-grid li:hover {
    border-color: #b9d2fa;
    box-shadow: 0 18px 44px rgba(19, 51, 99, 0.1);
    transform: translateY(-4px);
}

.audience-card__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 42px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--tool-primary), var(--tool-primary-dark));
    box-shadow: 0 11px 24px rgba(18, 102, 241, 0.23);
    font-size: 1.1rem;
    font-weight: 850;
}

.audience-card__icon .ui-icon {
    width: 24px;
    height: 24px;
}

.audience-grid li:nth-child(2) .audience-card__icon {
    color: #9a4d08;
    background: #fff0dc;
    box-shadow: none;
}

.audience-grid li:nth-child(3) .audience-card__icon {
    color: #087443;
    background: #dff8ea;
    box-shadow: none;
}

.audience-grid strong,
.steps-grid strong {
    display: block;
    color: var(--tool-ink);
    font-size: 1.15rem;
    line-height: 1.35;
}

.audience-grid p,
.steps-grid p {
    margin: 14px 0 0;
    color: var(--tool-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.steps-section {
    background: #ffffff;
}

.steps-grid {
    position: relative;
    counter-reset: tool-step;
}

.steps-grid::before {
    position: absolute;
    top: 34px;
    right: 15%;
    left: 15%;
    height: 1px;
    background: repeating-linear-gradient(90deg, #b9cce8 0 7px, transparent 7px 14px);
    content: "";
}

.steps-grid li {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    text-align: center;
}

.steps-card__number {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 30px;
    place-items: center;
    border: 7px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: var(--tool-primary);
    box-shadow: 0 0 0 1px #c9dbf7, 0 12px 28px rgba(18, 102, 241, 0.2);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.steps-grid li:nth-child(2) .steps-card__number {
    background: #2e72df;
}

.steps-grid li:nth-child(3) .steps-card__number {
    background: var(--tool-accent);
    box-shadow: 0 0 0 1px #ffd7bb, 0 12px 28px rgba(255, 134, 44, 0.2);
}

.cta-section {
    padding-block: clamp(56px, 7vw, 92px);
    background: var(--tool-background);
}

.tool-container--cta {
    width: min(1380px, calc(100% - 48px));
}

.cta-bridge {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 5vw, 76px);
    overflow: hidden;
    padding: clamp(44px, 5vw, 68px);
    border-radius: var(--tool-radius-lg);
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 20%, rgba(18, 102, 241, 0.42), transparent 34%),
        linear-gradient(130deg, #071a40, #0b2b66);
    box-shadow: 0 28px 70px rgba(8, 31, 74, 0.2);
}

.cta-bridge::before {
    position: absolute;
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.018);
    content: "";
}

.cta-bridge__content {
    position: relative;
    z-index: 1;
}

.cta-bridge h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.cta-bridge__content > p {
    max-width: 680px;
    margin: 24px 0 32px;
    color: #c7d5eb;
    font-size: 1rem;
    line-height: 1.75;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 14px;
    color: #172033;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.17);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover {
    color: var(--tool-primary-dark);
    box-shadow: 0 17px 36px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.cta-button:focus-visible {
    outline: 3px solid var(--tool-accent);
    outline-offset: 4px;
}

.demo-form {
    position: relative;
    z-index: 1;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    color: var(--tool-ink);
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(3, 15, 38, 0.28);
}

.demo-form__heading > span {
    color: var(--tool-primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.demo-form__heading h3 {
    margin: 8px 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.demo-form__heading p {
    margin: 10px 0 0;
    color: var(--tool-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.demo-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 22px;
}

.demo-form label {
    display: grid;
    gap: 7px;
}

.demo-form label > span {
    color: #475467;
    font-size: 0.66rem;
    font-weight: 700;
}

.demo-form input,
.demo-form select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 11px;
    border: 1px solid #cdd5df;
    border-radius: 8px;
    color: var(--tool-ink);
    background: #fbfcfe;
    font: inherit;
    font-size: 0.76rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.demo-form input:focus,
.demo-form select:focus {
    border-color: var(--tool-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 102, 241, 0.12);
}

.demo-form__wide {
    grid-column: 1 / -1;
}

.demo-form__captcha {
    container-type: inline-size;
    min-height: 78px;
    margin-top: 18px;
    overflow: hidden;
}

.demo-form__captcha .g-recaptcha {
    width: 304px;
    transform-origin: top left;
}

@container (max-width: 303px) {
    .demo-form__captcha .g-recaptcha {
        transform: scale(0.86);
    }
}

@container (max-width: 262px) {
    .demo-form__captcha {
        min-height: 62px;
    }

    .demo-form__captcha .g-recaptcha {
        transform: scale(0.72);
    }
}

.demo-form__submit {
    display: flex;
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    padding: 10px 18px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: var(--tool-primary);
    box-shadow: 0 12px 25px rgba(18, 102, 241, 0.26);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.demo-form__submit:hover:not(:disabled) {
    background: #2877f5;
    transform: translateY(-2px);
}

.demo-form__submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.demo-form__privacy {
    margin: 12px 0 0;
    color: #7b8798;
    font-size: 0.62rem;
    line-height: 1.45;
    text-align: center;
}

.demo-form__status {
    margin-top: 14px;
    padding: 11px 13px;
    border-left: 3px solid var(--tool-primary);
    color: #344054;
    background: #edf4ff;
    font-size: 0.72rem;
    line-height: 1.5;
}

.demo-form__status.is-success {
    border-color: #12a463;
    color: #08613d;
    background: #e9f9f1;
}

.demo-form__status.is-error {
    border-color: #d92d20;
    color: #912018;
    background: #fff0ef;
}

body.has-fefo-modal {
    overflow: hidden;
}

.fefo-demo-modal[hidden] {
    display: none;
}

.fefo-demo-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    opacity: 0;
    transition: opacity 180ms ease;
}

.fefo-demo-modal.is-visible {
    opacity: 1;
}

.fefo-demo-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 16, 40, 0.76);
    backdrop-filter: blur(7px);
    cursor: default;
}

.fefo-demo-modal__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 32px 90px rgba(1, 13, 34, 0.38);
    outline: none;
    transform: translateY(16px) scale(0.985);
    transition: transform 180ms ease;
}

.fefo-demo-modal.is-visible .fefo-demo-modal__panel {
    transform: translateY(0) scale(1);
}

.fefo-demo-modal__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d8e0eb;
    border-radius: 50%;
    place-items: center;
    color: var(--tool-ink);
    background: #ffffff;
    cursor: pointer;
}

.fefo-demo-modal__close svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.fefo-demo-modal__intro {
    max-width: 590px;
    padding-right: 42px;
}

.fefo-demo-modal__intro > span {
    color: var(--tool-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.fefo-demo-modal__intro h2 {
    margin: 9px 0 0;
    color: var(--tool-ink);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.fefo-demo-modal__intro p {
    margin: 14px 0 0;
    color: var(--tool-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.fefo-demo-modal__form {
    margin-top: 24px;
}

.fefo-demo-modal .demo-form {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.fefo-demo-modal .demo-form__heading {
    display: none;
}

.fefo-demo-modal__later {
    display: block;
    margin: 15px auto 0;
    padding: 5px;
    border: 0;
    color: #667085;
    background: transparent;
    font: inherit;
    font-size: 0.69rem;
    font-weight: 650;
    cursor: pointer;
}

.fefo-demo-modal__later:hover {
    color: var(--tool-primary-dark);
}

.cta-bridge__diagram {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 76px 42px;
    place-items: center;
    min-height: 300px;
}

.cta-bridge__diagram::before,
.cta-bridge__diagram::after {
    position: absolute;
    z-index: -1;
    inset: 50% auto auto 50%;
    background: rgba(137, 180, 255, 0.34);
    content: "";
    transform: translate(-50%, -50%);
}

.cta-bridge__diagram::before {
    width: 75%;
    height: 1px;
}

.cta-bridge__diagram::after {
    width: 1px;
    height: 75%;
}

.cta-bridge__diagram span {
    display: grid;
    min-width: 110px;
    min-height: 50px;
    padding: 10px 14px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #d5e2f7;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 750;
}

.cta-bridge__diagram strong {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    background: var(--tool-primary);
    box-shadow: 0 15px 34px rgba(3, 12, 30, 0.32);
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
    transform: translate(-50%, -50%);
}

.faq-section {
    background: #ffffff;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(54px, 8vw, 110px);
    align-items: start;
}

.faq-layout__heading {
    position: sticky;
    top: 36px;
    margin: 0;
}

.faq-layout__heading h2 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.faq-layout__heading > p {
    margin: 22px 0 0;
    color: var(--tool-muted);
    line-height: 1.7;
}

.faq-list {
    border-top: 1px solid var(--tool-border);
}

.faq-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
    padding-block: 28px;
    border-bottom: 1px solid var(--tool-border);
}

.faq-item__number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: var(--tool-primary-dark);
    background: #edf4ff;
    font-size: 0.68rem;
    font-weight: 850;
}

.faq-item h3 {
    margin: 2px 0 12px;
    color: var(--tool-ink);
    font-size: 1.08rem;
    line-height: 1.4;
}

.faq-item p {
    margin: 0;
    color: var(--tool-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

@media (max-width: 1050px) {
    .cta-bridge {
        grid-template-columns: 1fr;
    }

    .cta-bridge__content {
        max-width: 760px;
    }

    .demo-form {
        width: min(720px, 100%);
    }
}

@media (max-width: 900px) {
    .calculator-heading,
    .upload-layout {
        grid-template-columns: 1fr;
    }

    .calculator-heading {
        gap: 24px;
    }

    .results-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .results-search {
        max-width: none;
    }

    .definition-grid,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .audience-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-inline: auto;
    }

    .audience-grid li {
        min-height: auto;
    }

    .audience-card__icon {
        margin-bottom: 26px;
    }

    .steps-grid {
        gap: 42px;
    }

    .steps-grid::before {
        top: 34px;
        bottom: 34px;
        left: 34px;
        width: 1px;
        height: auto;
        background: repeating-linear-gradient(#b9cce8 0 7px, transparent 7px 14px);
    }

    .steps-grid li {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 24px;
        padding: 0;
        text-align: left;
    }

    .steps-card__number {
        grid-row: 1 / 3;
        margin: 0;
    }

    .steps-grid p {
        margin-top: 8px;
    }

    .cta-bridge__diagram {
        width: min(460px, 100%);
        margin-inline: auto;
    }

    .faq-layout__heading {
        position: static;
    }
}

@media (max-width: 600px) {
    .tool-container--cta {
        width: min(100% - 20px, 1380px);
    }

    .tool-workspace {
        padding-bottom: 72px;
    }

    .calculator-shell {
        margin-top: -26px;
        border-radius: 24px;
    }

    .calculator-heading,
    .calculator-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    .calculator-heading {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .calculator-tabs {
        padding: 0 14px;
    }

    .calculator-tab {
        flex: 1;
        justify-content: center;
        padding: 0 7px;
        font-size: 0.72rem;
    }

    .calculator-tab span {
        display: none;
    }

    .calculator-panel {
        padding-top: 26px;
        padding-bottom: 30px;
    }

    .upload-zone {
        min-height: 250px;
        padding: 25px 18px;
    }

    .upload-guide {
        padding: 23px 20px;
    }

    .calculator-footer-row {
        align-items: stretch;
        flex-direction: column;
    }

    .date-format-field select,
    .calculator-primary-button {
        width: 100%;
    }

    .manual-table-heading {
        display: none;
    }

    .manual-rows {
        gap: 18px;
    }

    .manual-row {
        grid-template-columns: 1fr 1fr 38px;
        padding: 18px;
        border: 1px solid var(--tool-border);
        border-radius: 16px;
        background: #f9fbfe;
    }

    .manual-row label:first-child {
        grid-column: 1 / 4;
    }

    .manual-row label > span {
        display: block;
    }

    .manual-row__remove {
        align-self: end;
    }

    .calculator-footer-row--manual > span {
        text-align: center;
    }

    .results-panel {
        padding: 30px 20px 26px;
        border-radius: 24px;
    }

    .results-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .results-reset {
        align-self: flex-start;
    }

    .results-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .summary-card {
        min-height: 112px;
        padding: 18px;
    }

    .summary-card strong {
        font-size: 1.65rem;
    }

    .results-toolbar {
        padding: 13px;
    }

    .results-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .results-toolbar button {
        width: 100%;
    }

    .content-section {
        padding-block: 72px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .definition-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .definition-grid__lead {
        padding-left: 20px;
        font-size: 1.15rem;
    }

    .comparison-card,
    .audience-grid li {
        padding: 26px;
    }

    .steps-grid li {
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 18px;
    }

    .steps-card__number {
        width: 58px;
        height: 58px;
    }

    .steps-grid::before {
        left: 29px;
    }

    .cta-bridge {
        padding: 36px 24px 42px;
        border-radius: 24px;
    }

    .cta-button {
        width: 100%;
        padding: 12px 18px;
        text-align: center;
    }

    .cta-bridge__diagram {
        gap: 74px 18px;
        min-height: 280px;
    }

    .cta-bridge__diagram span {
        min-width: 92px;
        font-size: 0.67rem;
    }

    .cta-bridge__diagram strong {
        width: 88px;
        height: 88px;
    }

    .faq-item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 13px;
    }
}

/* Editorial identity: intentionally flat, structured and distinct from UI frameworks */
.tool-workspace {
    padding-top: clamp(48px, 6vw, 76px);
    border-bottom: 1px solid #d9dfe8;
    background:
        radial-gradient(circle at 94% 8%, rgba(18, 102, 241, 0.07), transparent 25%),
        #f5f7fb;
}

.calculator-shell {
    overflow: hidden;
    margin-top: 0;
    border: 1px solid #cbd5e3;
    border-radius: 18px;
    box-shadow: 0 28px 75px rgba(11, 36, 77, 0.14);
}

.calculator-heading {
    position: relative;
    padding: 46px 52px 40px;
}

.calculator-heading::before {
    position: absolute;
    top: 0;
    left: 52px;
    width: 74px;
    height: 5px;
    background: var(--tool-accent);
    content: "";
}

.calculator-heading h2,
.results-heading h2 {
    font-weight: 800;
    letter-spacing: -0.055em;
}

.privacy-note {
    padding: 5px 0 5px 18px;
    border: 0;
    border-left: 3px solid #12a463;
    border-radius: 0;
    background: transparent;
}

.privacy-note__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.calculator-tabs {
    gap: 0;
    padding: 0 48px;
    border: 0;
    background: var(--tool-ink);
}

.calculator-tab {
    min-height: 64px;
    padding: 0 25px;
    color: #98a6ba;
    letter-spacing: 0.02em;
}

.calculator-tab::after {
    right: 25px;
    bottom: 0;
    left: 25px;
    height: 4px;
}

.calculator-tab span,
.calculator-tab.is-active span {
    width: auto;
    height: auto;
    border-radius: 0;
    color: var(--tool-accent);
    background: transparent;
    font-size: 1rem;
}

.calculator-tab.is-active {
    color: #ffffff;
}

.calculator-tab.is-active::after {
    background: var(--tool-accent);
}

.calculator-panel {
    padding: 48px 52px 46px;
}

.upload-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 0;
}

.upload-layout > div:first-child {
    padding-right: 42px;
}

.upload-zone {
    min-height: 310px;
    border: 2px dashed #91a1b7;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(18, 102, 241, 0.035) 25%, transparent 25%) 0 0 / 18px 18px,
        #fbfcfe;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
    border-color: var(--tool-primary);
    background-color: #f3f7ff;
    transform: none;
}

.upload-zone__icon {
    width: 58px;
    height: 58px;
    border: 1px solid #b8cff4;
    border-radius: 50%;
    background: #ffffff;
}

.selected-file {
    min-height: 86px;
    border: 1px solid var(--tool-primary);
    border-radius: 12px;
    background: #f7faff;
}

.selected-file__icon,
.selected-file button {
    border-radius: 8px;
}

.upload-guide {
    padding: 4px 0 4px 42px;
    border: 0;
    border-left: 1px solid #cbd2dc;
    border-radius: 0;
}

.upload-guide h3 {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--tool-ink);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upload-guide li {
    padding: 13px 0;
}

.template-button,
.calculator-primary-button,
.results-toolbar button,
.results-reset,
.date-format-field select {
    border-radius: 8px;
}

.template-button {
    justify-content: flex-start;
    min-height: 47px;
    padding: 0 15px;
    border: 1px solid var(--tool-ink);
    color: var(--tool-ink);
    background: #ffffff;
}

.template-button:hover {
    color: #ffffff;
    border-color: var(--tool-primary);
    background: var(--tool-primary);
}

.calculator-footer-row {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid var(--tool-ink);
}

.calculator-primary-button {
    min-height: 54px;
    padding-inline: 25px;
    box-shadow: 0 12px 26px rgba(18, 102, 241, 0.25);
    letter-spacing: 0.025em;
}

.calculator-primary-button:hover:not(:disabled) {
    box-shadow: 0 15px 30px rgba(18, 102, 241, 0.32);
    transform: translateY(-2px);
}

.calculator-primary-button:disabled {
    box-shadow: none;
}

.calculator-error {
    border-width: 0 0 0 4px;
    border-radius: 0;
}

.manual-table-heading {
    padding: 0 0 12px;
    border-bottom: 2px solid var(--tool-ink);
}

.manual-rows {
    gap: 0;
}

.manual-row {
    padding-block: 15px;
    border-bottom: 1px solid #d8dee7;
}

.manual-row input,
.results-search input {
    border-width: 0 0 1px;
    border-color: #98a2b3;
    border-radius: 0;
    background: transparent;
}

.manual-row input:focus,
.results-search input:focus,
.date-format-field select:focus {
    border-color: var(--tool-primary);
    box-shadow: inset 0 -2px 0 var(--tool-primary);
}

.manual-row__remove {
    border-radius: 0;
    background: transparent;
}

.add-product-button {
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
}

.results-panel {
    margin-top: 46px;
    padding: 48px 50px 38px;
    border: 1px solid #cbd5e3;
    border-top: 4px solid var(--tool-primary);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(11, 36, 77, 0.09);
}

.results-reset {
    border: 0;
    border-bottom: 1px solid currentColor;
}

.results-summary {
    gap: 0;
    border-block: 2px solid var(--tool-ink);
}

.summary-card {
    min-height: 132px;
    padding: 25px 22px;
    border: 0;
    border-right: 1px solid #d8dee7;
    border-radius: 0;
}

.summary-card:last-child {
    border-right: 0;
}

.summary-card--expired,
.summary-card--critical,
.summary-card--upcoming,
.summary-card--current {
    border-top: 0;
}

.summary-card strong {
    font-size: 2.4rem;
    letter-spacing: -0.06em;
}

.results-toolbar {
    padding: 19px 0;
    border-block: 1px solid #d8dee7;
    border-radius: 0;
    background: transparent;
}

.results-toolbar button {
    border-color: var(--tool-ink);
}

.results-toolbar button:first-child {
    box-shadow: 3px 3px 0 #a9c7f8;
}

.results-table-wrap {
    border: 0;
    border-radius: 0;
}

.results-table th {
    color: #ffffff;
    background: var(--tool-ink);
}

.results-table td {
    border-color: #d8dee7;
}

.status-badge {
    border-radius: 2px;
}

.definition-section,
.steps-section,
.faq-section {
    background: #fffefa;
}

.comparison-card {
    border: 0;
    border-left: 5px solid var(--tool-primary);
    border-radius: 0 14px 14px 0;
    background: #edf3fc;
}

.comparison-card__label {
    border-radius: 0;
}

.audience-section {
    background:
        radial-gradient(circle at 92% 12%, rgba(18, 102, 241, 0.1), transparent 24%),
        #edf2f8;
}

.audience-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    margin-bottom: 56px;
}

.audience-heading h2 {
    max-width: 760px;
}

.audience-heading h2 span {
    color: var(--tool-primary);
}

.audience-heading__count {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 24px;
    border-left: 1px solid #aab7c8;
}

.audience-heading__count strong {
    color: var(--tool-ink);
    font-size: clamp(3rem, 5vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.85;
}

.audience-heading__count span {
    color: #68778d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.55;
    text-transform: uppercase;
}

.audience-grid {
    gap: 0;
    border-block: 1px solid #aeb9c8;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.audience-grid li {
    min-height: 310px;
    padding: 36px clamp(25px, 3vw, 42px) 40px;
    border: 0;
    border-right: 1px solid #bfc9d6;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.audience-grid li:last-child {
    border-right: 0;
}

.audience-grid li:hover {
    border-color: #bfc9d6;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
    transform: none;
}

.audience-card__icon {
    border-radius: 50%;
    box-shadow: none;
}

.audience-card__number {
    position: absolute;
    top: 37px;
    right: clamp(25px, 3vw, 42px);
    color: #8795a8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.steps-card__number {
    border-width: 2px;
    border-color: var(--tool-ink);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(18, 102, 241, 0.2);
}

.steps-grid li:nth-child(3) .steps-card__number {
    box-shadow: 0 10px 24px rgba(255, 134, 44, 0.22);
}

.cta-bridge {
    border: 2px solid var(--tool-ink);
    border-radius: 22px;
    box-shadow: 0 28px 65px rgba(7, 26, 64, 0.2);
}

.cta-button,
.cta-bridge__diagram span {
    border-radius: 9px;
}

.faq-item__number {
    border-radius: 7px;
}

@media (max-width: 900px) {
    .audience-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .audience-heading__count {
        justify-self: start;
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid #aab7c8;
        border-left: 0;
    }

    .upload-layout > div:first-child {
        padding-right: 0;
        padding-bottom: 36px;
    }

    .upload-guide {
        padding: 34px 0 0;
        border-top: 1px solid #cbd2dc;
        border-left: 0;
    }

    .audience-grid {
        border-bottom: 0;
    }

    .audience-grid li,
    .audience-grid li:last-child {
        border-right: 0;
        border-bottom: 1px solid #cfd6df;
    }
}

@media (max-width: 600px) {
    .tool-workspace {
        padding-top: 32px;
    }

    .calculator-shell {
        margin-top: 0;
        border-radius: 14px;
        box-shadow: 0 20px 48px rgba(11, 36, 77, 0.13);
    }

    .calculator-heading,
    .calculator-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    .calculator-heading::before {
        left: 22px;
    }

    .calculator-tabs {
        padding: 0 8px;
    }

    .calculator-tab::after {
        right: 8px;
        left: 8px;
    }

    .manual-row {
        padding: 18px 0;
        border-width: 0 0 1px;
        border-radius: 0;
        background: transparent;
    }

    .results-panel {
        padding: 32px 20px 26px;
        border-radius: 14px;
    }

    .results-summary {
        border-bottom: 0;
    }

    .summary-card,
    .summary-card:last-child {
        border-right: 1px solid #d8dee7;
        border-bottom: 1px solid #d8dee7;
    }

    .summary-card:nth-child(2n) {
        border-right: 0;
    }

    .audience-grid li {
        min-height: auto;
    }

    .cta-bridge {
        padding: 30px 20px 34px;
        border-radius: 16px;
        box-shadow: 0 22px 52px rgba(7, 26, 64, 0.18);
    }

    .demo-form {
        padding: 22px 16px;
        border-radius: 13px;
    }

    .demo-form__grid {
        grid-template-columns: 1fr;
    }

    .demo-form__wide {
        grid-column: auto;
    }
}

@media (max-width: 400px) {
    .demo-form__captcha .g-recaptcha {
        transform: scale(0.86);
    }
}

@media (max-width: 350px) {
    .demo-form__captcha {
        min-height: 62px;
    }

    .demo-form__captcha .g-recaptcha {
        transform: scale(0.72);
    }
}
