:root {
    color-scheme: light;
    --pine: #284d38;
    --pine-dark: #183426;
    --leaf: #7da94b;
    --leaf-soft: #eaf2df;
    --cream: #f6f3e8;
    --paper: #fffefb;
    --ink: #1f2922;
    --muted: #667269;
    --line: #dbe3da;
    --danger: #9b3735;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 14% 18%, rgba(125, 169, 75, .18), transparent 28rem),
        linear-gradient(135deg, #faf8f0 0%, #edf4e8 100%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    width: min(1160px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--pine-dark); text-decoration: none; font-size: 1.3rem; font-weight: 900; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--pine); border-radius: 13px 13px 13px 4px; font-size: 1.15rem; }
.shop-link { color: var(--pine); font-weight: 750; text-underline-offset: 4px; }

.page-shell {
    width: min(1160px, calc(100% - 40px));
    min-height: calc(100vh - 130px);
    margin: 0 auto;
    padding: 38px 0 70px;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(430px, 1.1fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}
.intro-panel { padding: 20px 0; }
.eyebrow { margin: 0 0 11px; color: var(--leaf); font-size: .77rem; line-height: 1.2; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.intro-panel h1 { margin: 0; color: var(--pine-dark); font-size: clamp(2.5rem, 5.3vw, 4.5rem); line-height: .98; letter-spacing: -.055em; }
.intro-copy { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.68; }
.steps { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 13px; }
.steps li { display: flex; align-items: center; gap: 13px; color: #8a948d; transition: color .2s; }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c4cec5; border-radius: 50%; font-size: .82rem; font-weight: 800; transition: .2s; }
.steps li.is-active { color: var(--pine-dark); }
.steps li.is-active span { color: #fff; background: var(--pine); border-color: var(--pine); }
.steps li.is-complete span { color: var(--pine); background: var(--leaf-soft); border-color: #a8c58b; }
.privacy-note { max-width: 480px; padding: 18px 20px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(40, 77, 56, .12); border-radius: 16px; }
.privacy-note strong { color: var(--pine-dark); }
.privacy-note p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.login-card { min-height: 520px; padding: clamp(28px, 5vw, 54px); display: grid; align-content: center; background: var(--paper); border: 1px solid rgba(40, 77, 56, .13); border-radius: 30px; box-shadow: 0 28px 80px rgba(30, 65, 44, .13); }
.login-card h2 { margin: 0; color: var(--pine-dark); font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; }
.step-help { margin: 14px 0 28px; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 17px; }
label { color: var(--pine-dark); font-size: .91rem; font-weight: 800; }
input { width: 100%; min-height: 54px; padding: 13px 15px; color: var(--ink); background: #fff; border: 1px solid #c5d0c7; border-radius: 12px; outline: 0; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(125, 169, 75, .15); }
.consent-line { display: grid; grid-template-columns: 21px 1fr; gap: 10px; align-items: start; color: var(--muted); line-height: 1.48; font-weight: 500; }
.consent-line input { width: 20px; min-height: 20px; height: 20px; margin-top: 1px; accent-color: var(--pine); }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; color: #fff; background: var(--pine); border: 0; border-radius: 12px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--pine-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .58; cursor: wait; transform: none; }
.code-input { max-width: 300px; font-size: 2.05rem; font-weight: 900; text-align: center; letter-spacing: .32em; padding-left: calc(15px + .32em); }
#code-hint { color: var(--muted); }
.secondary-actions, .success-actions { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.text-button { padding: 0; color: var(--pine); background: none; border: 0; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-button:disabled { opacity: .55; cursor: wait; }
.message { margin-bottom: 22px; padding: 13px 15px; border-radius: 11px; font-size: .92rem; line-height: 1.45; }
.message-error { color: #812f2d; background: #fff0ef; border: 1px solid #e9bfbc; }
.message-success { color: #2f6537; background: #edf7e8; border: 1px solid #bdd7ae; }
.success-state, .setup-state { text-align: center; }
.success-state .eyebrow, .setup-state .eyebrow { margin-top: 22px; }
.success-state > p:not(.eyebrow), .setup-state > p:not(.eyebrow) { max-width: 480px; margin: 16px auto 0; color: var(--muted); line-height: 1.58; }
.status-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto; color: var(--pine); background: var(--leaf-soft); border-radius: 50%; font-size: 2rem; font-weight: 900; }
.status-icon.success { color: #fff; background: var(--leaf); }
.coming-next { padding: 13px 15px; background: #f3f6f1; border-radius: 12px; font-size: .9rem; }
.success-actions { justify-content: center; }
.noscript { width: min(600px, calc(100% - 40px)); margin: 0 auto 30px; padding: 14px; color: var(--danger); background: #fff; border-radius: 10px; text-align: center; }

@media (max-width: 850px) {
    .page-shell { grid-template-columns: 1fr; gap: 25px; padding-top: 15px; align-items: start; }
    .intro-panel h1 { max-width: 650px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { gap: 7px; font-size: .82rem; }
    .privacy-note { display: none; }
}

@media (max-width: 560px) {
    .site-header, .page-shell { width: min(100% - 22px, 1160px); }
    .site-header { min-height: 72px; }
    .brand { font-size: 1.1rem; }
    .brand-mark { width: 34px; height: 34px; }
    .shop-link { font-size: .86rem; }
    .page-shell { padding-bottom: 30px; }
    .intro-panel { padding: 5px 4px 0; }
    .intro-panel h1 { font-size: 2.4rem; }
    .intro-copy { margin-top: 16px; font-size: .96rem; }
    .steps { margin: 23px 0 5px; }
    .steps strong { display: none; }
    .login-card { min-height: 470px; padding: 30px 20px; border-radius: 21px; }
    .login-card h2 { font-size: 2rem; }
    .code-input { max-width: none; }
}
