/* 4780AI website - the product's own "paper and ink" look: warm paper, a navy frame, hairlines, and the logo's purple as the accent. */
:root {
  --bg: #f3f1ec; --panel: #faf9f5; --raised: #ffffff; --text: #1c1b18; --muted: #69655d;
  --line: #dfdbd2; --line-2: #c2bdb1; --accent: #5b4fa8; --accent-text: #ffffff; --accent-soft: rgba(91, 79, 168, .11);
  --ink: #1d1c19; --ink-text: #f6f4ef; --ok: #3b7a1f; --bad: #b3261e; --bad-bg: #f8e4e1; --attn: #9a5b00; --warn-bg: #f6ebd0;
  --code: #eae7df; --user: #e8e4da;
  --frame: #161826; --frame-text: #e9e9ed; --frame-muted: #a5a8b8; --frame-line: #2b2f44; --frame-accent: #9184d9;
  --head: Bahnschrift, "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131412; --panel: #1a1b18; --raised: #232421; --text: #e9e7e0; --muted: #9d998f;
    --line: #30312c; --line-2: #4a4b44; --accent: #a79df0; --accent-text: #14122b; --accent-soft: rgba(145, 132, 217, .17);
    --ink: #e9e7e0; --ink-text: #131412; --ok: #86c873; --bad: #f27d70; --bad-bg: #3a201c; --attn: #e5a94c; --warn-bg: #33280f;
    --code: #272824; --user: #2a2b27;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--ui); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .005em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.kicker { font: 600 12px/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.small { font-size: 13.5px; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--frame); color: var(--frame-text); border-bottom: 1px solid var(--frame-line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.logo-img { display: block; height: 36px; width: auto; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--frame-muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--frame-text); }
@media (max-width: 760px) { .top nav a.opt { display: none; } .top .wrap { gap: 14px; } }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); border-radius: 4px; padding: 10px 20px;
  font: 600 15px/1.2 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.top .btn { padding: 7px 14px; font-size: 14px; background: var(--frame-accent); border-color: var(--frame-accent); color: #12101f; }
.top .btn:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.small-btn { padding: 4px 11px; font-size: 13px; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); max-width: 17ch; margin-bottom: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }

/* the product, drawn */
.shot { margin: 34px 0 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 60px rgba(20, 18, 12, .16);
  font: 12.5px/1.5 var(--ui); }
.shot-top { display: flex; align-items: center; gap: 4px; background: var(--frame); color: var(--frame-text); padding: 0 12px; height: 38px; }
.shot-logo { display: block; height: 25px; width: auto; }
.shot-top .tabs { display: flex; gap: 14px; color: var(--frame-muted); font-weight: 600; margin-left: 18px; height: 100%; align-items: stretch; }
.shot-top .tabs span { display: flex; align-items: center; border-bottom: 2px solid transparent; }
.shot-top .tabs .on { color: var(--frame-text); border-bottom-color: var(--frame-accent); }
.shot-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; min-height: 380px; }
.shot-pane { background: var(--panel); padding: 12px; }
.shot-pane.left { border-right: 1px solid var(--line); }
.shot-pane.right { border-left: 1px solid var(--line); }
.cap { font: 600 10px/1.3 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.shot .new { background: var(--ink); color: var(--ink-text); text-align: center; border-radius: 4px; padding: 6px; font-weight: 600; margin-bottom: 14px; }
.shot .thread { padding: 4px 8px; border-left: 2px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .thread.on { background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.shot .st { display: flex; align-items: center; gap: 6px; font: 600 10px var(--head); letter-spacing: .09em; text-transform: uppercase; border-bottom: 1px solid var(--line);
  padding-bottom: 4px; margin: 12px 0 4px; }
.shot .sq { width: 7px; height: 7px; background: var(--ok); border-radius: 1px; }
.shot-mid { padding: 14px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.shot h4 { font: 600 16px var(--head); margin: 0 0 2px; }
.shot .you { background: var(--user); border-radius: 4px; padding: 8px 12px; }
.shot .tool { font: 11px/1.5 var(--mono); color: var(--muted); border-left: 2px dotted var(--line-2); padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .tool b { color: var(--text); }
.shot .ans { border-left: 2px solid var(--accent); padding-left: 12px; }
.shot .box { margin-top: auto; border: 1px solid var(--line-2); border-radius: 6px; background: var(--raised); padding: 8px 10px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center; }
.shot .box b { background: var(--ink); color: var(--ink-text); border-radius: 4px; padding: 4px 14px; }
.shot .card { background: var(--raised); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 6px 9px; margin-bottom: 6px; font-weight: 600; }
.shot .card span { display: block; font: 400 10.5px/1.45 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.shot .acts { display: flex; gap: 6px; justify-content: flex-end; margin: 8px 0 12px; }
.shot .acts span { border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 11px; font-weight: 600; background: var(--raised); }
.shot .acts .go { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.shot .log { font: 11px/1.6 var(--mono); color: var(--muted); }
@media (max-width: 900px) { .shot-body { grid-template-columns: minmax(0, 1fr); } .shot-pane.left { display: none; } .shot-pane.right { border-left: 0; border-top: 1px solid var(--line); } }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; max-width: 24ch; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 22px; } section { padding: 48px 0; } .hero { padding: 44px 0 28px; } }
.col { border-top: 2px solid var(--text); padding-top: 14px; }
.col h3 { font-size: 19px; margin-bottom: 8px; }
.col p, .col li { color: var(--muted); font-size: 15px; }
.asks { list-style: none; margin: 0; padding: 0; }
.asks li { padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); position: relative; color: var(--text); }
.asks li::before { content: "\203A"; position: absolute; left: 3px; color: var(--accent); font-weight: 700; }
.steps { counter-reset: n; }
.steps .col { counter-increment: n; }
.steps .col::before { content: "0" counter(n); display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 6px; }
.safe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 26px; }
@media (max-width: 760px) { .safe { grid-template-columns: minmax(0, 1fr); } }
.safe div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.safe b { display: block; font: 600 17px var(--head); margin-bottom: 3px; }
.safe span { color: var(--muted); font-size: 15px; }

/* pricing */
.price { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 28px; }
@media (max-width: 860px) { .price { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--raised); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); padding: 24px 24px 22px; border-radius: 0 0 6px 6px; }
.plan .amount { font: 600 46px/1 var(--head); margin: 6px 0 2px; }
.plan .per { color: var(--muted); margin-bottom: 18px; }
.plan .btn { width: 100%; text-align: center; margin-top: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); }
.need li { padding-left: 0; }
.need li::before { display: none; }

/* FAQ */
.faq { max-width: 780px; margin-top: 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 28px 15px 0; font: 600 17px/1.35 var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--muted); font-weight: 400; font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); max-width: 68ch; }

/* customer feedback */
.fb-sum { font-weight: 600; margin: 22px 0 0; }
.fb-list { list-style: none; margin: 14px 0 0; padding: 0; max-width: 780px; }
.fb-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.fb-name { font: 600 17px var(--head); }
.fb-stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.fb-when { color: var(--muted); font-size: 13px; margin-left: auto; }
.fb-text { margin: 0; white-space: pre-line; max-width: 68ch; overflow-wrap: anywhere; }
.fb-reply { margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid var(--accent); background: var(--accent-soft); font-size: 14.5px; white-space: pre-line;
  max-width: 68ch; overflow-wrap: anywhere; }
.fb-reply b { display: block; font: 600 11.5px/1.8 var(--head); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.fb-card .fb-quote { color: var(--text); font-size: 16px; margin: 6px 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.fb-card .fb-by { font: 600 14px var(--head); color: var(--muted); margin: 0; }
.fb-write { margin-top: 44px; padding: 28px 0 0; border-top: 2px solid var(--text); max-width: 780px; }
.fb-write h2 { font-size: 22px; margin-bottom: 6px; }
.fb-form { display: grid; gap: 14px; max-width: 620px; margin-top: 18px; }
.fb-form label { display: grid; gap: 5px; font-weight: 600; font-size: 14.5px; }
.fb-form input, .fb-form select, .fb-form textarea { font: 400 16px/1.45 var(--ui); padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--raised); color: var(--text); width: 100%; }
.fb-form #fbKey { font: 600 16px var(--mono); }
.fb-form textarea { resize: vertical; min-height: 120px; }
.fb-form input:focus, .fb-form select:focus, .fb-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fb-form .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.fb-form button:disabled { opacity: .55; }
.empty { color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; padding: 16px 20px; max-width: 620px; margin: 22px 0 0; }
.empty b { display: block; color: var(--text); font: 600 18px var(--head); margin-bottom: 4px; }

/* the Modules page */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.mods:empty { display: none; }
.mod { background: var(--raised); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: 0 0 6px 6px; padding: 20px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mod h3 { font-size: 21px; }
.mod p { margin: 0; color: var(--muted); font-size: 15px; }
.mod .ticks { align-self: stretch; }
.mod .cost { font: 600 22px var(--head); color: var(--text); margin-top: 6px; }
.mod .btn { align-self: stretch; text-align: center; margin-top: auto; }
.state.soon { color: var(--attn); }

/* footer */
footer { border-top: 1px solid var(--line-2); padding: 30px 0 46px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer p { margin: 0; max-width: 70ch; }

/* account + documents */
.page { padding-top: 48px; padding-bottom: 70px; min-height: 70vh; }   /* the side gutter stays .wrap's */
.page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.doc { max-width: 760px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc li { margin: 5px 0; }
.draft { background: var(--warn-bg); color: var(--attn); border-left: 4px solid var(--attn); padding: 10px 14px; font-weight: 600; margin: 0 0 24px; }
.keyform { display: flex; gap: 8px; max-width: 560px; margin: 22px 0 8px; }
.keyform input { flex: 1; min-width: 0; font: 600 16px var(--mono); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--raised); color: var(--text); }
.keyform input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 520px) { .keyform { flex-direction: column; } }
.msg { min-height: 22px; font-weight: 600; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--ok); }
.acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 26px; }
@media (max-width: 800px) { .acct { grid-template-columns: minmax(0, 1fr); } }
.acct > div { border-top: 2px solid var(--text); padding-top: 14px; }
.acct h2 { font-size: 20px; margin-bottom: 10px; }
.state { display: inline-block; font: 600 11px/1.8 var(--head); letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 2px; padding: 0 8px; }
.state.on { color: var(--ok); }
.state.off { color: var(--bad); }
.pcs { list-style: none; margin: 0; padding: 0; }
.pcs li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pcs code { font: 600 14px var(--mono); }
.pcs span { color: var(--muted); font-size: 13px; margin-right: auto; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
