/* Startup DocBot — the look shared by the tool pages (Studio Profile, Financial Planning, Legal Documents),
   carried over from the home page (home.css, Clark's mockup of Oct 27, 2026). Clark, Oct 27: the full control-panel
   look; pale cream input boxes with a dark outline (not yellow); Rubik for questions, help text and numbers,
   Abhaya Libre for headings, IBM Plex Mono for labels. Loaded before styles.css / legal.css. */
:root {
  --bg: #182c32;        /* page */
  --frame: #0e1b20;     /* panel edge, strip */
  --ink: #14262c;       /* text and outlines */
  --ink-2: #3b4649;     /* secondary text */
  --ink-3: #5a5240;     /* quiet text (5.9:1 on the panel) */
  --panel: #f1dfbe;     /* the panel's paper */
  --card: #f7e9c9;      /* cards, tables, sections */
  --card-under: #e6d2ab;/* card shadow, table headings, unit boxes */
  --field: #f9eed6;     /* the boxes founders type into */
  --tile: #1c363d;      /* selected choices, number tiles, calculated tiles */
  --cream: #f3e3c3;     /* text on dark */
  --cream-2: #d9c9a6;   /* quiet text on dark */
  --tan: #9c8a6c;       /* panel band, screws */
  --rule: #c9b48f;      /* hairlines inside cards and tables */
  --act: #a63f27;       /* buttons, links, negatives */
  --act-hover: #8f3420;
  --arrow: #bb4a2f;     /* the home page's arrows */
  --teal-ink: #1f5560;  /* "from your studio profile" notes, section labels */
  --green: #2f6b45; --amber: #7a4f00; --red: #a63f27;
  --neg-dark: #f4a08a; --amber-dark: #f0c060; --green-dark: #8fd0a6; /* the same three on dark tiles */
  --foot: #a9bcbe;
  --serif: 'Abhaya Libre', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 7px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .33  0 0 0 0 .2  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --screw-a: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7' fill='%239c8a6c' stroke='%2314262c' stroke-width='1.5'/><path d='M2.6 10.6 13.4 5.4' stroke='%2314262c' stroke-width='1.5'/></svg>");
  --screw-b: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7' fill='%239c8a6c' stroke='%2314262c' stroke-width='1.5'/><path d='M2.8 5 13.2 11' stroke='%2314262c' stroke-width='1.5'/></svg>");
  font-family: var(--sans);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.45; }
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--act); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- header, on the dark page */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 14px 20px 12px; max-width: 1140px; margin: 0 auto; width: 100%; }
.brand { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { border-radius: 6px; display: block; box-shadow: 0 0 0 1.5px var(--frame); }
.brand b { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: .01em; line-height: 1; padding-top: 3px; }
.brand .tool { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-2); padding-left: 11px; border-left: 1.5px solid var(--tan); }
.top .right { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.top .linkbtn { font-family: var(--mono); font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); padding: 8px 9px; border-radius: 5px; text-decoration: none; }
.top .linkbtn:hover { background: rgba(243, 227, 195, .1); color: #fff; }
.top .linkbtn:focus-visible, .brand:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
@media (max-width: 700px) { .brand .tool { display: none; } }
@media (max-width: 480px) { .top { padding: 12px 10px 10px; } .top .right { gap: 0; } .top .linkbtn { font-size: 12.5px; padding: 8px 6px; letter-spacing: .03em; } .brand b { font-size: 20px; } }
@media (max-width: 370px) { .top .linkbtn { font-size: 12px; padding: 8px 4px; letter-spacing: 0; } .brand { gap: 7px; } .brand b { font-size: 18px; } }

/* ---------- the framed panel every tool page sits in (as on the home page) */
main.panel { position: relative; flex: 0 0 auto; width: calc(100% - 32px); max-width: 1140px; margin: 4px auto 14px; padding: 34px 38px 38px;
  background-color: var(--panel);
  background-image: var(--screw-a), var(--screw-b), var(--screw-b), var(--screw-a), var(--noise), radial-gradient(ellipse at 50% 30%, rgba(255,250,235,.35), rgba(0,0,0,0) 70%);
  background-position: left 11px top 11px, right 11px top 11px, left 11px bottom 11px, right 11px bottom 11px, 0 0, 0 0;
  background-size: 15px 15px, 15px 15px, 15px 15px, 15px 15px, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  border: 2px solid var(--frame); border-radius: 14px; box-shadow: inset 0 0 0 5px var(--tan), 0 2px 0 var(--frame); }
main.panel::before { content: ''; position: absolute; inset: 15px; border: 2px solid var(--ink); border-radius: 9px; pointer-events: none; }
main.panel > * { position: relative; }
@media (max-width: 600px) { /* thinner frame on phones, as on the home page, so the content keeps its room */
  main.panel { width: calc(100% - 16px); padding: 26px 20px 28px; border-radius: 11px; box-shadow: inset 0 0 0 2.5px var(--tan), 0 2px 0 var(--frame);
    background-position: left 4px top 4px, right 4px top 4px, left 4px bottom 4px, right 4px bottom 4px, 0 0, 0 0; background-size: 12px 12px, 12px 12px, 12px 12px, 12px 12px, auto, auto; }
  main.panel::before { inset: 7px; border-radius: 6px; }
}

/* ---------- headings */
h1, h2 { font-family: var(--serif); font-weight: 800; letter-spacing: .01em; line-height: 1.08; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); background: var(--act); color: var(--cream); padding: 11px 20px; border-radius: var(--radius);
  font-family: var(--mono); font-weight: 500; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .06s ease, box-shadow .06s ease; }
.btn:hover { background: var(--act-hover); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled, .btn:disabled:hover { opacity: .45; cursor: not-allowed; background: var(--act); transform: none; box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost, .btn.secondary, .btn.quiet { background: var(--field); color: var(--ink); }
.btn.ghost:hover, .btn.secondary:hover, .btn.quiet:hover { background: #fff7e6; }
button:focus-visible, a:focus-visible, .btn:focus-visible { outline: 3px solid var(--arrow); outline-offset: 3px; }

/* ---------- links that act like buttons, inside the panel */
.linkbtn { background: none; border: 0; color: var(--act); cursor: pointer; padding: 6px 8px; border-radius: 5px; white-space: nowrap; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.small { font-size: 14.5px; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- the boxes founders type into: pale cream with a dark outline */
input[type=text], input[type=number], input[type=month], input[type=email], input[type=url], input[type=date], select, textarea {
  background: var(--field); border: 1.5px solid var(--ink); border-radius: 6px; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #6f6652; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--arrow); outline-offset: 1px; background: #fffaf0; }

/* ---------- the copyright under the panel */
.sitefoot { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 22px 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .03em; color: var(--foot); text-align: right; }
@media (max-width: 600px) { .sitefoot { text-align: center; } }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
