/* Scoped: matches simplyoperated.com (paper, ink, green; Instrument Serif headings, Inter text). */
:root {
  --paper: #F7F5F0; --paper-2: #EFECE4; --card: #FFFFFF;
  --ink: #0E1726; --ink-2: #2B3647; --muted: #5F6B7A; --faint: #8A94A3;
  --line: #E3DFD5; --line-2: #D6D1C4;
  --navy: #0C1B2E; --navy-2: #13263D;
  --green: #1E6B52; --green-2: #17563F; --mint: #E3EEE8;
  --amber: #B8741A; --warm: #FBF3E6;
  --owner: #E3EEE8;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Inter, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased; }
main { max-width: 780px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
a { color: var(--green); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; background: rgba(247,245,240,.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; }
.brand .mark svg { width: 16px; height: 16px; stroke: #9FD3BC; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.brand .tool { font-weight: 500; color: var(--muted); font-size: .9rem; }
nav a { margin-left: 1.1rem; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
nav a:hover { color: var(--ink); }
footer { text-align: center; color: var(--faint); font-size: .85rem; padding: 2.5rem 1rem; }
footer a { color: var(--muted); }

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; margin: .6rem 0 .9rem; }
h1 em, h2 em { font-style: italic; color: var(--green); }
h2 { font-size: 1.9rem; line-height: 1.1; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 1rem 0 .45rem; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lede { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--faint); }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.5rem; margin: 1rem 0; color: inherit; }
.card.internal { background: var(--warm); border-color: #EBD9B8; }
.card.diy { border-color: #CFE2D8; background: var(--mint); }
a.tutorial-link { text-decoration: none; }
a.tutorial-link:hover { border-color: var(--green); }
.flash { background: var(--warm); border: 1px solid #EBD9B8; padding: .7rem 1rem; border-radius: 12px; }
label { display: block; margin: .7rem 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .85rem; font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(30,107,82,.35); border-color: var(--green); }
.decide label input[type=radio] { display: inline; width: auto; margin-right: .4rem; }
.decide label select { margin-top: .4rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.3rem; font: 600 .97rem/1 var(--sans); border: 0; border-radius: 999px; background: var(--green); color: #fff; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: var(--green-2); }
button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
button.secondary:hover { box-shadow: inset 0 0 0 1px var(--ink); background: transparent; }
a.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
button:disabled { opacity: .55; cursor: wait; }
form.inline { display: inline; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .15rem .55rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); vertical-align: middle; }
.tag.diy { background: var(--mint); color: var(--green); }
.tag.example { background: #F6E7CC; color: #8A5A00; }
.facts { display: grid; grid-template-columns: 9rem 1fr; gap: .2rem .8rem; margin: .4rem 0; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; }
.problem { border-top: 1px solid var(--line); padding-top: .6rem; }
.problem:first-of-type { border-top: 0; }
.how ol { padding-left: 1.2rem; }
.how li { margin-bottom: .4rem; }
.steps { padding-left: 1.3rem; }
.step { margin-bottom: 1.1rem; }
.step p { margin: .2rem 0; }
.guide { background: var(--mint); border-radius: 10px; padding: .35rem .7rem; display: inline-block; }
.card.send { border-color: var(--green); }
.card.fit h3 { margin-top: 0; }
.card.fit .verdict { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--ink); margin: .1rem 0 .3rem; }
.card.fit-yes { border-color: #CFE2D8; background: var(--mint); }
.card.fit-yes .verdict { color: var(--green); }
.card.fit-partly { border-color: #EBD9B8; background: var(--warm); }
.card.fit-partly .verdict { color: var(--amber); }
.card.fit-not_yet { border-color: var(--line-2); background: var(--paper-2); }
.or-book { margin-top: .9rem; font-size: .95rem; }
/* chat */
.log { display: flex; flex-direction: column; gap: .65rem; margin: 1rem 0; }
.msg { max-width: 85%; padding: .7rem 1rem; border-radius: 16px; white-space: pre-wrap; }
.msg.assistant { background: var(--card); border: 1px solid var(--line); align-self: flex-start; }
.msg.owner { background: var(--owner); color: var(--ink); align-self: flex-end; }
.msg.system { align-self: center; color: var(--muted); font-size: .9rem; }
.msg.typing { color: var(--muted); }
.say { display: flex; gap: .6rem; align-items: flex-end; }
.say textarea { flex: 1; margin: 0; }
.finish { margin-top: .6rem; text-align: right; }
.transcript { max-height: 28rem; overflow-y: auto; }
/* review */
table.queue { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.queue th, .queue td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.queue th { background: var(--paper-2); font-weight: 600; color: var(--ink); }
.count { font-size: .9rem; color: var(--muted); font-family: var(--sans); }
.tutorial h2 { margin-top: 1.5rem; }
.tutorial li { margin-bottom: .3rem; }
.cta { text-align: center; }
@media print {
  .top nav, .no-print, footer, .flash { display: none !important; }
  .top { position: static; }
  body { background: #fff; font-size: 12pt; }
  .card { border: 0; padding: 0; margin: .8rem 0; background: none !important; }
  main { max-width: none; padding: 0; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .msg { max-width: 95%; }
  .brand .tool { display: none; }
  nav a { margin-left: .8rem; }
}
