/* Fira Sans and Fira Sans Extra Condensed (SIL Open Font License 1.1), Latin subset, served from
   our own domain so no visitor's address goes to a font service. */
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/fira-sans-400.woff2) format('woff2')}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/fira-sans-500.woff2) format('woff2')}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fira-sans-600.woff2) format('woff2')}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/fira-sans-700.woff2) format('woff2')}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/fira-sans-extra-condensed-700.woff2) format('woff2')}
@font-face{font-family:'Fira Sans Extra Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/fira-sans-extra-condensed-800.woff2) format('woff2')}
/* the name on the landing and invite pages only (Latin subset) */
@font-face{font-family:'Barlow Condensed';font-style:italic;font-weight:900;font-display:swap;src:url(/fonts/barlow-condensed-900-italic.woff2) format('woff2')}
/* fiftyfifty. Fjord colours, Fira type.
   Contrast: ink #16302A on bg 12.4:1 · muted #3F524C on bg 7.3:1, on white 8.3:1 (AAA text)
   white on accent #155C45 7.9:1 · accent on bg 6.96:1, so accent is for graphics, never text
   avatar colours ≥ 4.5:1 with their symbol (large bold initials) · control borders ≥ 3:1 */
:root{
  --bg:#EDF1F0;--surface:#FFFFFF;--ink:#16302A;--muted:#3F524C;--line:#D3DDDA;--control:#788C86;
  --accent:#155C45;--accent-tint:#D5E4DE;--danger:#9B1C1C;--on-ink:#FFFFFF;--on-accent:#FFFFFF;
  --font:'Fira Sans',system-ui,sans-serif;--num-font:'Fira Sans Extra Condensed','Arial Narrow',sans-serif;
  --r-card:20px;--r-ctl:12px;--pad:20px;--gap:12px;--section:24px;--h-lg:56px;--h-md:48px;
  --safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:#E2E5E3}
body{font-family:var(--font);color:var(--ink);background:#E2E5E3;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
/* the darker grey is only for the margins beside the app on wide screens; on a phone it showed in the status bar */
@media (max-width:480px){html,body{background:var(--bg)}}
button,input{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* shell: one column, phone-sized even on desktop */
#app{position:relative;max-width:480px;min-height:100dvh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column}
.view{flex:1;padding:calc(var(--safe-top) + 20px) 22px 32px}
.view.has-tabs{padding-bottom:calc(110px + var(--safe-bottom))}
/* I dag fills the screen: the ring in the middle of the free space, the buttons down by the thumb */
.view.today{display:flex;flex-direction:column;min-height:100dvh}
.brand.today-brand{font-size:34px;margin-bottom:6px}
.day-title{text-align:center;font-size:24px;margin-bottom:14px}
.today-main{flex:1;display:flex;flex-direction:column;justify-content:center;padding:8px 0}
.today-controls{flex:none}
@media (min-height:760px){.today .ring{width:270px;height:270px}.today .ring-c .num{font-size:132px}}
/* short phones (iPhone SE): a smaller ring and logo so «Fullfør dagen» stays above the menu */
@media (max-height:700px){.today .state{margin-top:10px}.today .cheers{margin-top:8px;gap:2px}.today .cheers .more .link{min-height:30px}.today .ring{width:188px;height:188px}.today .ring-c .num{font-size:92px}.brand.today-brand{font-size:30px;margin-bottom:2px}.day-title{font-size:21px;margin-bottom:8px}.today .quick{margin-top:16px}}

/* type */
.num{font-family:var(--num-font);font-variant-numeric:tabular-nums;font-weight:800;line-height:1}
.top{margin-bottom:16px;min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.title{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.15}
h2{font-size:15px;font-weight:700;margin:var(--section) 0 10px}
p.lead{font-size:16px;line-height:1.5;color:var(--muted)}
.edit{min-height:44px;padding:0 4px 0 12px;margin-right:-4px;font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px;flex:none}
.link{min-height:44px;padding:0 8px;font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* surfaces */
.card{background:var(--surface);border-radius:var(--r-card)}

/* buttons: large for the main action, medium for the rest */
.primary,.secondary,.fbtn,.invite-btn{width:100%;border-radius:999px;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .1s}
.primary{height:var(--h-lg);background:var(--ink);color:var(--on-ink);font-size:16px}
.primary[disabled]{opacity:.45;cursor:default}
/* Buttons, one rule: if you can tap it, it is filled dark (the main action) or white with a dark edge
   (everything else). Information never gets an edge or a pill shape. Quiet choices are underlined text. */
.secondary,.invite-btn{height:var(--h-md);background:var(--surface);color:var(--ink);border:1.5px solid var(--ink);font-weight:600}
.fbtn{height:var(--h-md)}
.q:active,.primary:active,.secondary:active,.fbtn:active,.invite-btn:active{transform:scale(.97)}
.primary svg,.secondary svg,.invite-btn svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stack-gap > * + *{margin-top:10px}

/* today */
.ring{position:relative;width:240px;height:240px;margin:0 auto}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:12}
.ring .trk{stroke:var(--line)}
.ring .prg{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1)}
.ring-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-c .num{font-size:118px;line-height:.9}
.ring-c .sub{color:var(--muted);font-size:15px;font-weight:500;margin-top:6px}
.state{text-align:center;margin:16px 0 4px;font-size:16px;font-weight:600}
.state.done::before{content:"✓ ";color:var(--accent)}
.carried{text-align:center;font-size:14px;color:var(--muted)}
.cheers{list-style:none;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:15px;color:var(--ink);margin-top:14px}
.cheers li{display:flex;align-items:center;gap:8px}
.cheers li .av{width:26px;height:26px}
.cheers b{font-weight:600}
.cheers .more .link{min-height:36px;font-size:14px;font-weight:600;color:var(--ink)}
/* all of today's cheers (sheet) */
.cheer-list{list-style:none;padding:0;margin:4px 0 0}
.cheer-list li{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.cheer-list li:first-child{border-top:0}
.cheer-list .av{width:40px;height:40px;font-size:17px}
.cheer-list div b{display:block;font-size:16px;overflow-wrap:anywhere}
.cheer-list div span{display:block;font-size:15px;margin-top:1px}
.stack{display:flex}
.stack .av{width:26px;height:26px;margin-left:-6px;box-shadow:0 0 0 2px var(--bg)}
.stack .av:first-child{margin-left:0}
.quick{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:var(--section) 0 10px}
.q{height:var(--h-lg);border-radius:999px;background:var(--surface);border:1.5px solid var(--ink);font-family:var(--num-font);font-size:22px;font-weight:800;transition:transform .1s}
.undo{display:block;margin:8px auto 0;min-height:44px;padding:0 16px;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.yesterday-link{display:block;margin:4px auto 0}
.banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 14px 20px;margin-bottom:16px;font-size:15px;font-weight:600}
.banner.tint{background:var(--accent-tint)}
.daypick{padding:16px 20px;margin-top:12px}
.daypick label{display:block;font-weight:600;font-size:16px;margin-bottom:12px}
.daypick p{color:var(--muted);font-size:14px;line-height:1.45;margin-top:12px}
.daypick select{width:100%;height:56px;padding:0 44px 0 16px;font-size:24px;font-weight:800;color:var(--ink);border:1.5px solid var(--control);border-radius:var(--r-ctl);background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316302A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/22px;-webkit-appearance:none;appearance:none}
.nudge{background:var(--accent-tint);padding:16px 18px 10px 20px;margin-bottom:16px}
.nudge b{display:block;font-size:16px}
.nudge p{color:var(--ink);font-size:14px;line-height:1.45;margin:4px 0 8px}
.nudge .row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nudge .secondary{width:auto;height:40px;padding:0 18px;background:var(--surface)}
.nudge .edit{margin-left:auto}
/* information, not a button: a plain line under a thin rule */
.card.tomorrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0 0;font-size:15px;margin-top:var(--section);background:none;border-radius:0;border-top:1px solid var(--line)}
.tomorrow > span{color:var(--muted)}
.tomorrow b{font-weight:700}
.tm{display:flex;flex-direction:column;gap:2px}
.tm span{font-size:14px;color:var(--muted)}
.champ{padding:var(--pad);text-align:center;margin-top:var(--section)}
.champ .num{font-size:60px}
.champ p{font-size:15px;color:var(--muted);margin-top:4px}
.champ .secondary{margin-top:16px}
.champ + .tomorrow{margin-top:var(--gap)}
.choice{padding:var(--pad)}
.choice h2{margin:0 0 6px;font-size:18px}
.choice p{color:var(--muted);font-size:15px;line-height:1.45;margin-bottom:16px}
.choice .secondary{margin-top:10px}
.waiting{padding:var(--pad);text-align:center}

/* progress */
.hero{padding:var(--pad)}
.hero .k{font-size:14px;color:var(--muted);font-weight:600}
.hero-n{display:flex;align-items:baseline;gap:8px;margin:4px 0 14px;flex-wrap:wrap}
.hero-n .num{font-size:78px;letter-spacing:-.01em}
.hero-n span{font-size:18px;font-weight:600;color:var(--muted)}
.bar{height:10px;border-radius:999px;background:var(--line);overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:inherit}
.bar-l{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted);margin-top:8px;font-weight:500}
.grid{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin-top:var(--section)}
.cell{aspect-ratio:1;border-radius:50%;font-size:10.5px;font-weight:600;display:grid;place-items:center;font-variant-numeric:tabular-nums;background:var(--surface);color:var(--muted)}
.cell.done{background:var(--accent);color:var(--on-accent)}
.cell.today{box-shadow:inset 0 0 0 2.5px var(--accent);color:var(--ink);font-weight:800}
.past{margin-top:16px;text-align:center;font-size:14px;color:var(--muted)}

/* avatars */
.av{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:800;flex:none}
.av svg{width:58%;height:58%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.av.big{width:60px;height:60px;font-size:22px}
.av.xl{width:84px;height:84px;font-size:30px}

/* friends */
.flist{list-style:none;display:flex;flex-direction:column;gap:10px}
.fcard{padding:12px 16px}
.fhead{display:flex;align-items:center;gap:14px}
.who{flex:1;min-width:0}
.name,.pname{font-weight:700;font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.det,.pmail{font-size:14px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.frow{display:flex;align-items:center;gap:12px}
.frow .name{font-size:16px}
.frow .det{font-size:13px;margin-top:1px}
.frow .strong{color:var(--ink);font-weight:600}
/* today's progress as a ring around the avatar */
.fring{position:relative;flex:none;width:52px;height:52px;display:grid;place-items:center}
.fring > svg{position:absolute;inset:0;transform:rotate(-90deg)}
.fring > svg circle{fill:none;stroke-width:4}
.fring .t{stroke:var(--line)}
.fring .p{stroke:var(--accent);stroke-linecap:round}
.fring .av{width:40px;height:40px;font-size:17px}
/* the send button: opens «Send heiarop»; green once you've cheered today */
.fsend{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.fsend svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fsend.done{background:var(--accent);color:var(--on-accent);box-shadow:none}
button.fsend:active{transform:scale(.94)}
/* removing a friend (edit mode): a bin in the round button, in red */
.fremove{color:var(--danger);box-shadow:inset 0 0 0 1.5px var(--danger)}
button.fremove:active{transform:scale(.94)}
/* the cheer sheet */
.ch-state{font-size:15px;color:var(--muted);margin:-6px 0 16px}
.ch-words{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* chat bubbles: what you tap is what they get */
.ch-b{min-height:52px;border-radius:18px 18px 18px 4px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--control);font-weight:400;font-size:15px;line-height:1.3;padding:8px 12px} /* a thin edge at 3:1, so each bubble reads as its own button; plain text keeps it calm */
.ch-b:active{transform:scale(.97);background:var(--accent-tint)}
.fcount{font-size:14px;color:var(--muted);margin:16px 0 0;text-align:center}
.friend-actions{margin-top:var(--gap)}
.friend-actions .link{display:block;margin:6px auto 0}
.none{color:var(--muted);font-size:15px;line-height:1.5}

/* me */
.profile{padding:var(--pad)}
.phead{display:flex;align-items:center;gap:16px}
.pinfo{flex:1;min-width:0}
.profile .secondary{margin-top:16px}
.group{padding:0 var(--pad)}
.item{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;width:100%;font-size:15px;text-align:left;border-bottom:1px solid var(--line)}
.item:last-child{border-bottom:0}
.item.link-item{font-weight:600}
.item.danger{color:var(--danger)}
.item .val{color:var(--muted);font-weight:500}
.inv{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 0}
.inv-k{font-size:15px}
.inv-v{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.group .hint + .item{border-top:1px solid var(--line)}
.item .sub{display:block;font-size:13px;color:var(--muted);font-weight:400;margin-top:2px}
/* until notifications work on this phone: the controls are greyed out, the words stay readable */
.group.dim .switch,.group.dim input{opacity:.45;cursor:default}
.hint{font-size:13px;color:var(--muted);padding:12px 0 16px;line-height:1.45}
.switch{width:52px;height:32px;border-radius:999px;background:var(--control);position:relative;flex:none;transition:background .25s ease}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform .25s cubic-bezier(.3,.7,.3,1);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.switch[aria-checked=true]{background:var(--accent)}
.switch[aria-checked=true]::after{transform:translateX(20px)}
.time{font:inherit;font-weight:600;color:var(--ink);background:var(--surface);border:1.5px solid var(--control);border-radius:var(--r-ctl);padding:0 12px;height:44px}
.foot{text-align:center;font-size:13px;color:var(--muted);margin-top:var(--section)}
.logout{margin-top:var(--section)}
/* pull to refresh (main.js) */
.ptr{position:fixed;top:calc(var(--safe-top) + 8px);left:50%;z-index:40;width:36px;height:36px;border-radius:50%;background:var(--surface);box-shadow:0 2px 8px rgba(0,0,0,.15);transform:translate(-50%,-44px);opacity:0;transition:transform .2s,opacity .2s;pointer-events:none}
.ptr svg{width:36px;height:36px;transform:rotate(-90deg)}
.ptr circle{fill:none;stroke-width:3}
.ptr .t{stroke:var(--line)}
.ptr .p{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:82px;stroke-dashoffset:82px}
.ptr.spin svg{animation:ptr-spin .8s linear infinite}
.ptr.spin .p{stroke-dashoffset:55px !important}
@keyframes ptr-spin{to{transform:rotate(270deg)}}
@media (prefers-reduced-motion:reduce){.ptr.spin svg{animation:none}}
.quiet-links{display:flex;flex-direction:column;align-items:center;margin-top:20px}
.quiet-links .link{font-size:14px;font-weight:500;color:var(--muted)}
.quiet-links .link.danger{color:var(--danger)}

/* pages that cover the app (profile editor, privacy) */
.page{position:fixed;inset:0;z-index:20;display:flex;justify-content:center;background:#E2E5E3}
.page-in{width:100%;max-width:480px;background:var(--bg);display:flex;flex-direction:column}
.page-h{padding:calc(var(--safe-top) + 20px) 22px 0;flex:none}
.page-body{flex:1;overflow-y:auto;padding:0 22px 24px}
.page-foot{flex:none;padding:12px 22px calc(16px + var(--safe-bottom));border-top:1px solid var(--line)}
.anim-up{animation:up .25s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(40px);opacity:0}}
@keyframes down{from{transform:translateY(-40px);opacity:0}}
.who-row{display:flex;align-items:flex-end;gap:14px}
.field{display:block;flex:1;font-size:14px;font-weight:600}
.field input{display:block;width:100%;margin-top:6px;height:var(--h-md);padding:0 14px;font-size:17px;font-weight:500;background:var(--surface);border:1.5px solid var(--control);border-radius:var(--r-ctl)}
.field .fhint{display:block;font-weight:400;color:var(--muted);font-size:13px;margin-top:6px}
.field .ferr{display:block;font-weight:600;color:var(--danger);font-size:14px;margin-top:8px}
.swatches,.glyphs{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.swatches button{aspect-ratio:1;border-radius:50%;min-width:44px}
.swatches button.light{box-shadow:inset 0 0 0 1.5px var(--control)}
.swatches button[aria-checked=true]{box-shadow:0 0 0 3px var(--bg),0 0 0 5.5px var(--ink)}
.glyphs button{aspect-ratio:1;border-radius:var(--r-ctl);background:var(--surface);display:grid;place-items:center;font-weight:700;font-size:16px}
.glyphs svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.glyphs button[aria-checked=true]{background:var(--ink);color:var(--on-ink)}
.glyphs button[aria-checked=true] svg{stroke:var(--on-ink)}
.prose p{font-size:16px;line-height:1.55;margin-bottom:14px}

/* bottom sheets and dialogs */
.backdrop{position:fixed;inset:0;z-index:30;background:rgba(10,20,17,.45);display:flex;align-items:flex-end;justify-content:center}
.backdrop.center{align-items:center;padding:20px}
.backdrop.top{align-items:flex-start}
.backdrop.top .sheet{border-radius:0 0 28px 28px;padding-top:calc(22px + var(--safe-top));padding-bottom:22px;animation-name:down}
.sheet{width:100%;max-width:480px;max-height:92dvh;overflow-y:auto;background:var(--bg);border-radius:28px 28px 0 0;padding:22px 22px calc(22px + var(--safe-bottom));animation:up .25s cubic-bezier(.2,.8,.2,1)}
.sheet .top{margin-bottom:8px}
.sheet .title{font-size:24px}
.sheet p{color:var(--muted);font-size:15px;line-height:1.45;margin-bottom:18px}
.dialog{width:100%;max-width:360px;background:var(--surface);border-radius:24px;padding:24px;animation:pop .25s cubic-bezier(.2,.8,.2,1)}
.dialog p{font-size:16px;line-height:1.45;margin-bottom:20px}
.dialog .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.danger-btn{background:var(--danger);color:#fff}
.code-big{font-family:var(--num-font);font-weight:800;font-size:40px;letter-spacing:.12em;text-align:center;padding:10px 0 4px;user-select:all}
.qr{display:flex;flex-direction:column;align-items:center;gap:12px;margin:8px 0 18px}
.qr svg{width:220px;height:220px;background:#fff;padding:14px;border-radius:16px}
.qr p{margin:0;text-align:center}
.qr.big{margin:4px 0 22px}
.qr.big svg{width:min(280px,76vw);height:min(280px,76vw)}

/* day 100 */
.finale{width:100%;max-width:400px;background:var(--surface);border-radius:28px;padding:28px 24px 24px;text-align:center;animation:pop .35s cubic-bezier(.2,.8,.2,1)}
@keyframes pop{from{transform:scale(.9);opacity:0}}
.fin-n{font-size:104px;color:var(--accent);line-height:.9}
.finale h2{font-size:26px;margin:6px 0}
.finale p{font-size:15px;color:var(--muted);line-height:1.45}
.fin-q{margin-top:16px;font-weight:600;color:var(--ink)!important}
.finale .primary{margin-top:16px}
.finale .fin-hint{font-size:13px;margin-top:8px}
.finale .secondary{margin-top:16px}
.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:50}

/* sign-in, onboarding and invite pages */
.landing{flex:1;display:flex;flex-direction:column;padding:calc(var(--safe-top) + 48px) 22px calc(28px + var(--safe-bottom))}
/* the name as a logo: narrow, slanted and heavy, like the numbers on a running shirt */
.brand{font-family:'Barlow Condensed',var(--num-font);font-style:italic;font-weight:900;font-size:34px;line-height:1;text-transform:uppercase;letter-spacing:-.005em}
/* landing and invite pages, in four groups: the name; the count with the climb (one bar per day); the
   pitch; the action. About 40px between groups, 6–14px inside one. The action sits a little below the
   pitch (at most 72px), so it stays with the text on tall phones. */
.landing.hero-page{padding-top:calc(var(--safe-top) + 28px)}
.landing .grow{flex:1}
.hero-page .grow{min-height:28px}
.hero-page .grow.g1{flex:0 1 72px;min-height:32px}
.brand-mark{font-family:var(--num-font);font-weight:800;font-size:112px;line-height:.85;color:var(--accent);margin-top:40px;font-variant-numeric:tabular-nums}
.brand-cap{font-size:16px;font-weight:600;color:var(--muted);margin-top:8px}
.climb{display:flex;align-items:flex-end;gap:1px;height:46px;margin-top:14px}
.climb i{flex:1;background:var(--line);border-radius:1px 1px 0 0;transition:background .25s}
.climb i.on{background:var(--accent)}
.climb-ax{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:6px}
/* the headline is smaller than 5050 on purpose, one sentence per line */
.hero-page .title{font-size:26px;line-height:1.2;margin-top:40px}
.hero-page .title .s{display:block}
.invite-head{display:flex;align-items:center;gap:12px;margin-top:40px}
.hero-page .invite-head .title{margin:0}
.landing.hero-page .lead{margin-top:12px}
.landing.hero-page .cta{margin-top:0}
/* short phones (iPhone SE and smaller): everything shrinks a little so the button is on screen without scrolling */
@media (max-height:740px){
  .landing.hero-page{padding-top:calc(var(--safe-top) + 18px);padding-bottom:calc(16px + var(--safe-bottom))}
  .brand{font-size:30px}
  .brand-mark{font-size:84px;margin-top:24px}
  .climb{height:36px;margin-top:12px}
  .hero-page .title,.invite-head{margin-top:24px}
  .hero-page .title{font-size:24px}
  .hero-page .grow,.hero-page .grow.g1{min-height:16px}
}
@media (max-height:600px){
  .brand-mark{font-size:64px;margin-top:16px}
  .brand-cap{font-size:14px;margin-top:4px}
  .climb{height:26px;margin-top:10px}
  .hero-page .title,.invite-head{margin-top:18px}
  .hero-page .title{font-size:21px}
  .landing.hero-page .lead{font-size:15px;margin-top:8px}
  .invite-head .av.big{width:44px;height:44px;font-size:19px}
}
.landing.centered{justify-content:center;padding-top:calc(var(--safe-top) + 28px)}
.landing .cta{margin-top:36px}
.landing .lead{margin-top:10px}
.g-btn{text-decoration:none;color:inherit;height:var(--h-lg);width:100%;border-radius:999px;background:var(--surface);border:1.5px solid var(--control);display:flex;align-items:center;justify-content:center;gap:12px;font-weight:600;font-size:16px}
.g-btn svg{width:20px;height:20px}
.g-ic{display:grid;place-items:center}
.g-btn.strong{background:var(--ink);color:var(--on-ink);border-color:var(--ink);font-weight:700}
.g-btn.strong .g-ic{width:30px;height:30px;border-radius:50%;background:#fff;margin-left:-6px}
.g-btn.strong .g-ic svg{width:18px;height:18px}
.cta-note{margin-top:12px;text-align:center;font-size:14px;color:var(--muted)}
.title.pitch{margin-top:4px}
.invcard{margin:4px 0 20px}
.steps{list-style:none;counter-reset:s;margin-top:20px}
.steps li{position:relative;padding:0 0 18px 46px;font-size:16px;line-height:1.45;counter-increment:s}
.steps .sym{display:inline-grid;place-items:center;width:28px;height:26px;margin:0 2px;vertical-align:-7px;border-radius:7px;background:var(--surface);border:1px solid var(--line)}
.steps .sym svg{width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.steps .sym circle{fill:var(--accent);stroke:none}
.steps b{font-weight:700}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin-top:16px;border-radius:999px;background:var(--accent-tint)}
.seg-b{height:40px;border-radius:999px;font-weight:600;font-size:15px;color:var(--ink)}
.seg-b[aria-selected=true]{background:var(--surface);font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.steps li::before{content:counter(s);position:absolute;left:0;top:-3px;width:32px;height:32px;border-radius:50%;background:var(--accent-tint);display:grid;place-items:center;font-weight:700;font-size:15px}
/* choice cards: an edge and a round marker that fills when chosen, so they read as «pick one» */
.opt{position:relative;display:block;width:100%;text-align:left;padding:18px var(--pad);margin-top:var(--gap);border:1.5px solid var(--control)}
button.opt[aria-pressed]{padding-right:56px}
button.opt[aria-pressed]::after{content:'';position:absolute;right:20px;top:50%;width:22px;height:22px;margin-top:-11px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--control)}
button.opt[aria-pressed=true]::after{box-shadow:inset 0 0 0 7px var(--ink)}
.opt b{display:block;font-size:18px}
.opt span{display:block;color:var(--muted);font-size:15px;margin-top:2px}
.opt[aria-pressed=true]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.inviter{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;margin:12px 0 8px}
.inviter .title{font-size:26px}
.stepper{margin:-20px 0 34px}
.stepper .brand{margin-bottom:26px}
/* the guide's footer: «Neste», and the back arrow that folds out from nothing as «Neste» makes room */
.onb-foot{display:flex;margin-top:24px} /* never closer than this to what is above, however tall it gets */
.onb-foot .primary{flex:1;min-width:0}
.onb-foot .round{flex:none;width:0;height:var(--h-lg);margin:0;padding:0;border-radius:50%;display:grid;place-items:center;opacity:0;transform:scale(.6);overflow:hidden;border-width:0;
  transition:width .35s cubic-bezier(.2,.8,.2,1),margin .35s cubic-bezier(.2,.8,.2,1),opacity .25s .1s,transform .35s cubic-bezier(.2,.8,.2,1),border-width .35s}
.onb-foot.open .round{width:var(--h-lg);margin-right:10px;opacity:1;transform:none;border-width:1.5px}
.onb-foot .round svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.onb-foot .round{transition:none}}
.stepper-bar{list-style:none;display:flex;margin:10px 0 0;padding:0}
.stepper-bar li{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;font-size:13px;line-height:1.3;color:var(--muted)}
.stepper-bar li+li::before{content:'';position:absolute;top:13px;right:calc(50% + 18px);width:calc(100% - 36px);height:2px;border-radius:1px;background:var(--line)}
.stepper-bar li.done+li::before{background:var(--accent)}
.stepper-bar i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;margin-bottom:6px;font-style:normal;font-size:14px;font-weight:700;background:var(--surface);color:var(--muted);box-shadow:inset 0 0 0 2px var(--line)}
.stepper-bar i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.stepper-bar li.done i{background:var(--accent);color:var(--on-accent);box-shadow:none}
.stepper-bar li.on i{background:var(--ink);color:var(--on-ink);box-shadow:none}
.stepper-bar li.on{color:var(--ink);font-weight:700}

/* chrome */
.toast{position:fixed;left:50%;top:calc(var(--safe-top) + 10px);transform:translate(-50%,-16px);width:calc(100% - 24px);max-width:456px;display:flex;align-items:center;gap:10px;background:var(--surface);color:var(--ink);font-size:15px;line-height:1.35;padding:12px 14px;border-radius:16px;box-shadow:0 6px 20px rgba(10,20,17,.16);opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;z-index:60}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast-ic{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff}
.toast-ic svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.toast.bad .toast-ic{background:var(--danger)}
@media (prefers-reduced-motion:reduce){.toast{transition:opacity .2s}}
.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;z-index:10;height:calc(76px + var(--safe-bottom));padding:6px 8px var(--safe-bottom);display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);background:var(--bg)}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:13px;font-weight:600;color:var(--muted);border-radius:14px}
.tab i{display:grid;place-items:center;width:52px;height:30px;border-radius:999px}
.tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tab[aria-current]{color:var(--ink);font-weight:700}
.tab[aria-current] i{background:var(--accent-tint)}

/* development panel (only with ?dev=1) */
.devbtn{position:fixed;right:8px;bottom:calc(86px + var(--safe-bottom));z-index:70;height:28px;padding:0 10px;border-radius:999px;background:#111;color:#fff;font:600 12px/28px system-ui;opacity:.7}
.devpanel{position:fixed;left:8px;right:8px;bottom:calc(122px + var(--safe-bottom));margin:0 auto;z-index:70;max-width:420px;background:#111;color:#fff;border-radius:16px;padding:14px;font:14px/1.4 system-ui;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.devpanel p{grid-column:1/-1;opacity:.8}
.devpanel button{height:40px;border-radius:10px;background:#2a2a2a;color:#fff;font:600 13px system-ui}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
