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

:root {
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #142420;
    --muted: #5d6b66;
    --soft: #eef4f0;
    --paper: #fbfaf7;
    --white: #ffffff;
    --line: #d9e2dc;
    --teal: #06735f;
    --teal-dark: #064d42;
    --coral: #f47c5c;
    --yellow: #f5c35d;
    --blue: #4f75ff;
    --shadow: 0 24px 80px rgba(20, 36, 32, 0.16);
    --radius: 8px;
    --width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    overflow-x: clip;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    margin: 0 auto;
    max-width: var(--width);
    padding: 0 22px;
    width: 100%;
}

.skip-link,
.sr-only {
    height: 1px;
    left: -999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.skip-link:focus {
    background: var(--yellow);
    height: auto;
    left: 16px;
    padding: 10px 14px;
    top: 16px;
    width: auto;
    z-index: 10000;
}

.site-body {
    background: var(--paper);
}

.site-header {
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid rgba(217, 226, 220, 0.86);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0 auto;
    max-width: var(--width);
    min-height: 76px;
    padding: 0 22px;
}

.brand img {
    height: 48px;
    width: auto;
}

.primary-nav {
    justify-self: end;
}

.primary-nav ul {
    align-items: center;
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav li {
    position: relative;
}

.primary-nav a {
    border-radius: var(--radius);
    color: #30433d;
    display: inline-flex;
    font-weight: 700;
    min-height: 42px;
    padding: 9px 12px;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .is-active > a {
    background: var(--soft);
    color: var(--teal-dark);
}

.primary-nav .sub-menu {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    left: 0;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    top: 100%;
}

.primary-nav .has-children:hover .sub-menu,
.primary-nav .has-children:focus-within .sub-menu {
    display: grid;
}

.primary-nav .sub-menu a {
    justify-content: flex-start;
    width: 100%;
}

.primary-nav .nav-cta a {
    background: var(--ink);
    color: var(--white);
}

.primary-nav .nav-cta a:hover {
    background: var(--teal);
    color: var(--white);
}

.primary-nav .nav-demo a {
    background: var(--coral);
    color: var(--white);
}

.primary-nav .nav-demo a:hover {
    background: #df6545;
    color: var(--white);
}

.menu-toggle {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    justify-self: end;
    min-height: 42px;
    padding: 0 10px;
    width: 46px;
}

.menu-toggle span:not(.sr-only) {
    background: var(--ink);
    display: block;
    height: 2px;
    width: 22px;
}

.home-hero,
.page-hero {
    background:
        linear-gradient(90deg, rgba(9, 30, 27, 0.94) 0%, rgba(9, 30, 27, 0.80) 44%, rgba(9, 30, 27, 0.20) 100%),
        var(--hero-image, url("/assets/img/demo/tabilo-demo-dashboard.png")) center / cover no-repeat;
    color: var(--white);
}

.home-hero {
    align-items: center;
    display: flex;
    min-height: min(690px, calc(100svh - 104px));
    padding: 74px 0;
}

.home-hero__copy,
.page-hero__copy {
    max-width: 720px;
}

.eyebrow {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.home-hero h1,
.page-hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    letter-spacing: 0;
    line-height: 0.98;
    margin: 0;
    max-width: 780px;
}

.home-hero .lead,
.page-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2vw, 23px);
    margin: 20px 0 0;
    max-width: 660px;
}

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

.button {
    align-items: center;
    background: var(--coral);
    border: 1px solid var(--coral);
    border-radius: var(--radius);
    color: var(--white);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    text-decoration: none;
}

.button:hover {
    background: #df6545;
    border-color: #df6545;
}

.button--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.button--outline {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.trust-strip__inner {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip article {
    border-left: 1px solid var(--line);
    padding: 24px 22px;
}

.trust-strip article:last-child {
    border-right: 1px solid var(--line);
}

.trust-strip strong {
    color: var(--teal);
    display: block;
    font-size: 28px;
    line-height: 1;
}

.trust-strip span {
    color: var(--muted);
    display: block;
    margin-top: 8px;
}

.section {
    padding: 86px 0;
}

.section--soft {
    background: var(--soft);
}

.section--dark {
    background: var(--ink);
    color: var(--white);
}

.section-header {
    margin-bottom: 34px;
    max-width: 760px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.02;
    margin: 0;
}

.section-header p {
    color: var(--muted);
    font-size: 19px;
    margin: 14px 0 0;
}

.section--dark .section-header p,
.section--dark .feature-card p,
.section--dark .module-card p {
    color: rgba(255, 255, 255, 0.76);
}

.intro-grid,
.split-grid {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.intro-copy h2,
.split-copy h2 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.04;
    margin: 0;
}

.intro-copy p,
.split-copy p {
    color: var(--muted);
    font-size: 19px;
}

.bullet-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.bullet-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 700;
    padding: 13px 14px;
}

.screenshot-frame {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.screenshot-frame img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: left top;
    width: 100%;
}

.feature-grid,
.module-grid,
.pricing-grid,
.support-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.module-card,
.price-card,
.support-card,
.faq-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.feature-card strong,
.module-card strong,
.support-card strong {
    color: var(--teal);
    display: block;
    font-size: 22px;
    line-height: 1.15;
}

.feature-card p,
.module-card p,
.support-card p,
.faq-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.section--dark .feature-card,
.section--dark .module-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.section--dark .feature-card strong,
.section--dark .module-card strong {
    color: var(--yellow);
}

.screen-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.25fr 0.75fr;
}

.screen-grid .screenshot-frame:first-child {
    grid-row: span 2;
}

.workflow {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: step;
}

.workflow article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    counter-increment: step;
    padding: 22px;
}

.workflow article::before {
    background: var(--yellow);
    border-radius: 999px;
    content: counter(step);
    display: grid;
    font-weight: 900;
    height: 34px;
    margin-bottom: 18px;
    place-items: center;
    width: 34px;
}

.workflow h3,
.price-card h3,
.faq-card h3 {
    margin: 0;
}

.workflow p {
    color: var(--muted);
    margin-bottom: 0;
}

.page-hero {
    padding: 94px 0;
}

.content-block {
    padding: 74px 0;
}

.content-block h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 18px;
}

.content-block p {
    color: var(--muted);
    font-size: 18px;
}

.price-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.price-card--highlight {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.price-card .price {
    color: var(--teal);
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin: 16px 0 8px;
}

.price-card--highlight .price {
    color: var(--yellow);
}

.price-card p,
.price-card li {
    color: var(--muted);
}

.price-card--highlight p,
.price-card--highlight li {
    color: rgba(255, 255, 255, 0.78);
}

.price-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-left: 18px;
}

.cta-band {
    background: var(--teal);
    color: var(--white);
    padding: 64px 0;
}

.cta-band__inner {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.cta-band h2 {
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.05;
    margin: 0;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.82);
    margin: 12px 0 0;
    max-width: 700px;
}

.site-footer {
    background: #0f1d1a;
    color: var(--white);
    padding: 48px 0;
}

.site-footer__grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
}

.site-footer__logo {
    background: var(--paper);
    border-radius: var(--radius);
    height: 48px;
    margin-bottom: 16px;
    width: auto;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer h2 {
    font-size: 16px;
    margin: 0 0 12px;
}

.footer-links {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-body,
.admin-login-body {
    background: #f4f7f5;
    color: var(--ink);
    min-height: 100vh;
}

.admin-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    background: var(--ink);
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 22px;
}

.admin-brand img {
    background: var(--paper);
    border-radius: var(--radius);
    height: 48px;
    margin-bottom: 28px;
    width: auto;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar a,
.admin-sidebar button {
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-weight: 800;
    padding: 11px 12px;
    text-align: left;
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active,
.admin-sidebar button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-sidebar form {
    margin-top: auto;
}

.admin-main {
    padding: 34px;
}

.admin-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-heading h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    margin: 0;
}

.admin-button,
.admin-form button,
.login-panel button {
    background: var(--teal);
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    text-decoration: none;
}

.admin-button--secondary {
    background: var(--white);
    color: var(--ink);
}

.admin-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 22px;
}

.admin-stats article,
.admin-panel,
.login-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(20, 36, 32, 0.08);
}

.admin-stats article {
    padding: 22px;
}

.admin-stats span {
    color: var(--teal);
    display: block;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.admin-stats p {
    color: var(--muted);
    margin: 8px 0 0;
}

.admin-panel {
    padding: 22px;
}

.admin-panel__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-panel__header h2 {
    margin: 0;
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
}

.muted {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label,
.login-panel label {
    display: grid;
    gap: 7px;
}

.admin-form label span,
.login-panel label span {
    color: #334a44;
    font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.login-panel input {
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.code-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.check-line {
    align-items: center;
    display: inline-flex !important;
    gap: 8px;
}

.check-line input {
    min-height: auto;
    width: auto;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.delete-form {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 22px;
}

.delete-form button {
    background: transparent;
    border: 1px solid #cf3f34;
    border-radius: var(--radius);
    color: #a82921;
    cursor: pointer;
    min-height: 42px;
    padding: 9px 12px;
}

.notice {
    border-radius: var(--radius);
    margin-bottom: 18px;
    padding: 12px 14px;
}

.notice--success {
    background: #e4f6ec;
    border: 1px solid #abd9bd;
}

.notice--error {
    background: #fff0ed;
    border: 1px solid #efb0a6;
}

.login-shell {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 22px;
    place-items: center;
}

.login-panel {
    display: grid;
    gap: 16px;
    max-width: 440px;
    padding: 30px;
    width: 100%;
}

.login-panel img {
    height: 54px;
    width: auto;
}

.login-panel h1 {
    margin: 0;
}

.login-panel p {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 960px) {
    .menu-toggle {
        display: flex;
        margin-left: 14px;
    }

    .site-header__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .primary-nav {
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        display: none;
        flex: 0 0 100%;
        padding-bottom: 16px;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul,
    .primary-nav .sub-menu {
        align-items: stretch;
        display: grid;
        position: static;
    }

    .primary-nav .sub-menu {
        border: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .intro-grid,
    .split-grid,
    .screen-grid,
    .cta-band__inner,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .module-grid,
    .pricing-grid,
    .support-grid,
    .workflow,
    .trust-strip__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .home-hero,
    .page-hero {
        background:
            linear-gradient(180deg, rgba(9, 30, 27, 0.94) 0%, rgba(9, 30, 27, 0.76) 68%, rgba(9, 30, 27, 0.42) 100%),
            var(--hero-image, url("/assets/img/demo/tabilo-demo-dashboard.png")) center / cover no-repeat;
    }

    .home-hero {
        min-height: 620px;
        padding: 58px 0;
    }

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

    .section {
        padding: 58px 0;
    }

    .feature-grid,
    .module-grid,
    .pricing-grid,
    .support-grid,
    .workflow,
    .trust-strip__inner,
    .form-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .trust-strip article,
    .trust-strip article:last-child {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }

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

    .button,
    .admin-button,
    .admin-form button {
        width: 100%;
    }

    .admin-main {
        padding: 22px 16px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Refined sales theme and demo/CMS surfaces */
.site-body {
    background:
        linear-gradient(180deg, rgba(6, 115, 95, 0.08), transparent 620px),
        var(--paper);
}

.site-header {
    backdrop-filter: blur(18px);
}

.home-hero {
    position: relative;
}

.home-hero::after,
.page-hero::after,
.demo-hero::after {
    background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.segment-showcase {
    background:
        linear-gradient(180deg, #ffffff 0%, #eef4f0 100%);
}

.segment-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segment-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 60px rgba(20, 36, 32, 0.08);
    display: grid;
    gap: 14px;
    min-height: 100%;
    overflow: hidden;
    padding: 18px;
}

.segment-card img {
    background: #eef4f0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 170px;
    object-fit: cover;
    object-position: center;
    padding: 10px;
    width: 100%;
}

.segment-card strong {
    color: var(--teal);
    font-size: 24px;
    line-height: 1.12;
}

.segment-card p {
    color: var(--muted);
    margin: 0;
}

.demo-hero {
    background:
        linear-gradient(120deg, rgba(20, 36, 32, 0.96) 0%, rgba(20, 36, 32, 0.84) 50%, rgba(6, 115, 95, 0.28) 100%),
        url("/assets/img/demo/tabilo-demo-kalender.png") center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
    padding: 82px 0;
    position: relative;
}

.demo-hero__grid {
    align-items: center;
    display: grid;
    gap: 46px;
    grid-template-columns: minmax(0, 1fr) 380px;
}

.demo-hero__grid > *,
.demo-booking__grid > *,
.intro-grid > *,
.split-grid > *,
.screen-grid > *,
.segment-grid > * {
    min-width: 0;
}

.demo-hero h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    margin: 0;
    max-width: 780px;
    overflow-wrap: break-word;
}

.demo-hero .lead {
    color: rgba(255, 255, 255, 0.84);
    font-size: 21px;
    max-width: 680px;
}

.demo-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.demo-proof span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    padding: 8px 12px;
}

.demo-hero__mark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0;
    max-width: 380px;
    overflow: hidden;
    width: 100%;
}

.demo-hero__mark img {
    width: 100%;
}

.demo-booking {
    background: var(--soft);
}

.demo-booking__grid {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.calendar-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-day,
.notice-card,
.demo-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 60px rgba(20, 36, 32, 0.08);
}

.calendar-day {
    padding: 18px;
}

.calendar-day > strong {
    color: var(--ink);
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.calendar-day__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-day__slots label {
    cursor: pointer;
    display: inline-flex;
}

.calendar-day__slots input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.calendar-day__slots span {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--teal-dark);
    font-weight: 900;
    padding: 8px 12px;
}

.calendar-day__slots label:hover span,
.calendar-day__slots label.is-selected span,
.calendar-day__slots input:checked + span {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.notice-card {
    color: var(--muted);
    padding: 18px;
}

.demo-form {
    display: grid;
    gap: 15px;
    padding: 24px;
    position: sticky;
    top: 96px;
}

.demo-form h2 {
    font-size: 30px;
    line-height: 1.05;
    margin: 0;
}

.demo-form p {
    color: var(--muted);
    margin: 0;
}

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

.demo-form label span {
    font-weight: 850;
}

.demo-form input,
.demo-form select,
.demo-form textarea,
.slot-row input,
.slot-row select,
.inline-form select {
    background: #fbfcfb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.demo-form button,
.slot-row button {
    background: var(--coral);
    border: 1px solid var(--coral);
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    font-weight: 900;
    min-height: 48px;
    padding: 10px 14px;
}

.slot-list {
    display: grid;
    gap: 10px;
}

.slot-row {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: 150px 110px 110px minmax(180px, 1fr) 90px 90px 110px 100px;
}

.delete-form--compact {
    border: 0;
    margin: -4px 0 14px;
    padding: 0;
}

.compact-form {
    margin-bottom: 4px;
}

.inline-form {
    margin: 0;
}

.tox-tinymce {
    border-color: var(--line) !important;
    border-radius: var(--radius) !important;
}

@media (max-width: 1080px) {
    .segment-grid,
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demo-hero__grid,
    .demo-booking__grid {
        grid-template-columns: 1fr;
    }

    .demo-hero__mark {
        justify-self: center;
        max-width: 420px;
    }

    .demo-form {
        position: static;
    }

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

@media (max-width: 640px) {
    .segment-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .segment-card img {
        height: 140px;
    }

    .demo-hero {
        padding: 58px 0;
    }

    .demo-hero h1 {
        font-size: 34px;
        line-height: 1.04;
        max-width: 340px;
    }

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

    .demo-proof {
        align-items: stretch;
        flex-direction: column;
    }

    .demo-form {
        padding: 18px;
    }

    .demo-hero__mark {
        display: none;
    }

    .slot-row {
        grid-template-columns: 1fr;
    }
}
