:root {
    color-scheme: light;
    --page: #f4f7f6;
    --surface: #ffffff;
    --surface-2: #e8efed;
    --surface-3: #dce8e5;
    --ink: #102024;
    --muted: #52666a;
    --line: #c8d6d3;
    --line-strong: #91aaa5;
    --accent: #007b86;
    --accent-hover: #00656e;
    --accent-ink: #ffffff;
    --coral: #c95847;
    --yellow: #a97900;
    --success: #16865f;
    --hero-overlay: rgba(244, 247, 246, 0.78);
    --header: rgba(244, 247, 246, 0.94);
    --shadow: 0 18px 48px rgba(16, 32, 36, 0.14);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page: #0c1416;
    --surface: #142024;
    --surface-2: #1c2b2f;
    --surface-3: #26383d;
    --ink: #f4faf9;
    --muted: #b7c8c5;
    --line: #33494e;
    --line-strong: #5e777b;
    --accent: #45c3cd;
    --accent-hover: #64d6de;
    --accent-ink: #071416;
    --coral: #ff826e;
    --yellow: #f1c452;
    --success: #55d49f;
    --hero-overlay: rgba(7, 18, 21, 0.76);
    --header: rgba(12, 20, 22, 0.94);
    --shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

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

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

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--page);
    border-radius: 4px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 72px;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
}

.brand-mark {
    width: 31px;
    height: 31px;
    position: relative;
    display: grid;
    place-items: center;
    border: 2px solid var(--accent);
    border-radius: 6px;
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    width: 6px;
    background: var(--accent);
    border-radius: 2px;
    bottom: 6px;
}

.brand-mark::before {
    height: 10px;
    left: 7px;
}

.brand-mark::after {
    height: 17px;
    right: 7px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}

.desktop-nav a + a {
    margin-left: 26px;
}

.desktop-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-actions > * + * {
    margin-left: 8px;
}

.language-switcher {
    display: grid;
    grid-template-columns: repeat(2, 42px);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    overflow: hidden;
}

.language-switcher a {
    display: grid;
    place-items: center;
    min-height: 36px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.language-switcher a + a {
    border-left: 1px solid var(--line-strong);
}

.language-switcher a[aria-current="page"] {
    background: var(--surface-3);
    color: var(--ink);
}

.icon-button,
.menu-button,
.stepper-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
}

.icon-button:hover,
.menu-button:hover,
.stepper-button:hover,
.icon-button:focus-visible,
.menu-button:focus-visible,
.stepper-button:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.menu-button {
    display: none;
    font-size: 22px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    background: var(--accent-hover);
}

.button.secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.button.header-cta {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 14px;
}

.hero {
    position: relative;
    height: 74svh;
    min-height: 530px;
    max-height: 800px;
    overflow: hidden;
    isolation: isolate;
    background-image: url("/assets/morphilo-hero.jpg");
    background-position: center center;
    background-size: cover;
    box-shadow: inset 0 0 0 2000px var(--hero-overlay);
}

.hero::before {
    content: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(610px, 54%);
    padding: 38px 0 48px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 850;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hero h1 {
    margin: 0;
    font-size: 76px;
    line-height: 0.98;
    font-weight: 900;
}

.hero-lead {
    max-width: 580px;
    margin: 24px 0 0;
    color: var(--ink);
    font-size: 23px;
    line-height: 1.42;
    font-weight: 560;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 30px;
}

.hero-actions > * + * {
    margin-left: 12px;
}

.hero-price {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    opacity: 0.82;
    overflow-wrap: anywhere;
}

.signal-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.signal-list {
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
}

.signal-list li {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 30px;
    color: var(--muted);
    font-weight: 680;
}

.signal-list li + li {
    border-left: 1px solid var(--line);
}

.signal-index {
    margin-right: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.section {
    padding: 104px 0;
}

.section.compact {
    padding: 76px 0;
}

.section.surface {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

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

.section-heading h2,
.pricing-copy h2,
.closing-cta h2 {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
}

.section-heading p,
.pricing-copy > p,
.closing-cta p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.7fr);
    gap: 52px;
    align-items: center;
}

.product-copy h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
}

.product-copy > p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.product-points {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.product-points li {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.product-points strong {
    color: var(--accent);
}

.product-window {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--page);
    box-shadow: var(--shadow);
}

.window-bar {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.window-title {
    font-weight: 850;
}

.window-demo {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.dashboard-summary {
    padding: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.dashboard-summary strong {
    display: block;
    font-size: 23px;
}

.dashboard-summary span {
    color: var(--muted);
    font-size: 13px;
}

.demo-total {
    text-align: right;
}

.demo-total strong {
    color: var(--success);
}

.demo-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo-account {
    min-height: 88px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.demo-account + .demo-account {
    border-top: 1px solid var(--line);
}

.avatar-initials {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--accent);
    font-weight: 900;
}

.account-name {
    display: block;
    font-weight: 850;
}

.account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--muted);
    font-size: 12px;
}

.status {
    color: var(--success);
    font-weight: 800;
}

.demo-actions {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 5px;
}

.demo-action {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-strong);
}

.capability {
    min-height: 248px;
    padding: 28px 30px 32px 0;
    border-bottom: 1px solid var(--line);
}

.capability:not(:nth-child(3n + 1)) {
    padding-left: 30px;
    border-left: 1px solid var(--line);
}

.capability-number {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.capability h3 {
    margin: 34px 0 0;
    font-size: 23px;
    line-height: 1.2;
}

.capability p {
    margin: 12px 0 0;
    color: var(--muted);
}

.workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    counter-reset: workflow;
}

.workflow-step {
    position: relative;
    padding: 34px 34px 10px 0;
    counter-increment: workflow;
}

.workflow-step + .workflow-step {
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.workflow-step::before {
    content: "0" counter(workflow);
    display: block;
    margin-bottom: 42px;
    color: var(--yellow);
    font-size: 14px;
    font-weight: 900;
}

.workflow-step h3 {
    margin: 0;
    font-size: 22px;
}

.workflow-step p {
    margin: 12px 0 0;
    color: var(--muted);
}

.pricing-layout {
    display: grid;
    grid-template-columns: 1fr minmax(380px, 0.78fr);
    gap: 70px;
    align-items: center;
}

.pricing-copy ul {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.pricing-copy li {
    padding: 13px 0;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.pricing-copy li::before {
    content: "✓";
    color: var(--success);
    font-weight: 900;
}

.pricing-box {
    padding: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.price-label {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.price-value {
    margin: 8px 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-value strong {
    font-size: 54px;
    line-height: 1;
}

.price-value span {
    color: var(--muted);
}

.pricing-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.calculator-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
}

.pricing-stepper {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
}

.pricing-stepper input {
    width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--page);
    color: var(--ink);
    text-align: center;
    font-weight: 850;
}

.calculator-result {
    min-height: 78px;
    margin: 16px 0 24px;
    padding: 15px;
    background: var(--surface-2);
    border-left: 3px solid var(--coral);
}

.calculator-result strong {
    display: block;
    font-size: 20px;
}

.calculator-result span {
    color: var(--muted);
    font-size: 13px;
}

.pricing-box .button {
    width: 100%;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.62fr 1fr;
    gap: 70px;
}

.faq-intro h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
}

.faq-intro p {
    margin: 16px 0 0;
    color: var(--muted);
}

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

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 21px 42px 21px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 8px;
    top: 18px;
    color: var(--accent);
    font-size: 22px;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: 0;
    padding: 0 46px 22px 0;
    color: var(--muted);
}

.closing-cta {
    padding: 78px 0;
    background: var(--surface-3);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.closing-inner {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 52px;
}

.closing-cta p {
    max-width: 620px;
}

.site-footer {
    padding: 30px 0;
    background: var(--page);
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 26px;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent);
}

.legal-main {
    width: min(920px, calc(100% - 40px));
    max-width: 100%;
    margin: 0 auto;
    padding: 72px 0 88px;
}

.legal-hero {
    max-width: 780px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    margin: 6px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
}

.legal-lead {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.legal-callout,
.legal-policy-warning {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--accent);
    background: var(--surface-2);
}

.legal-callout {
    margin: 28px 0 34px;
    padding: 18px 20px;
}

.legal-callout strong {
    display: block;
    margin-bottom: 5px;
}

.legal-callout p,
.legal-policy-warning p {
    margin: 0;
    overflow-wrap: anywhere;
}

.legal-policy-warning {
    padding: 20px;
    border-left-color: var(--coral);
}

.legal-document {
    display: grid;
    gap: 0;
}

.legal-document section {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.legal-document section.legal-policy-warning {
    margin: 10px 0;
    border: 1px solid var(--line-strong);
    border-left: 4px solid var(--coral);
}

.legal-document h2 {
    margin: 0 0 11px;
    font-size: 21px;
}

.legal-document p,
.legal-document li {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.legal-document p {
    margin: 0;
}

.legal-document p + p {
    margin-top: 13px;
}

.legal-document ul {
    display: grid;
    gap: 9px;
    margin: 0 0 13px;
    padding-left: 21px;
}

.legal-document a {
    color: var(--accent);
    font-weight: 700;
}

.legal-nav a[aria-current="page"] {
    color: var(--ink);
}

@media (max-width: 760px) {
    .legal-main {
        width: min(calc(100% - 28px), 920px);
        padding-top: 46px;
    }

    .legal-nav {
        display: none;
    }

    .legal-hero h1 {
        font-size: 40px;
    }

    .legal-lead {
        font-size: 17px;
    }
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .desktop-nav {
        position: fixed;
        inset: 72px 0 auto;
        display: none;
        margin: 0;
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .desktop-nav a + a {
        margin-top: 18px;
        margin-left: 0;
    }

    body.menu-open .desktop-nav {
        display: flex;
    }

    .menu-button {
        display: grid;
    }

    .header-cta {
        display: none;
    }

    .hero h1 {
        font-size: 62px;
    }

    .hero-lead {
        font-size: 20px;
    }

    .product-layout,
    .pricing-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .product-copy {
        max-width: 720px;
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capability:not(:nth-child(3n + 1)) {
        padding-left: 0;
        border-left: 0;
    }

    .capability:nth-child(even) {
        padding-left: 28px;
        border-left: 1px solid var(--line);
    }

    .pricing-box {
        max-width: 560px;
    }
}

@media (max-width: 700px) {
    .site-header,
    .header-inner {
        min-height: 64px;
    }

    .header-inner,
    .hero-inner,
    .signal-list,
    .section-inner,
    .footer-inner {
        width: min(100% - 28px, 1180px);
    }

    .desktop-nav {
        inset: 64px 0 auto;
    }

    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 29px;
        height: 29px;
    }

    .language-switcher {
        grid-template-columns: repeat(2, 36px);
    }

    .language-switcher a,
    .icon-button,
    .menu-button {
        min-height: 36px;
        height: 36px;
    }

    .hero {
        height: calc(100svh - 88px);
        min-height: 610px;
        max-height: 760px;
        background-position: 64% center;
    }

    .hero-copy {
        width: 100%;
        padding-top: 160px;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 46px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-lead {
        font-size: 18px;
        max-width: 480px;
    }

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


    .hero-actions > * + * {
        margin-top: 10px;
        margin-left: 0;
    }

    .hero-actions .button {
        width: 100%;
    }

    .signal-list {
        grid-template-columns: 1fr;
    }

    .signal-list li {
        min-height: 58px;
        padding: 14px 4px;
    }

    .signal-list li + li {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .section {
        padding: 74px 0;
    }

    .section.compact {
        padding: 58px 0;
    }

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

    .section-heading h2,
    .pricing-copy h2,
    .closing-cta h2,
    .product-copy h2,
    .faq-intro h2 {
        font-size: 34px;
    }

    .section-heading p,
    .pricing-copy > p,
    .closing-cta p {
        font-size: 17px;
    }

    .dashboard-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .demo-total {
        text-align: left;
    }

    .demo-account {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 98px;
    }

    .avatar-initials {
        width: 40px;
        height: 40px;
    }

    .demo-actions {
        grid-column: 2;
    }

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

    .capability,
    .capability:nth-child(even),
    .capability:not(:nth-child(3n + 1)) {
        min-height: 0;
        padding: 24px 0 28px;
        border-left: 0;
    }

    .capability h3 {
        margin-top: 22px;
    }

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

    .workflow-step,
    .workflow-step + .workflow-step {
        padding: 25px 0 28px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .workflow-step::before {
        margin-bottom: 22px;
    }

    .pricing-box {
        padding: 26px 20px;
    }

    .price-value strong {
        font-size: 46px;
    }

    .closing-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .closing-inner .button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .header-inner {
        gap: 8px;
    }

    .brand span:last-child {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy {
        padding-top: 120px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
