/* Medicablist — Outfit (titres) + Poppins (textes), bleu médical sur fond clair */

:root {
    --blue: #1e90d8;
    --blue-light: #5cc0f5;
    --blue-dark: #1668a8;
    --blue-soft: #eaf5fd;

    --ink: #0f2233;
    --body: #5c6f80;
    --muted: #8ca0b3;

    --page: #f4fafe;
    --card: #ffffff;
    --border: #e2eef8;

    --green-bg: #d6f5e3;
    --green-text: #14804a;
    --amber: #f5a623;
    --alert: #b4451f;

    --title: "Outfit", system-ui, sans-serif;
    --text: "Poppins", system-ui, sans-serif;

    --shell: 1220px;
    --radius: 16px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--card);
    color: var(--body);
    font-family: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--title);
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

.blue {
    color: var(--blue-light);
}

.blue-ink {
    color: var(--blue);
}

/* ---------------------------------------------------------------- strips -- */

.strip {
    font-family: var(--text);
    font-size: 12.5px;
}

.strip-demo {
    background: #fff4e5;
    color: #8a4b12;
    border-bottom: 1px solid #f6e0c2;
}

.strip-demo .shell {
    padding-top: 9px;
    padding-bottom: 9px;
}

.strip-urgence {
    background: #0d1b28;
    color: #b9cbd9;
}

.strip-urgence .shell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: baseline;
    padding-top: 9px;
    padding-bottom: 9px;
}

.strip-urgence strong {
    color: #fff;
    font-weight: 600;
}

/* phone numbers are the one thing someone may tap in a panic: give them a real target */
.strip-urgence a {
    color: #7fd0ff;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
    margin: -4px 0;
    border-radius: 5px;
    background: rgba(127, 208, 255, 0.12);
}

.strip-urgence a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- header -- */

.site-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 20px 0;
}

.site-head .shell {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: nowrap;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex: none;
}

.logo-cross {
    width: 38px;
    height: 38px;
    flex: none;
}

.wordmark .name {
    font-family: var(--title);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wordmark .name em {
    font-style: normal;
    color: var(--blue-light);
}

.wordmark .tag {
    display: block;
    font-family: var(--text);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* without nowrap the four links break onto two lines, because the shell caps
   at 1220px no matter how wide the viewport is */
.site-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 160ms ease-out;
}

.site-nav a:hover {
    color: var(--blue-light);
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: none;
}

.head-actions .divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.28);
}

.head-actions .login {
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
}

.head-actions .login:hover {
    color: var(--blue-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--text);
    font-size: 14.5px;
    font-weight: 500;
    padding: 11px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #38a9ef 0%, #1b7fd1 100%);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(30, 144, 216, 0.28);
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(30, 144, 216, 0.36);
}

.btn-block {
    width: 100%;
    padding: 12px 20px;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 0 90px;
    overflow: hidden;
    background: #16232f;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            120% 90% at 50% 45%,
            rgba(8, 16, 24, 0.72) 0%,
            rgba(8, 16, 24, 0.5) 55%,
            rgba(8, 16, 24, 0.62) 100%
        );
}

.hero .shell {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff;
    font-size: clamp(38px, 5.6vw, 68px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 auto 14px;
    max-width: 17ch;
}

.hero-lede {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    margin: 0 auto 34px;
    max-width: 54ch;
}

/* -------------------------------------------------------------- ask bar -- */

.ask {
    max-width: 640px;
    margin: 0 auto;
}

.ask-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 24, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 9px 9px 9px 18px;
    backdrop-filter: blur(6px);
}

.ask-field .spark {
    flex: none;
    color: var(--blue-light);
}

.ask-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-family: var(--text);
    font-size: 15px;
    color: #fff;
}

.ask-field input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.ask-field input:focus {
    outline: none;
}

.ask-send {
    flex: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #38a9ef 0%, #1b7fd1 100%);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 150ms ease-out;
}

.ask-send:hover {
    transform: scale(1.06);
}

.ask-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--text);
    font-size: 13px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 150ms ease-out, border-color 150ms ease-out;
}

.chip svg {
    color: var(--blue-light);
    flex: none;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.ask-note {
    margin: 20px auto 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 62ch;
}

/* -------------------------------------------------------------- sections -- */

.section {
    padding: 88px 0;
    position: relative;
}

.section-light {
    background: var(--page);
}

.watermark {
    position: absolute;
    color: #dceefb;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.section .shell {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--text);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--blue);
    opacity: 0.5;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.section-head h2 {
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-head p {
    margin: 0;
    font-size: 15.5px;
}

.link-all {
    flex: none;
    color: var(--blue);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
    padding-bottom: 2px;
    white-space: nowrap;
}

.link-all:hover {
    color: var(--blue-dark);
}

/* --------------------------------------------------------------- filters -- */

.filters {
    display: grid;
    grid-template-columns: 2.1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.field {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    box-shadow: 0 2px 10px rgba(20, 60, 100, 0.04);
}

.field svg {
    flex: none;
    color: var(--blue);
}

/* the control fills the padded box so the whole field is one tap target,
   not a 19px sliver in the middle of it */
.field input,
.field select {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: var(--text);
    font-size: 15px;
    color: var(--ink);
    appearance: none;
    cursor: pointer;
    align-self: stretch;
    padding: 14px 0;
    margin: -13px 0;
}

.field input {
    cursor: text;
}

.field input::placeholder {
    color: var(--muted);
}

.field input:focus,
.field select:focus {
    outline: none;
}

/* ----------------------------------------------------------- doctor grid -- */

.doctors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.doc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(20, 60, 100, 0.05);
    transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.doc:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(20, 60, 100, 0.11);
}

.doc-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(150deg, #dceffb 0%, #b9dcf3 100%);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.doc-initials {
    font-family: var(--title);
    font-size: 40px;
    font-weight: 600;
    color: #2b7bb0;
    letter-spacing: 0.02em;
}

.doc-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green-text);
}

.doc-status.is-call {
    background: #e6eef5;
    color: #4a6376;
}

.doc-status.is-claim {
    background: #fdeae0;
    color: var(--alert);
}

.doc h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.doc .spec {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0 0 9px;
}

.doc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.stars {
    display: inline-flex;
    gap: 1px;
    color: var(--amber);
}

.stars .off {
    color: #dfe6ec;
}

/* must not match .stars, or it overrides the amber on the star glyphs */
.doc-rating > span:not(.stars) {
    font-size: 13px;
    color: var(--body);
    font-weight: 500;
}

.doc-line {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--body);
    margin-bottom: 7px;
}

.doc-line svg {
    flex: none;
    color: var(--muted);
}

.doc-cta {
    margin-top: auto;
    padding-top: 14px;
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1px solid #cfe4f4;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--blue-soft);
    box-shadow: none;
}

/* ----------------------------------------------------------------- steps -- */

.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 12px;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 26px 24px;
    display: flex;
    gap: 18px;
}

.step-num {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-family: var(--title);
    font-weight: 600;
    font-size: 17px;
    display: grid;
    place-items: center;
}

.step h3 {
    font-size: 17.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step p {
    margin: 0;
    font-size: 14.5px;
}

/* ------------------------------------------------------------------ band -- */

.band {
    background: linear-gradient(135deg, #123651 0%, #0d2233 100%);
    color: #d8e6f0;
}

.band .shell {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    padding-top: 70px;
    padding-bottom: 70px;
    align-items: center;
}

.band h2 {
    color: #fff;
    font-size: clamp(27px, 3.4vw, 38px);
    font-weight: 700;
    margin-bottom: 14px;
}

.band p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 26px;
    max-width: 52ch;
    font-size: 15.5px;
}

.band .eyebrow {
    color: var(--blue-light);
}

.band .eyebrow::before,
.band .eyebrow::after {
    background: var(--blue-light);
}

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

.figure {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px;
}

.figure dd {
    margin: 0 0 3px;
    font-family: var(--title);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.figure dt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.66);
}

/* ---------------------------------------------------------------- footer -- */

.site-foot {
    background: var(--page);
    border-top: 1px solid var(--border);
    padding: 56px 0 30px;
}

.foot-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 34px;
}

.foot-top h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.foot-top ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot-top li {
    margin-bottom: 9px;
    font-size: 14px;
}

.foot-top a {
    text-decoration: none;
}

.foot-top a:hover {
    color: var(--blue);
}

.foot-mark {
    font-family: var(--title);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.foot-mark em {
    font-style: normal;
    color: var(--blue);
}

.foot-note {
    font-size: 13.5px;
    max-width: 44ch;
}

.foot-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1100px) {
    .doctors {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .site-nav {
        display: none;
    }
}

@media (max-width: 860px) {
    .band .shell {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .foot-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 620px) {
    .hero {
        min-height: 0;
        padding: 130px 0 70px;
    }

    .section {
        padding: 62px 0;
    }

    .section-head {
        display: block;
    }

    .link-all {
        display: inline-block;
        margin-top: 14px;
    }

    .doctors,
    .filters {
        grid-template-columns: 1fr;
    }

    /* the whole right-hand cluster overflows past 360px; the hero and the
       doctor band both carry the same call to action anyway */
    .head-actions {
        display: none;
    }

    .shell {
        padding: 0 20px;
    }

    .foot-top {
        grid-template-columns: 1fr;
    }

    .foot-bottom {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------- doctor + booking -- */

.section-tight {
    padding: 40px 0 80px;
    background: var(--page);
    min-height: 70vh;
}

.shell-narrow {
    max-width: 760px;
}

.page-head {
    background: var(--ink);
    padding: 18px 0;
}

.page-head .shell {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-head .wordmark .name {
    font-size: 20px;
}

.page-head .back {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 14px;
}

.page-head .back:hover {
    color: var(--blue-light);
}

.crumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.crumb a {
    color: var(--blue);
    text-decoration: none;
}

.profile {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 26px;
    align-items: start;
}

.profile-main,
.book-card,
.side-list {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 4px 16px rgba(20, 60, 100, 0.05);
}

.book-card + .book-card,
.book-card + .side-list {
    margin-top: 20px;
}

.profile-id {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.profile-av {
    width: 78px;
    height: 78px;
    flex: none;
    border-radius: 16px;
    background: linear-gradient(150deg, #dceffb 0%, #b9dcf3 100%);
    color: #2b7bb0;
    font-family: var(--title);
    font-weight: 600;
    font-size: 28px;
    display: grid;
    place-items: center;
}

.profile h1 {
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 700;
    margin: 0 0 3px;
}

.profile-spec {
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 14.5px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-pill {
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef4f9;
    color: var(--body);
}

.badge-pill.ok {
    background: var(--green-bg);
    color: var(--green-text);
}

.badge-pill.warn {
    background: #fdeae0;
    color: var(--alert);
}

.badge-pill.star {
    background: #fff5e2;
    color: #8a5a08;
}

.badge-pill small {
    opacity: 0.75;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 26px;
    margin: 24px 0 0;
}

.facts > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.facts dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 3px;
}

.facts dd {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink);
}

.facts dd a {
    color: var(--blue);
    text-decoration: none;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.block-title {
    font-size: 20px;
    font-weight: 600;
    margin: 34px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.block-title small {
    font-family: var(--text);
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.block-note {
    font-size: 13.5px;
    color: var(--body);
    margin: 0 0 18px;
}

.review {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.review-top strong {
    font-size: 14.5px;
    color: var(--ink);
}

.review-top time {
    font-size: 12.5px;
    color: var(--muted);
    margin-left: auto;
}

.review-stars {
    color: var(--amber);
    letter-spacing: 1px;
    font-size: 14px;
}

.review-stars .off {
    color: #dfe6ec;
}

.review p {
    margin: 0;
    font-size: 14.5px;
}

.book-card h1,
.book-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px;
}

.book-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0 0 18px;
}

.ref {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 8px;
}

.slots {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.slots legend {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    padding: 0;
}

.slot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot span {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--body);
    cursor: pointer;
    text-align: center;
    transition: border-color 150ms ease-out, background 150ms ease-out;
}

.slot span strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.slot input:checked + span {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.slot input:focus-visible + span {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.fld {
    display: block;
    margin-bottom: 14px;
}

.fld span {
    display: block;
    font-size: 13px;
    color: var(--body);
    margin-bottom: 6px;
}

.fld input,
.fld textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: var(--text);
    font-size: 15px;
    color: var(--ink);
    background: var(--page);
    resize: vertical;
}

.fld input:focus,
.fld textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.book-legal {
    font-size: 12px;
    color: var(--muted);
    margin: 14px 0 0;
}

.ok-banner {
    background: var(--green-bg);
    color: var(--green-text);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert {
    background: #fdecea;
    color: #8a2010;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 13.5px;
    margin-bottom: 16px;
}

.side-list h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
}

.side-doc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
}

.side-av {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    background: var(--blue-soft);
    color: #2b7bb0;
    font-family: var(--title);
    font-weight: 600;
    font-size: 13px;
    display: grid;
    place-items: center;
}

.side-doc strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}

.side-doc em {
    font-style: normal;
    font-size: 12.5px;
    color: var(--muted);
}

/* star rating input, rendered right-to-left so hover fills leftwards */
.rate {
    border: 0;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rate legend {
    font-size: 13px;
    color: var(--body);
    margin-bottom: 8px;
    padding: 0;
    float: left;
    width: 100%;
}

.rate input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rate label {
    font-size: 30px;
    line-height: 1;
    color: #dfe6ec;
    cursor: pointer;
    transition: color 120ms ease-out;
}

.rate input:checked ~ label,
.rate label:hover,
.rate label:hover ~ label {
    color: var(--amber);
}

.rate input:focus-visible + label {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

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

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

    .profile-main,
    .book-card,
    .side-list {
        padding: 20px;
    }

    .profile-av {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}

/* ------------------------------------------------------- inner pages -- */

.page-head .site-nav a.on {
    color: var(--blue-light);
    font-weight: 500;
}

.ask-open {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    font-family: var(--text);
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease-out, color 150ms ease-out;
}

.ask-open:hover {
    background: #fff;
    color: var(--ink);
}

.page-intro {
    max-width: 62ch;
    margin-bottom: 30px;
}

.page-intro h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin: 4px 0 12px;
}

.page-intro p {
    margin: 0 0 18px;
    font-size: 16px;
}

.filters-go {
    display: flex;
    align-items: center;
    gap: 14px;
    grid-column: 1 / -1;
}

.reset {
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.reset:hover {
    color: var(--blue);
}

.empty {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 46px 28px;
    text-align: center;
}

.empty h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty p {
    margin: 0 0 20px;
}

.pager {
    margin-top: 34px;
}

.pager nav {
    display: flex;
    justify-content: center;
}

.pager svg {
    width: 18px;
    height: 18px;
}

.pager a,
.pager span {
    font-size: 14px;
}

/* tiles: specialty and city indexes */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.tile {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(20, 60, 100, 0.04);
    transition: transform 170ms ease-out, box-shadow 170ms ease-out, border-color 170ms ease-out;
}

.tile:hover {
    transform: translateY(-2px);
    border-color: #bcdcf2;
    box-shadow: 0 12px 26px rgba(20, 60, 100, 0.1);
}

.tile h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.tile-ar {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--muted);
}

.tile-meta {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--body);
}

.tile-meta strong {
    color: var(--blue);
    font-weight: 600;
}

/* chip row: cross-links between specialty and city */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}

.chip-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 4px;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13.5px;
    color: var(--ink);
    text-decoration: none;
}

.chip-link em {
    font-style: normal;
    color: var(--blue);
    font-weight: 600;
    font-size: 12.5px;
}

.chip-link:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

/* long-form pages */

.steps-stack {
    grid-template-columns: 1fr;
}

.steps-stack .step h2 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.steps-stack .step p + p {
    margin-top: 10px;
}

.callout {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 26px;
    margin-top: 26px;
}

.callout h2 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.callout p {
    margin: 0 0 12px;
}

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

.callout-cta {
    border-left-color: var(--green-text);
}

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

.ticks li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    font-size: 14.5px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--blue);
}

/* tiers */

.tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.tier {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.tier.is-featured {
    border-color: var(--blue);
    box-shadow: 0 10px 26px rgba(30, 144, 216, 0.14);
}

.tier h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tier-price {
    font-family: var(--title);
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
    margin: 0 0 16px;
}

.tier-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.figures-light {
    margin-bottom: 34px;
}

.figures-light .figure {
    background: var(--card);
    border: 1px solid var(--border);
}

.figures-light .figure dd {
    color: var(--blue);
}

.figures-light .figure dt {
    color: var(--body);
}

/* prose */

.prose h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 26px 0 8px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 12px;
    font-size: 15px;
}

.prose a {
    color: var(--blue);
}

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

    .head-actions .ask-open {
        display: none;
    }
}

/* pagination */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--body);
    font-size: 14px;
    text-decoration: none;
}

.page:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.page.is-current {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    font-weight: 500;
}

.page.is-off {
    opacity: 0.45;
}

.page.is-gap {
    border-color: transparent;
    background: transparent;
}

/* ------------------------------------------------ assistant, in the hero -- */

/* Once the conversation starts the hero stops selling and starts working:
   the headline shrinks, the lede goes, the transcript takes the space. */
.hero.is-chatting {
    align-items: flex-start;
    padding-top: 120px;
}

.hero.is-chatting h1 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 18px;
}

.hero.is-chatting .hero-lede {
    display: none;
}

.hero.is-chatting .ask {
    max-width: 780px;
}

.ask-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-height: min(52vh, 460px);
    overflow-y: auto;
    padding: 4px 6px 14px 2px;
    margin-bottom: 14px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.ask-log::-webkit-scrollbar {
    width: 6px;
}

.ask-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

.ask-log .msg {
    max-width: 84%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ask-log .msg-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    color: #eaf3f9;
    border-bottom-left-radius: 4px;
}

.ask-log .msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #38a9ef 0%, #1b7fd1 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ask-log .msg strong {
    font-weight: 600;
    color: #fff;
}

.ask-log .msg-emergency {
    align-self: stretch;
    max-width: 100%;
    background: rgba(192, 57, 43, 0.22);
    border: 1px solid rgba(255, 140, 120, 0.5);
    color: #ffdfd9;
}

.ask-log .msg-emergency .acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ask-log .msg-emergency a {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
}

.ask-log .typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.ask-log .typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8fc9ec;
    animation: blink 1.2s infinite;
}

.ask-log .typing i:nth-child(2) { animation-delay: 0.2s; }
.ask-log .typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* doctor result, inside the transcript */

.ask-doc {
    align-self: stretch;
    background: rgba(9, 18, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 15px;
}

.ask-doc-top {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.ask-doc-av {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 12px;
    background: linear-gradient(150deg, #2d6f9c 0%, #1b4c6e 100%);
    color: #dceffb;
    font-family: var(--title);
    font-weight: 600;
    font-size: 16px;
    display: grid;
    place-items: center;
}

.ask-doc-id h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.ask-doc-id p {
    margin: 2px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.66);
}

.ask-doc-rank {
    margin-left: auto;
    flex: none;
    font-family: var(--title);
    font-size: 13px;
    font-weight: 600;
    color: #9ed4f4;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
}

.ask-why {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
}

.ask-why li {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}

.ask-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.ask-acts a {
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.ask-acts a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ask-acts .primary {
    background: linear-gradient(135deg, #38a9ef 0%, #1b7fd1 100%);
    border-color: transparent;
}

.ask-acts .primary:hover {
    filter: brightness(1.08);
}

@media (max-width: 620px) {
    .hero.is-chatting {
        padding-top: 110px;
    }

    .ask-log {
        max-height: 58vh;
    }

    .ask-log .msg {
        max-width: 92%;
    }
}

/* profile: bio, hours, act chips */

.profile-bio {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
}

.hours {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 26px;
}

.hours > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.hours dt {
    font-size: 14px;
    color: var(--body);
}

.hours dd {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

span.chip-link {
    cursor: default;
}

/* the hero has no header any more: pull the content up */
.hero {
    padding-top: 90px;
}

.hero.is-chatting {
    padding-top: 60px;
}

@media (max-width: 620px) {
    .hero {
        padding-top: 60px;
    }

    .hero.is-chatting {
        padding-top: 40px;
    }
}
