:root {
    --shell: #0d0f0e;
    --shell-soft: #171a18;
    --shell-line: rgba(245, 242, 232, 0.14);
    --paper: #eeece4;
    --paper-warm: #e2ded3;
    --ink: #20211e;
    --muted: #65675f;
    --accent: #d9ae39;
    --accent-dark: #967316;
    --old-blue: #163d72;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    background: var(--shell);
    color: #f7f5ed;
    font-family: Arial, Helvetica, sans-serif;
}

body,
main,
section,
article,
div,
nav,
figure {
    min-width: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.comparison-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 10px clamp(12px, 2vw, 28px);
    border-bottom: 1px solid var(--shell-line);
    background: rgba(13, 15, 14, 0.96);
    backdrop-filter: blur(18px);
}

.comparison-back,
.side-label a {
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.comparison-back {
    font-size: 0.88rem;
    font-weight: 800;
}

.comparison-back:hover {
    color: var(--accent);
}

.comparison-switch {
    justify-self: center;
    display: none;
    padding: 3px;
    border: 1px solid var(--shell-line);
    border-radius: 6px;
    background: #080a09;
}

.comparison-switch-button {
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #9fa49e;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.comparison-switch-button.is-active {
    background: var(--accent);
    color: #151713;
}

.comparison-note {
    margin: 0;
    color: #aeb3ac;
    font-size: 0.78rem;
}

.comparison-page,
.split-demo {
    width: 100%;
}

.comparison-page {
    padding-top: 64px;
}

.split-demo {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
}

.demo-side {
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid var(--shell-line);
    background: var(--shell-soft);
}

.side-label {
    position: relative;
    top: auto;
    z-index: 35;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(14px, 2vw, 24px);
    border-bottom: 1px solid var(--shell-line);
    background: rgba(22, 24, 23, 0.97);
    backdrop-filter: blur(14px);
}

.side-label > div {
    display: grid;
    gap: 3px;
}

.side-label span {
    color: #d69b8f;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.side-label strong {
    font-size: 0.92rem;
}

.side-label a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(247, 245, 237, 0.2);
    border-radius: 4px;
    color: #f7f5ed;
    font-size: 0.76rem;
    font-weight: 800;
}

.side-label a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.side-label-after span {
    color: var(--accent);
}

.side-label-after a {
    border-color: var(--accent);
    background: var(--accent);
    color: #151713;
}

.side-label-after a:hover {
    background: #ffdc65;
    color: #151713;
}

/* Old website */
.old-site {
    min-height: 100%;
    padding: clamp(10px, 1.6vw, 20px);
    background: #d7d5ca;
    color: #191919;
    font-family: Verdana, Arial, sans-serif;
}

.old-top {
    border: 1px solid #8d8d86;
    background: #f1f0e8;
}

.old-logo {
    padding: 18px 14px 12px;
    color: var(--old-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.3vw, 1.8rem);
    font-weight: 700;
    text-align: center;
}

.old-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid #aaa9a1;
    background: #deddd5;
}

.old-links a {
    padding: 8px 11px;
    border-right: 1px solid #aaa9a1;
    color: #173d71;
    font-size: 0.76rem;
    text-decoration: underline;
}

.old-banner {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(120px, 34%) 1fr;
    align-items: center;
    border: 1px solid #93938d;
    background: #f7f6ef;
}

.old-banner-mark {
    min-height: 150px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-right: 1px solid #93938d;
    background:
        repeating-linear-gradient(0deg, rgba(25, 61, 114, 0.04) 0 1px, transparent 1px 5px),
        #d8d9d3;
    color: #294d75;
    text-align: center;
}

.old-banner-mark strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.old-banner-mark span {
    max-width: 13ch;
    color: #555850;
    font-size: 0.66rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.old-banner div {
    padding: 14px;
}

.old-banner h1 {
    margin: 0;
    color: #99351f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.1;
}

.old-banner p {
    margin: 9px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.old-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(112px, 25%) 1fr;
    gap: 12px;
}

.old-sidebar {
    align-self: start;
    padding: 12px;
    border: 1px solid #92928b;
    background: #e8e7df;
}

.old-sidebar h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.old-sidebar a {
    display: block;
    margin: 0 0 9px;
    color: #123c7a;
    font-size: 0.74rem;
    line-height: 1.35;
    text-decoration: underline;
}

.old-content {
    padding: clamp(13px, 2vw, 20px);
    border: 1px solid #a3a29a;
    background: #fbfaf5;
}

.old-content h2 {
    margin: 0 0 10px;
    color: var(--old-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.5vw, 1.9rem);
    line-height: 1.1;
}

.old-content p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
}

.old-table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.old-table caption {
    padding: 0 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

.old-table th,
.old-table td {
    padding: 8px;
    border: 1px solid #6f6f69;
    text-align: left;
}

.old-table th {
    background: #c8c7be;
}

.old-table tr:nth-child(even) {
    background: #efeee7;
}

.old-warning {
    margin-top: 18px;
    padding: 12px;
    border: 2px solid #d19f00;
    background: #ffe45c;
    color: #6d250d;
    font-size: 0.79rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.old-contact {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #aaa9a1;
}

.old-contact h2 {
    font-size: 1.1rem;
}

/* Modern website */
.modern-site {
    min-height: 100%;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.modern-nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 clamp(16px, 2.5vw, 34px);
    border-bottom: 1px solid rgba(23, 25, 22, 0.14);
    background: #eeece4;
}

.standalone-after .modern-nav {
    position: sticky;
    top: 0;
    z-index: 30;
}

.modern-brand {
    display: grid;
    line-height: 0.92;
    text-transform: none;
}

.modern-brand span {
    color: #61635c;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.modern-brand strong {
    font-size: 1.12rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.modern-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.8vw, 24px);
    color: #51564f;
    font-size: 0.78rem;
    font-weight: 700;
}

.modern-links a,
.modern-text-link {
    transition: color 180ms ease;
}

.modern-links a:hover,
.modern-text-link:hover {
    color: var(--accent-dark);
}

.modern-nav-cta,
.modern-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 900;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.modern-nav-cta,
.modern-btn-primary {
    background: var(--accent);
    color: #171914;
}

.modern-nav-cta:hover,
.modern-btn-primary:hover {
    background: #e7c15a;
}

.modern-btn-secondary {
    border-color: rgba(247, 245, 237, 0.48);
    color: #f7f5ed;
}

.modern-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modern-btn-dark {
    background: var(--ink);
    color: #f7f5ed;
}

.modern-btn-dark:hover {
    background: #30342e;
}

.modern-hero {
    position: relative;
    min-height: clamp(560px, 70vh, 720px);
    display: grid;
    align-content: end;
    overflow: hidden;
    background: #121512;
    color: #f7f5ed;
}

.modern-hero-image,
.modern-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.modern-hero-image {
    object-fit: cover;
    object-position: center;
    filter: saturate(0.74) contrast(0.94) brightness(0.9);
}

.modern-hero-overlay {
    background: linear-gradient(90deg, rgba(25, 26, 23, 0.94) 0%, rgba(25, 26, 23, 0.78) 46%, rgba(25, 26, 23, 0.32) 100%);
}

.modern-hero-copy {
    position: relative;
    z-index: 2;
    width: min(620px, 86%);
    padding: clamp(38px, 6vw, 78px) clamp(18px, 4vw, 52px) 154px;
}

.modern-kicker {
    margin: 0;
    color: #9a7410;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1.4;
    text-transform: uppercase;
}

.modern-hero .modern-kicker {
    color: var(--accent);
}

.modern-hero h1 {
    max-width: 12ch;
    margin: 12px 0 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(2.6rem, 5.7vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.comparison-body .modern-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 4vw, 3.75rem);
}

.modern-lead {
    max-width: 55ch;
    margin: 20px 0 0;
    color: #d5d7d1;
    font-size: clamp(0.98rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.modern-actions,
.modern-contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.modern-actions {
    margin-top: 26px;
}

.modern-text-link {
    padding: 12px 4px;
    color: #f7f5ed;
    font-size: 0.82rem;
    font-weight: 800;
}

.modern-proof {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(247, 245, 237, 0.2);
    background: #1b1d1a;
}

.modern-proof div {
    min-height: 108px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 16px clamp(12px, 2vw, 24px);
    border-right: 1px solid rgba(247, 245, 237, 0.15);
}

.modern-proof span {
    color: var(--accent);
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modern-proof strong {
    font-size: 0.8rem;
    line-height: 1.35;
}

.modern-section,
.modern-results,
.modern-reviews,
.modern-contact {
    padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 58px);
}

.modern-section-head {
    max-width: 680px;
}

.modern-section-head h2,
.modern-result-copy h2,
.modern-contact h2 {
    max-width: 17ch;
    margin: 10px 0 0;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.comparison-body .modern-section-head h2,
.comparison-body .modern-result-copy h2,
.comparison-body .modern-contact h2 {
    font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.modern-section-head > p:last-child,
.modern-result-copy > p:last-child,
.modern-contact-copy > p {
    max-width: 58ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

.modern-service-list {
    margin-top: clamp(30px, 5vw, 58px);
    border-top: 1px solid #bdb9ae;
}

.modern-service {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: clamp(12px, 2vw, 24px);
    align-items: center;
    padding: clamp(20px, 3vw, 32px) 0;
    border-bottom: 1px solid #bdb9ae;
}

.modern-service > span {
    align-self: start;
    color: #8c6b10;
    font-size: 0.7rem;
    font-weight: 900;
}

.modern-service h3 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.modern-service p {
    max-width: 56ch;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.modern-service > strong {
    padding-left: 12px;
    color: #745608;
    font-size: clamp(0.95rem, 1.8vw, 1.3rem);
    white-space: nowrap;
}

.modern-service-featured {
    margin-inline: -14px;
    padding-inline: 14px;
    background: #ded4ad;
}

.modern-results {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    background: #242621;
    color: #f7f5ed;
}

.modern-result-copy .modern-kicker {
    color: var(--accent);
}

.modern-result-copy h2 {
    max-width: 12ch;
}

.modern-result-copy > p:last-child {
    color: #b9beb6;
}

.modern-result-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(247, 245, 237, 0.2);
    border-radius: 2px;
}

.modern-result-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.modern-result-image figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(28, 30, 27, 0.94);
}

.modern-result-image figcaption span {
    padding: 12px 15px;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modern-result-image figcaption span:last-child {
    border-left: 1px solid rgba(247, 245, 237, 0.22);
    color: var(--accent);
}

.modern-reviews {
    background: #ded9cc;
}

.review-grid {
    margin-top: clamp(28px, 5vw, 54px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #aaa69d;
    border-bottom: 1px solid #aaa69d;
}

.review-grid blockquote {
    margin: 0;
    padding: clamp(22px, 3vw, 34px);
    border-right: 1px solid #aaa69d;
}

.review-grid blockquote:last-child {
    border-right: 0;
}

.review-stars {
    color: #9b7200;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.review-grid p {
    margin: 18px 0 0;
    color: #333730;
    font-size: 0.9rem;
    line-height: 1.68;
}

.review-grid cite {
    display: block;
    margin-top: 20px;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.modern-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: clamp(30px, 6vw, 78px);
    align-items: center;
    background: var(--paper);
}

.modern-contact-actions {
    margin-top: 26px;
}

.modern-contact-list {
    margin: 0;
    border-top: 1px solid #aaa79e;
}

.modern-contact-list div {
    display: grid;
    grid-template-columns: minmax(90px, 0.62fr) minmax(0, 1.38fr);
    gap: 18px;
    padding: 19px 0;
    border-bottom: 1px solid #aaa79e;
}

.modern-contact-list dt {
    color: #7e641a;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modern-contact-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    font-weight: 800;
}

.standalone-demo {
    min-height: 100vh;
}

.standalone-before {
    padding: clamp(10px, 2vw, 22px);
    background: #bdbbb1;
}

.standalone-before .old-site {
    width: min(1040px, 100%);
    min-height: calc(100vh - 44px);
    margin-inline: auto;
    border: 1px solid #77766f;
}

.standalone-after .modern-site {
    min-height: 100vh;
}

@media (max-width: 1500px) {
    .comparison-body .modern-results,
    .comparison-body .modern-contact {
        grid-template-columns: 1fr;
    }

    .comparison-body .modern-result-copy h2 {
        max-width: 15ch;
    }

    .comparison-body .review-grid {
        grid-template-columns: 1fr;
    }

    .comparison-body .review-grid blockquote {
        border-right: 0;
        border-bottom: 1px solid #aaa69d;
    }

    .comparison-body .review-grid blockquote:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 1100px) {
    .comparison-note {
        display: none;
    }

    .comparison-toolbar {
        grid-template-columns: auto 1fr;
    }

    .modern-links {
        display: none;
    }

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

    .modern-hero-copy {
        padding-bottom: 248px;
    }

    .modern-results,
    .modern-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .comparison-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .comparison-page {
        padding-top: 92px;
    }

    .comparison-back {
        justify-self: center;
        font-size: 0.76rem;
    }

    .comparison-switch {
        display: flex;
    }

    .split-demo {
        display: block;
    }

    .demo-side {
        display: none;
    }

    .comparison-page[data-active-side="before"] .demo-before,
    .comparison-page[data-active-side="after"] .demo-after {
        display: block;
    }

    .modern-hero {
        min-height: 690px;
    }

    .modern-hero-overlay {
        background: linear-gradient(180deg, rgba(25, 26, 23, 0.2) 0%, rgba(25, 26, 23, 0.74) 47%, rgba(25, 26, 23, 0.98) 82%);
    }

    .modern-hero-copy {
        width: 100%;
        padding: 270px 20px 244px;
    }

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

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-grid blockquote {
        border-right: 0;
        border-bottom: 1px solid #aaa69d;
    }

    .review-grid blockquote:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .comparison-toolbar {
        min-height: 92px;
        padding-block: 8px;
    }

    .comparison-switch {
        width: 100%;
    }

    .comparison-switch-button {
        flex: 1;
        padding-inline: 8px;
    }

    .side-label {
        min-height: 62px;
    }

    .side-label a {
        max-width: 150px;
        text-align: center;
    }

    .old-site {
        padding: 9px;
    }

    .old-banner,
    .old-layout {
        grid-template-columns: 1fr;
    }

    .old-banner-mark {
        min-height: 110px;
        border-right: 0;
        border-bottom: 1px solid #93938d;
    }

    .old-sidebar {
        display: none;
    }

    .modern-nav {
        min-height: 62px;
        padding-inline: 14px;
    }

    .modern-nav-cta {
        min-height: 38px;
        padding-inline: 13px;
    }

    .modern-hero {
        min-height: 720px;
    }

    .modern-hero-image {
        object-position: 62% center;
    }

    .modern-hero-copy {
        padding: 250px 16px 244px;
    }

    .modern-hero h1 {
        font-size: clamp(2.5rem, 13vw, 3.7rem);
    }

    .comparison-body .modern-hero h1 {
        font-size: clamp(2.45rem, 12.2vw, 3.45rem);
    }

    .modern-actions {
        align-items: stretch;
    }

    .modern-btn-primary,
    .modern-btn-secondary {
        flex: 1 1 130px;
    }

    .modern-text-link {
        flex-basis: 100%;
    }

    .modern-proof div {
        min-height: 104px;
        padding: 13px;
    }

    .modern-section,
    .modern-results,
    .modern-reviews,
    .modern-contact {
        padding: 46px 16px;
    }

    .modern-service {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .modern-service > strong {
        grid-column: 2;
        padding-left: 0;
    }

    .modern-result-image img {
        aspect-ratio: 1 / 1;
    }

    .modern-contact-list div {
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
