/* ==========================================================================
   Django-Appointment demo: design system
   Palette is taken from the logo: deep navy outline, teal body, orange accents.
   Site chrome and page components are prefixed (.site-, .dp-) so the package's own
   pages, which render inside {% block body %}, keep their Bootstrap-based styling.
   ========================================================================== */

:root {
    --ink: #0d1b2a;
    --ink-2: #2b3d51;
    --muted: #5b6b7c;
    --line: #e2e8ef;
    --line-strong: #cfd8e3;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #f0f4f8;

    --teal: #17799c;
    --teal-600: #125f7b;
    --teal-50: #e7f3f8;
    --orange: #e8552b;
    --orange-600: #c9431c;
    --orange-50: #fdefe9;
    --green: #1d8f63;
    --green-50: #e6f5ee;
    --violet: #5b4bc4;
    --violet-50: #efedfb;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
    --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px -8px rgba(13, 27, 42, .12);
    --shadow-lg: 0 24px 60px -20px rgba(13, 27, 42, .35);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --container: 1180px;
    --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main-content { flex: 1 0 auto; }

a { color: var(--teal); }
a:hover { color: var(--teal-600); }

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

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
}
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2000; background: var(--ink); color: #fff;
    padding: 8px 14px; border-radius: var(--radius-sm); }

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

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .dp-container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
    font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.site-brand:hover { color: var(--ink); }
.site-brand img { width: 32px; height: 32px; }
.site-version { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--teal-600);
    background: var(--teal-50); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent);
    padding: 2px 7px; border-radius: 999px; letter-spacing: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2);
    text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--teal-600); background: var(--teal-50); }

.site-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.site-lang select {
    appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--ink-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b6b7c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 28px 6px 12px; cursor: pointer;
}

.site-role { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
    padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.site-role .dp-btn { padding: 5px 12px; font-size: 13px; }

.site-menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); width: 42px; height: 42px; color: var(--ink); font-size: 18px; }

@media (max-width: 991px) {
    .site-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-collapse { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 12px; }
    .site-collapse.is-open { display: flex; }
    .site-nav { flex-direction: column; align-items: stretch; }
    .site-nav a { padding: 12px; }
    .site-actions { margin-left: 0; flex-wrap: wrap; }
}
@media (min-width: 992px) {
    .site-collapse { display: flex; align-items: center; gap: 24px; flex: 1; }
}
/* Small laptops: a logged-in visitor's name plus two buttons would push the header off-screen. */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-collapse { gap: 12px; }
    .site-nav a { padding: 8px 9px; }
    .site-role > span { display: none; }
}

.site-banner { background: var(--ink); color: #cfe0ec; font-size: 13px; }
.site-banner .dp-container { display: flex; align-items: center; justify-content: center; gap: 10px;
    padding-top: 8px; padding-bottom: 8px; text-align: center; }
.site-banner strong { color: #fff; }
.site-banner i { color: #f7a582; }

/* ---------- Messages ---------- */
.site-messages { padding-top: 16px; }
.site-messages .dp-alert + .dp-alert { margin-top: 8px; }
.dp-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius);
    background: var(--teal-50); color: var(--teal-600); border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent);
    font-weight: 500; }
.dp-alert--error { background: var(--orange-50); color: var(--orange-600);
    border-color: color-mix(in srgb, var(--orange) 25%, transparent); }
.dp-alert--success { background: var(--green-50); color: var(--green);
    border-color: color-mix(in srgb, var(--green) 25%, transparent); }

/* ---------- Buttons ---------- */
.dp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
    font-weight: 700; font-size: 15px; line-height: 1.2; padding: 12px 20px; border-radius: 999px;
    border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.dp-btn:active { transform: translateY(1px); }
.dp-btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--teal) 70%, transparent); }
.dp-btn--primary:hover { background: var(--teal-600); color: #fff; }
.dp-btn--accent { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--orange) 70%, transparent); }
.dp-btn--accent:hover { background: var(--orange-600); color: #fff; }
.dp-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.dp-btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.dp-btn--dark { background: var(--ink); color: #fff; }
.dp-btn--dark:hover { background: var(--ink-2); color: #fff; }
.dp-btn--sm { padding: 8px 14px; font-size: 14px; }
.dp-btn--lg { padding: 15px 26px; font-size: 16px; }
.dp-btn--block { width: 100%; }
.dp-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.dp-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dp-link i { transition: transform .15s; font-size: .85em; }
.dp-link:hover i { transform: translateX(3px); }

/* ---------- Typography helpers ---------- */
.dp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--teal-600); margin-bottom: 12px; }
.dp-eyebrow--accent { color: var(--orange-600); }
.dp-h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
.dp-h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 14px; }
.dp-h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; margin: 0 0 8px; }
.dp-lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.dp-muted { color: var(--muted); }
.dp-highlight { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--orange) 28%, transparent) 62%); }

.dp-section { padding: 88px 0; }
.dp-section--tight { padding: 56px 0; }
.dp-section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dp-section--dark { background: var(--ink); color: #dce7f0; }
.dp-section--dark .dp-h2, .dp-section--dark .dp-h3 { color: #fff; }
.dp-section--dark .dp-lead, .dp-section--dark .dp-muted { color: #9fb3c5; }
.dp-section-head { max-width: 720px; margin-bottom: 44px; }
.dp-section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.dp-section-head--center .dp-lead { margin: 0 auto; }

/* ---------- Cards, badges, grid ---------- */
.dp-grid { display: grid; gap: 20px; }
.dp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.dp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.dp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm); }
.dp-card--hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.dp-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.dp-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 18px; background: var(--teal-50); color: var(--teal-600); flex: none; }
.dp-icon--orange { background: var(--orange-50); color: var(--orange-600); }
.dp-icon--green { background: var(--green-50); color: var(--green); }
.dp-icon--violet { background: var(--violet-50); color: var(--violet); }

.dp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); line-height: 1.5; }
.dp-badge--teal { background: var(--teal-50); color: var(--teal-600); }
.dp-badge--orange { background: var(--orange-50); color: var(--orange-600); }
.dp-badge--green { background: var(--green-50); color: var(--green); }
.dp-badge--violet { background: var(--violet-50); color: var(--violet); }

/* ---------- Code ---------- */
.dp-code { position: relative; background: #0b1622; color: #d7e3ee; border-radius: var(--radius);
    font-family: var(--mono); font-size: 13.5px; line-height: 1.7; border: 1px solid #1c2c3d; overflow: hidden;
    font-variant-ligatures: none; }
.dp-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px;
    border-bottom: 1px solid #1c2c3d; color: #7f95aa; font-size: 12px; }
.dp-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: inherit; background: none; border: 0;
    font: inherit; white-space: pre; }
.dp-code .c { color: #6f8499; }
.dp-code .k { color: #f7a582; }
.dp-code .s { color: #8fd6b4; }
.dp-copy { font: 600 12px var(--font); color: #b9cadb; background: #16283a; border: 1px solid #243a50;
    border-radius: 6px; padding: 4px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.dp-copy:hover { color: #fff; border-color: #3a5673; }
.dp-copy.is-copied { color: #8fd6b4; }
code.dp-inline { font-family: var(--mono); font-size: .88em; background: var(--surface-2); color: var(--ink);
    border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* ---------- Forms ---------- */
.dp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.dp-field label { font-weight: 600; font-size: 14px; }
.dp-input, .site-footer input[type="text"], .site-footer input[type="email"] {
    font: inherit; font-size: 15px; width: 100%; padding: 11px 14px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.dp-input:focus { border-color: var(--teal); outline: 3px solid var(--teal-50); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb3c5; margin-top: 0; padding: 64px 0 28px; font-size: 14.5px; }
.site-footer a { color: #cfe0ec; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1.4fr repeat(3, 1fr) 1.6fr; }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__brand p { margin: 12px 0 0; max-width: 32ch; }
.site-footer__subscribe form { display: flex; gap: 8px; margin: 0 0 8px; }
.site-footer__subscribe input { background: #13263a !important; border-color: #243a50 !important; color: #fff !important; }
.site-footer__subscribe input::placeholder { color: #7f95aa; }
.site-footer__subscribe small { color: #7f95aa; font-size: 12.5px; }
.site-footer__status { min-height: 20px; font-size: 13px; margin-top: 6px; }
.site-footer__status.is-ok { color: #8fd6b4; }
.site-footer__status.is-error { color: #f7a582; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    border-top: 1px solid #1d3145; margin-top: 48px; padding-top: 24px; font-size: 13px; }
.site-footer__social { display: flex; gap: 14px; font-size: 18px; }

/* ==========================================================================
   Home
   ========================================================================== */
/* Fills exactly what's visible below the header and banner (--above-hero is measured by site.js), content centred. */
.home-hero { position: relative; overflow: hidden; padding: 72px 0 88px;
    min-height: calc(100vh - var(--above-hero, 0px)); min-height: calc(100svh - var(--above-hero, 0px));
    display: flex; align-items: center;
    background:
        radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 60%),
        var(--bg); }
.home-hero > .dp-container { width: 100%; }
.home-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 991px) { .home-hero__grid { grid-template-columns: 1fr; } }
.home-hero__grid > * { min-width: 0; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.home-hero__install { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px;
    box-shadow: var(--shadow-sm); max-width: 100%; }
.home-hero__install span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-hero__install .dp-copy { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); border-radius: 999px; }
.home-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.home-hero__meta i { color: var(--green); margin-right: 4px; }

/* Hero mock: a mini booking widget drawn in HTML so it stays crisp and translatable */
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 22px; }
.mock__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock__head img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.mock__head strong { display: block; line-height: 1.2; }
.mock__head small { color: var(--muted); }
.mock__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding-top: 16px; }
@media (max-width: 480px) { .mock__body { grid-template-columns: 1fr; } }
.mock__month { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.mock__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; text-align: center; }
.mock__cal span { padding: 6px 0; border-radius: 8px; }
.mock__cal .h { color: var(--muted); font-weight: 700; font-size: 10.5px; }
.mock__cal .off { color: #b3bfcc; background: var(--surface-2); text-decoration: line-through; }
.mock__cal .on { font-weight: 600; }
.mock__cal .sel { background: var(--teal); color: #fff; font-weight: 700; }
.mock__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.mock__slots span { font-size: 12.5px; font-weight: 600; text-align: center; padding: 7px 0; border-radius: 8px;
    border: 1px solid var(--line-strong); }
.mock__slots .sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock__slots .blocked { color: #b3bfcc; border-style: dashed; text-decoration: line-through; }
.mock__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px;
    padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.mock__chip { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
    font-size: 13px; font-weight: 600; }
.mock__chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
/* Hangs below the card so it never covers the footer (staff name, Next button). */
.mock__chip--a { left: -36px; bottom: 0; transform: translateY(calc(100% - 10px)); }
.mock__chip--b { right: -20px; top: -22px; }
@media (max-width: 1100px) { .mock__chip--a { left: 12px; } .mock__chip--b { right: 12px; } }
/* Phones: keep both chips, just smaller and tucked inside the edges. */
@media (max-width: 560px) {
    .mock { padding: 16px; }
    .mock__chip { padding: 8px 10px; gap: 8px; font-size: 12px; border-radius: 12px; }
    .mock__chip small { font-size: 11px; }
    .mock__chip .dp-icon { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
    .mock__chip--a { left: 10px; }
    .mock__chip--b { right: 10px; top: -18px; }
}

/* Hero scales with the screen height: larger type and more room on tall screens, compact on short ones. */
.home-hero { padding: clamp(24px, 4vh, 64px) 0 clamp(32px, 6vh, 88px); }
.home-hero__grid { gap: clamp(40px, 4.5vw, 76px); grid-template-columns: 1.2fr 1fr; }
@media (max-width: 991px) { .home-hero__grid { grid-template-columns: 1fr; } }
.home-hero .dp-eyebrow { font-size: clamp(12px, 1.4vh, 14px); margin-bottom: clamp(10px, 1.7vh, 20px); }
.home-hero .dp-h1 { font-size: clamp(2.3rem, min(5.1vw, 7.3vh), 4.3rem); margin-bottom: clamp(16px, 2.6vh, 30px); }
.home-hero .dp-lead { font-size: clamp(1.05rem, 2vh, 1.32rem); line-height: 1.6; }
.home-hero .home-hero__cta { margin: clamp(24px, 4vh, 48px) 0 clamp(18px, 2.7vh, 32px); }
.home-hero .dp-btn--lg { padding: clamp(12px, 1.6vh, 16px) clamp(20px, 2.2vh, 26px); font-size: clamp(1rem, 1.7vh, 1.08rem); }
.home-hero .home-hero__install, .home-hero .home-hero__meta { font-size: clamp(13px, 1.5vh, 15px); }
.home-hero .home-hero__meta { margin-top: clamp(16px, 2.7vh, 32px); }

.home-hero .mock { padding: clamp(18px, 2.6vh, 29px); }
.home-hero .mock__head img { width: clamp(44px, 5.4vh, 56px); height: clamp(44px, 5.4vh, 56px); }
.home-hero .mock__head strong { font-size: clamp(15px, 1.8vh, 17px); }
.home-hero .mock__body { gap: clamp(16px, 2.2vh, 24px); }
.home-hero .mock__cal { font-size: clamp(11px, 1.35vh, 13px); }
.home-hero .mock__cal span { padding: clamp(5px, .9vh, 9px) 0; }
.home-hero .mock__slots span { font-size: clamp(12px, 1.4vh, 14px); padding: clamp(6px, 1.1vh, 10px) 0; }

/* Phones and small tablets: headings follow the screen width, and everything gets a bit more room. */
@media (max-width: 767px) {
    .dp-container { padding-left: clamp(20px, 6vw, 32px); padding-right: clamp(20px, 6vw, 32px); }
    .dp-h1, .home-hero .dp-h1 { font-size: clamp(2rem, 10.5vw, 3.2rem); line-height: 1.08; margin-bottom: 20px; }
    .dp-h2 { font-size: clamp(1.6rem, 7.6vw, 2.3rem); }
    .dp-lead, .home-hero .dp-lead { font-size: clamp(1.02rem, 4.4vw, 1.2rem); line-height: 1.65; }
    .home-hero { padding: 36px 0 72px; }
    .home-hero__grid { gap: 56px; }
    .home-hero .dp-eyebrow { margin-bottom: 16px; }
    .home-hero .home-hero__cta { margin: 32px 0 24px; gap: 12px; }
    .home-hero__cta .dp-btn { flex: 1 1 100%; justify-content: center; }
    .home-hero .home-hero__meta { flex-direction: column; gap: 10px; margin-top: 24px; }
    .dp-section { padding: 64px 0; }
    .dp-section-head { margin-bottom: 32px; }
}

/* Very small phones: the version badge doesn't fit next to the name and the menu button. */
@media (max-width: 359px) { .site-version { display: none; } }

/* Roles */
/* The hero fills the first screen, so start "Try it" right under it: it shows as soon as you scroll. */
@media (min-width: 768px) { .home-roles { padding-top: clamp(16px, 2.5vh, 32px); } }
.role-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.role-card__head { display: flex; align-items: center; gap: 14px; }
.role-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.role-card li { display: flex; gap: 10px; }
.role-card li i { color: var(--green); margin-top: 5px; font-size: 12px; }
/* Two equal buttons pinned to the bottom, so every card lines up whatever the labels are. */
.role-card__cta { margin-top: auto; padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card__cta .dp-btn { justify-content: center; white-space: nowrap; padding-left: 12px; padding-right: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 991px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: #12263a; border: 1px solid #1d3348; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px;
    font-weight: 700; color: #f7a582; display: block; margin-bottom: 18px; }
.step p { margin: 0; color: #9fb3c5; font-size: 14.5px; }

/* Features */
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.feature__top { display: flex; align-items: center; justify-content: space-between; }

/* Services preview on the home page */

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__reset { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px;
    background: var(--orange-50); color: #a8391a; font-size: 14px; font-weight: 600; }
.faq__reset time, .site-banner time { font-weight: 800; font-variant-numeric: tabular-nums; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex;
    justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .2s; color: var(--muted); }
.faq details[open] summary i { transform: rotate(45deg); color: var(--orange); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px;
    align-items: center; color: #fff;
    background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--orange) 45%, transparent), transparent 70%),
        linear-gradient(135deg, var(--teal-600), var(--ink)); }
.cta-band .dp-h2 { color: #fff; }
.cta-band p { color: #d3e4ef; margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-head { padding: 56px 0 36px; background:
    radial-gradient(700px 320px at 90% -20%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 60%), var(--bg); }
.page-head .dp-lead { margin: 0; }

/* ==========================================================================
   Services
   ========================================================================== */
.svc-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    margin-bottom: 24px; }
.svc-search { position: relative; flex: 1 1 280px; max-width: 380px; }
.svc-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.svc-search input { padding-left: 40px; border-radius: 999px; }
.svc-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.svc-filter { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.svc-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Own chevron instead of the browser's, which sits right against the rounded edge. */
.svc-sort { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 40px 8px 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); color: var(--ink-2); cursor: pointer; appearance: none; -webkit-appearance: none;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235b6b7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; }
.svc-sort:hover { border-color: var(--teal); }
.svc-count { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.svc-card { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; padding: 0; }
@media (max-width: 640px) { .svc-card { grid-template-columns: 1fr; } }
.svc-card__media { position: relative; background: var(--surface-2); min-height: 180px; }
.svc-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card__media .dp-badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); }
.svc-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.svc-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc-card__price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.svc-card__price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.svc-card__desc { color: var(--muted); margin: 0; font-size: 14.5px; }
.svc-card__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card__footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.svc-staff { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.svc-avatars { display: flex; }
.svc-avatars span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; font-size: 11.5px; font-weight: 700; color: #fff; border: 2px solid var(--surface);
    margin-left: -8px; }
.svc-avatars span:first-child { margin-left: 0; }
.svc-next { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.svc-next strong { color: var(--green); }
.svc-empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.svc-empty i { font-size: 28px; margin-bottom: 8px; color: var(--line-strong); }

/* ==========================================================================
   Explore
   ========================================================================== */
.explore-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; margin-bottom: 28px; flex-wrap: wrap; }
.explore-tab { font: inherit; font-weight: 700; font-size: 14.5px; border: 0; background: none; color: var(--ink-2);
    padding: 10px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
    .explore-tabs { display: flex; border-radius: 16px; }
    .explore-tab { flex: 1 1 100%; justify-content: flex-start; border-radius: 12px; }
}
.explore-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.explore-tab .dp-badge { background: rgba(255, 255, 255, .15); color: inherit; font-size: 11px; padding: 1px 7px; }
.explore-tab[aria-selected="false"] .dp-badge { background: var(--surface-2); }
.explore-panel { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .explore-panel { grid-template-columns: 1fr; } }
.explore-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 900px) { .explore-side { position: static; } }
.explore-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.explore-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--green));
    transition: width .3s; }
.mission-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mission { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 18px 20px; }
.mission.is-done { background: color-mix(in srgb, var(--green-50) 60%, var(--surface)); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.mission.is-done .dp-h3 { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--green) 60%, transparent); }
.mission p { margin: 0; color: var(--muted); font-size: 14.5px; }
.mission__check { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; display: inline-grid; place-content: center;
    margin-top: 1px; transition: background .15s, border-color .15s; }
.mission__check::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px;
    transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.mission__check:checked { background: var(--green); border-color: var(--green); }
.mission__check:checked::after { opacity: 1; }
@media (max-width: 560px) { .mission { grid-template-columns: auto 1fr; } .mission .dp-btn { grid-column: 2; justify-self: start; } }

.account-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0;
    border-bottom: 1px dashed var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row code { font-family: var(--mono); font-size: 13px; }

/* ==========================================================================
   Login
   ========================================================================== */
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; padding: 56px 0 88px; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } }
.quick-login { display: grid; gap: 14px; }
.quick-login a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.quick-login a > div { flex: 1; }
.quick-login a small { display: block; color: var(--muted); font-size: 13.5px; }
.quick-login a > i:last-child { color: var(--muted); transition: transform .15s; }
.quick-login a:hover > i:last-child { transform: translateX(4px); color: var(--teal); }

/* ==========================================================================
   Legal pages (terms, cookies) rendered inside the new shell
   ========================================================================== */
.legal { max-width: 860px; margin: 48px auto 88px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); }

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

/* "This demo uses its own design" callout under the features grid. */
.own-design { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
    border-color: var(--line-strong); }
.own-design .dp-h3 { margin: 0 0 6px; }
.own-design p { margin: 0; color: var(--muted); font-size: 14.5px; }
.own-design__links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 991px) {
    .own-design { grid-template-columns: auto 1fr; }
    .own-design__links { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .own-design { grid-template-columns: 1fr; }
    .own-design__links > * { flex: 1; }
}
