/* Bloom portal. Built on Bloom's brand system (/Users/Shared/Bloom/Design/system/brand.md and tokens.css):
   Geist only (300, 400, 500), canvas and raised panels, ink and soft, hairlines, no shadows.
   Colour comes only from the eight petal colours, and only to pull out what matters: how far along, and "now". */
@font-face { font-family: Geist; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Instrument; src: url(/fonts/instrument-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --canvas: #F3F0EA; --panel: #FFFDF9; --ink: #1A160F; --soft: #625A4E; --line: #E6E0D5; --faint: #B9B0A2;
  --p1: #FFD25E; --p2: #FFA24C; --p3: #FF7A5C; --p4: #FF5E8A; --p5: #E66BCB; --p6: #B48CFF;
  --petals: linear-gradient(90deg, var(--p1), var(--p2) 22%, var(--p3) 45%, var(--p4) 66%, var(--p5) 84%, var(--p6));
  --client: #1A160F;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: max(20px, env(safe-area-inset-left));
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { background: var(--canvas); color: var(--ink); font-family: Geist, -apple-system, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: left; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
b { font-weight: 500; }

.screen { max-width: 540px; margin: 0 auto; padding: calc(8px + env(safe-area-inset-top)) var(--gut) calc(36px + env(safe-area-inset-bottom)); }

/* one label style everywhere: 11px capitals */
.tag { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); line-height: 1.2; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.lockup { display: inline-flex; align-items: center; gap: .26em; font-weight: 500; font-size: 18px; letter-spacing: -.045em; line-height: 1; }
.lockup svg { width: 18px; height: 18px; transition: transform 1.2s var(--ease); }
.backbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; padding: 12px 12px 12px 0; }
.backbtn svg { width: 9px; height: 15px; }

/* the opening lines */
.intro { padding: 22px 4px 4px; }
h1 { margin-top: 6px; font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.lede { margin-top: 6px; font-size: 15px; color: var(--soft); }

/* raised panels: the page has depth from layers, not shadows */
.panel, .list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.progress { margin-top: 20px; padding: 16px 16px 14px; position: relative; overflow: hidden; }
.phead { display: flex; justify-content: space-between; align-items: baseline; }
.pval { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.pfoot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--soft); }
.meter { margin-top: 16px; }

/* bars */
.bar { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--line); }
.progress .bar { margin-top: 14px; height: 8px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ink); transition: width 1.4s var(--ease); }
/* the petal bar: the colour runs the full journey, so how far along shows as how much colour you've reached */
.bar.bloom i { background: var(--petals); background-size: var(--full, 100%) 100%; }
.bar.bloom i::after { content: ""; position: absolute; right: -2px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 92, .45), rgba(255, 94, 138, 0) 70%); animation: glow 3.2s ease-in-out infinite; pointer-events: none; }
.bar.bloom i[data-w="0"]::after { display: none; }
@keyframes glow { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.mini { width: 56px; }
.mini .bar { height: 5px; }
.mini.wide { width: 100%; margin-top: 8px; }

/* grouped lists */
.group { margin-top: 26px; }
.ghead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.gval { font-size: 13px; color: var(--soft); }
.list { overflow: hidden; }
.row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; position: relative;
  transition: background-color .2s var(--ease); }
.list > * + * { border-top: 1px solid var(--line); }
.row:not(:has(.sicon)):not(:has(.cdot)) { grid-template-columns: 1fr auto auto; }
.row.static { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; }
.row.static.client { grid-template-columns: auto 1fr auto; }
.row.col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.row.tall { padding-top: 13px; padding-bottom: 13px; }
a.row:active { background: var(--canvas); }
.rmain { display: flex; flex-direction: column; min-width: 0; padding: 12px 0; }
.row.tall .rmain, .row.static .rmain { padding: 0; }
.rtitle { font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.rsub { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; font-weight: 400; letter-spacing: 0; }
.rval { font-size: 13px; color: var(--soft); white-space: nowrap; }
.chev { width: 7px; height: 12px; color: var(--faint); }
.row.done .rtitle { color: var(--soft); }
.more-row .rtitle { font-weight: 400; color: var(--soft); font-size: 15px; }

/* stage markers: done is ink, now carries the petal colour, ahead is a hairline */
.sicon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; }
.sicon.done { background: var(--ink); color: var(--panel); }
.sicon.done svg { width: 14px; height: 14px; }
.sicon.ahead { border: 1px solid var(--faint); }
.sicon.now { background: var(--petals); }
.sicon.now > span { width: 8px; height: 8px; border-radius: 50%; background: var(--panel); }
.sicon.now::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--petals); filter: blur(7px); opacity: .5;
  animation: halo 4s ease-in-out infinite; z-index: -1; }
@keyframes halo { 0%, 100% { opacity: .25; transform: scale(.85) rotate(0deg); } 50% { opacity: .6; transform: scale(1.1) rotate(180deg); } }
.list .row.now { isolation: isolate; }

.cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--client); align-self: start; margin-top: 6px; }

/* steps */
.srow { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 4px 16px 4px 12px; }
.srow .sbtn { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; }
.srow .sbtn[disabled] { cursor: default; }
.stitle { font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; transition: color .4s var(--ease); }
.srow.isdone .stitle { color: var(--soft); }
.srow .more { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.srow.open .more { grid-template-rows: 1fr; }
.srow .more > div { overflow: hidden; }
.srow .more p { font-size: 14px; line-height: 1.5; color: var(--soft); padding: 0 0 10px; }
.srow .more p + p { padding-top: 0; }
.bdot { width: 22px; height: 22px; margin: 13px 0 0 5px; border-radius: 50%; border: 1px solid var(--faint); display: grid; place-items: center; }
.bdot.done { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.bdot.done svg { width: 14px; height: 14px; }
.bdot.doing { background: var(--petals); border: 0; }
.moved { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--soft);
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 99px; vertical-align: 2px; }

/* sending files on a step that asks for them */
.up { grid-column: 2; padding: 2px 0 12px; }
.upbtn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--canvas);
  font-size: 14px; font-weight: 500; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.upbtn:active { transform: scale(.97); background: var(--line); }
.uptrack { display: grid; gap: 6px; padding-top: 6px; }
.uptrack[hidden], .upbtn[hidden] { display: none; }
.uptrack .bar i { transition: width .3s linear; }
.upnote { font-size: 13px; color: var(--soft); }
.srow.client .bdot:not(.done) { border-color: var(--ink); }
.srow.client .bdot.doing { border: 0; }

/* forms */
.login .intro { padding-top: 48px; }
.bigmark { width: 40px; height: 40px; margin-bottom: 18px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login h1 em { display: block; font-family: Instrument, Georgia, serif; font-style: italic; font-weight: 400; }
.bigmark svg { width: 100%; height: 100%; }
.field { margin-top: 22px; }
.field label { display: block; padding: 0 4px; }
.input { margin-top: 8px; width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); outline: none; transition: border-color .2s var(--ease); -webkit-appearance: none; }
.input:focus { border-color: var(--ink); }
.input.code { letter-spacing: .3em; font-size: 20px; font-weight: 500; }
.btn { margin-top: 12px; width: 100%; height: 50px; border-radius: 99px; background: var(--ink); color: var(--panel); font-weight: 500; font-size: 15px;
  text-align: center; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; }
.link { margin-top: 12px; font-size: 14px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.msg { margin-top: 12px; font-size: 14px; color: var(--soft); min-height: 21px; padding: 0 4px; }
.msg.err { color: #9B2C1F; }

/* small things */
.foot { margin-top: 32px; padding: 0 4px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--soft); }
.foot button { font-size: 13px; color: var(--soft); padding: 10px 0; }
.hintline { margin-top: 12px; text-align: center; font-size: 13px; color: var(--soft); }
.empty { padding: 15px 16px; color: var(--soft); font-size: 15px; }
.hint { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 14px 16px; font-size: 14px; color: var(--soft); }
.hint b { color: var(--ink); }
.hint button { font-size: 20px; line-height: 1; color: var(--faint); padding: 0 2px; }
.preview { position: sticky; top: 0; z-index: 5; margin: calc(-8px - env(safe-area-inset-top)) calc(-1 * var(--gut)) 0; padding: calc(10px + env(safe-area-inset-top)) var(--gut) 10px;
  background: var(--ink); color: var(--panel); display: flex; justify-content: space-between; align-items: center; }
.preview .tag { color: var(--panel); }
.preview a { font-size: 15px; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--panel);
  padding: 11px 18px; border-radius: 99px; font-size: 14px; transition: opacity .42s var(--ease), transform .42s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* moving between screens: deeper slides in from the right, back from the left */
.screen.arrive > * { animation: rise .6s var(--ease) both; }
.screen.arrive > *:nth-child(2) { animation-delay: .04s; } .screen.arrive > *:nth-child(3) { animation-delay: .08s; }
.screen.arrive > *:nth-child(4) { animation-delay: .12s; } .screen.arrive > *:nth-child(n+5) { animation-delay: .16s; }
.screen.push { animation: push .5s var(--ease) both; }
.screen.pop { animation: pop .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes push { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

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