/* toast.day: request early access. One dark page in the app's own look (black canvas, #1f1f1f rows with one faint
   inset ring, white for the selected choice), so the sign-up feels like the first minute of Toast.
   Zodiak for the headline, Satoshi for everything else; volt only in the lockup and the success tick. */
@font-face{font-family:"Zodiak";src:url(../fonts/zodiak.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url(../fonts/satoshi500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Satoshi";src:url(../fonts/satoshi700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{color-scheme:dark;--bg:#000;--ink:#fff;--soft:rgba(255,255,255,.6);--faint:rgba(255,255,255,.4);--row:#1f1f1f;--row-hi:#2a2a2a;
  --ring:inset 0 0 0 1px rgba(255,255,255,.1);--volt:#EEFF3A;--err:#ff6b61;--out:cubic-bezier(.2,0,0,1);
  --fd:"Zodiak",ui-serif,Georgia,serif;--ft:"Satoshi",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--ft);font-weight:500;font-size:16px;line-height:1.5;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;font-synthesis:none}
a{color:inherit}
button{font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--volt);outline-offset:3px}
[hidden]{display:none!important}
input:focus-visible,textarea:focus-visible{outline:none}   /* fields show focus with their own white edge */

.pg{max-width:560px;margin:0 auto;padding-inline:20px;min-height:100svh;display:flex;flex-direction:column}
.nv{padding-block:22px 0}
.lockup{display:inline-flex;align-items:center;gap:.2em;font-family:var(--fd);font-size:24px;line-height:1;letter-spacing:-.02em;text-decoration:none}
.lockup svg{height:1.02em;width:auto}
main{flex:1;padding-block:56px 64px}

/* the form */
form{display:flex;flex-direction:column;gap:36px;animation:rise .7s var(--out) both}
@keyframes rise{from{opacity:0;transform:translateY(12px)}}
.hd h1,.done h1{font-family:var(--fd);font-weight:400;font-size:clamp(40px,9vw,56px);line-height:1.02;letter-spacing:-.035em;margin:0;text-wrap:balance}
/* the heading stays on one line, sized to the form (about 52px on a computer, 34px on a phone) */
.hd h1{white-space:nowrap;font-size:min(52px,calc((100vw - 40px) / 10))}
.hd p{margin:16px 0 0;font-size:17px;line-height:1.5;color:var(--soft);max-width:30em;text-wrap:pretty}
.hd .me{display:flex;gap:16px;align-items:stretch;font-size:17px;margin-top:20px;max-width:32em}
/* the photo is as tall as the note beside it: three lines on a computer, more on a phone */
.hd .me img{flex:none;width:62px;height:auto;min-height:4.5em;border-radius:10px;object-fit:cover}
@media (max-width:520px){.hd .me img{width:84px}}
.hd .me p{margin:0}

.f{margin:0;padding:0;border:0;min-width:0;display:flex;flex-direction:column;gap:12px}
label,legend{padding:0;font-size:15px;line-height:1.3;color:var(--ink)}
legend{margin-bottom:12px;float:left;width:100%}   /* float: lets the legend sit in the flex gap like a label */
legend+*{clear:both}
label em,legend em{font-style:normal;color:var(--faint);margin-left:4px}

input,textarea{width:100%;font:inherit;font-size:17px;letter-spacing:-.01em;color:var(--ink);background:var(--row);border:0;border-radius:16px;box-shadow:var(--ring);
  padding:0 18px;height:56px;outline:none;transition:box-shadow .15s var(--out),background .15s var(--out);-webkit-appearance:none;appearance:none}
textarea{height:auto;min-height:88px;padding:16px 18px;line-height:1.45;resize:none;display:block}
input::placeholder,textarea::placeholder{color:var(--faint)}
input:focus,textarea:focus{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55);background:#232323}
input:-webkit-autofill{-webkit-text-fill-color:var(--ink);-webkit-box-shadow:var(--ring),0 0 0 100px var(--row) inset;caret-color:var(--ink)}

/* the occasions: the app's 3 by 3 grid, an icon and a word each */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tile{aspect-ratio:1/.92;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;border-radius:16px;background:var(--row);box-shadow:var(--ring);
  font-size:14px;line-height:1.15;text-align:center;text-wrap:balance;transition:background .2s var(--out),color .2s var(--out),transform .12s var(--out)}
.tile .ic{width:26px;height:26px}
.ic{fill:currentColor;stroke:currentColor;stroke-width:.4;flex:none}
.ic path{vector-effect:non-scaling-stroke}
/* the two that aren't occasions: a wide row of their own under the grid, same tiles laid flat */
.wide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:-4px}
.tile.row{aspect-ratio:auto;flex-direction:row;gap:10px;min-height:56px;padding:8px 14px}
.tile.row .ic{width:22px;height:22px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 18px;border-radius:100px;background:var(--row);box-shadow:var(--ring);font-size:15px;transition:background .2s var(--out),color .2s var(--out),transform .12s var(--out)}
@media (hover:hover){.tile:hover,.chip:hover{background:var(--row-hi)}}
.tile:active,.chip:active{transform:scale(.97)}
.tile[aria-pressed="true"],.chip[aria-pressed="true"]{background:#fff;color:#000;box-shadow:none}

/* the occasions and the work list each sit in a .set; the grid and the wide row keep their 8px between them */
.set{display:flex;flex-direction:column;gap:8px}
.set .wide{margin-top:0}
.set.chips{flex-direction:row}

/* the work list for an organization: the same chips, a touch taller so they read as the choice, not a filter */
#set-org .chip{min-height:48px}

/* when the day is and what it's for fold away for someone just having a look */
.more{display:grid;grid-template-rows:1fr;transition:grid-template-rows .45s var(--out),opacity .3s var(--out),margin-bottom .45s var(--out)}
.more-in{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:36px}
.more.away{grid-template-rows:0fr;opacity:0}
form .more.away{margin-bottom:-36px}   /* the gap it leaves behind goes too */

/* errors: said under the field, the field's edge turns red, nothing typed is lost */
.er{margin:0;font-size:14px;line-height:1.35;color:var(--err);display:none}
.f.bad .er{display:block}
.f.bad input,.f.bad textarea{box-shadow:inset 0 0 0 1.5px var(--err)}

.go{display:flex;flex-direction:column;gap:14px;margin-top:4px}
.send{height:56px;border-radius:100px;background:#fff;color:#000;font-size:17px;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .12s var(--out),background .15s var(--out),opacity .2s}
@media (hover:hover){.send:hover{background:#eaeaea}}
.send:active{transform:scale(.98)}
.send[disabled]{opacity:.7;cursor:default}
.send .sp{width:18px;height:18px;border-radius:50%;border:2px solid rgba(0,0,0,.2);border-top-color:#000;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.fine{margin:0;font-size:14px;line-height:1.45;color:var(--soft);text-align:center;text-wrap:balance}
.fine a{color:var(--ink);text-decoration:none;margin-left:2px}
.fine a:hover{text-decoration:underline}

/* sent */
.done{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding-top:8vh;animation:rise .7s var(--out) both}
.done .tick{width:56px;height:56px;border-radius:50%;background:var(--volt);color:#000;display:grid;place-items:center;margin-bottom:8px;animation:pop .6s cubic-bezier(.3,1.4,.5,1) both .1s}
.done .tick .ic{width:28px;height:28px;stroke-width:.8}
@keyframes pop{from{transform:scale(.4);opacity:0}}
.done h1:focus{outline:none}
.done p{margin:0;font-size:17px;line-height:1.5;color:var(--soft);max-width:30em;text-wrap:pretty}
/* Open Gmail: the one thing to do next, so the white button, as wide as the form's */
.back.mail{background:#fff;color:#000;box-shadow:none;align-self:stretch;justify-content:center;height:56px;border-radius:100px;font-size:17px}
@media (hover:hover){.back.mail:hover{background:#eaeaea}}
.back{margin-top:14px;height:48px;padding:0 22px;border-radius:100px;background:var(--row);box-shadow:var(--ring);display:inline-flex;align-items:center;text-decoration:none;font-size:15px}

.ft{display:flex;gap:24px;justify-content:center;padding-block:24px 32px;font-size:13px;color:var(--faint)}
.ft a{text-decoration:none}.ft a:hover{color:var(--ink)}

@media (min-width:600px){main{padding-block:80px 96px}.tile{aspect-ratio:1/.8}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ts{display:flex;justify-content:center}
.ts:empty{display:none}
