/* EZ Move.
   Built for a phone held in one hand in somebody's driveway, in daylight.
   So: big touch targets, big numbers, and enough contrast to read outside. */

:root {
  --bg: #0f1418;
  --surface: #171e24;
  --surface-2: #1e272e;
  --line: #2b3740;
  --ink: #eef3f7;
  --muted: #93a4b1;
  --blue: #2f81f7;
  --green: #2ea043;
  --amber: #d29922;
  --red: #d1414a;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); }

/* ---- the bar across the top ---- */
.top {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: .2px;
  color: var(--ink); text-decoration: none;
}
.brand svg { display: block; }
.top nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.top nav a {
  color: var(--muted); text-decoration: none;
  padding: 7px 11px; border-radius: 8px; font-size: 13.5px;
}
.top nav a:hover { background: var(--surface-2); color: var(--ink); }
.top nav a.on { background: var(--surface-2); color: var(--ink); }

main { max-width: 860px; margin: 0 auto; padding: 18px 16px 60px; }
main.wide { max-width: 1080px; }

h1 { font-size: 27px; margin: 0 0 6px; letter-spacing: -.3px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

/* ---- controls. Deliberately large: this is used on a phone, outdoors. ---- */
label.fld { display: block; margin-bottom: 12px; }
.fld-label {
  display: block; font-size: 12.5px; color: var(--muted);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px;
}
input[type=text], input[type=email], input[type=password],
input[type=number], select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 16px;           /* 16px stops iOS zooming the page on focus */
  font-family: inherit;
}
select { appearance: none; background-image: none; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue); outline-offset: -1px;
}

button, .btn {
  background: var(--blue); color: #fff; border: 0;
  border-radius: 9px; padding: 11px 17px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:disabled, .btn:disabled { opacity: .5; cursor: default; }
.btn-quiet {
  background: none; border: 1px solid var(--line); color: var(--ink);
}
.btn-big { width: 100%; padding: 15px; font-size: 17px; }

.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .rows { grid-template-columns: 1fr; } }

/* ---- the answer. This is the part people actually look at. ---- */
.answer { border: 1px solid var(--line); border-radius: var(--radius);
          background: var(--surface-2); padding: 18px; margin-bottom: 16px; }
.answer-head {
  font-size: 28px; font-weight: 700; letter-spacing: -.5px;
  margin-bottom: 2px;
}
.answer-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.block { margin-bottom: 18px; }
.block:last-child { margin-bottom: 0; }
.block-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); margin-bottom: 7px;
}
.big-num { font-size: 32px; font-weight: 700; letter-spacing: -.6px; }
.big-unit { font-size: 15px; font-weight: 600; color: var(--muted);
            margin-left: 5px; }
.beside { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.note-line {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 11px; border-radius: 9px; margin-top: 8px;
  font-size: 13.8px; line-height: 1.5;
}
.note-bad  { background: rgba(209,65,74,.13);  border: 1px solid rgba(209,65,74,.4); }
.note-warn { background: rgba(210,153,34,.12); border: 1px solid rgba(210,153,34,.38); }
.note-info { background: rgba(47,129,247,.10); border: 1px solid rgba(47,129,247,.3); }

/* ---- tables ---- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted); font-weight: 600;
  padding: 7px 8px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.picked td { background: rgba(47,129,247,.10); font-weight: 600; }

/* ---- the item counters ---- */
.room { margin-bottom: 18px; }
.room h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); margin: 0 0 8px; font-weight: 600;
}
.item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.item-name { flex: 1; font-size: 14.5px; }
/* .item-cube was the per-item cubic feet column. Taken out (JT) -- the
   running total at the bottom still says how much there is, which is the
   number that decides the truck. */
#itemFind { width: 100%; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; gap: 0; }
/* Bare +/- buttons: the global button rule would paint these solid blue
   blocks, which is wrong for something this small and repeated. */
.stepper button {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); width: 38px; height: 38px; padding: 0;
  font-size: 19px; line-height: 1; border-radius: 8px;
}
.stepper .count {
  width: 42px; text-align: center; font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 15px;
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }

/* The running total follows you down a long list -- on a phone the count
   is off-screen by the time you reach the garage. */
.running {
  position: sticky; bottom: 0;
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding: 13px 16px; margin: 0 -16px -16px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.running b { font-size: 19px; }

/* ---- mode toggle ---- */
.modes { display: flex; gap: 0; margin-bottom: 16px; }
.modes button {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); border-radius: 0; padding: 12px;
}
.modes button:first-child { border-radius: 9px 0 0 9px; }
.modes button:last-child { border-radius: 0 9px 9px 0; border-left: 0; }
.modes button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---- show the math ---- */
details.math { border-top: 1px solid var(--line); margin-top: 14px;
               padding-top: 12px; }
details.math summary {
  cursor: pointer; color: var(--blue); font-size: 13.5px;
  list-style: none; user-select: none;
}
details.math summary::-webkit-details-marker { display: none; }
.math-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--line);
}
.math-row:last-child { border-bottom: 0; }
.math-row .v { font-variant-numeric: tabular-nums; color: var(--muted); }
.math-row.total { font-weight: 700; border-top: 1px solid var(--line);
                  margin-top: 4px; padding-top: 9px; }
.math-row.total .v { color: var(--ink); }

/* ---- banners ---- */
.strip {
  padding: 11px 16px; font-size: 13.8px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.strip-warn { background: rgba(210,153,34,.15);
              border-bottom: 1px solid rgba(210,153,34,.4); }
.strip a { font-weight: 600; }

.pill {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
}
.pill-ok    { background: rgba(46,160,67,.18);  color: #7ee2a0; }
.pill-warn  { background: rgba(210,153,34,.18); color: #e8c26a; }
.pill-bad   { background: rgba(209,65,74,.18);  color: #f19aa0; }
.pill-quiet { background: var(--surface-2); color: var(--muted); }

.err {
  background: rgba(209,65,74,.14); border: 1px solid rgba(209,65,74,.45);
  border-radius: 9px; padding: 11px 13px; margin-bottom: 14px;
  font-size: 14px;
}

.foot {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; text-align: center;
}
.foot a { color: var(--muted); margin: 0 7px; }

.tiny { color: var(--muted); font-size: 12.5px; }
.sell li { margin-bottom: 14px; }
.sell b { display: block; margin-bottom: 2px; }

/* The "it is learning from you" card. Green, because it is the one thing on
   the page that is good news rather than a setting to fiddle with. */
.learn { border-color: var(--good, #2e7d5b); }
.learn h2 { margin-top: 0; }

/* --- Walking the house, on a phone ------------------------------------- */
/* Tap targets you can hit while holding a phone in one hand and a tape
   measure in the other. 44px is the size a thumb actually lands on. */
.survey { max-width: 560px; margin: 0 auto; }
.sv-bar { display: flex; align-items: center; gap: 10px; position: sticky;
          top: 0; z-index: 3; background: var(--bg); padding: 10px 0;
          border-bottom: 1px solid var(--line); }
.sv-where { flex: 1; text-align: center; min-width: 0; }
.sv-room { font-size: 19px; font-weight: 700; overflow: hidden;
           text-overflow: ellipsis; white-space: nowrap; }
.sv-nav { flex: none; width: 44px; height: 44px; font-size: 24px; line-height: 1;
          background: var(--surface-2); color: var(--ink);
          border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.sv-nav:disabled { opacity: .35; }
.sv-items { padding: 4px 0 96px; }
.sv-item { display: flex; align-items: center; gap: 10px; padding: 10px 2px;
           border-bottom: 1px solid var(--line); }
.sv-item.has { background: var(--surface-2); border-radius: 8px;
               padding-left: 8px; padding-right: 8px; }
.sv-name { flex: 1; font-size: 16px; }
.sv-step { display: flex; align-items: center; gap: 2px; }
/* The global button rule would paint these solid blue blocks. */
.sv-step button { width: 44px; height: 44px; font-size: 22px; line-height: 1;
                  padding: 0; background: var(--surface-2); color: var(--ink);
                  border: 1px solid var(--line); border-radius: 10px; }
.sv-n { min-width: 34px; text-align: center; font-size: 17px;
        font-variant-numeric: tabular-nums; }
/* The total never leaves the screen -- it is the number they are walking
   round to find. */
.sv-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
           display: flex; align-items: center; gap: 12px;
           padding: 10px 14px; background: var(--surface);
           border-top: 1px solid var(--line); }
.sv-total { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.sv-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.sv-foot .btn-big { width: auto; margin: 0; padding: 12px 18px; }

/* --- Boxes and materials ----------------------------------------------- */
.mat-card { margin-bottom: 12px; border: 1px solid var(--line);
            border-radius: 10px; padding: 10px 12px; }
.mat-card summary { cursor: pointer; font-weight: 600; }
.mat-card summary span { float: right; font-weight: 400; }
.mat-list { margin-top: 8px; }
.item-price { width: 56px; text-align: right;
              font-variant-numeric: tabular-nums; }
/* A price table: label left, money right, digits that line up. */
.tbl.money td.n { text-align: right; font-variant-numeric: tabular-nums;
                  white-space: nowrap; }
