/* Rescue Pro: Plum and Peach. All styles for the app live in this one file. */

:root {
    --plum: #3E2A47;
    --plum-dark: #2B1C32;
    --peach: #F4A582;
    --deep-peach: #C8693F;
    --cream: #FBF6F1;
    --white: #FFFFFF;
    --ink: #261A2C;
    --muted: #5A4A60;
    --border: #E8DDD3;

    /* Status colours: never changed. */
    --green: #1C7C47;
    --red: #C62828;
    --grey: #8A97A0;

    --font-heading: "Nunito", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius: 16px;
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.55;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--deep-peach);
    font-weight: 600;
    text-underline-offset: 3px;
}

code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.95em;
}

:focus-visible {
    outline: 3px solid var(--deep-peach);
    outline-offset: 2px;
}

/* Logo: the peeking pup plus the wordmark */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo__mark {
    width: 48px;
    height: 48px;
    flex: none;
}

.logo__wordmark {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

.logo--on-plum .logo__wordmark {
    color: var(--white);
}

.logo--on-plum .logo__pro {
    color: var(--peach);
}

.logo--on-light .logo__wordmark {
    color: var(--plum);
}

.logo--on-light .logo__pro {
    color: var(--deep-peach);
}

/* Plum header band */

.band {
    background: var(--plum);
    color: var(--white);
}

.band__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

/* Holding page: the logo lines up with the content column below (same width and side padding). */
.page--holding .band__inner {
    max-width: 720px;
}

/* Buttons: plum, or plum outline; at least 44px tall; fully rounded */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.6rem;
    border: 2px solid var(--plum);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--plum);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--plum-dark);
    border-color: var(--plum-dark);
}

.btn--outline {
    background: transparent;
    color: var(--plum);
}

.btn--outline:hover {
    background: var(--plum);
    color: var(--white);
}

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

.btn--link {
    border-color: transparent;
    background: transparent;
    color: var(--plum);
    padding-left: 0;
    padding-right: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Peach ticks */

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

.ticks li {
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 0.85rem;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--peach);
}

.ticks li::after {
    content: "";
    position: absolute;
    left: 0.52rem;
    top: 0.33rem;
    width: 0.42rem;
    height: 0.75rem;
    border: solid var(--plum);
    border-width: 0 0.17rem 0.17rem 0;
    transform: rotate(45deg);
}

/* Holding page */

.holding {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.holding__title {
    color: var(--plum);
    font-size: clamp(2rem, 6vw, 3.1rem);
}

.holding__lead {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.holding .ticks li {
    font-size: 1.05rem;
}

.holding__soon {
    font-weight: 700;
    color: var(--plum);
    margin: 2rem 0 1.25rem;
}

.footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

/* Sign-in: plum panel on the left, white card on the right */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: 100vh;
}

.auth__panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: var(--plum);
    color: var(--cream);
    padding: 2.5rem 3rem;
}

.auth__title {
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.75rem;
}

.auth__made {
    margin-top: auto;
    margin-bottom: 0;
    color: var(--peach);
    font-weight: 600;
}

.auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
}

.card__title {
    color: var(--plum);
    font-size: 1.9rem;
    margin-bottom: 0.35rem;
}

.card__subtitle {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.card__note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Forms */

.form {
    margin: 0;
}

.form--quiet {
    margin-top: 1.25rem;
    text-align: center;
}

.field {
    margin-bottom: 1.1rem;
}

.field__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.field__input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--muted);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
}

.field__input:focus-visible {
    border-color: var(--plum);
}

.field__input--code {
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    text-align: center;
}

.field--check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin-bottom: 1.25rem;
}

.field--check input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--plum);
}

.alert {
    border-left: 4px solid var(--grey);
    background: var(--cream);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.alert p {
    margin: 0;
}

.alert--error {
    border-left-color: var(--red);
    color: var(--red);
    font-weight: 600;
}

.alert--success {
    border-left-color: var(--green);
    color: var(--green);
    font-weight: 600;
}

/* Two-step setup */

.qr {
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.qr svg {
    width: 200px;
    height: 200px;
}

.setup-key {
    color: var(--muted);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.recovery {
    margin-top: 1.5rem;
}

.recovery summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--plum);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recovery .form {
    margin-top: 0.75rem;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1rem 1rem 2.25rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Welcome page */

.welcome {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.welcome__title {
    color: var(--plum);
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.welcome__lead {
    color: var(--muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

/* Phones: one column; the sign-in panel shrinks to the logo */

@media (max-width: 760px) {
    .auth {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .auth__panel {
        padding: 1rem 1.25rem;
        gap: 0;
    }

    .auth__pitch,
    .auth__made {
        display: none;
    }

    .auth__main {
        padding: 1.5rem 1rem 2.5rem;
        align-items: flex-start;
    }

    .card {
        padding: 1.75rem 1.25rem;
    }

    .holding {
        padding-top: 2rem;
    }

    .recovery-codes {
        grid-template-columns: minmax(0, 1fr);
    }
}
