/* /account.css: the look of the pages around signing in (George, 26 Nov 2026: the old sign-in
   card was "horrible"). Used by /register, /reset, /checkout/complete and /join, with /lines.js.
   Two halves on a wide screen: on the left the brand, a ribbon of slowly moving lines and
   one member's words; on the right the form and nothing it doesn't need. On a phone the
   form stands alone over the same lines. Same language as the welcome-video screen.
   ?layout=center shows the other arrangement George wanted to compare: the form in the
   middle of the screen with the lines behind it.
   On a phone the eye goes to the fields and the button: the ribbon is a short band, the
   member's words are left out, and the small links sit at the very bottom.
   Each page keeps its own script and ids; only the look is shared. */
:root{color-scheme:dark;
  --bg:#141015;--deep:#0d0a0e;--line:rgba(255,255,255,.09);
  --ink:#f6f0f4;--ink2:#ddd3da;--soft:#ab9fad;--mute:#7d7280;--accent:#e2b19f;
  --display:Fraunces,Georgia,"Times New Roman",serif;
  --body:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --out:cubic-bezier(.2,.7,.2,1)}
*{margin:0;padding:0;box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--body);-webkit-font-smoothing:antialiased;
  display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr)}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}

/* ---------- left: alive ---------- */
.side{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;min-height:100dvh;
  padding:calc(34px + env(safe-area-inset-top)) 44px calc(40px + env(safe-area-inset-bottom));
  background:radial-gradient(90% 60% at 20% 0,rgba(226,177,159,.09),rgba(226,177,159,0) 70%),var(--deep);
  box-shadow:inset -1px 0 0 var(--line)}
#lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.side::after{content:"";position:absolute;inset:auto 0 0 0;height:46%;pointer-events:none;background:linear-gradient(180deg,rgba(13,10,14,0),rgba(13,10,14,.86))}
.brand{position:relative;z-index:1;display:inline-flex;align-items:center;gap:10px;font:700 15.5px/1 var(--body);letter-spacing:.04em;color:var(--ink);text-decoration:none}
.brand img{width:30px;height:30px;border-radius:8px;display:block}
.quote{position:relative;z-index:1;max-width:30ch}
.quote p{font:400 clamp(24px,2.5vw,34px)/1.2 var(--display);letter-spacing:-.018em;text-wrap:balance}
.quote span{display:block;margin-top:16px;font:500 13.5px/1.3 var(--body);color:var(--soft)}

/* ---------- right: the form ---------- */
.main{position:relative;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;
  padding:calc(30px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.back{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:8px 12px 8px 6px;margin-left:-6px;border-radius:999px;font:500 14.5px/1 var(--body);color:var(--soft);text-decoration:none;transition:color .2s}
.back:hover{color:var(--ink)}
/* the way to sign in from the payment page: a real button people can find (Nik and Steph, 26 Nov) */
.back.btn{height:42px;padding:0 20px;margin:0;font-weight:600;color:var(--ink);background:rgba(20,16,21,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.back.btn:hover{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.back svg{width:16px;height:16px}
.card{width:100%;max-width:392px;margin:auto;padding:28px 0}
.mini{display:none}
h1{font:500 clamp(32px,3.3vw,42px)/1.06 var(--display);letter-spacing:-.026em}
.sub{margin-top:10px;color:var(--soft);font-size:15.5px;line-height:1.5}
.sub:empty{display:none}
form{margin-top:28px}
label{display:block;margin:0 0 8px;font:500 13.5px/1 var(--body);color:var(--soft)}
input{display:block;width:100%;height:56px;margin-bottom:16px;padding:0 18px;border:0;border-radius:16px;background:rgba(255,255,255,.04);color:var(--ink);
  font:400 16px/1 var(--body);box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .2s,background-color .2s}
input::placeholder{color:#6d6370}
input:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
input:focus{outline:0;background:rgba(255,255,255,.055);box-shadow:inset 0 0 0 1.5px rgba(226,177,159,.75),0 0 0 5px rgba(226,177,159,.1)}
input:-webkit-autofill{-webkit-text-fill-color:var(--ink);-webkit-box-shadow:inset 0 0 0 1px var(--line),inset 0 0 0 60px #1d181f;caret-color:var(--ink)}
.go{display:flex;align-items:center;justify-content:center;width:100%;height:58px;margin-top:6px;border-radius:999px;background:var(--accent);color:#1b1418;font:600 17px/1 var(--body);letter-spacing:-.01em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 20px 50px -14px rgba(226,177,159,.45);transition:transform .45s var(--out),background-color .2s,box-shadow .45s var(--out),opacity .2s}
.go:hover:not(:disabled){transform:translateY(-2px);background:#ecc1b0;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 28px 60px -14px rgba(226,177,159,.5)}
.go:active:not(:disabled){transform:scale(.985)}
.go:disabled{opacity:.6;cursor:default}
.msg{display:none;margin-top:16px;padding:13px 16px;border-radius:14px;font-size:14.5px;line-height:1.5}
.msg.err{display:block;background:rgba(214,110,90,.1);box-shadow:inset 0 0 0 1px rgba(214,110,90,.35);color:#f2b8aa}
.msg.ok{display:block;background:rgba(127,196,147,.09);box-shadow:inset 0 0 0 1px rgba(127,196,147,.32);color:#bfe2c8}
.under{display:flex;justify-content:space-between;align-items:baseline;gap:8px 20px;margin-top:24px;color:var(--soft);font-size:14.5px;line-height:1.55}
body[data-mode="register"] .under,body[data-mode="forgot"] .under{flex-direction:column}
.foot{color:var(--soft);font-size:14.5px;line-height:1.55}
.card>.foot{margin-top:22px}
.foot:empty{display:none}
.foot a,.foot button,.swap button{color:var(--ink2);text-decoration:underline;text-decoration-color:rgba(246,240,244,.22);text-underline-offset:4px;transition:color .2s,text-decoration-color .2s}
.foot a:hover,.foot button:hover,.swap button:hover{color:var(--ink);text-decoration-color:var(--ink)}
.under .foot a,.under .foot button,.under .swap button{color:var(--soft);text-decoration-color:rgba(171,159,173,.3)}
.under .foot a:hover,.under .foot button:hover,.under .swap button:hover{color:var(--ink)}
/* the other way in: one quiet line where the two big tabs used to be */
.swap{color:var(--soft);font-size:14.5px;white-space:nowrap}
body[data-mode="forgot"] .swap{display:none}
.swap span{display:none}
body[data-mode="login"] .swap .to-reg,body[data-mode="register"] .swap .to-log{display:inline}
.legal{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--mute)}
.legal a{text-decoration:none;transition:color .2s}
.legal a:hover{color:var(--ink2)}

/* the email they paid or asked with, shown and not typed */
.who{display:flex;align-items:center;gap:10px;height:56px;margin-bottom:16px;padding:0 18px;border-radius:16px;color:var(--ink2);font-size:16px;
  background:rgba(255,255,255,.02);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who svg{width:17px;height:17px;flex:none;color:var(--mute)}
.who b{font-weight:400;overflow:hidden;text-overflow:ellipsis}
.who:empty{display:none}
.pw{position:relative}
.pw input{padding-right:76px}
.pw button{position:absolute;right:8px;top:8px;height:40px;padding:0 12px;border-radius:12px;color:var(--soft);font:500 13.5px/1 var(--body);transition:color .2s}
.pw button:hover{color:var(--ink)}
.hint{margin:-6px 0 16px;color:var(--mute);font-size:13px;line-height:1.5}
a.go{text-decoration:none;margin-top:26px}
.go i{width:17px;height:17px;margin-right:10px;border:2px solid rgba(27,20,24,.3);border-top-color:#1b1418;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.msg a{color:inherit}
.note{margin-top:16px;color:var(--mute);font-size:13.5px}
.paid{display:inline-flex;align-items:center;gap:9px;margin-bottom:18px;font:500 13.5px/1 var(--body);color:#a9dcb8}
.paid i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(127,196,147,.14);box-shadow:inset 0 0 0 1px rgba(127,196,147,.4)}
.paid svg{width:12px;height:12px}

/* ---------- the payment page (/join): taller than the screen, so the left half stays put ---------- */
body.tall .side{position:sticky;top:0;height:100vh;height:100dvh;align-self:start}
body.tall .card{max-width:440px;margin:0 auto;padding:clamp(18px,7vh,76px) 0 30px}
body.tall .back{align-self:flex-end;margin:0 -6px 0 0;padding:8px 12px}
.top{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.price{flex:none;color:var(--soft);font:400 15.5px/1 var(--body);white-space:nowrap}
.price b{font:500 22px/1 var(--body);letter-spacing:-.02em;color:var(--ink)}
/* why the total is higher than the price: the tax as its own row, said plainly */
.vat{margin-top:18px;padding:18px 20px;border-radius:18px;background:rgba(226,177,159,.06);box-shadow:inset 0 0 0 1px rgba(226,177,159,.28)}
.vat-q{font:600 15.5px/1.35 var(--body);color:var(--ink)}
.vat dl{margin-top:12px}
.vat dl div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:7px 0;font-size:15px;color:var(--ink2)}
.vat dd{flex:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.vat .sum{margin-top:5px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1);color:var(--ink);font-weight:600}
.vat-a{margin-top:10px;color:var(--soft);font-size:14px;line-height:1.5}
.emailnote{display:flex;align-items:flex-start;gap:10px;margin-top:14px;color:var(--soft);font-size:14.5px;line-height:1.5}
.emailnote svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--accent)}
.emailnote b{font-weight:500;color:var(--ink2)}
.test{margin-top:14px;padding:11px 14px;border-radius:14px;font-size:13px;line-height:1.5;color:#ecd29a;background:rgba(214,170,80,.08);box-shadow:inset 0 0 0 1px rgba(214,170,80,.3)}
.checkout-container{margin-top:22px;min-height:0}
.loading{display:flex;align-items:center;gap:11px;padding:30px 0;color:var(--soft);font-size:15px}
.loading i{width:17px;height:17px;flex:none;border:2px solid rgba(255,255,255,.14);border-top-color:var(--ink);border-radius:50%;animation:spin .8s linear infinite}
.secure{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;color:var(--mute);font-size:12.5px;text-align:center}
.secure svg{width:13px;height:13px;flex:none}

/* arriving */
.in{opacity:0;animation:arrive 1s var(--out) var(--d,0s) forwards}
@keyframes arrive{from{opacity:0;filter:blur(12px);transform:translateY(16px)}to{opacity:1;filter:none;transform:none}}

/* a phone, or the centred arrangement: the form alone over the lines */
@media (max-width:899px){
  /* a phone: a short band of ribbon with the brand on it, then the form, which is what the
     eye should land on; the small links wait at the very bottom of the screen */
  body:not(.center){display:flex;flex-direction:column}
  body:not(.center) .side{flex:none;min-height:0;height:clamp(140px,21svh,200px);padding:calc(22px + env(safe-area-inset-top)) 24px 0;box-shadow:none}
  body:not(.center) .side::after{height:52%;background:linear-gradient(180deg,rgba(20,16,21,0),var(--bg))}
  body:not(.center) .quote{display:none}
  body:not(.center) .main{position:static;flex:1;min-height:0;padding-top:0}
  body:not(.center) .back{position:absolute;top:calc(18px + env(safe-area-inset-top));right:14px;z-index:2;margin:0}
  body:not(.center) .card{margin:auto;padding:14px 0 26px}
  body:not(.center) h1{font-size:34px}
  body:not(.center) form{margin-top:26px}
  body:not(.center) .under{margin-top:26px}
  body:not(.center) .legal{margin-top:0;justify-content:center;gap:4px 9px;font-size:11px;padding-top:10px}
  body.tall .side{position:relative;align-self:stretch;height:clamp(140px,21svh,200px)}
  body.tall .card{margin:0 auto auto;padding:14px 0 26px}
  body.tall .back{align-self:auto;margin:0}
}
/* Paddle's form needs about 286px of width: the narrowest phones give it nearly all of theirs */
@media (max-width:350px){.main{padding-left:14px;padding-right:14px}}
body.center{display:block}
.center .side{position:fixed;inset:0;min-height:0;padding:0;box-shadow:none;z-index:0}
.center .side .brand,.center .side .quote{display:none}
.center .side::after{height:100%;background:radial-gradient(60% 62% at 50% 46%,rgba(20,16,21,.94),rgba(20,16,21,.4))}
.center .main{z-index:1}
.center .card{text-align:center;max-width:400px}
.center .mini{display:inline-flex;margin-bottom:26px}
.center label{text-align:left}
.center .legal{justify-content:center}
@media (prefers-reduced-motion:reduce){.in{animation:none;opacity:1}.go{transition:none}.go i,.loading i{animation:none}}
