/* TourYourPlan POC — see DESIGN.md. Flat color, hairlines, one amber action. */
:root {
  --paper: #faf8f3;
  --ink: #1f3a5f;
  --text: #22252b;
  --muted: #6b6f76;
  --rule: #ddd6c8;
  --amber: #e5a04d;
  --amber-ink: #14100a;
  --ok: #2e7d46;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  color: var(--muted);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -.01em;
  text-decoration: none;
}
.logo span { color: var(--amber); }
.header-right { display: flex; align-items: center; gap: 14px; }
#session-box { display: inline-flex; align-items: center; gap: 10px; }
main { flex: 1; width: 100%; }
.landing-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
h1 {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 14px 0 18px;
  font-weight: 800;
}
h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 12px 0 14px;
  font-weight: 750;
}
.sub { font-size: 16.5px; line-height: 1.55; max-width: 46ch; margin: 0 0 28px; }
.drop {
  border: 1.5px dashed rgba(31, 58, 95, .4);
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.drop.dragging { border-style: solid; border-color: var(--amber); background: rgba(229, 160, 77, .08); }
.drop .big { font-size: 16px; font-weight: 650; color: var(--ink); margin: 0 0 6px; }
.drop .small { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--amber-ink);
  border: 1px solid var(--amber);
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible, .btn-quiet:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn-wide { width: 100%; margin-top: 6px; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  font-family: inherit;
}
.btn-quiet:hover { text-decoration: underline; }
.btn-quiet.danger { color: var(--bad); }
.sample { display: block; margin-top: 16px; font-size: 13px; color: var(--ink); }
.drop-error { color: var(--bad); font-size: 13.5px; margin: 12px 0 0; }
.facts { margin-top: 40px; border-top: 1px solid var(--rule); }
.fact { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.fact b { color: var(--ink); min-width: 110px; font-weight: 650; }
figure {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(31, 58, 95, .08);
}
figcaption { display: flex; justify-content: space-between; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.narrow { max-width: 520px; margin: 0 auto; padding: 64px 24px 80px; }
.narrow .sub { max-width: none; }
form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
.fineprint { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 18px; }
.progress { height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; margin: 8px 0 22px; }
.progress-fill { height: 100%; width: 4%; background: var(--amber); transition: width .6s ease; }
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text);
}
.log li { border-bottom: 1px solid var(--rule); padding: 2px 0; }
.log .t { color: var(--muted); margin-right: 10px; }
.log .ok { color: var(--ok); }
.log .bad { color: var(--bad); }
.result-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.result-head h2 { margin-bottom: 6px; }
.result-head .sub { margin: 0; font-size: 14.5px; color: var(--muted); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.viewer-frame {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}
.viewer-frame iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #0e1116;
  display: block;
}
.result-foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px 40px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
footer {
  border-top: 1px solid var(--rule);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .landing-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  h1 { font-size: 38px; }
  .result-head { align-items: flex-start; flex-direction: column; }
  .viewer-frame iframe { height: 60vh; }
}
