/* TheDayRate landing page. Look A ("Clean neobank"), same tokens as the app.
   Colours only from tokens; light and dark come from data-theme.
   Shape rule: photos 20px, cards 16px, buttons and inputs 10px. */

:root{--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);--r-photo:20px}
*{box-sizing:border-box}
html{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--text);font:17px/1.55 var(--font-sans);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
::selection{background:var(--accent-soft)}
a{color:var(--accent-hover)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
a,button{touch-action:manipulation}
h1,h2,h3,p,figure,ol,ul{margin:0}
img{display:block;max-width:100%;height:auto}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:var(--radius-sm);background:var(--ghost);color:var(--text);font:600 15.5px/1 var(--font-sans);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .15s ease,transform .16s var(--ease-out)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.6;cursor:progress}
.btn-primary{background:var(--accent);color:var(--on-accent)}
.btn-small{min-height:40px;padding:0 16px;font-size:14.5px}
.btn-block{display:flex;width:100%}
@media (hover:hover) and (pointer:fine){
  .btn:hover{background:var(--line)}
  .btn-primary:hover{background:var(--accent-hover)}
}

.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:1280px;height:72px;margin:0 auto;padding:0 32px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:-.02em;color:var(--text);text-decoration:none}
.logo img{width:32px;height:32px}
.tabs{display:flex;gap:4px;margin-left:auto}
.tabs a{display:flex;align-items:center;min-height:40px;padding:0 14px;border-radius:var(--radius-sm);color:var(--text-muted);font-size:15px;font-weight:600;text-decoration:none;transition:color .15s ease,background .15s ease}
@media (hover:hover) and (pointer:fine){.tabs a:hover{color:var(--text);background:var(--card)}}

/* Hero: words left, a real backstage photo right with live pieces of the app on it */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:64px;align-items:center;max-width:1280px;margin:0 auto;padding:24px 32px 96px;min-height:calc(100dvh - 72px)}
.hero h1{font-size:clamp(48px,6.4vw,88px);line-height:1.02;font-weight:800;letter-spacing:-.045em;text-wrap:balance;padding-bottom:.06em}
.hero h1 em{font-style:italic;color:var(--accent-hover);padding-right:.04em}
.lede{margin-top:24px;font-size:20px;color:var(--text-muted);max-width:30ch}
.hero .join{margin-top:36px;max-width:480px}
.hero-visual{position:relative;justify-self:end;width:100%;max-width:580px;aspect-ratio:1/1;border-radius:28px;background:var(--accent-soft)}
.ui-clients{position:absolute;left:36px;right:36px;top:96px;padding:20px 22px 10px;display:flex;flex-direction:column}
.client{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.ui-label + .client{border-top:0;margin-top:6px}
.client-text{flex:1;min-width:0;display:flex;flex-direction:column;font-size:15px;line-height:1.35}
.client-text span{color:var(--text-muted);font-size:14px}
.chip{flex:none;padding:4px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent-hover);font-size:13px;font-weight:700}
.ui-invoice{position:absolute;left:-28px;bottom:36px;width:290px;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.inv-line{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}
.inv-line b{font-size:22px;font-weight:800;letter-spacing:-.02em}

.ui-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(15,27,45,.06),0 8px 20px rgba(15,27,45,.09);color:var(--text)}
.ui-paid{position:absolute;top:24px;right:-28px;display:flex;align-items:center;gap:12px;padding:12px 16px;min-width:300px}
.ui-paid-text{flex:1;display:flex;flex-direction:column;font-size:14.5px;line-height:1.35}
.ui-paid-text span{color:var(--text-muted);font-size:13.5px}
.ui-paid-amount{font-weight:700;color:var(--success);font-size:15px}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--h) 20%,var(--card));color:var(--text);font-weight:700;font-size:13px}
.ui-label{font-size:14px;font-weight:600;color:var(--text-muted)}

/* Flow: diary to invoice to paid */
.flow{max-width:1280px;margin:0 auto;padding:40px 32px 112px}
.flow h2,.cell h2,.band h2,.close h2{letter-spacing:-.03em;font-weight:800}
.flow > h2{font-size:clamp(34px,3.6vw,48px);margin-bottom:40px}
.flow-steps{list-style:none;padding:0;display:grid;grid-template-columns:1.1fr 1.2fr 1fr;gap:28px;position:relative}
.flow-steps::before{content:"";position:absolute;left:0;right:0;top:84px;height:2px;background:var(--line);transform-origin:left center}
.flow-step{position:relative;display:flex;flex-direction:column;gap:14px}
.flow-step h3{font-size:19px;font-weight:700;letter-spacing:-.01em}
.flow-step p{color:var(--text-muted);font-size:16px;max-width:34ch}
.ui-diary,.ui-line,.ui-in{display:flex;align-items:center;gap:14px;padding:16px 18px;position:relative}
.ui-diary span,.ui-line > span,.ui-in span{display:flex;flex-direction:column;font-size:15px;line-height:1.35}
.ui-diary span span,.ui-line span span,.ui-in span span{color:var(--text-muted);font-size:14px}
.ui-diary i,.ui-in i{font-size:26px;flex:none}
.ui-diary i{color:var(--accent)}
.ui-in i{color:var(--success)}
.ui-line{justify-content:space-between}
.ui-line-total{font-size:20px;font-weight:800}

/* Bento: four cells, two of them photos */
.bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1280px;margin:0 auto;padding:0 32px 112px}
.cell{background:var(--card);border:1px solid var(--line);border-radius:var(--r-photo);padding:32px;overflow:hidden;display:flex;flex-direction:column;gap:10px}
.cell h2{font-size:28px;line-height:1.1}
.cell p{color:var(--text-muted);font-size:16px;max-width:42ch}
.cell-rates{grid-column:span 2}
.rates{list-style:none;padding:0;margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rates li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--radius-sm);background:var(--bg);font-size:15.5px}
.rates b{font-weight:700}
.cell-photo{padding:0}
.cell-photo img{width:100%;aspect-ratio:16/10;object-fit:cover}
.cell-tall{grid-row:span 2}
.cell-tall img{aspect-ratio:auto;flex:1;min-height:320px}
.cell-text{padding:24px 32px 32px;display:flex;flex-direction:column;gap:8px}
.cell-tax{background:var(--accent-soft);border-color:transparent}
.tax-example{margin-top:auto;padding:16px 18px;display:flex;flex-direction:column;gap:8px;box-shadow:none}
.tax-row{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.tax-add b{color:var(--accent-hover)}
.tax-note{font-size:13px;color:var(--text-muted)}

/* Full-width photo band */
.band{position:relative;max-width:1280px;margin:0 auto 112px;padding:0 32px}
.band img{width:100%;height:440px;object-fit:cover;border-radius:var(--r-photo)}
.band-text{position:absolute;left:32px;right:32px;bottom:0;padding:48px;border-radius:0 0 var(--r-photo) var(--r-photo);background:linear-gradient(to top,rgba(8,12,22,.88),rgba(8,12,22,.6) 60%,rgba(8,12,22,0));color:#F4F6FA}
.band h2{font-size:clamp(30px,3.4vw,44px);max-width:22ch;line-height:1.08}
.band p{margin-top:10px;font-size:18px;max-width:46ch;color:#D9E0EC}

/* About us */
.about{max-width:1280px;margin:0 auto;padding:0 32px 112px}
.about h2{font-size:clamp(34px,3.6vw,48px);letter-spacing:-.03em;font-weight:800}
.about-lede{margin-top:12px;color:var(--text-muted);font-size:18px;max-width:52ch}
.people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:32px}
.person{display:grid;grid-template-columns:150px 1fr;grid-template-rows:auto auto 1fr;column-gap:24px;row-gap:4px;padding:28px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-photo)}
.person-photo{grid-row:1 / 4;width:150px;height:150px;border-radius:var(--radius);object-fit:cover;background:var(--ghost)}
.person h3{font-size:22px;font-weight:800;letter-spacing:-.02em}
.person-role{color:var(--accent-hover);font-weight:600;font-size:15px}
.person p:last-child{color:var(--text-muted);font-size:16px}

/* Closing signup */
.close{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;max-width:1280px;margin:0 auto;padding:0 32px 112px}
.close img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--r-photo)}
.close h2{font-size:clamp(40px,4.4vw,60px);line-height:1}
.close-copy > p{margin-top:16px;color:var(--text-muted);font-size:18px;max-width:38ch}
.close .join{margin-top:28px;max-width:480px}

/* Waitlist form */
.join{display:flex;flex-direction:column;gap:8px}
.join label{font-size:15px;font-weight:600}
.join input[type=email]{width:100%;min-height:48px;padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--card);color:var(--text);font:inherit;font-size:16px;transition:border-color .15s ease,box-shadow .15s ease}
.join input[type=email]::placeholder{color:var(--text-faint)}
.join input[type=email]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.join-row{display:flex;gap:8px}
.join-row input{flex:1;min-width:0}
.join-note{min-height:1.5em;font-size:14.5px;color:var(--text-muted)}
.trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:1280px;margin:0 auto;padding:24px 32px 40px;border-top:1px solid var(--line);font-size:14.5px;color:var(--text-muted)}
.team-link{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;color:var(--text-muted);text-decoration:none;font-size:13.5px;font-weight:600}
@media (hover:hover) and (pointer:fine){.team-link:hover{background:var(--card);color:var(--text)}}

/* Motion. Each move has a job: the hero arrives in reading order; the
   "ready to invoice" card rises onto the photo, then the payment lands like a
   phone notification (the product's promise, acted out once); the flow draws
   left to right as you reach it; later sections fade up as they arrive. */
@keyframes rise{from{opacity:0;transform:translateY(14px)}}
@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.96)}}
@keyframes notify{from{opacity:0;transform:translateY(-14px) scale(.96)}}
@media (prefers-reduced-motion: no-preference){
  .hero-copy > *{animation:rise .7s var(--ease-out) both}
  .hero-copy > :nth-child(2){animation-delay:.07s}
  .hero-copy > :nth-child(3){animation-delay:.14s}
  .hero-visual{animation:rise .8s var(--ease-out) .1s both}
  .ui-clients{animation:pop .6s var(--ease-out) .35s both}
  .ui-invoice{animation:pop .6s var(--ease-out) .9s both}
  .ui-paid{animation:notify .55s var(--ease-out) 1.8s both}
  .reveal-ready .flow-steps::before{transform:scaleX(0);transition:transform 1.1s var(--ease-in-out) .15s}
  .reveal-ready .flow.is-in .flow-steps::before{transform:none}
  .reveal-ready .flow-step{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s var(--ease-out)}
  .reveal-ready .flow.is-in .flow-step{opacity:1;transform:none}
  .reveal-ready .flow.is-in .flow-step:nth-child(2){transition-delay:.25s}
  .reveal-ready .flow.is-in .flow-step:nth-child(3){transition-delay:.5s}
  .reveal-ready .cell,.reveal-ready .band,.reveal-ready .about,.reveal-ready .close{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s var(--ease-out)}
  .reveal-ready .cell.is-in,.reveal-ready .band.is-in,.reveal-ready .about.is-in,.reveal-ready .close.is-in{opacity:1;transform:none}
  .reveal-ready .bento .cell:nth-child(2){transition-delay:.06s}
  .reveal-ready .bento .cell:nth-child(3){transition-delay:.12s}
  .reveal-ready .bento .cell:nth-child(4){transition-delay:.18s}
  .join-note{transition:opacity .3s ease}
  .join-note:empty{opacity:0}
}

@media (max-width: 1024px){
  .hero{grid-template-columns:1fr;gap:48px;min-height:0;padding-bottom:72px}
  .hero-visual{justify-self:center}
  .tabs{display:none}
  .ui-invoice{left:-12px}
  .ui-paid{right:-12px}
  .people{grid-template-columns:1fr}
  .flow-steps{grid-template-columns:1fr;gap:36px}
  .flow-steps::before{display:none}
  .bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cell-tall{grid-row:auto}
  .cell-tall img{aspect-ratio:16/10;flex:none;min-height:0}
  .close{grid-template-columns:1fr;gap:32px}
}
@media (max-width: 640px){
  body{font-size:16px}
  .topbar{padding:0 16px;height:64px}
  .topbar .btn{display:none} /* the signup form is right below */
  .hero{padding:8px 16px 56px}
  .lede{font-size:18px}
  .hero-visual{max-width:none}
  .hero-visual{aspect-ratio:auto;padding:76px 12px 132px}
  .ui-clients{position:static}
  .ui-paid{top:12px;right:12px;left:12px;min-width:0}
  .ui-invoice{left:12px;right:12px;bottom:12px;width:auto}
  .about{padding:0 16px 72px}
  .person{grid-template-columns:1fr;padding:22px}
  .person-photo{grid-row:auto;margin-bottom:12px}
  .flow{padding:24px 16px 72px}
  .bento{grid-template-columns:1fr;padding:0 16px 72px;gap:16px}
  .cell-rates{grid-column:auto}
  .rates{grid-template-columns:1fr}
  .cell{padding:24px}
  .cell-photo{padding:0}
  .cell-text{padding:20px 24px 24px}
  .band{padding:0 16px;margin-bottom:72px}
  .band img{height:420px}
  .band-text{left:16px;right:16px;padding:28px}
  .close{padding:0 16px 72px}
  .join-row{flex-direction:column}
  .footer{padding:20px 16px 32px}
}
