/* ClientCarté — Coming Soon
   Vanilla CSS, no build step. Palette and tone mirror the ClientCarté iOS app
   (Config/AppColor.swift) — design philosophy "Four Seasons spa lounge: crisp,
   professional, quietly warm." Warm-white ground, cool dark stone text, dusty
   lavender accent. Dark mode via prefers-color-scheme. Mobile-first. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-semibold.woff2') format('woff2');
}

:root {
    /* App palette — light */
    --accent: #b4a7d6;        /* signature lavender (fills, CTA) */
    --accent-ink: #6f5c97;    /* deeper lavender for accent text (contrast on warm-white) */
    --text: #3c3c43;          /* cool dark stone */
    --text-muted: #75757c;    /* medium stone */
    --bg: #fdfcfb;            /* warm white */
    --bg-tint: #f3eff7;       /* faint lavender for the ground gradient */
    --divider: #e0e0e2;       /* pale stone */
    --error: #d0514d;         /* restrained red (matches the app) */
    --on-accent: #3c3c43;     /* stone text on the lavender CTA */

    /* Icon-tile gradient (matches the app icon background) */
    --tile-top: #f5f3f7;
    --tile-bottom: #e4d8ec;
    --tile-shadow: rgba(60, 60, 67, 0.16);

    /* Lavender CTA glow */
    --btn-shadow: rgba(180, 167, 214, 0.5);
    --btn-shadow-hover: rgba(180, 167, 214, 0.65);

    /* San Francisco first on Apple platforms (where the app lives — the design
       brief specifies "system fonts only, San Francisco throughout"); self-hosted
       Inter is the supplement for non-Apple platforms only. */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    --maxw: 40rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #c2b7e0;        /* brighter lavender for dark contrast */
        --accent-ink: #c2b7e0;    /* lavender reads as text on true-dark */
        --text: #f2f0ee;          /* warm light white */
        --text-muted: #aeb0b2;
        --bg: #121214;           /* true dark, not gray */
        --bg-tint: #18151c;       /* faint purple */
        --divider: #38383c;
        --error: #de6561;
        --on-accent: #1e1e21;     /* dark text on the lavender CTA */
        --tile-shadow: rgba(0, 0, 0, 0.5);
        --btn-shadow: rgba(194, 183, 224, 0.28);
        --btn-shadow-hover: rgba(194, 183, 224, 0.4);
    }
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-ink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ---- Hero ---------------------------------------------------------------- */

main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.hero {
    width: 100%;
    max-width: var(--maxw);
    text-align: center;
}

/* App-icon tile — the mark on its native light lavender gradient, so it reads
   identically in light and dark mode. */
.hero-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--tile-top) 0%, var(--tile-bottom) 100%);
    box-shadow: 0 14px 36px -8px var(--tile-shadow), 0 1px 2px rgba(60, 60, 67, 0.1);
}

.hero-mark img {
    display: block;
    width: 58%;
    height: auto;
}

.wordmark {
    margin: 1.5rem 0 0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tagline {
    margin: 0.85rem 0 0;
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent-ink);
}

.lede {
    margin: 1.5rem auto 0;
    max-width: 33rem;
    color: var(--text-muted);
}

.status {
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.actions {
    margin: 1.5rem 0 0;
}

.fineprint {
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ---- Button -------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 8px 22px -8px var(--btn-shadow);
}

.btn-primary:hover {
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px -8px var(--btn-shadow-hover);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--btn-shadow), 0 10px 24px -8px var(--btn-shadow-hover);
}

/* ---- Signup form --------------------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.signup {
    margin: 1.5rem auto 0;
    max-width: 27rem;
}

.signup-row {
    display: flex;
    gap: 0.6rem;
}

.signup-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.8rem 1.15rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--divider);
    border-radius: 999px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.signup-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--btn-shadow);
}

.signup-btn {
    flex: 0 0 auto;
    border: none;
}

.signup-note {
    margin: 0.9rem auto 0;
    max-width: 24rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cf-turnstile {
    margin: 1.1rem 0 0;
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.signup-msg {
    margin: 0.75rem 0 0;
    min-height: 1.2em;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.signup-msg.is-error {
    color: var(--error);
}

.signup-msg.is-success {
    color: var(--accent-ink);
    font-weight: 600;
}

@media (max-width: 30rem) {
    .signup-row {
        flex-direction: column;
    }

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

/* ---- Footer -------------------------------------------------------------- */

footer {
    flex-shrink: 0;
    padding: 1.75rem 1.5rem;
    border-top: 1px solid var(--divider);
}

.footer-legal {
    margin: 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-sep {
    margin: 0 0.5em;
    opacity: 0.6;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (min-width: 768px) {
    .hero-mark {
        width: 116px;
        height: 116px;
        border-radius: 27px;
    }

    .wordmark {
        font-size: 3.25rem;
    }

    .tagline {
        font-size: 1.375rem;
    }
}

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