/* ARCHINEERS AI Planner — design tokens.
   Brand: charcoal #111418 (archineers.in theme colour) with a warm copper accent.
   TODO(Cursor): replace --accent / fonts with the exact tokens from the live site stylesheet. */
:root {
  --ink: #111418; --ink-2: #2a2f36; --muted: #5d6670; --faint: #98a1ab; --line: #dedad2; --paper: #f0ede6; --card: #ffffff;
  --accent: #b8924a; --accent-2: #f3ead6; --ok: #2f7d4f; --ok-bg: #e6f2ea; --warn: #a86a00; --warn-bg: #fbf0dc; --bad: #b3261e; --bad-bg: #fbe5e3; --nv: #50607a; --nv-bg: #e8edf4;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(17,20,24,.06), 0 4px 16px rgba(17,20,24,.06);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.wrap { max-width: min(1520px, 100%); margin: 0 auto; padding: 0 clamp(16px, 2vw, 28px); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 56px; }
.brand { display: flex; align-items: baseline; gap: 10px; cursor: pointer; text-decoration: none; color: #fff; }
.brand b { letter-spacing: .28em; font-size: 15px; font-weight: 700; }
.brand span { font-size: 12px; color: #c9ced4; letter-spacing: .06em; }
.crumbs { font-size: 12px; color: #9aa3ad; display: none; }
@media (min-width: 760px) { .crumbs { display: block; } }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav button { background: none; border: 0; color: #d6dbe0; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.top nav button.on, .top nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--accent-2); color: #6b4317; font-weight: 600; }
.badge.dark { background: rgba(255,255,255,.1); color: #f0d9bf; }
.mockbar { background: #1c2026; color: #d9c3a7; font-size: 12px; text-align: center; padding: 5px 12px; }

/* landing */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero .grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { font-size: 12px; letter-spacing: .22em; color: #d9a46b; text-transform: uppercase; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.06; margin: 14px 0 16px; letter-spacing: -.02em; font-weight: 700; }
.hero p.lead { color: #c9ced4; font-size: 17px; max-width: 560px; margin: 0 0 26px; }
.hero .art { background: #171b20; border: 1px solid #262b31; border-radius: 16px; padding: 10px; }
.hero .art svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.hero .btn.ghost { color: #fff; border-color: #3a4048; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
section.block { padding: 44px 0; }
section.block h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
section.block p.sub { color: var(--muted); margin: 0 0 22px; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card.click { cursor: pointer; transition: border-color .15s, transform .15s; }
.card.click:hover { border-color: var(--accent); transform: translateY(-1px); }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.steps .card::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; margin-bottom: 8px; }
.disclaimer { background: #fff8ef; border: 1px solid #efd9bd; color: #6b4317; padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; }

/* consult */
.consult { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 18px 0 40px; }
@media (min-width: 980px) { .consult { grid-template-columns: 1.25fr .9fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel > header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel > header h2 { font-size: 15px; margin: 0; }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; flex: 1; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.chat { height: min(62vh, 620px); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; }
.msg.assistant { background: #f3f1ec; border-top-left-radius: 4px; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.msg.info { background: #eef3f7; font-size: 13.5px; }
.msg.conflict { background: var(--warn-bg); color: #6b4a00; }
.msg .stage { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.msg details { margin-top: 6px; font-size: 13px; color: var(--muted); }
.msg details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.msg ul.facts { margin: 6px 0 0; padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; min-width: 0; }
.composer input:focus { outline: 2px solid var(--accent-2); border-color: var(--accent); }
.small { font-size: 12.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.briefsec { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.briefsec h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 999px; background: #f1efea; font-size: 12.5px; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.tag.assumed { background: var(--warn-bg); color: var(--warn); }
.tag.user { background: var(--ok-bg); color: var(--ok); }
.tag.nv { background: var(--nv-bg); color: var(--nv); }

/* brief review form */
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding: 18px 0; }
.form .card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.field { display: grid; grid-template-columns: 1fr 150px; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.field input, .field select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: #fff; width: 100%; }
.field input[type=checkbox] { width: auto; justify-self: start; }

/* plans */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 12px 0 28px; align-items: start; }
@media (min-width: 1100px) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  .side { position: sticky; top: 140px; max-height: calc(100dvh - 156px); overflow: auto; }
}
.alts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.alt { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; cursor: pointer; min-width: 170px; text-align: left; }
.alt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.alt b { display: block; font-size: 14px; }
.alt span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.tabs button.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.canvas { position: relative; height: clamp(380px, calc(100dvh - 290px), 780px); min-height: 360px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.canvas svg { width: 100%; height: 100%; display: block; user-select: none; }
.canvas .room { cursor: pointer; }
.toolbar { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.toolbar button { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; font-size: 12.5px; }
.toolbar button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; z-index: 3; max-width: 90%; box-shadow: var(--shadow); }
.side { display: flex; flex-direction: column; gap: 14px; }
.inspector .body, .inspector .insp-body { padding: 14px 16px; }
.inspector .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.inspector input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; width: 100%; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.status.passed, .status.satisfied { background: var(--ok-bg); color: var(--ok); }
.status.warning, .status.partial { background: var(--warn-bg); color: var(--warn); }
.status.failed, .status.not_satisfied { background: var(--bad-bg); color: var(--bad); }
.status.not_verified, .status.na, .status.disabled, .status.n\/a { background: var(--nv-bg); color: var(--nv); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.checks li .h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.checks li .h b { font-size: 14px; font-weight: 600; }
.checks li p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.checks li ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.cat { padding: 8px 16px; background: #faf9f6; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: #faf9f6; }
.scroll-x { overflow-x: auto; }
.cta { background: var(--ink); color: #fff; border-radius: var(--r); padding: 18px; }
.cta h3 { margin: 0 0 6px; font-size: 17px; }
.cta p { color: #c9ced4; margin: 0 0 12px; font-size: 13.5px; }
.cta .row .btn.ghost { color: #fff; border-color: #3a4048; }
.modal-bg { position: fixed; inset: 0; background: rgba(17,20,24,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal-bg { align-items: center; } }
.modal { background: #fff; border-radius: 16px 16px 0 0; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 20px; }
@media (min-width: 700px) { .modal { border-radius: 16px; } }
.modal h3 { margin-top: 0; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.modal input, .modal select, .modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.req { color: var(--bad); font-weight: 700; }
.otp-phone { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.otp-phone span { display: flex; align-items: center; padding: 0 12px; background: #f6f3ee; color: var(--ink-2); font-weight: 600; border-right: 1px solid var(--line); }
.otp-phone input { border: 0; border-radius: 0; }
.otp-err { color: var(--bad); font-size: 13px; margin: 8px 0 0; }
.otp-ok { color: var(--ok); font-size: 13px; margin: 8px 0 0; }
.acct-chip { display: inline-flex; align-items: center; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #f0d9bf; padding: 6px 10px; border: 1px solid rgba(240,217,191,.35); border-radius: 999px; }
.acct-link { color: #f0d9bf; text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.acct-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.home-auth { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid #4a525c; border-radius: 10px; background: rgba(255,255,255,.04); color: #d6dbe0; font-size: 13.5px; }
.home-auth a { color: #d9a46b; }
.home-auth .btn.ghost { color: #fff; border-color: #3a4048; }
.q-contact .field { grid-template-columns: 1fr; gap: 4px; align-items: start; }
.q-contact .field span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .otp-phone { min-height: 44px; }
  .modal .row { flex-direction: column; align-items: stretch; }
  .modal .row .btn { width: 100%; }
}
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; padding: 60px 20px; }
.footer { padding: 26px 0 40px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: 20px; }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: initial; } }

@media (max-width: 520px) { .brand span { display: none; } .top nav button { padding: 8px 7px; font-size: 13px; } .top .wrap { gap: 8px; } .brand b { letter-spacing: .2em; font-size: 14px; } }

/* Website integration: undo arch-public.css resets that squeeze the planner. */
#app {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
#app :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: revert; }
#app :where(ul, ol) { padding-left: 1.15em; list-style: disc; }
#app .checks, #app .chips, #app .alts, #app .steps { list-style: none; padding: 0; margin: 0; }
#app a { color: var(--accent); }
#app .wrap {
  width: 100%;
  max-width: min(1520px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 2vw, 28px);
}
#app .grid { display: grid; grid-template-columns: 1fr; column-gap: unset; }
@media (min-width: 900px) { #app .hero .grid { grid-template-columns: 1.1fr .9fr; } }
#app .lead { font-family: inherit; font-style: normal; color: #c9ced4; max-width: 36em; }
#app .insp-body, #app .inspector .insp-body { max-width: none; color: inherit; }
#app .hero h1 { margin: 14px 0 16px; }
#app .report-scroll { max-height: min(280px, 34vh); overflow: auto; }
#app .change-report { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0 0; }
#app .change-report h3 { margin: 0 0 6px; font-size: 14px; }
@media (max-width: 1099px) {
  .canvas { height: min(62dvh, 560px); }
  .side { position: static; max-height: none; }
  #app .report-scroll { max-height: min(240px, 40vh); }
}
