/*
 * bakerykeeper.com: design/canvas/ComingSoon08FirstLook.dc.html (Coming soon 08 · First look, live preview).
 * Sizes are in rem and the root size follows the screen, so the whole page scales with the device: 16px is the
 * design at 1440 px wide (desktop) and at 390 px (phone). Borders stay in px.
 */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url('/fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url('/fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url('/fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url('/fonts/Inter-800.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 900; font-display: swap; src: url('/fonts/Inter-900.woff2') format('woff2'); }
/* Inter Display: Inter's own cut for big headlines (opsz 32 of Inter 4), sharper at poster sizes. */
@font-face { font-family: 'Inter Display'; font-weight: 900; font-display: swap; src: url('/fonts/InterDisplay-900.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url('/fonts/IBMPlexMono-600.woff2') format('woff2'); }

/* ---------- scale ---------- */
/* Phones: 16px at 390 wide, 13px on the smallest, 17px on large phones. */
html { font-size: clamp(13px, 4.1026vw, 17px); }
/* Tablets and small laptops: one column, gently growing. */
@media (min-width: 761px) { html { font-size: calc(14px + .25vw); } }
/* Desktops: 16px at 1440 wide, growing with the screen up to 4K, but never taller than the window: the landing
   page is about 51rem tall, so 1.9vh keeps header, preview and footer on one screen with no scrolling. */
@media (min-width: 1100px) { html { font-size: clamp(11px, min(1.1111vw, 1.9vh), 40px); } }

* { box-sizing: border-box; }
html { background: #18181B; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #FFFFFF; -webkit-font-smoothing: antialiased; background: #18181B; }
[hidden] { display: none !important; }
p { margin: 0; }
a:focus-visible { outline: 2px solid #FF5A1F; outline-offset: 2px; }

.bk { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 900; letter-spacing: -.065em; line-height: 1; display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 1.625rem; color: #FFFFFF; }
.bk i { display: block; width: .17em; height: .17em; margin-left: .075em; background: #FF5A1F; flex: none; }
a.bk { text-decoration: none; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }
.tag { font: 500 max(.75rem, 11px) 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.tag.muted { color: #A1A1AA; }
.tag.ember { color: #FF8A5C; }

/* ---------- page ---------- */
.pg { min-height: 100vh; min-height: 100dvh; width: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 2rem 3.5rem; position: relative; z-index: 2; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1.5rem 3.5rem 1.75rem; font: 500 max(.75rem, 11px) 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; position: relative; z-index: 2; color: #A1A1AA; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 3.5rem 2.5rem; position: relative; }
/* The Y's arms overhang the left edge a touch so it lines up by eye with the b and o below (optical alignment). */
h1 { margin: 0; font-family: 'Inter Display', Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 900; letter-spacing: -.02em; word-spacing: .06em; line-height: 1.02; text-indent: -.035em; font-size: 4.875rem; color: #FFFFFF; overflow-wrap: break-word; }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 35rem; color: #D4D4D8; }
.lede a { color: #FFFFFF; }
.left { display: flex; flex-direction: column; gap: 1.625rem; padding-bottom: 2.5rem; min-width: 0; }

/* Landing: words on the left, the live preview running off the right edge. */
main.home { display: grid; grid-template-columns: 31.25rem minmax(0, 1fr); gap: 4rem; align-items: center; padding: 0 0 0 3.5rem; }

/* ---------- early-access form ---------- */
.wl { display: flex; flex-direction: column; gap: .625rem; width: 100%; max-width: 35rem; }
.wl-l { font: 600 max(.875rem, 13px) Inter, sans-serif; color: #FFFFFF; }
.wl-row { display: flex; }
.wl input { flex: 1; min-width: 0; height: max(3.625rem, 48px); padding: 0 1.125rem; font: 500 max(1.0625rem, 16px) Inter, sans-serif; border: 2px solid #FFFFFF; border-right: 0; border-radius: 0; background: #FFFFFF; color: #18181B; outline: none; }
.wl input::placeholder { color: #6B6B73; }
.wl-b { height: max(3.625rem, 48px); padding: 0 1.625rem; border: 0; border-radius: 0; font: 800 max(1rem, 15px) Inter, sans-serif; cursor: pointer; white-space: nowrap; background: #FF5A1F; color: #18181B; }
.wl-b:disabled { cursor: progress; opacity: .8; }
.wl input:focus-visible, .wl-b:focus-visible, .wl-a:focus-visible, .win-pause:focus-visible { outline: 2px solid #FF5A1F; outline-offset: 2px; }
.wl-e { display: flex; gap: .5rem; align-items: flex-start; font: 600 max(.875rem, 13px)/1.45 Inter, sans-serif; color: #FF8A80; }
.wl-e i { width: .625rem; height: .625rem; flex: none; margin-top: .3125rem; background: currentColor; }
.wl-n { font-size: max(.8125rem, 12px); line-height: 1.45; color: #A1A1AA; }
.wl-n a { color: #D4D4D8; text-underline-offset: 3px; }
.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-ok { display: flex; gap: .875rem; align-items: flex-start; padding: 1.125rem 1.25rem; border: 2px solid #3A3A40; max-width: 35rem; width: 100%; text-align: left; color: #FFFFFF; }
.wl-ok > i { width: .875rem; height: .875rem; flex: none; margin-top: .3125rem; background: #FF5A1F; }
.wl-ok div { display: flex; flex-direction: column; gap: .375rem; align-items: flex-start; font-size: max(.9375rem, 14px); line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.wl-ok strong { font-size: 1.125rem; font-weight: 800; }
.wl-a { background: none; border: 0; padding: 0; font: 600 max(.875rem, 13px) Inter, sans-serif; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }


/* ---------- live preview window ---------- */
.win { background: #F6F6F7; border: 1px solid #3A3A40; border-right: 0; overflow: hidden; display: grid; grid-template-columns: 4rem minmax(0, 1fr); height: 41.25rem; width: 100%; box-shadow: 0 1.875rem 5rem rgba(0, 0, 0, .45); position: relative; animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(2.5rem); opacity: 0; } }
.win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 24, 27, 0) 74%, #18181B 100%); pointer-events: none; z-index: 2; }
.side { background: #18181B; display: flex; flex-direction: column; align-items: center; gap: 1.125rem; padding-top: 1.25rem; border-right: 1px solid #2A2A2F; }
.side b { color: #FFFFFF; font: 900 1.125rem Inter, sans-serif; letter-spacing: -.06em; }
.side span { width: 1.375rem; height: 1.375rem; border: 2px solid #52525B; transition: background .3s, border-color .3s; }
.side span.on { background: #FF5A1F; border-color: #FF5A1F; }
.body { padding: 1.625rem 1.875rem; display: flex; flex-direction: column; gap: 1.125rem; color: #18181B; position: relative; min-width: 0; }
.hi { display: flex; justify-content: flex-start; align-items: center; gap: 1.125rem; min-height: 2.5rem; }
.hi strong { font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.clk { display: flex; align-items: center; gap: .5rem; font: 500 .8125rem 'IBM Plex Mono', monospace; color: #62626B; white-space: nowrap; }
.clk i, .pv i { width: .5rem; height: .5rem; animation: blink 1.4s ease-in-out infinite; }
.clk i { background: #0F7B5F; }
@keyframes blink { 50% { opacity: .25; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem; }
.k { background: #FFFFFF; border: 1px solid #E2E2E5; padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.k.fl { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px #FF5A1F; background: #FFF1EA; } }
.k em { font-style: normal; font: 500 .6875rem 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #62626B; }
.k b { font-size: 1.875rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k small { font-size: .8125rem; line-height: 1.3; color: #0F7B5F; font-weight: 600; display: flex; align-items: flex-start; gap: .375rem; min-width: 0; min-height: 2.6em; }
.k small i { width: .5rem; height: .5rem; margin-top: .25em; background: #0F7B5F; flex: none; }
.k small span { min-width: 0; }
.row2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: .875rem; }
.box { background: #FFFFFF; border: 1px solid #E2E2E5; padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.bh { display: flex; justify-content: space-between; gap: .5rem; font: 500 .6875rem 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #62626B; white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: .625rem; height: 9.375rem; }
.bars span { flex: 1; background: #18181B; transition: height .9s cubic-bezier(.2, .7, .2, 1); }
.bars span:nth-child(1) { height: 44%; }
.bars span:nth-child(2) { height: 57%; }
.bars span:nth-child(3) { height: 50%; }
.bars span:nth-child(4) { height: 71%; }
.bars span:nth-child(5) { height: 86%; }
.bars span:nth-child(6) { height: 79%; background: #FF5A1F; }
.bars span:nth-child(7) { height: 0; }
.days { display: flex; gap: .625rem; font: 500 .6875rem 'IBM Plex Mono', monospace; color: #62626B; }
.days span { flex: 1; text-align: center; }
.plan, .feed { display: flex; flex-direction: column; }
.pr { display: flex; align-items: center; gap: .625rem; padding: .5625rem 0; border-top: 1px solid #E2E2E5; font-size: .875rem; }
.pr .ck { width: .75rem; height: .75rem; border: 2px solid #A1A1AA; flex: none; transition: background .3s, border-color .3s; }
.pr span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.pr b { font: 600 .875rem 'IBM Plex Mono', monospace; }
.pr.dn .ck { background: #0F7B5F; border-color: #0F7B5F; }
.pr.dn span { color: #62626B; text-decoration: line-through; }
.pr.nw { animation: row .8s ease-out; }
@keyframes row { from { background: #E7F5EF; } }
.fi { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; border-top: 1px solid #E2E2E5; font-size: .875rem; }
.fi i { width: .5rem; height: .5rem; flex: none; }
.fi span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi time { font: 500 .75rem 'IBM Plex Mono', monospace; color: #62626B; }
.fi.nw { animation: feed .6s ease-out; }
@keyframes feed { from { opacity: 0; transform: translateY(-.5rem); } }
.nt { position: absolute; right: 1.5rem; top: 1.125rem; z-index: 3; width: 20.625rem; max-width: calc(100% - 3rem); background: #18181B; color: #FFFFFF; padding: .8125rem .9375rem; display: flex; gap: .6875rem; align-items: flex-start; box-shadow: 0 .875rem 2.125rem rgba(0, 0, 0, .28); }
.nt > i { width: .625rem; height: .625rem; margin-top: .25rem; flex: none; }
.nt div { display: flex; flex-direction: column; gap: .1875rem; min-width: 0; }
.nt strong { font-size: .875rem; font-weight: 700; }
.nt small { font: 500 .75rem 'IBM Plex Mono', monospace; color: #A1A1AA; }
.nt.go { animation: note 2.8s cubic-bezier(.2, 1.1, .4, 1) both; }
@keyframes note { 0% { opacity: 0; transform: translateX(2.5rem); } 12% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.375rem); } }
/* Pausing the preview (WCAG 2.2.2) without a visible control: tap or click the window, or tab to this button,
   which shows only while it has keyboard focus. */
.win.playing { cursor: pointer; }
.win-pause { position: absolute; left: 5rem; top: 1rem; z-index: 5; min-height: 44px; padding: 0 .875rem; background: #18181B; color: #FFFFFF; border: 1px solid #3A3A40; font: 600 max(.8125rem, 13px) Inter, sans-serif; cursor: pointer; }
.win-pause:not(:focus-visible) { clip-path: inset(50%); width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; border: 0; white-space: nowrap; }
.pv { position: absolute; right: 1.5rem; bottom: 1.25rem; z-index: 4; background: #18181B; color: #FFFFFF; font: 600 .75rem 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: .375rem .625rem; display: flex; align-items: center; gap: .5rem; }
.pv i { background: #FF5A1F; }
/* Event colours: orders ember, collections and bakes green, fridge checks blue, labels grey. */
.t-order { background: #FF5A1F; }
.t-collect, .t-bake { background: #0F7B5F; }
.t-fridge { background: #3B82C4; }
.t-label { background: #A1A1AA; }

/* ---------- other pages (privacy, joined, problem, 404) ---------- */
.prose { max-width: 40rem; display: flex; flex-direction: column; gap: 1rem; font-size: max(1.0625rem, 16px); line-height: 1.55; color: #D4D4D8; padding-bottom: 3rem; }
.prose h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.prose h2 { margin: .75rem 0 0; font-size: 1.25rem; color: #FFFFFF; }
.prose a { color: #FFFFFF; text-underline-offset: 3px; }
.prose ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .375rem; }
main.solo { justify-content: flex-start; padding-top: 1.5rem; }

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

/* ---------- tablets and small laptops: one column ---------- */
@media (max-width: 1099px) {
  .top { padding: 1.75rem 2.5rem; }
  .foot { padding: 1.5rem 2.5rem; }
  main { padding: 0 2.5rem 2.5rem; }
  main.home { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0 2.5rem 2.5rem; }
  .left { max-width: 40rem; }
  h1 { font-size: 4.25rem; }
  .win { border-right: 1px solid #3A3A40; height: 40rem; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .top { padding: 1.25rem; }
  .foot { padding: 1.25rem; }
  main, main.home { padding: 0 1.25rem 1.5rem; }
  h1 { font-size: 2.75rem; }
  .lede { font-size: 1.0625rem; }
  .wl-row { flex-direction: column; gap: .625rem; }
  .wl input { flex: none; border-right: 2px solid #FFFFFF; }
  .win { height: 28.75rem; grid-template-columns: 2.75rem minmax(0, 1fr); }
  .body { padding: 1.125rem 1rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k { padding: .875rem .875rem; }
  .k b { font-size: 1.5rem; }
  .k small { min-height: 0; }
  .k small span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .k:nth-child(3) { display: none; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .row2 .box:first-child { display: none; }
  .nt { right: .75rem; left: .75rem; width: auto; max-width: none; top: .75rem; }
  .hi strong { font-size: 1.25rem; }
  .pv { display: none; }
  .side span { width: 1rem; height: 1rem; }
}
