@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4-latin.woff2) format("woff2"); }
/* Layout: one user story line above one phone screen. The screen reads top to bottom: status, meters, a live widget, then the assistant. */
:root {
  --paper: #f2f2ef;
  --ink: #1a1c1a;
  --muted: #5f645f;
  --accent: #33594d;
  --water: #3f6a86;
  --block: #dfe1db;
  --block-strong: #c9ccc4;
  --screen: #fbfbf9;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151715; --ink: #e5e6e2; --muted: #9ba09a; --accent: #93b3a6; --water: #8fb0c6;
    --block: #2a2e2a; --block-strong: #3a3f3a; --screen: #1c1f1c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151715; --ink: #e5e6e2; --muted: #9ba09a; --accent: #93b3a6; --water: #8fb0c6;
  --block: #2a2e2a; --block-strong: #3a3f3a; --screen: #1c1f1c; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); }
main { display: grid; justify-items: center; gap: 2rem; padding: 2.75rem 1.25rem 3rem; }

.story { margin: 0; max-width: 30rem; text-align: center; font-family: var(--body); font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.5; text-wrap: balance; }
.story b { font-family: var(--display); font-weight: 600; font-size: 0.72em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.phone { width: min(20rem, 92vw); border: 2px solid var(--block-strong); border-radius: 2.4rem; padding: 0.65rem; background: var(--block); }
.screen { border-radius: 1.9rem; background: var(--screen); padding: 1rem 0.95rem 1.1rem; overflow: hidden; display: flex; flex-direction: column; gap: 0.85rem; }

.appbar { display: flex; align-items: center; gap: 0.55rem; margin: -1rem -0.95rem 0; padding: 0.85rem 0.95rem; border-bottom: 1.5px solid var(--block); }
.word { height: 0.6rem; width: 4.5rem; border-radius: 99px; background: var(--block-strong); }
.appbar .dot { margin-left: auto; }
.brand.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 14px 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.brand { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); }
.dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--block); }
@media (prefers-reduced-motion: no-preference) {
  .brand { animation: settle 900ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(.85) rotate(-8deg); opacity: .5; } to { transform: none; opacity: 1; } }
}

.status { display: grid; gap: 0.15rem; }
.status strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; }
.status span { font-size: 0.7rem; color: var(--muted); }
.ticks { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.ticks li { position: relative; padding-left: 1.05rem; font-size: 0.7rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.22rem; width: 0.55rem; height: 0.3rem; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }

.meters { display: grid; gap: 0.55rem; }
.meter { border: 1.5px solid var(--block-strong); border-radius: 0.9rem; padding: 0.65rem 0.75rem; display: grid; gap: 0.45rem; }
.meter-head { display: flex; justify-content: space-between; align-items: center; }
.meter-head b { font-size: 0.74rem; }
/* Muted border: the outline is what marks the select as a control, so it needs 3:1 against the screen. */
.meter select { font: inherit; font-size: 0.64rem; color: var(--ink); background: var(--screen); border: 1.5px solid var(--muted); border-radius: 99px; padding: 0.15rem 0.4rem; }
.meter select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.meter-body { display: grid; grid-template-columns: 2.3rem 1fr; gap: 0.6rem; align-items: center; }
.meter svg { width: 2.3rem; height: 2.3rem; }
.meter .track { stroke: var(--block); }
.meter-body strong { display: block; font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter-body span { font-size: 0.64rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.widget { border: 1.5px solid var(--accent); border-radius: 1rem; padding: 0.85rem; display: grid; gap: 0.65rem; }
.widget-head { display: flex; align-items: center; gap: 0.55rem; }
.plug { width: 1.9rem; height: 1.9rem; border-radius: 0.55rem; background: var(--accent); display: grid; place-items: center; }
.plug svg { width: 1rem; height: 1rem; }
.widget-head b { font-size: 0.85rem; flex: 1; }
.btn { border-radius: 0.6rem; padding: 0.45rem 0.7rem; font-size: 0.68rem; font-weight: 600; background: var(--accent); color: var(--screen); }
.near { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.7rem; }
.near li { display: grid; grid-template-columns: 1.2rem 1fr auto; gap: 0.4rem; align-items: center; }
.near i { font-style: normal; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1.5px solid var(--block-strong); display: grid; place-items: center; font-size: 0.6rem; }
.near span:last-child { color: var(--muted); }
.near li.pick i { border-color: var(--accent); background: var(--accent); color: var(--screen); }

.assist { display: grid; gap: 0.55rem; padding-top: 0.2rem; }
.msg { font-size: 0.74rem; line-height: 1.45; background: var(--block); border-radius: 0.95rem 0.95rem 0.95rem 0.3rem; padding: 0.7rem 0.8rem; }
.msg.quiet { background: transparent; border: 1.5px solid var(--block-strong); }
.pill { justify-self: start; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 0.3rem 0.65rem; font-size: 0.66rem; font-weight: 600; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn[aria-pressed="true"] { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plug.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 14px 2px color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .brand.on { animation: glow 1.8s ease-in-out infinite; }
  @keyframes glow { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 22px 6px color-mix(in srgb, var(--accent) 45%, transparent); } }
}
.stage { display: grid; gap: 1.5rem; justify-items: center; }
.note { max-width: 20rem; font-size: 0.85rem; display: grid; gap: 0.35rem; border-left: 2px solid var(--accent); padding-left: 0.85rem; }
.note b { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.note span { color: var(--muted); }
.note ul { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.note li { border: 1.5px dashed var(--block-strong); border-radius: 99px; padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.note li:first-child { border-style: solid; border-color: var(--accent); color: var(--accent); }
.notes { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .stage { grid-template-columns: auto 13rem; align-items: stretch; column-gap: 2rem; }
  .notes { position: relative; display: block; width: 13rem; align-self: stretch; }
  .note { position: absolute; left: 0; right: 0; }
  .note::before { content: ""; position: absolute; left: -2.1rem; top: 0.55rem; width: 2rem; border-top: 1.5px solid var(--accent); }
  .n-head { top: 1.4rem; }
  .n-widget { top: 12.05rem; }
  /* Spans from the lunch pill down to the thermostat pill: the left rule is the bracket, one tick at each end. */
  .n-lunch { top: 29.6rem; min-height: 22.75rem; align-content: start; }
  .n-lunch::after { content: ""; position: absolute; left: -2.1rem; top: 22.25rem; width: 2rem; border-top: 1.5px solid var(--accent); }
}
.meter .pill.trend { margin-top: 0.15rem; font-size: 0.66rem; }
.pill.in { display: flex; align-items: center; gap: 0.4rem; width: fit-content; margin-top: 0.5rem; padding-left: 0.3rem; background: var(--screen); }
/* Placeholder for the F&B partner logo, drawn as a wireframe block. */
.partner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px dashed var(--accent); background: var(--block); }
.stack { position: relative; margin-bottom: 1.35rem; }
.stack .widget { position: relative; z-index: 2; background: var(--screen); }
.layer { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; border: 1.5px solid var(--block-strong); border-radius: 1rem; background: var(--screen); }
.layer.l1 { z-index: 1; transform: translateY(0.7rem) scale(0.94); }
.layer.l2 { z-index: 0; transform: translateY(1.35rem) scale(0.88); opacity: 0.75; }
.dots { display: flex; justify-content: center; gap: 0.3rem; margin-top: -0.2rem; }
.dots i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--block-strong); }
.dots i.on { width: 0.9rem; border-radius: 99px; background: var(--accent); }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 2rem; justify-content: center; }
.frag { margin: 0; display: grid; gap: 0.75rem; justify-items: center; align-content: start; }
.frag figcaption { text-align: center; display: grid; gap: 0.15rem; }
.frag figcaption b { font-size: 0.85rem; }
.frag figcaption span { font-size: 0.8rem; color: var(--muted); }
.home, .lock { width: 100%; border: 2px solid var(--block-strong); border-radius: 1.6rem; background: var(--block); padding: 0.9rem; display: grid; gap: 0.7rem; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.apps i { aspect-ratio: 1; border-radius: 0.6rem; background: var(--block-strong); }
.wgt { background: var(--screen); border-radius: 1.1rem; padding: 0.8rem; display: grid; gap: 0.5rem; width: 62%; aspect-ratio: 1; align-content: space-between; }
.wgt-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--muted); }
.wgt b { font-size: 0.82rem; line-height: 1.2; }
.wgt-cta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; font-weight: 600; color: var(--accent); }
.ev { width: 1rem; height: 1rem; color: var(--accent); }
.qr { width: 1.1rem; height: 1.1rem; color: var(--ink); }
.lock { justify-items: center; padding-top: 1.2rem; }
.clock { width: 55%; height: 1.6rem; border-radius: 0.5rem; background: var(--block-strong); }
.lock > .bar { width: 30%; }
.lcard { width: 100%; background: var(--screen); border-radius: 1rem; padding: 0.7rem; display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center; margin-top: 2.2rem; }
.lcard b { display: block; font-size: 0.74rem; }
.lcard span { font-size: 0.64rem; color: var(--muted); }
.lic { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--accent); }
.lqr { border: 1.5px solid var(--block-strong); border-radius: 0.5rem; padding: 0.3rem; display: grid; place-items: center; }
@media (max-width: 560px) { .extras { grid-template-columns: minmax(0, 16rem); } }
