
:root{--ink:#111111;--orange:#fe950c;--orange-deep:#ff8a00;--orange-soft:#ffc64e;--cream:#fffaf4;--line:#eadfce;--muted:#55514b}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif}body{min-height:100vh;overflow-x:hidden}
.page{position:relative;min-height:100vh;overflow:hidden;background:radial-gradient(circle at 37% 78%,rgba(255,194,94,.23),transparent 13%),linear-gradient(180deg,#fff 0%,#fffdfa 44%,#fff7ef 70%,#fff 100%)}
.decor{position:absolute;inset:0;z-index:0;pointer-events:none}.mist{position:absolute;left:-5%;right:-5%;bottom:4%;height:34%;opacity:.72;pointer-events:none;z-index:0}.mist div{position:absolute;left:0;right:0;border-radius:50% 50% 0 0/100% 100% 0 0;transform-origin:center bottom}.m1{height:58%;bottom:15%;background:linear-gradient(180deg,rgba(247,232,216,.58),rgba(255,250,245,.15));transform:skewY(-5deg) scaleX(1.08)}.m2{height:43%;bottom:6%;background:linear-gradient(180deg,rgba(247,224,202,.38),rgba(255,250,245,.05));transform:skewY(4deg) scaleX(1.08)}.m3{height:25%;bottom:0;background:linear-gradient(180deg,rgba(255,240,223,.30),rgba(255,255,255,.08));transform:skewY(-2deg) scaleX(1.1)}
header{position:relative;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;padding:28px 4.2% 0}.logo{width:220px;max-width:24vw;height:auto;display:block}.back{margin-top:28px;color:var(--ink);text-decoration:none;font-size:14px}
main{position:relative;z-index:2;min-height:calc(100vh - 174px);display:grid;place-items:center;padding:8px 24px 88px}.shell{width:min(1080px,100%);text-align:center}
.progress{width:104px;height:20px;margin:0 auto 32px;position:relative}.progress:before{content:"";position:absolute;left:16px;right:16px;top:9px;height:2px;background:var(--line)}.dot{position:absolute;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid #cdbda8}.dot.left{left:0}.dot.right{right:0}.progress.step1 .left,.progress.step2 .left,.progress.step2 .right{background:var(--orange);border-color:var(--orange)}
.card{background:rgba(255,255,255,.88);border:1px solid rgba(234,223,206,.9);border-radius:28px;padding:36px 34px;box-shadow:0 14px 36px rgba(87,55,10,.06)}
h1{font-family:"Bodoni MT",Didot,Georgia,"Times New Roman",serif;font-size:42px;line-height:1.06;font-weight:400;letter-spacing:-.02em;margin:0 0 12px}.lead{font-size:17px;line-height:1.58;color:var(--ink);margin:0 auto 26px;max-width:740px}.micro{font-size:13px;color:var(--ink);line-height:1.5}.accent{color:var(--orange)}
.primary,.secondary,.ghost{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:15px;cursor:pointer}.primary{min-width:190px;height:54px;border:0;border-radius:999px;color:var(--ink);background:linear-gradient(90deg,#ffc755 0%,#ffb63a 42%,#ff970c 100%);box-shadow:0 7px 16px rgba(255,153,17,.13)}.secondary{height:54px;border:1px solid #d8ae78;border-radius:999px;background:rgba(255,255,255,.9);color:var(--ink);padding:0 22px}.ghost{border:0;background:transparent;color:var(--ink);border-bottom:1px solid var(--orange);padding:0 1px}.actions{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:20px}
footer{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:28px 4.2% 24px;font-size:13px;color:var(--ink)}footer nav{display:flex;gap:10px}footer a{color:var(--ink);text-decoration:none}
@media(max-width:900px){header{padding:18px 22px 0}.logo{width:170px;max-width:45vw}.back{margin-top:18px}main{padding:8px 18px 78px}.card{padding:28px 20px}h1{font-size:34px}.lead{font-size:16px}footer{padding:28px 22px 22px}}
@media(max-width:560px){header{align-items:center}.logo{width:145px}.back{margin-top:10px}.progress{margin-bottom:26px}footer{display:none}}
.login-card{max-width:760px;margin:0 auto}.input-row{display:flex;gap:14px;align-items:center;justify-content:center;margin:28px 0 16px}.pill{flex:1;max-width:520px;height:66px;border-radius:999px;border:1.5px solid var(--ink);padding:0 24px;font-size:20px;background:#fff;outline:none}.pill:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(254,149,12,.08)}.go{width:66px;height:66px;border-radius:50%;border:1.7px solid var(--orange);background:#fff;color:var(--ink);font-size:30px;display:grid;place-items:center}.inline-links{margin-top:24px;display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:14px}.inline-links a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--orange);padding-bottom:1px}.note{margin-top:18px;padding-top:18px;border-top:1px solid #eadfce;font-size:14px;color:var(--ink);line-height:1.6}@media(max-width:560px){.pill{font-size:17px;height:58px}.go{width:58px;height:58px}}
.login-card{max-width:780px;margin:0 auto}.mail-hint{display:inline-flex;gap:8px;align-items:center;background:#fffaf4;border:1px solid rgba(254,149,12,.28);border-radius:999px;padding:10px 16px;margin:8px 0 26px;color:var(--ink);font-size:14px}.otp{display:flex;justify-content:center;gap:12px;margin:0 0 24px}.otp input{width:58px;height:64px;border-radius:16px;border:1.5px solid var(--ink);text-align:center;font-size:28px;background:#fff;outline:none}.otp input:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(254,149,12,.08)}.panel-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px;text-align:left}.mini-box{border:1px solid #eadfce;border-radius:20px;padding:18px;background:#fffaf4}.mini-box h3{margin:0 0 8px;font-size:16px;font-weight:600}.mini-box p{margin:0;color:var(--ink);font-size:14px;line-height:1.55}.micro a{color:var(--ink);border-bottom:1px solid var(--orange);text-decoration:none}@media(max-width:760px){.panel-row{grid-template-columns:1fr}}@media(max-width:560px){.otp{gap:8px}.otp input{width:46px;height:54px;font-size:24px}}
.resend-card{max-width:760px;margin:0 auto}.badge{width:76px;height:76px;margin:0 auto 22px;border-radius:50%;display:grid;place-items:center;background:#fffaf4;border:1.5px solid var(--orange);font-size:32px;color:var(--orange)}
.email-card{max-width:760px;margin:0 auto}.input-row{display:flex;gap:14px;align-items:center;justify-content:center;margin:28px 0 16px}.pill{flex:1;max-width:520px;height:66px;border-radius:999px;border:1.5px solid var(--ink);padding:0 24px;font-size:20px;background:#fff;outline:none}.pill:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(254,149,12,.08)}.go{width:66px;height:66px;border-radius:50%;border:1.7px solid var(--orange);background:#fff;color:var(--ink);font-size:30px;display:grid;place-items:center}@media(max-width:560px){.pill{height:58px;font-size:17px}.go{width:58px;height:58px}}
.otp-card{max-width:780px;margin:0 auto}.mail-hint{display:inline-flex;gap:8px;align-items:center;background:#fffaf4;border:1px solid rgba(254,149,12,.28);border-radius:999px;padding:10px 16px;margin:8px 0 24px;color:var(--ink);font-size:14px}.otp{display:flex;justify-content:center;gap:12px;margin:0 0 22px}.otp input{width:56px;height:62px;border-radius:16px;border:1.5px solid var(--ink);text-align:center;font-size:28px;background:#fff;outline:none}.otp input:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(254,149,12,.08)}@media(max-width:560px){.otp{gap:8px}.otp input{width:44px;height:52px;font-size:24px}}

/* Integration hooks and error states; original v5 card geometry above remains. */
.page>.decor-img{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.reference-auth .wrap{display:contents}.reference-auth main{display:grid;place-items:center;width:auto;max-width:none;margin:0;min-height:calc(100vh - 245px);padding:8px 24px 70px}
.reference-auth .shell{width:min(1080px,100%);text-align:center}.reference-auth .card{width:100%;box-sizing:border-box}.reference-auth .form-card{max-width:760px;margin:auto}
.reference-auth .email-row,.reference-auth .input-row{display:flex;gap:14px;align-items:center;justify-content:center;margin:28px 0 16px}
.reference-auth .email-row input{flex:1 1 0;min-width:0;width:0;max-width:520px;height:66px;border-radius:999px;border:1.5px solid #111;padding:0 24px;font:20px Arial;background:#fff}
.reference-auth #request-button{width:66px;height:66px;min-width:66px;min-height:66px;padding:0;border-radius:50%;border:1.7px solid #fe950c;background:#fff;font:30px Arial;box-shadow:none;flex:0 0 auto}
.reference-auth form{margin:0}.reference-auth .field>label{display:block}.reference-auth .code-chip{font-size:13px;margin:0 0 20px}.reference-auth .code-chip strong{margin-left:6px;overflow-wrap:anywhere}
.reference-auth .otp{border:0;padding:0;min-width:0}.reference-auth .otp legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.reference-auth .otp input{font-family:inherit;min-width:0;max-width:calc((100vw - 105px)/6)}
.reference-auth button:disabled{cursor:not-allowed;opacity:.6}.reference-auth .underlined{color:#111;border:0;border-bottom:1px solid #fe950c;background:transparent;font:inherit;cursor:pointer;text-decoration:none;padding:0 0 1px}
.reference-auth .feedback{margin-top:12px;font-size:13px;line-height:1.5}.reference-auth .status:empty{display:none}.reference-auth .status.error{border-left:3px solid #fe950c;background:#fff4e4;padding:12px;text-align:left}.reference-auth .notice{font-size:13px;line-height:1.55;padding:12px;border:1px solid #eadfce;background:#fffaf4}.reference-auth .review{font-size:10px;margin:20px 0 0;color:#555}
.reference-auth .private-email{overflow-wrap:anywhere}.reference-auth .depot-list{list-style:none;padding:0;overflow-wrap:anywhere}.reference-auth .checkmark{font-size:26px;color:#fe950c;margin:16px 0}.reference-auth h1:focus{outline:none}
.reference-auth footer{display:flex!important;gap:16px;flex-wrap:wrap}.reference-auth footer nav{align-items:center;flex-wrap:wrap}
.reference-auth .progress{display:none}.reference-auth[data-mode=onboarding] .progress{display:block}
@media(max-width:560px){.reference-auth main{padding:8px 18px 48px}.reference-auth .card{padding:28px 20px}.reference-auth h1{font-size:32px}.reference-auth .email-row{gap:10px}.reference-auth .email-row input{font-size:16px;height:58px;padding:0 15px}.reference-auth #request-button{width:58px;height:58px;min-width:58px;min-height:58px}.reference-auth .actions{flex-direction:column;gap:10px}.reference-auth .actions>*{width:100%;max-width:100%;min-width:0}.reference-auth footer{padding:22px 18px;align-items:flex-start}.reference-auth .panel-row{grid-template-columns:1fr}}

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

/* Opt-in remembered browser, same warm controls as account settings. */
.remember-device{margin:22px auto 6px;text-align:left;max-width:410px}.remember-device[hidden]{display:none}.remember-device label{display:flex;align-items:center;gap:12px;cursor:pointer;min-height:44px;font-size:14px;line-height:1.5}.remember-device input{appearance:none;-webkit-appearance:none;width:22px;height:22px;flex:0 0 22px;border:1.5px solid #d8ae78;border-radius:50%;background:white;margin:0}.remember-device input:checked{background:#fe950c;box-shadow:inset 0 0 0 4px white}.remember-device input:focus-visible{outline:2px solid #111;outline-offset:3px}.remember-device .micro{padding-left:34px;margin:2px 0 0;color:#55514b}

/* Textual Login button instead of the former circular arrow. */
.reference-auth #request-button{width:auto;min-width:90px;min-height:58px;height:58px;padding:0 18px;border-radius:999px;font:16px Arial;background:linear-gradient(90deg,#ffc755,#ff970c);}
@media(max-width:560px){.reference-auth .email-row{flex-wrap:wrap;}.reference-auth .email-row input{flex-basis:100%;width:100%;max-width:100%;}.reference-auth #request-button{min-width:130px;margin-top:2px;}}

.reference-auth .note:empty{display:none}

/* One real six-character input enables Mail/SMS code AutoFill; six original boxes remain visual. */
.otp .otp-entry{position:relative;width:100%;max-width:300px;height:50px;margin:0 auto;min-width:0}
.otp-entry .otp-cells{position:absolute;inset:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;pointer-events:none}
.otp-entry .otp-cell{border:1px solid #cfc2b0;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff;color:#111;font:24px/1 Arial,Helvetica,sans-serif;box-sizing:border-box}
.otp-entry .otp-cell.current{border-color:#fe950c;box-shadow:0 0 0 2px #fe950c33}
.otp .otp-entry #otp-code{position:absolute;z-index:1;inset:0;margin:0;width:100%;height:100%;min-width:0;box-sizing:border-box;border:0;border-radius:12px;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;outline:none;box-shadow:none;font-size:24px;letter-spacing:20px;padding:0;opacity:1}
.otp-entry:has(#otp-code:focus-visible){outline:2px solid #fe950c;outline-offset:5px;border-radius:12px}
@media(forced-colors:active){.otp .otp-entry #otp-code{color:CanvasText;-webkit-text-fill-color:CanvasText;caret-color:CanvasText;background:Canvas;border:1px solid CanvasText;letter-spacing:8px}.otp-entry .otp-cells{visibility:hidden}}
@media(max-width:380px){.otp .otp-entry{max-width:260px;height:46px}.otp-entry .otp-cells{gap:5px}}

/* Three explicit journey stages. Only the current step is orange. */
body .progress.journey-progress{display:flex!important;position:relative!important;width:116px!important;height:16px!important;margin:0 auto 28px!important;padding:0!important;justify-content:space-between!important;align-items:center!important;gap:0!important;background:none!important}
body .progress.journey-progress::before{content:''!important;position:absolute!important;left:6px!important;right:6px!important;top:7px!important;height:1px!important;width:auto!important;background:#d7cbb9!important;transform:none!important}
body .progress.journey-progress::after{display:none!important}
body .journey-progress .journey-dot{position:relative;display:block;width:10px;height:10px;border-radius:50%;border:1px solid #c9bdad;background:#fff;box-sizing:border-box;z-index:1}
body .journey-progress[data-step='1'] [data-step-dot='1'],body .journey-progress[data-step='2'] [data-step-dot='2'],body .journey-progress[data-step='3'] [data-step-dot='3']{background:#fe8800;border-color:#fe8800}
body.beta-start .journey-progress{margin-left:0!important}

/* Cumulative completion: 1, then 1+2, then all three. */
body .journey-progress[data-step="2"] [data-step-dot="1"],body .journey-progress[data-step="3"] .journey-dot{background:#fe8800;border-color:#fe8800}
body[data-update-mode="true"] .progress.journey-progress{display:none!important}

/* Progress belongs to registration, never to returning-user login. */
body.reference-auth[data-mode="login"] .progress.journey-progress{display:none!important}

/* Explicit continuation after inactivity; do not crowd the email form. */
#remembered-continue{display:block;max-width:100%;white-space:normal;min-height:48px;padding:12px 20px;margin:0 auto 18px;line-height:1.3;text-align:center}
