/* Observs app. Same brand as the landing page: light paper, ink outlines, lime and orange accents. */
:root {
  --paper: #F5F6FA; --surface: #FFFFFF; --ink: #15162B; --ink-2: #54576E; --line: #DDE0EC;
  --cobalt: #3D5AFE; --heat: #F0531C; --lime: #D4F64A; --lilac: #E3E7FF; --peach: #FFE5D9; --sky: #D7F0FF;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); }
.mono { font: 500 .76rem var(--mono); letter-spacing: .04em; }
.eyebrow { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding-inline: .08em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; padding: 11px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cobalt); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.small { padding: 7px 13px; font-size: .88rem; }
.field { display: grid; gap: 5px; }
.field label { font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; min-width: 0; }
.msg { font-weight: 600; font-size: .9rem; padding: 10px 12px; border-radius: 12px; background: var(--peach); }
.msg.ok { background: var(--lilac); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card.strong { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.pill { font: 500 .7rem var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.pill.strong { background: var(--lime); border-color: var(--ink); } .pill.good { background: var(--lilac); } .pill.thin { background: var(--paper); color: var(--ink-2); }
.sticker { font: 800 .72rem var(--display); background: var(--heat); color: #fff; padding: 4px 8px; border-radius: 7px; transform: rotate(3deg); white-space: nowrap; }
.sticker.ad { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.note { font-size: .84rem; color: var(--ink-2); background: var(--sky); border-radius: 12px; padding: 10px 12px; }

/* sign in */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { background: var(--ink); color: #fff; padding: clamp(28px, 5vw, 64px); display: grid; align-content: space-between; gap: 32px; }
.auth-brand h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.auth-brand ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #C9CCE0; }
.auth-brand li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); margin-right: 10px; }
.auth-form { display: grid; place-items: center; padding: 28px 20px; }
.auth-card { width: min(420px, 100%); display: grid; gap: 16px; }
.tabs { display: flex; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: fit-content; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.45rem var(--display); letter-spacing: -0.03em; text-decoration: none; }
.logo img { width: 34px; height: 34px; }

/* shell */
.shell { min-height: 100%; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side nav { display: grid; gap: 4px; }
.side nav button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.side nav button:hover { background: var(--paper); }
.side nav button[aria-current="page"] { background: var(--ink); color: #fff; }
.usage { margin-top: auto; background: var(--lilac); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.usage b { font: 800 1.5rem/1 var(--display); }
.meter { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }
.who { font-size: .82rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.who button { border: 0; background: none; text-decoration: underline; cursor: pointer; color: var(--ink-2); padding: 0; }
.main { padding: clamp(20px, 3.4vw, 40px); display: grid; gap: 22px; align-content: start; max-width: 1180px; width: 100%; }
.head { display: grid; gap: 8px; }

/* new search */
.wizard { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--ink); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .88rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip.soft { border-color: var(--line); font-weight: 500; }
.preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.preview .thumbs { display: flex; gap: 8px; }
.preview .thumbs img, .preview .thumbs span { width: 54px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--lilac); display: block; }
.steps { display: flex; gap: 8px; align-items: center; font: 500 .74rem var(--mono); color: var(--ink-2); }
.steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font: 700 .74rem var(--body); }
.steps .on b { background: var(--ink); color: var(--lime); }
.steps .on { color: var(--ink); }

/* results */
.result-head { display: grid; gap: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.viewtabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.viewtabs button { border: 2px solid transparent; border-bottom: 0; background: transparent; padding: 10px 16px; font-weight: 700; cursor: pointer; border-radius: 12px 12px 0 0; margin-bottom: -2px; }
.viewtabs button[aria-selected="true"] { border-color: var(--ink); background: var(--surface); }
.controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.controls select { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; background: var(--surface); font-weight: 600; font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 9px; text-decoration: none; isolation: isolate; transition: transform .12s ease; }
.tile:hover { transform: translateY(-3px) rotate(-1deg); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21,22,43,.92) 0%, rgba(21,22,43,.3) 45%, rgba(21,22,43,.05) 70%, rgba(21,22,43,.3) 100%); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.tile .len { font: 500 .68rem var(--mono); background: #fff; color: var(--ink); border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.tile b { font: 800 1.25rem/1 var(--display); display: block; }
.tile small { font: 500 .62rem var(--mono); opacity: .85; display: block; margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.stat.hot { background: var(--peach); border-color: var(--peach); }
.stat b { font: 800 1.7rem/1 var(--display); }
.stat span { font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.insights { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.insights li { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; font-weight: 600; box-shadow: 4px 4px 0 var(--lime); }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 74px; gap: 10px; align-items: center; font-size: .86rem; }
.bar .track { height: 14px; background: var(--paper); border-radius: 999px; position: relative; overflow: hidden; }
.bar .track i { position: absolute; inset: 0 auto 0 0; background: var(--cobalt); border-radius: 999px; }
.bar .track u { position: absolute; inset: 0 auto 0 0; background: var(--heat); border-radius: 999px; }
.bar .num { font: 500 .72rem var(--mono); color: var(--ink-2); text-align: right; white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font: 500 11px var(--mono); fill: var(--ink-2); }
.bd { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.bd:first-child { border-top: 0; padding-top: 0; }
.bd ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 3px; }
.bd .facts { display: flex; gap: 6px 14px; flex-wrap: wrap; font: 500 .74rem var(--mono); color: var(--ink-2); margin-top: 4px; }
.quote { font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.plan { background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: 18px; display: grid; gap: 12px; box-shadow: 5px 5px 0 var(--lime); }
.plan dl { margin: 0; display: grid; gap: 10px; }
.plan dt { font: 500 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.plan dd { margin: 2px 0 0; font-size: .9rem; }
.plan ol, .plan ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: .9rem; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--paper); }

/* first-time guide */
.tour-dim { position: fixed; inset: 0; background: rgba(21,22,43,.55); z-index: 50; }
.tour-hole { position: fixed; z-index: 51; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(21,22,43,.55); outline: 3px solid var(--lime); pointer-events: none; transition: all .2s ease; }
.tour-card { position: fixed; z-index: 52; width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: 6px 6px 0 var(--heat); display: grid; gap: 10px; }
.tour-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  .auth, .shell { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 24px 20px; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { display: flex; flex-wrap: wrap; }
  .usage { margin-top: 0; flex: 1 1 220px; }
  .row2, .two, .plans { grid-template-columns: minmax(0, 1fr); }
  .preview { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
