:root {
    --lp-ink: #1c1917;
    --lp-slate: #5c564f;
    --lp-orange: #f58345;
    --lp-sand: #fff4ec;
    --lp-paper: #fffaf6;
    --lp-line: rgba(28, 25, 23, 0.12);
    --lp-ease: cubic-bezier(0.22, 0.8, 0.28, 1);
    --lp-max: 1120px;
    --lp-gutter: 1.25rem;
}

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

html {
    scrollbar-gutter: stable;
    /* Keep in sync with homepage.css so the logo doesn't shift between pages */
    --epi-inline: max(1.25rem, calc((100vw - 1120px) / 2));
}

body.lp {
    margin: 0;
    min-height: 100vh;
    color: var(--lp-ink);
    background: var(--lp-paper);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.lp a:not(.lp-brand-mark) {
    color: inherit;
}

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

.lp-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
}

.lp-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1.75rem clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem) var(--epi-inline);
    color: #fff;
    background: linear-gradient(145deg, #ff9a5f 0%, var(--lp-orange) 42%, #e86a2f 100%);
    overflow: hidden;
}

.lp-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    min-height: 3rem;
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.lp-brand-mark img {
    width: 1.85rem;
    height: auto;
}

.lp-brand-mark span {
    max-width: 14rem;
}

.lp-brand-admin {
    background: linear-gradient(145deg, #3a342f 0%, var(--lp-ink) 48%, #12100e 100%);
}

.lp-brand-admin .lp-brand-wash {
    background:
        radial-gradient(ellipse 45% 40% at 82% 18%, rgba(245, 131, 69, 0.22), transparent 60%),
        radial-gradient(ellipse 35% 45% at 8% 88%, rgba(255, 255, 255, 0.06), transparent 65%);
}

.lp-brand-wash {
    position: absolute;
    inset: -20% -10% -10%;
    background:
        radial-gradient(ellipse 45% 40% at 82% 18%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(ellipse 35% 45% at 8% 88%, rgba(255, 214, 180, 0.45), transparent 65%);
    animation: lp-wash 14s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes lp-wash {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

.lp-brand-copy {
    max-width: 28rem;
    padding: 2rem 0;
}

.lp-brand-lockup {
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.lp-brand h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.lp-brand-tag {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.lp-brand-lede {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    max-width: 26rem;
}

.lp-brand-foot {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.lp-brand-foot a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lp-panel {
    display: grid;
    place-items: center;
    padding: 2.5rem 1.5rem;
    background:
        linear-gradient(180deg, #fff8f2 0%, var(--lp-paper) 55%);
}

.lp-panel-inner {
    width: min(24rem, 100%);
    opacity: 0;
    transform: translateY(14px);
    animation: lp-rise 0.75s var(--lp-ease) 0.08s forwards;
}

@keyframes lp-rise {
    to { opacity: 1; transform: none; }
}

.lp-kicker {
    margin: 0 0 0.55rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d46528;
}

.lp-panel h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.55rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.lp-help {
    margin: 0.7rem 0 0;
    color: var(--lp-slate);
    font-size: 0.98rem;
}

.lp-form {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lp-pay-card + .lp-form {
    margin-top: 0;
}

.lp-checkout {
    margin: 1.75rem 0 0;
    min-height: 12rem;
}

.lp-panel-talk {
    width: min(32rem, 100%);
}

.lp-form-talk {
    gap: 1.15rem;
}

.lp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.lp-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.lp-input-wrap {
    position: relative;
    display: block;
}

.lp-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    background: #fff;
    color: var(--lp-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-input-wrap:has(.lp-toggle) input {
    padding-right: 2.75rem;
}

.lp-field span em {
    font-style: normal;
    font-weight: 500;
    color: var(--lp-slate);
}

.lp-choice {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lp-choice-label {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--lp-ink);
}

.lp-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.lp-chip {
    position: relative;
    display: block;
    cursor: pointer;
}

.lp-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.lp-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.55rem 0.4rem;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    background: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lp-chip:hover span {
    border-color: rgba(28, 25, 23, 0.28);
}

.lp-chip input:checked + span {
    border-color: var(--lp-orange);
    background: rgba(245, 131, 69, 0.12);
    color: var(--lp-ink);
}

.lp-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(245, 131, 69, 0.18);
}

.lp-field input::placeholder {
    color: rgba(28, 25, 23, 0.28);
}

.lp-field input:focus {
    border-color: rgba(245, 131, 69, 0.75);
    box-shadow: 0 0 0 3px rgba(245, 131, 69, 0.18);
}

.lp-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--lp-slate);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.lp-toggle:hover {
    color: var(--lp-ink);
    background: rgba(28, 25, 23, 0.05);
}

.lp-toggle[aria-pressed="true"] {
    color: #d46528;
}

.lp-toggle .lp-eye-shut {
    display: none;
}

.lp-toggle.is-shown .lp-eye-open {
    display: none;
}

.lp-toggle.is-shown .lp-eye-shut {
    display: block;
}

.lp-error {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.06);
    color: #9f1239;
    font-size: 0.9rem;
    border-radius: 6px;
}

.lp-submit[hidden] {
    display: none;
}

.lp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 6px;
    background: var(--lp-ink);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--lp-ease);
}

.lp-submit:hover {
    background: #2f2a26;
    transform: translateY(-1px);
}

.lp-submit.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.lp-submit.is-loading svg {
    display: none;
}

.lp-submit.is-loading::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

.lp-agree {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.15rem 0 0;
    cursor: pointer;
    color: var(--lp-slate);
    font-size: 0.9rem;
    line-height: 1.45;
}

.lp-agree input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.12rem;
    flex-shrink: 0;
    border: 1.5px solid var(--lp-line);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lp-agree input:checked {
    border-color: var(--lp-ink);
    background: var(--lp-ink);
}

.lp-agree input:checked::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.1rem;
    width: 0.28rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lp-agree a {
    color: var(--lp-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.lp-agree a:hover {
    color: #d46528;
}

.lp-pay-card {
    margin: 1.75rem 0 1.25rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    background: #fff;
}

.lp-pay-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--lp-line);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.lp-pay-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-pay-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--lp-slate);
}

.lp-pay-fake {
    padding: 0.85rem 1rem;
    border: 1px dashed var(--lp-line);
    border-radius: 6px;
    background: rgba(28, 25, 23, 0.02);
    color: rgba(28, 25, 23, 0.35);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.lp-back {
    margin: 1.75rem 0 0;
    font-size: 0.92rem;
}

.lp-back a {
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: var(--lp-slate);
}

.lp-back a:hover {
    color: #d46528;
}

.lp-mobile-mark {
    display: none;
}

@media (max-width: 900px) {
    .lp-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .lp-brand {
        min-height: auto;
        padding-bottom: 2rem;
        gap: 1.75rem;
    }

    .lp-brand-copy {
        padding: 0.5rem 0 0;
    }

    .lp-brand-lockup {
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .lp-panel {
        place-items: start center;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    /* Sign-in: form only — skip the brand column on small screens */
    .lp-signin .lp-brand {
        display: none;
    }

    .lp-signin .lp-shell {
        min-height: 100vh;
    }

    .lp-signin .lp-panel {
        min-height: 100vh;
        place-items: center;
        padding: 2rem 1.25rem 3rem;
    }

    .lp-signin .lp-mobile-mark {
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        margin: 0 0 1.5rem;
        text-decoration: none;
        color: var(--lp-ink);
        font-family: "Space Grotesk", sans-serif;
        font-weight: 700;
        font-size: 0.92rem;
        letter-spacing: -0.02em;
    }

    .lp-signin .lp-mobile-mark img {
        width: 1.85rem;
        height: auto;
    }

    .lp-signin .lp-mobile-mark span {
        max-width: 14rem;
        line-height: 1.15;
    }
}

@media (max-width: 600px) {
    .lp-brand-mark span,
    .lp-signin .lp-mobile-mark span {
        max-width: 9.5rem;
        line-height: 1.15;
    }

    .lp-form-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-brand-wash,
    .lp-panel-inner {
        animation: none;
    }

    .lp-panel-inner {
        opacity: 1;
        transform: none;
    }

    .lp-submit:hover {
        transform: none;
    }
}
