/* Vantum helper. Brand from vantum/brand/master (as the R3 site): Vantum blue
   on white, Archivo, JetBrains Mono for numbers. Rules: nothing under 15px, one
   main action per screen, big tap targets (56px and up), motion 120 to 180ms. */
/* Fonts cut for cheap phones on slow data (9 October): Archivo held to the weights (400 to 700) and
   widths (78% to 100%) the pages use and to Latin letters, 43 KB instead of 88; JetBrains Mono to plain
   Latin, 8 KB instead of 31. While they load, Arial or Roboto sized to match stands in (no jump). */
@font-face{font-family:Archivo;src:url('/fonts/archivo-v2.woff2') format('woff2');font-weight:400 700;font-stretch:78% 100%;font-display:swap}
@font-face{font-family:'Archivo Fallback';src:local('Arial'),local('ArialMT'),local('Roboto'),local('Helvetica');size-adjust:98%;ascent-override:89.6%;descent-override:21.4%;line-gap-override:0%}
@font-face{font-family:Mono;src:url('/fonts/mono-v2.woff2') format('woff2');font-weight:400 700;font-display:swap}
:root{--blue:#1a3bd2;--blue-dark:#1230b5;--blue-soft:#e8ecfb;--ink:#0a0a0a;--grey:#f2f2f4;--muted:#5d5d66;--line:#dcdce2;--good:#0f7a3d;--bad:#b42318;color:var(--ink);background:var(--grey);font-family:Archivo,'Archivo Fallback',system-ui,sans-serif;font-synthesis:none;-webkit-text-size-adjust:100%}
*{box-sizing:border-box}
body{margin:0;font-size:17px;line-height:1.45;background:var(--grey)}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
a,button,input,select,textarea,label{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
img{display:block;max-width:100%}
svg{flex-shrink:0}
.icon{width:24px;height:24px}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Frame */
.shell{max-width:520px;min-height:100svh;margin:0 auto;background:#fff;display:flex;flex-direction:column}
.top{height:64px;padding:0 20px;display:flex;align-items:center;gap:8px;flex:0 0 auto}
.top-logo img{width:112px;height:auto}
.top-back{display:grid;place-items:center;width:48px;height:48px;margin-left:-12px}
.top-credits{margin-left:auto;display:flex;align-items:center;gap:7px;min-height:48px;padding:0 4px;font-family:Mono,monospace;font-size:19px;font-weight:600;color:var(--blue)}
.top-credits .icon{width:22px;height:22px}
.top-link{margin-left:auto;min-height:48px;display:flex;align-items:center;font-size:16px;font-weight:600;color:var(--blue)}
.screen{padding:16px 20px 36px;flex:1 0 auto;display:flex;flex-direction:column}

/* Type */
.title{font-size:clamp(34px,10vw,46px);line-height:1.02;font-weight:700;font-stretch:82%;letter-spacing:-.03em}
.title-md{font-size:30px;line-height:1.08;font-weight:700;font-stretch:85%;letter-spacing:-.025em}
.lead{font-size:20px;line-height:1.38;letter-spacing:-.01em}
.note{font-size:15px;line-height:1.5;color:var(--muted)}
.label{display:block;font-size:16px;font-weight:600;margin-bottom:8px}
.blue-text{color:var(--blue)}
.num{font-family:Mono,monospace;letter-spacing:-.02em}
.center{text-align:center}
.muted{color:var(--muted)}
.pad-top{padding-top:24px}

/* Layout */
.stack>*+*{margin-top:14px}
.stack-lg>*+*{margin-top:22px}
.row{display:flex;align-items:center;gap:12px}
.grow{flex:1}
.push-down{margin-top:auto;padding-top:24px}
.card{background:var(--grey);border-radius:14px;padding:18px}
.card-white{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:18px}

/* Buttons */
.btn{width:100%;min-height:60px;padding:14px 18px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:19px;font-weight:600;line-height:1.2;letter-spacing:-.015em;text-align:center;cursor:pointer;transition:transform .14s,background-color .14s}
.btn:active{transform:scale(.98)}
.btn[disabled],.btn.busy{opacity:.6;cursor:wait}
.btn .icon{width:22px;height:22px}
.primary{background:var(--blue);color:#fff}
.primary:hover{background:var(--blue-dark)}
.ghost{background:var(--grey);color:var(--ink)}
.outline{background:#fff;color:var(--blue);border:2px solid var(--blue)}
.link-btn{background:none;color:var(--blue);min-height:50px;font-size:17px;text-decoration:underline;text-underline-offset:4px}
.btn-big{min-height:72px;font-size:22px}

/* Forms */
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{display:block;width:100%;min-height:58px;padding:14px 16px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:19px;line-height:1.3}
textarea{min-height:120px;resize:vertical}
input::placeholder,textarea::placeholder{color:#76767f;opacity:1}
input:focus,select:focus,textarea:focus{border-color:var(--blue);outline:none}
input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.field{display:block}
.field+.field{margin-top:16px}
.code-input{font-family:Mono,monospace!important;font-size:34px!important;letter-spacing:.5em;text-align:center;min-height:72px!important}
.phone-input{font-family:Mono,monospace!important;font-size:24px!important;letter-spacing:.02em}
.photo-pick{display:flex;align-items:center;gap:14px;min-height:96px;padding:18px;border:2px dashed #c3c3cf;border-radius:14px;cursor:pointer;font-size:18px;font-weight:600}
.photo-pick .icon{width:32px;height:32px;color:var(--blue)}
.choices{display:grid;gap:10px}
.choice{display:flex;align-items:center;gap:12px;min-height:58px;padding:12px 16px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font-size:18px;font-weight:500;text-align:left;cursor:pointer}
.choice[aria-pressed=true],.choice.on{border-color:var(--blue);background:var(--blue-soft)}

/* Messages */
.error{padding:14px 16px;border-left:4px solid var(--bad);background:#fdf1f0;font-size:16px;line-height:1.45;border-radius:4px}
.ok-box{padding:14px 16px;border-left:4px solid var(--good);background:#eef8f1;font-size:16px;line-height:1.45;border-radius:4px}
.hint{padding:14px 16px;background:var(--blue-soft);border-radius:12px;font-size:16px;line-height:1.45}

/* Tool tiles on home */
.tiles{display:grid;gap:10px}
.tile{display:flex;align-items:center;gap:14px;min-height:80px;padding:14px 16px;border-radius:14px;background:var(--grey);transition:background-color .14s}
.tile:active{background:#e6e6ea}
.tile-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;background:var(--blue);color:#fff}
.tile-icon .icon{width:26px;height:26px}
.tile-text{flex:1;min-width:0}
.tile-title{display:block;font-size:19px;font-weight:700;letter-spacing:-.015em}
.tile-sub{display:block;font-size:15px;color:var(--muted);margin-top:2px}
.tile>.icon{color:var(--muted)}

/* Credits and rewards */
.balance{display:flex;align-items:baseline;gap:10px}
.balance-num{font-family:Mono,monospace;font-size:56px;font-weight:600;letter-spacing:-.04em;color:var(--blue);line-height:1}
.balance-word{font-size:20px;font-weight:600}
.reward-num{font-size:clamp(96px,30vw,150px);line-height:.95;font-weight:700;font-stretch:78%;letter-spacing:-.04em}
.price{display:inline-flex;align-items:center;gap:6px;font-family:Mono,monospace;font-size:16px;font-weight:600;color:var(--blue)}
.price .icon{width:18px;height:18px}

/* Chat */
.chat-log{display:flex;flex-direction:column;gap:10px;padding-bottom:12px}
.bubble{max-width:86%;padding:12px 15px;border-radius:16px;font-size:17px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble.ai{align-self:flex-start;background:var(--grey);border-bottom-left-radius:5px}
.bubble.me{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:5px}
.bubble.wait{color:var(--muted)}
.composer{position:sticky;bottom:0;display:flex;gap:8px;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:#fff}
.composer textarea,.composer input{min-height:56px;flex:1}
.composer textarea{height:56px;min-height:56px;max-height:160px;resize:none}
.composer .btn{width:56px;min-height:56px;padding:0;flex:0 0 56px}
.quick{display:flex;flex-wrap:wrap;gap:8px}
.quick button{min-height:48px;padding:10px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;font-size:16px;font-weight:500;cursor:pointer}

/* Progress */
.progress{height:8px;background:var(--grey);border-radius:4px;overflow:hidden}
.progress>i{display:block;height:100%;background:var(--blue);border-radius:4px;transition:width .18s}
.spinner{width:36px;height:36px;border:4px solid var(--blue-soft);border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}

/* Lists (jobs, history) */
.list{display:grid;gap:10px}
.item{display:block;padding:16px;border-radius:14px;background:var(--grey)}
.item-title{display:block;font-size:18px;font-weight:700;line-height:1.3}
.item-sub{display:block;font-size:15px;color:var(--muted);margin-top:4px}
.ledger-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:16px}
.ledger-row .num{font-weight:600}
.plus{color:var(--good)}
.minus{color:var(--ink)}

/* Previews (CV, advert) */
.preview{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px #0a0a0a1f;background:#fff}
.preview img,.preview canvas{width:100%;height:auto}
.locked{position:relative}
.locked::after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#fff 70%)}

/* The reward moment */
.blue{background:var(--blue)}
.blue .shell{background:var(--blue);color:#fff}
.blue .top-credits,.blue .top-link{color:#fff}
.blue .note{color:#e6e9fb}
.blue .primary{background:#fff;color:var(--blue)}
.blue .ghost{background:#2c4ad8;color:#fff}
.blue .card{background:#2c4ad8}

@media(min-width:760px){body{padding:28px 0}.shell{border-radius:22px;min-height:calc(100svh - 56px);overflow:hidden;box-shadow:0 14px 70px #0a0a0a0d}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* First screens: small drawn pictures, no stock images on slow data */
.land-art{position:relative;height:210px;margin:4px 0 2px}
.doc{position:absolute;left:50%;top:6px;width:168px;height:196px;margin-left:-104px;padding:16px 14px;background:#fff;border-radius:10px;box-shadow:0 14px 34px #0a0a0a22;transform:rotate(-4deg);display:flex;flex-direction:column;gap:8px}
.doc i{display:block;height:7px;border-radius:4px;background:#e1e1e8;width:100%}
.doc i.doc-head{height:14px;width:70%;background:var(--blue)}
.doc i.w80{width:80%}.doc i.w70{width:70%}.doc i.w60{width:60%}.doc i.w40{width:40%}
.doc b{display:block;height:9px;width:45%;border-radius:4px;background:#0a0a0a;margin-top:4px}
.stamp{position:absolute;right:6%;bottom:8px;display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--blue);color:#fff;border:4px solid #fff;border-radius:14px;transform:rotate(5deg);font-size:16px;font-weight:700;box-shadow:0 8px 22px #1a3bd240}
.stamp .icon{width:22px;height:22px}
.ad{position:absolute;left:50%;top:0;width:176px;margin-left:-108px;padding:10px 10px 14px;background:#0a0a0a;color:#fff;border-radius:12px;box-shadow:0 14px 34px #0a0a0a33;transform:rotate(-4deg);display:flex;flex-direction:column;gap:6px}
.ad-photo{height:118px;border-radius:8px;background:#2a2a30;display:grid;place-items:center;color:#f6c44a}
.ad-photo .icon{width:46px;height:46px}
.ad strong{font-size:22px;color:#f6c44a;font-stretch:85%}
.ad span{font-size:15px}
.jobs-art{gap:10px;padding:16px 12px;justify-content:center}
.jobs-art span,.chat-art span{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:600;padding:9px 10px;background:var(--grey);border-radius:8px}
.jobs-art .icon{width:18px;height:18px;color:var(--blue)}
.chat-art{gap:10px;justify-content:center}
.chat-art .q{align-self:flex-end;background:var(--blue);color:#fff}
.chat-art .a{font-weight:500}

/* The one big "do this next" tile on home (the daily spin) */
.tile-hero{background:var(--blue);color:#fff;min-height:104px}
.tile-hero:active{background:var(--blue-dark)}
.tile-hero .tile-icon{background:#fff;color:var(--blue);width:58px;height:58px}
.tile-hero .tile-title{font-size:23px}
.tile-hero .tile-sub{color:#fff;font-size:17px}
.tile-hero>.icon{color:#fff}

/* First screens with a real example of the result */
.land-example{position:relative;margin:4px auto 0;width:min(78%,300px)}
.land-example img{width:100%;height:auto;border-radius:10px;box-shadow:0 16px 40px #0a0a0a2b;transform:rotate(-3deg);background:#fff}
.land-example .stamp{right:-6%;bottom:14px}
.land-perks{display:grid;gap:8px}
.land-perks span{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600}
.land-perks .icon{width:22px;height:22px;color:var(--blue)}
.land-odds{display:flex;gap:10px;align-items:flex-start}
.land-odds .icon{color:var(--blue);margin-top:2px}
