* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #f8fbff;
}

.page-dark body {
    color: #f8fafc;
    background: #060a14;
}

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

.page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .18), transparent 36rem),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, .14), transparent 34rem),
        #f8fbff;
}

.page-dark .page {
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .16), transparent 36rem),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, .12), transparent 34rem),
        #060a14;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}

.page-dark .nav {
    background: rgba(6, 10, 20, .78);
    border-bottom-color: rgba(30, 41, 59, .9);
}

.nav-inner,
.wrap {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.brand small {
    display: block;
    color: #64748b;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-select {
    height: 36px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: white;
    padding: 0 12px;
    font-weight: 700;
    color: #0f172a;
}

.page-dark .lang-select {
    color: #f8fafc;
    background: #0f172a;
    border-color: #334155;
}

.ghost-link {
    height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    padding: 0 14px;
    font-weight: 700;
    font-size: 13px;
}

.icon-link,
.theme-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    cursor: pointer;
}

.page-dark .icon-link,
.page-dark .theme-btn,
.page-dark .ghost-link {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
}

.hero {
    padding: 72px 0 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    border: 1px solid #99f6e4;
    font-size: 12px;
    font-weight: 800;
}

h1 {
    margin: 18px 0 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: 0;
}

h3 {
    margin: 0;
}

.lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 24px;
}

.demo-grid {
    grid-template-columns: minmax(280px, 390px) minmax(320px, 1fr);
    align-items: center;
    margin-top: 34px;
}

.phone {
    display: flex;
    flex-direction: column;
    border: 10px solid #0f172a;
    border-radius: 42px;
    background: white;
    min-height: 720px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.device-app {
    color: #0f172a;
    background: white;
}

.device-app.device-dark {
    color: #f8fafc;
    background: #07111f;
}

.phone-top {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.device-dark .phone-top {
    border-bottom-color: #1e293b;
}

.phone-main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 22px 88px;
}

.app-theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.device-dark .app-theme-toggle {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
}

.online-toggle {
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.online-toggle.off {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.assistant-orb {
    position: relative;
    width: 176px;
    height: 176px;
    border-radius: 999px;
    margin: 34px auto 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
    padding: 6px;
    box-shadow: 0 18px 48px rgba(20, 184, 166, .28);
    cursor: pointer;
}

.assistant-orb::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    border: 2px solid rgba(20, 184, 166, .42);
    animation: logoPulse 1.6s ease-out infinite;
}

.assistant-orb img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: white;
    object-fit: cover;
}

@keyframes logoPulse {
    0% { transform: scale(.88); opacity: .65; }
    100% { transform: scale(1.18); opacity: 0; }
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 34px;
}

.quick {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px 10px;
    text-align: left;
    cursor: pointer;
    font-weight: 800;
}

.quick span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
}

.laptop {
    border-radius: 28px;
    background: #0f172a;
    padding: 18px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .2);
}

.laptop-screen {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: none;
    border-radius: 18px;
    background: #f8fbff;
    padding: 22px;
    overflow-y: auto;
}

.laptop-screen.device-dark {
    background: #07111f;
}

.toolbar {
    display: flex;
    gap: 7px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.card {
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 18px;
    padding: 18px;
}

.device-dark .card {
    background: #0f172a;
    border-color: #334155;
}

.card strong {
    display: block;
    font-size: 28px;
    margin-top: 8px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    margin-top: 10px;
    color: #475569;
}

.device-dark .row,
.device-dark .quick {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}

.device-dark .quick span,
.device-dark .row span {
    color: #94a3b8;
}

.app-screen {
    display: none;
}

.app-screen.active {
    display: block;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cal-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.device-dark .cal-arrow {
    background: #111827;
    color: #f8fafc;
    border-color: #334155;
}

.calendar-segment {
    margin-bottom: 14px;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e2e8f0;
}

.segmented button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 7px 12px;
    font-weight: 800;
    cursor: pointer;
}

.segmented button.active {
    background: white;
    color: #0f172a;
}

.device-dark .segmented {
    background: #1e293b;
}

.device-dark .segmented button.active {
    background: #f8fafc;
}

.calendar-month,
.calendar-day {
    display: none;
}

.calendar-month.active,
.calendar-day.active {
    display: block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid span {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.calendar-grid button {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    padding: 5px;
    position: relative;
}

.calendar-grid button.selected {
    outline: 2px solid #14b8a6;
    outline-offset: 1px;
}

.calendar-grid button.muted {
    opacity: .38;
}

.date-num {
    display: inline-grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    line-height: 1;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.calendar-grid button.today .date-num {
    background: #2563eb;
    color: #ffffff;
}

.date-badges {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.date-badge {
    width: 17px;
    height: 17px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
}

.date-badge.booked {
    background: #ef4444;
}

.date-badge.free {
    background: #22c55e;
}

.device-dark .calendar-grid button {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}

.device-dark .date-num {
    color: #f8fafc;
}

.device-dark .calendar-grid button.today .date-num {
    color: #ffffff;
}

.day-list {
    display: grid;
    gap: 8px;
}

.slot-row,
.appt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 12px;
    font-size: 13px;
}

.slot-row strong,
.appt-card strong {
    font-size: 13px;
}

.slot-status {
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    padding: 4px 8px;
}

.slot-row.booked .slot-status,
.appt-card.booked {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.slot-row.cancelled .slot-status,
.appt-card.cancelled {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.slot-row.moved .slot-status,
.appt-card.moved {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.slot-row.free .slot-status {
    color: #166534;
    background: #dcfce7;
}

.home-list {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.appt-card span {
    color: inherit;
    font-weight: 800;
    text-align: right;
}

.device-dark .slot-row,
.device-dark .appt-card {
    background: #111827;
    border-color: #334155;
}

.app-footer {
    position: sticky;
    bottom: 10px;
    z-index: 4;
    margin: 12px 12px 10px;
    min-height: 50px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.app-footer-item {
    border: 0;
    background: transparent;
    color: #64748b;
    display: grid;
    place-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.app-footer-item.active {
    color: white;
    background: #0f172a;
    border-radius: 16px;
    min-height: 38px;
}

.app-footer-item:disabled {
    cursor: default;
    opacity: .72;
}

.device-dark .app-footer {
    background: rgba(15, 23, 42, .92);
    border-color: #334155;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 20px;
    border: 0;
    background: #0f172a;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.btn.alt {
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
}

.btn.light {
    background: white;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.form-card,
.legal-card {
    max-width: 760px;
    margin: 34px auto 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .08);
}

.page-dark .form-card,
.page-dark .legal-card {
    background: #0f172a;
    border-color: #334155;
}

.page-dark .lead,
.page-dark .legal-card p,
.page-dark .legal-card li,
.page-dark label {
    color: #cbd5e1;
}

.page-dark input,
.page-dark textarea,
.page-dark select {
    color: #f8fafc;
    background: #111827;
    border-color: #334155;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    background: white;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.notice {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 13px;
    line-height: 1.6;
}

.checkout-card {
    max-width: 720px;
}

.payment-summary {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-summary div {
    border: 1px solid #bae6fd;
    border-radius: 18px;
    background: #f0f9ff;
    padding: 14px;
}

.payment-summary span {
    display: block;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.payment-summary strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 22px;
}

.payment-summary p {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px solid #fde68a;
    border-radius: 16px;
    background: #fffbeb;
    color: #92400e;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.checkout-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.checkout-summary > div,
.checkout-payment-box,
.checkout-card-mount {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    padding: 16px;
}

.checkout-summary strong {
    display: block;
    font-size: 22px;
}

.checkout-payment-box {
    display: grid;
    gap: 14px;
}

.checkout-card-mount {
    min-height: 92px;
    display: grid;
    place-items: center;
    color: #64748b;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.page-dark .checkout-summary > div,
.page-dark .checkout-payment-box,
.page-dark .checkout-card-mount {
    background: #111827;
    border-color: #334155;
}

.page-dark .checkout-card-mount {
    color: #cbd5e1;
}

.page-dark .payment-summary div {
    background: #082f49;
    border-color: #075985;
}

.page-dark .payment-summary span {
    color: #7dd3fc;
}

.page-dark .payment-summary strong {
    color: #f8fafc;
}

.page-dark .payment-summary p {
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .32);
    color: #fde68a;
}

.footer {
    padding: 42px 0;
    color: #64748b;
}

.footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.legal-card h2 {
    margin-top: 28px;
    font-size: 22px;
}

.legal-card p,
.legal-card li {
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 880px) {
    .demo-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .phone {
        min-height: 650px;
    }

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

    .checkout-summary,
    .payment-summary {
        grid-template-columns: 1fr;
    }
}
