/* ==========================================================================
   Tandrwst — shared design system

   One stylesheet for every page. Logical properties throughout, so a future
   dir="rtl" pass costs nothing. Light only: this is a clinical scheduling
   product and it should read as a practice's system of record.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand — the app icon's blue */
    --brand-50: #f2f7ff;
    --brand-100: #dfeaff;
    --brand-200: #bcd6ff;
    --brand-300: #8ab8ff;
    --brand-400: #4a92ff;
    --brand-500: #056dff;
    --brand-600: #0453c7;
    --brand-700: #0a4299;
    --brand-800: #0b3679;
    --brand-900: #0a2450;

    /* Accent — amber, used sparingly to warm the blue */
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #b45309;

    /* Semantic */
    --success: #0b7f72;
    --warning: #a35a00;
    --danger: #c62828;

    /* Surfaces */
    --bg: #f5f7fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f5fa;
    --surface-inset: rgba(5, 109, 255, .06);
    --border: #e4e9f2;
    --border-strong: #d0d8e6;

    /* Text */
    --text: #0a1020;
    --text-muted: #4a5568;
    --text-subtle: #7b8698;
    --text-on-brand: #ffffff;

    /* Brand used *as text* — kept separate from --brand-500, which is only a fill. */
    --brand-text: var(--brand-600);
    --link: var(--brand-600);
    --link-hover: var(--brand-700);

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(10, 25, 60, .06), 0 1px 3px rgba(10, 25, 60, .08);
    --shadow-md: 0 4px 12px rgba(10, 25, 60, .07), 0 2px 4px rgba(10, 25, 60, .05);
    --shadow-lg: 0 18px 40px -12px rgba(10, 25, 60, .22), 0 4px 12px rgba(10, 25, 60, .06);
    --shadow-brand: 0 12px 28px -10px rgba(5, 109, 255, .55);
    --ring: 0 0 0 3px rgba(5, 109, 255, .30);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --container: 1160px;
    --container-narrow: 820px;

    --header-h: 72px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

    --ease: cubic-bezier(.22, .61, .36, 1);

    color-scheme: light;
}


/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv05' 1, 'ss01' 1;
}

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

/* A class that sets `display` outranks the UA sheet's `[hidden] { display: none }`,
   and several components here do — the tab panels and the form success states
   among them. Make the attribute win. */
[hidden] {
    display: none !important;
}

/* Element selector on purpose: any component class (.btn, .brand, .nav a …)
   outranks it and keeps its own colour. */
a {
    color: var(--link);
    text-decoration: none;
    transition: color .2s var(--ease);
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    text-wrap: balance;
    color: var(--text);
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.32rem); }

ul, ol {
    padding-inline-start: 1.35em;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-xs);
}

::selection {
    background: var(--brand-200);
    color: var(--brand-900);
}

/* Tabular figures for anything read as a number: times, counts, references. */
.tnum {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -100px;
    z-index: 999;
    background: var(--brand-500);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-xs);
    font-weight: 600;
    transition: top .2s var(--ease);
}

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


/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

main {
    flex: 1;
}

.section {
    padding-block: clamp(60px, 8vw, 110px);
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 1.05rem;
}

.section-head--start {
    text-align: start;
    margin-inline: 0;
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-text);
    background: var(--surface-inset);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.lead {
    font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem);
    color: var(--text-muted);
}

/* Newsreader italic carries accented phrases, and nothing else. */
.accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--brand-text);
}

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

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }


/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn svg {
    width: 19px;
    height: 19px;
    flex: none;
}

.btn--primary {
    background: var(--brand-500);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    background: var(--brand-600);
    color: #fff;
}

.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    color: var(--text);
    border-color: var(--brand-400);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--surface-inset);
    color: var(--text);
}

.btn--on-brand {
    background: #fff;
    color: var(--brand-700);
    box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6);
}

.btn--on-brand:hover {
    background: #fff;
    color: var(--brand-800);
}

.btn--outline-light {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.btn--sm {
    padding: 10px 20px;
    font-size: .92rem;
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.site-header.is-stuck {
    border-bottom-color: var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 1.16rem;
    color: var(--text);
    letter-spacing: -.02em;
    flex: none;
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.nav a {
    color: var(--text-muted);
    font-size: .95rem;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.nav a:hover,
.nav a.is-current {
    color: var(--text);
    background: var(--surface-inset);
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 700;
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.icon-btn:hover {
    color: var(--brand-text);
    border-color: var(--brand-300);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-toggle {
    display: none;
}

/* The header's primary action already says this; the nav copy exists only for
   the mobile menu, where that button is hidden. */
.nav-cta-echo {
    display: none;
}

@media (max-width: 900px) {
    .nav {
        position: fixed;
        inset-block-start: var(--header-h);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 14px 24px 26px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav a {
        padding: 13px 12px;
        font-size: 1.02rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-inline-start: auto;
    }

    .header-cta {
        display: none;
    }

    .nav-cta-echo {
        display: block;
    }
}


/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 92px) clamp(60px, 8vw, 108px);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    width: 620px;
    height: 620px;
    inset-block-start: -290px;
    inset-inline-end: -180px;
    background: radial-gradient(circle, rgba(5, 109, 255, .45), transparent 65%);
}

.hero::after {
    width: 520px;
    height: 520px;
    inset-block-end: -270px;
    inset-inline-start: -200px;
    background: radial-gradient(circle, rgba(245, 158, 11, .26), transparent 65%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero__copy h1 {
    margin-bottom: 20px;
}

.hero__copy .lead {
    max-width: 54ch;
}

.hero__highlight {
    position: relative;
    white-space: nowrap;
}

.hero__highlight::after {
    content: "";
    position: absolute;
    inset-inline: -2px;
    bottom: .02em;
    height: .3em;
    background: linear-gradient(90deg, rgba(245, 158, 11, .45), rgba(245, 158, 11, .16));
    border-radius: 4px;
    z-index: -1;
}

.hero__cta {
    margin-top: 32px;
}

.hero__note {
    margin-top: 20px;
    font-size: .9rem;
    color: var(--text-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}

.hero__note span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__note strong {
    color: var(--text-muted);
    font-weight: 600;
}

.hero__note svg {
    width: 16px;
    height: 16px;
    stroke: var(--success);
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

@media (max-width: 940px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__copy .lead {
        margin-inline: auto;
    }

    .hero__cta,
    .hero__note {
        justify-content: center;
    }
}


/* --------------------------------------------------------------------------
   7. Phone mockup

   The screen is built in markup rather than shipped as a screenshot: the text
   stays selectable, it scales cleanly, and there is no image to keep in step
   with the app.
   -------------------------------------------------------------------------- */
.phone-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1400px;
}

.phone {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1125 / 2436;
    background: linear-gradient(160deg, #26303f, #101620);
    border-radius: 42px;
    padding: 11px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    transform: rotate(-3deg);
    transition: transform .6s var(--ease);
}

.phone:hover {
    transform: rotate(0deg) translateY(-6px);
}

.phone::before {
    /* notch */
    content: "";
    position: absolute;
    top: 20px;
    inset-inline: 0;
    margin-inline: auto;
    width: 96px;
    height: 22px;
    background: #0d1218;
    border-radius: var(--radius-pill);
    z-index: 3;
}

.phone__screen {
    height: 100%;
    border-radius: 32px;
    background: var(--surface);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: start;
}

.phone__bar {
    padding: 46px 18px 14px;
    background: var(--brand-500);
    color: #fff;
    flex: none;
}

.phone__bar small {
    display: block;
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .8;
}

.phone__bar strong {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.phone__body {
    flex: 1;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: var(--bg);
    overflow: hidden;
}

.mini {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 11px 13px;
}

.mini__label {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.mini__value {
    font-size: .86rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 3px;
    letter-spacing: -.01em;
}

.mini__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    font-size: .66rem;
    color: var(--text-subtle);
}

.mini__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mini__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.mini .chip {
    font-size: .6rem;
    padding: 3px 8px;
}

.phone__tabbar {
    flex: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 9px 0 16px;
}

.phone__tabbar span {
    display: grid;
    place-items: center;
    gap: 4px;
    font-size: .56rem;
    color: var(--text-subtle);
}

.phone__tabbar svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.phone__tabbar span.is-active {
    color: var(--brand-text);
    font-weight: 600;
}

/* Floating cards around the phone */
.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    text-align: start;
    animation: float 5s ease-in-out infinite;
}

.float-card small {
    display: block;
    font-weight: 500;
    font-size: .72rem;
    color: var(--text-subtle);
}

.float-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--surface-inset);
    color: var(--brand-text);
}

.float-card__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.float-card--a {
    inset-block-start: 8%;
    inset-inline-end: -7%;
}

.float-card--b {
    inset-block-end: 13%;
    inset-inline-start: -9%;
    animation-delay: -2.5s;
}

.float-card--b .float-card__icon {
    background: color-mix(in srgb, var(--accent-500) 14%, transparent);
    color: var(--accent-600);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

@media (max-width: 560px) {
    /* No room to sit beside the phone at this width, so card A rides the bezel
       above the screen rather than covering the title on it. */
    .float-card--a {
        inset-block-start: -3%;
        inset-inline-end: -8px;
    }

    .float-card--b { inset-inline-start: -8px; }
    .float-card { font-size: .76rem; padding: 10px 13px; }
}


/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.stat {
    background: var(--surface);
    padding: 28px 22px;
    text-align: center;
}

.stat b {
    display: block;
    font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem);
    font-weight: 700;
    color: var(--brand-text);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.stat span {
    display: block;
    margin-top: 6px;
    font-size: .88rem;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   9. Cards, surfaces, steps
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: .96rem;
}

.card__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: var(--surface-inset);
    color: var(--brand-text);
}

.card__icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card--accent .card__icon {
    background: color-mix(in srgb, var(--accent-500) 14%, transparent);
    color: var(--accent-600);
}

/* The two audiences: dashboard and mobile app */
.surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 3vw, 34px);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.surface:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.surface__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.surface__head svg {
    width: 26px;
    height: 26px;
    flex: none;
    stroke: var(--brand-text);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.surface__who {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.surface__title {
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.ticks {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.ticks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--text-muted);
    font-size: .96rem;
}

.ticks li svg {
    width: 18px;
    height: 18px;
    margin-top: .34em;
    flex: none;
    stroke: var(--brand-500);
    fill: none;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Numbered steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step {
    position: relative;
    padding-top: 8px;
}

.step__num {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-500);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 18px;
    box-shadow: var(--shadow-brand);
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: .96rem;
}

/* Single-line capability strip */
.strip {
    border-block: 1px solid var(--border);
    background: var(--bg-alt);
}

.strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding-block: 20px;
    font-size: .9rem;
}

.strip__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.strip__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-weight: 500;
}

.strip__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-300);
    flex: none;
}


/* --------------------------------------------------------------------------
   10. Dashboard preview
   -------------------------------------------------------------------------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.tab {
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.tab:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.tab[aria-selected="true"] {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.console {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 430px;
}

.console__side {
    background: var(--surface-2);
    border-inline-end: 1px solid var(--border);
    padding: 22px 16px;
}

.console__brand {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    padding-inline: 10px;
    margin-bottom: 18px;
}

.console__menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.console__menu li {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 9px 12px;
    border-radius: var(--radius-xs);
}

.console__menu li.is-active {
    background: var(--surface);
    color: var(--brand-text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.console__main {
    padding: clamp(20px, 3vw, 30px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.console__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.console__head h3 {
    font-size: 1.14rem;
}

.console__sub {
    color: var(--text-subtle);
    font-size: .88rem;
    margin-top: 4px;
}

.console__foot {
    color: var(--text-subtle);
    font-size: .86rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.console__foot svg {
    width: 15px;
    height: 15px;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 760px) {
    .console {
        grid-template-columns: 1fr;
    }

    .console__side {
        display: none;
    }
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    white-space: nowrap;
}

.chip--ok {
    background: color-mix(in srgb, var(--success) 12%, transparent);
    border-color: color-mix(in srgb, var(--success) 22%, transparent);
    color: var(--success);
}

.chip--wait {
    background: color-mix(in srgb, var(--warning) 12%, transparent);
    border-color: color-mix(in srgb, var(--warning) 22%, transparent);
    color: var(--warning);
}

.chip--idle {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-subtle);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin-inline: -4px;
    padding-inline: 4px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .91rem;
    min-width: 460px;
}

.table th {
    text-align: start;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: 0 14px 10px;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover td {
    background: var(--surface-2);
}

/* Timeline rows, used by the requests view */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline__item {
    display: flex;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.timeline__item.is-current {
    background: var(--surface-inset);
    border-color: var(--brand-200);
}

.timeline__rail {
    width: 3px;
    border-radius: 2px;
    background: var(--border-strong);
    flex: none;
}

.timeline__item.is-current .timeline__rail {
    background: var(--brand-500);
}

.timeline__body {
    flex: 1;
    min-width: 0;
}

.timeline__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline__title {
    font-weight: 600;
    color: var(--text);
    font-size: .95rem;
}

.timeline__sub {
    color: var(--text-subtle);
    font-size: .86rem;
    margin-top: 3px;
}

/* Key/value tiles */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.tile {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.tile__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.tile__value {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    margin-top: 4px;
}


/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
    max-width: var(--container-narrow);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.faq details[open] {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.faq summary::after {
    content: "";
    width: 11px;
    height: 11px;
    margin-inline-start: auto;
    flex: none;
    border-right: 2px solid var(--text-subtle);
    border-bottom: 2px solid var(--text-subtle);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .25s var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.faq summary:hover {
    color: var(--brand-text);
}

.faq__answer {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: .98rem;
}


/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-band::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    inset-block-start: -180px;
    inset-inline-end: -120px;
    background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 65%);
    filter: blur(50px);
}

.cta-band > * {
    position: relative;
}

.cta-band h2 {
    margin-bottom: 14px;
    color: #fff;
}

.cta-band .accent {
    color: var(--accent-300);
}

.cta-band p {
    color: rgba(255, 255, 255, .85);
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: 30px;
}

.cta-band .btn-row {
    justify-content: center;
}


/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(26px, 3.5vw, 36px);
}

.form-card h2,
.form-card h3 {
    font-size: 1.24rem;
    margin-bottom: 6px;
}

.form-note {
    color: var(--text-subtle);
    font-size: .9rem;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    font-family: inherit;
    font-size: .96rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-control::placeholder {
    color: var(--text-subtle);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: var(--ring);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8698' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-inline-end: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 92px;
}

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

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-error {
    color: var(--danger);
    font-size: .88rem;
    background: color-mix(in srgb, var(--danger) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    margin-bottom: 16px;
}

.form-done {
    text-align: center;
    padding-block: 12px;
}

.form-done > svg {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    stroke: var(--success);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-reference {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.form-reference strong {
    font-size: 1rem;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--text);
}


/* --------------------------------------------------------------------------
   14. Split layouts (demo request, deletion request)
   -------------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr minmax(340px, 440px);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.split__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

@media (max-width: 940px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split__aside {
        position: static;
    }
}


/* --------------------------------------------------------------------------
   15. Standalone / utility pages
   -------------------------------------------------------------------------- */
.centered-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 90px) 0;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(32px, 5vw, 52px);
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

.panel h1 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    margin-bottom: 14px;
}

.panel p {
    color: var(--text-muted);
}

.panel__logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.panel .btn-row {
    justify-content: center;
    margin-top: 30px;
}

.panel__hint {
    margin-top: 24px;
    font-size: .88rem;
    color: var(--text-subtle);
}

.divider-note {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-subtle);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 26px;
    font-size: .92rem;
    color: var(--text-subtle);
}

.back-link:hover {
    color: var(--brand-text);
}


/* --------------------------------------------------------------------------
   16. Long-form document pages (terms, privacy)
   -------------------------------------------------------------------------- */
.page-head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding-block: clamp(40px, 6vw, 70px);
}

.page-head h1 {
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
}

.page-head__meta {
    color: var(--text-subtle);
    font-size: .92rem;
    margin-top: 12px;
}

.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
    padding-block: clamp(32px, 5vw, 56px);
}

.doc-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.doc-toc h2 {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.doc-toc ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.doc-toc a {
    display: block;
    font-size: .86rem;
    color: var(--text-muted);
    padding: 7px 10px;
    border-radius: var(--radius-xs);
    line-height: 1.4;
}

.doc-toc a:hover,
.doc-toc a.is-current {
    background: var(--surface-inset);
    color: var(--brand-text);
    font-weight: 600;
}

.doc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 4vw, 52px);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.doc section + section {
    margin-top: 44px;
}

.doc h2 {
    font-size: 1.32rem;
    margin-bottom: 16px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc h3 {
    font-size: 1.06rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.doc p,
.doc li {
    color: var(--text-muted);
    font-size: .98rem;
}

.doc p {
    margin-bottom: 16px;
}

.doc ul,
.doc ol {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.doc strong {
    color: var(--text);
}

.doc a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.callout {
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--brand-500);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 36px;
    font-size: .95rem;
    color: var(--text-muted);
}

.callout strong {
    color: var(--text);
}

.callout p:last-child {
    margin-bottom: 0;
}

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

    .doc-toc {
        position: static;
        max-height: none;
    }
}


/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-block: clamp(44px, 6vw, 68px) 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 36px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: .94rem;
    margin-top: 16px;
    max-width: 40ch;
}

.footer-col h4 {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-subtle);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: .95rem;
}

.footer-col a:hover {
    color: var(--brand-text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: .88rem;
    color: var(--text-subtle);
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-row a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--surface);
}

.social-row a:hover {
    color: var(--brand-text);
    border-color: var(--brand-300);
}

.social-row svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}


/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
