/* Prototype My Life: a designer's sketchbook. Warm paper, ink, a faint grid; teal for the path,
   coral for the one thing to do now. System fonts only: no third party sees a visitor. */
:root {
  --paper: #f6f1e7; --card: #fffdf8; --ink: #22313a; --muted: #67747c; --line: #ddd4c3;
  --grid: rgba(34, 49, 58, 0.045); --accent: #2f7a6d; --accent-soft: #dcece7; --hot: #d65f3a;
  --hot-soft: #fbe3d8; --warm: #e39a4d; --cool: #6f8fb0; --ok: #2f7a6d; --err: #b23a2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15191c; --card: #1d2327; --ink: #e9e4da; --muted: #9aa6ad; --line: #30393e;
    --grid: rgba(233, 228, 218, 0.04); --accent: #5fb3a3; --accent-soft: #1f3833; --hot: #f08a63;
    --hot-soft: #3a2620; --warm: #e8a866; --cool: #8aa9c8; --ok: #5fb3a3; --err: #f0816e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15191c; --card: #1d2327; --ink: #e9e4da; --muted: #9aa6ad; --line: #30393e;
  --grid: rgba(233, 228, 218, 0.04); --accent: #5fb3a3; --accent-soft: #1f3833; --hot: #f08a63;
  --hot-soft: #3a2620; --warm: #e8a866; --cool: #8aa9c8; --ok: #5fb3a3; --err: #f0816e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
main { padding: 28px 0 56px; min-height: 60vh; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--hot); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 42px); margin: 6px 0 12px; }
h2 { font-size: 23px; margin: 36px 0 12px; }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--ink); max-width: 40em; }
.eyebrow, .setup-eyebrow, .now-label { font: 600 13px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.setup-eyebrow a { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono, code { font-family: var(--mono); font-size: 0.92em; }
.prose { max-width: 40em; }
.hl { color: var(--accent); font-style: italic; }

/* nav and footer */
.nav { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 20px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand em { color: var(--accent); }
.mark { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.mark::after { content: ""; position: absolute; inset: 3px 6px; border-left: 2px solid var(--hot); transform: rotate(35deg); }
.nav-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--hot); }
.who { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.avatar { width: 22px; height: 22px; border-radius: 50%; }
.footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 14px; }
.footer .credit { max-width: 46em; }
.footer-links a { margin-right: 14px; color: var(--muted); }

/* cards, buttons, forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 16px; box-shadow: 0 1px 0 var(--line); }
.card.soft { background: transparent; border-style: dashed; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-head h2 { margin: 0 0 12px; font-size: 19px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 18px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; margin: 2px 4px 2px 0; }
.btn:hover { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { border-color: var(--hot); color: var(--hot); background: transparent; }
.small-btn { padding: 5px 12px; font-size: 13px; }
.field { margin: 0 0 16px; border: 0; padding: 0; }
fieldset.field { min-width: 0; }
label, legend { display: block; font-weight: 600; margin: 0 0 6px; }
.check { font-weight: 400; display: flex; gap: 8px; align-items: baseline; margin: 4px 0; }
input[type=text], input[type=email], input:not([type]), textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 11px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-bottom: 8px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.error, .flag { color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); border-left: 3px solid var(--err); padding: 8px 12px; border-radius: 6px; }
.ok { color: var(--ok); background: var(--accent-soft); border-left: 3px solid var(--ok); padding: 8px 12px; border-radius: 6px; }
.privacy { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 15px; }
.copyline { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; flex-wrap: wrap; }
.copyline code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
details summary { cursor: pointer; color: var(--accent); margin: 4px 0 10px; }

/* scales: 0-4 gauges, 1-5 engagement, -2..+2 energy */
.scale { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.pip { margin: 0; font-weight: 600; }
.pip input { position: absolute; opacity: 0; pointer-events: none; }
.pip span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.pip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pip input:focus-visible + span { outline: 2px solid var(--hot); outline-offset: 2px; }
.energy .e-2 input:checked + span, .energy .e-1 input:checked + span { background: var(--cool); border-color: var(--cool); }
.energy .e1 input:checked + span, .energy .e2 input:checked + span { background: var(--warm); border-color: var(--warm); }
.scale-ends { margin-left: 4px; }
.gauge-field legend { font-weight: 400; }

/* the setup progress line */
.stepbar { margin: 0 0 18px; }
.meter { display: flex; gap: 6px; margin: 6px 0 8px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.meter .done { background: var(--accent); }
.meter .here { background: var(--hot); }
.setup-list { padding-left: 20px; }
.setup-list li { margin: 4px 0; }
.setup-list li.done { color: var(--muted); }
.setup-list li.done::marker { content: "✓  "; color: var(--accent); }

/* the one thing to do now */
.now-box { border: 2px solid var(--hot); background: linear-gradient(0deg, var(--card), var(--card)), var(--hot-soft); position: relative; }
.now-box h2 { margin: 2px 0 8px; font-size: 25px; }
.now-label { color: var(--hot); display: flex; gap: 8px; align-items: center; }
.place-tag { font-weight: 600; letter-spacing: 0.04em; text-transform: none; background: var(--hot-soft); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.btns { margin: 6px 0 12px; }
.also { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }
.also .btn { margin: 0; }

/* the journey */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.journey::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; border-top: 2px dashed var(--line); z-index: 0; }
.stop { position: relative; z-index: 1; }
.stop .dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font: 700 16px var(--serif); margin-bottom: 8px; }
.stop.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.stop.now .dot { border-color: var(--accent); color: var(--accent); }
.stop.focus .dot { border-color: var(--hot); background: var(--hot); color: #fff; box-shadow: 0 0 0 5px var(--hot-soft); }
.stop.later h3 { color: var(--muted); }
@media (max-width: 720px) {
  .journey { grid-template-columns: 1fr; gap: 4px; }
  .journey::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 2px dashed var(--line); }
  .stop { display: flex; gap: 12px; align-items: flex-start; }
}

/* dashboards */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 720px) { .dash { grid-template-columns: 1fr; } }
.gauges { display: grid; gap: 8px; margin-bottom: 10px; }
.gauge { display: grid; grid-template-columns: 96px 1fr 22px; gap: 10px; align-items: center; margin: 4px 0; }
.glabel { font-size: 14px; color: var(--muted); }
.gval { font: 700 15px var(--serif); text-align: right; }
.meter4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter4 i { height: 12px; border-radius: 3px; background: var(--line); }
.meter4 i.on { background: var(--accent); }
.gtable, .ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.gtable th, .gtable td, .ptable th, .ptable td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gtable th, .ptable th { color: var(--muted); font-weight: 600; }
.minibar { display: inline-block; width: 40px; height: 6px; background: var(--line); border-radius: 3px; vertical-align: middle; position: relative; overflow: hidden; }
.minibar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 25%); background: var(--accent); }
.strip { display: flex; align-items: flex-end; gap: 3px; height: 80px; border-bottom: 1px solid var(--line); padding: 0 2px; margin: 8px 0; }
.strip .bar { flex: 1; max-width: 18px; height: var(--h); min-height: 4px; border-radius: 3px 3px 0 0; background: var(--muted); }
.strip .bar.up { background: var(--warm); }
.strip .bar.down { background: var(--cool); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { min-height: 2.4em; }
.plan .gauge { grid-template-columns: 86px 1fr 18px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--accent-soft); color: var(--ink); margin: 1px 2px; }
.chip.st-out { background: var(--hot-soft); }
.chip.st-done { background: var(--line); }
.chip.flow { background: var(--accent); color: #fff; }
.energy-chip.e1, .energy-chip.e2 { background: color-mix(in srgb, var(--warm) 30%, transparent); }
.energy-chip.e-1, .energy-chip.e-2 { background: color-mix(in srgb, var(--cool) 30%, transparent); }
.entries { list-style: none; padding: 0; }
.entries li { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (max-width: 600px) { .entries li { grid-template-columns: 1fr; gap: 2px; } }

/* landing and how */
.hero { padding: 24px 0 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); max-width: 15em; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
@media (max-width: 720px) { .three { grid-template-columns: 1fr; } }
.sketch { border: 1.5px dashed var(--ink); border-radius: 14px; padding: 18px; background: var(--card); transform: rotate(-0.4deg); }
.sketch:nth-child(2) { transform: rotate(0.5deg); }
.sketch .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hot); color: #fff; font: 700 15px var(--serif); margin-bottom: 8px; }
.how-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
@media (max-width: 720px) { .how-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .how-row { grid-template-columns: 1fr; } }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 720px) { .places { grid-template-columns: 1fr; } }
.place { border-radius: var(--r); padding: 16px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.place.cc { border-top-color: var(--cool); }
.place.doc { border-top-color: var(--warm); }
.journey-list li { margin: 0 0 12px; }
.steps li { margin: 0 0 14px; }
.pcard { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.inline-form { display: inline; }
table { max-width: 100%; }
.foot-links { margin-top: 28px; }
.question { max-width: 22em; }
