/* AIRCRE AI Contracts Prototype — styled to match aircre.com */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');
:root {
  --cyan: #00b2e6;
  --cyan-dark: #0090bd;
  --green: #72bf44;
  --gold: #828286;
  --ink: #525355;
  --ink-dark: #3d3e40;
  --line: #d9d9d9;
  --tile: #828286;
  --bg: #ffffff;
  --bg-soft: #f7f9fa;
  --red: #c0392b;
  --amber: #e67e22;
  --head-font: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: .5px;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--head-font); font-weight: 700; letter-spacing: .5px; }
h2 {
  color: var(--cyan);
  text-transform: uppercase;
  text-align: center;
  font-size: 26px;
  margin: 34px 0 6px;
}
h2::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--ink); margin: 14px auto 0; opacity: .5;
}
.muted { color: #8a8a8a; }
.small { font-size: 12.5px; }
.error { color: var(--red); font-size: 13px; }
.hidden { display: none !important; }
a { color: var(--cyan); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.login-card { background: #fff; border: 1px solid var(--line); padding: 44px 48px; width: 380px; text-align: center; }
.login-card h1 { color: var(--cyan); text-transform: uppercase; font-size: 20px; margin: 18px 0 4px; }
.login-logo { height: 46px; }
.logo-text { font-size: 26px; color: #9b9b9b; letter-spacing: 1px; }
.logo-text b { color: #6e6e6e; }
.logo-text.sm { font-size: 19px; }
.login-card input[type=password] {
  width: 100%; padding: 11px 12px; margin: 18px 0 12px; border: 1px solid var(--line); font-size: 15px;
}

/* ---------- top bar ---------- */
.topbar { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 12px 20px; }
.topbar-logo { height: 38px; }
.topbar-title { font-weight: 600; color: var(--ink-dark); font-size: 15px; white-space: nowrap; }
.proto-badge {
  background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; vertical-align: middle; letter-spacing: .8px;
}
.steps { display: flex; gap: 18px; margin-left: auto; }
.step { font-family: var(--head-font); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #555; white-space: nowrap; }
.step.active { color: var(--cyan); border-bottom: 2px solid var(--cyan); padding-bottom: 2px; }
.step.done { color: #9a9a9a; }
.logout { font-family: var(--head-font); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #b5b5b5; text-decoration: none; }

main { max-width: 1200px; margin: 0 auto; padding: 8px 20px 80px; }
.screen > p.muted { text-align: center; margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: var(--head-font); font-size: 13px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; padding: 12px 26px; transition: background .15s;
}
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-dark); }
.btn-primary:disabled { background: #cfe9f5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.actions { text-align: center; margin: 30px 0 10px; display: flex; gap: 14px; justify-content: center; }

/* ---------- step 1: contract tiles ---------- */
.contract-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px; margin: 34px auto 8px; max-width: 1100px;
}
.contract-card {
  border: 1px solid var(--tile); background: #fff; text-align: center;
  padding: 24px 18px 20px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.contract-card:hover { border-color: var(--cyan); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.contract-card h3 { color: var(--tile); font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; margin: 0 0 8px; letter-spacing: .5px; }
.contract-card p { font-size: 12px; color: #9a9a9a; margin: 0; }
.contract-card.selected { border: 2px solid var(--cyan); }
.contract-card.selected::after {
  content: "✓ SELECTED"; position: absolute; top: 8px; right: 8px;
  background: var(--cyan); color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 7px; letter-spacing: .6px;
}
.cc-credits { display: inline-block; margin-top: 10px; font-size: 11px; color: #b5b5b5; letter-spacing: .4px; }

/* coming soon toast */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
  background: var(--ink-dark); color: #fff; padding: 13px 26px; font-size: 14px;
  letter-spacing: .4px; z-index: 200; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- step 2: uploads ---------- */
.dropzone {
  border: 2px dashed var(--line); background: var(--bg-soft); max-width: 640px;
  margin: 30px auto 14px; padding: 46px 24px; text-align: center; transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--cyan); background: #eef8fd; }
.dropzone p { margin: 4px 0; }
.filelist { list-style: none; padding: 0; max-width: 640px; margin: 0 auto; }
.filelist li {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  padding: 9px 14px; margin-bottom: 8px; font-size: 13.5px; background: #fff;
}
.filelist .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .fsize { color: #9a9a9a; font-size: 12px; }
.filelist .fremove { color: var(--red); cursor: pointer; font-weight: 700; padding: 0 4px; }
.pdf-ico { color: var(--red); font-weight: 700; font-size: 11px; border: 1px solid var(--red); padding: 1px 4px; border-radius: 2px; }

/* ---------- processing overlay ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.92); z-index: 300;
  display: flex; align-items: center; justify-content: center;
}
.overlay-card { text-align: center; max-width: 420px; padding: 20px; }
.overlay-card h3 { color: var(--cyan); text-transform: uppercase; letter-spacing: .5px; }
.spinner {
  width: 46px; height: 46px; border: 4px solid #e3f2fa; border-top-color: var(--cyan);
  border-radius: 50%; margin: 0 auto 18px; animation: spin 1s linear infinite;
}
.spinner.sm { width: 26px; height: 26px; border-width: 3px; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- step 3: review ---------- */
.legend { text-align: center; margin: 6px 0 22px; }
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 10px; border-radius: 12px; margin: 0 5px; text-transform: uppercase;
}
.chip.high { background: #e8f5d8; color: #4d7d13; }
.chip.med { background: #fdf0dc; color: #b3690f; }
.chip.low { background: #fde2de; color: #a93226; }
.deal-summary {
  max-width: 860px; margin: 0 auto 26px; background: var(--bg-soft);
  border-left: 3px solid var(--cyan); padding: 14px 18px; font-size: 14px;
}
.review-group { max-width: 860px; margin: 0 auto 26px; border: 1px solid var(--line); }
.review-group h4 {
  margin: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 11px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-dark);
}
.fieldrow { display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #efefef; }
.fieldrow:last-child { border-bottom: none; }
.fieldrow label { width: 270px; flex-shrink: 0; font-size: 13px; color: var(--ink-dark); padding-top: 8px; }
.fieldrow .fwrap { flex: 1; }
.fieldrow input[type=text], .fieldrow textarea {
  width: 100%; border: 1px solid var(--line); padding: 8px 10px; font-size: 14px; font-family: inherit;
  background: #fffdf2;
}
.fieldrow input.conf-high, .fieldrow textarea.conf-high { background: #f4fbec; border-color: #bcd99a; }
.fieldrow input.conf-medium, .fieldrow textarea.conf-medium { background: #fdf6e8; border-color: #eccf9a; }
.fieldrow input.conf-low, .fieldrow textarea.conf-low { background: #fdefec; border-color: #eab3ab; }
.fieldrow textarea { min-height: 54px; resize: vertical; }
.fmeta { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.src {
  font-size: 11.5px; color: #8a8a8a; cursor: help; border-bottom: 1px dotted #b5b5b5;
}
.fnote { font-size: 11.5px; color: var(--amber); }

/* ---------- step 4: lease doc ---------- */
.lease-toolbar { display: flex; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto; }
.lease-toolbar h2 { text-align: left; margin: 24px 0 10px; }
.lease-toolbar h2::after { margin-left: 0; }
.screen-only { text-align: center; }
.lease-doc {
  max-width: 980px; margin: 18px auto; border: 1px solid var(--line); background: #fff;
  padding: 56px 64px; font-family: Georgia, 'Times New Roman', serif; font-size: 13.5px; color: #222;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
}
.lease-doc .doc-logo { text-align: left; margin-bottom: 6px; }
.lease-doc .doc-logo img { height: 34px; }
.lease-doc h1.doc-title { text-align: center; font-size: 16px; letter-spacing: .3px; margin: 8px 0 26px; font-family: inherit; }
.lease-para { margin: 0 0 12px; text-align: justify; cursor: pointer; padding: 3px 6px; border-radius: 3px; transition: background .12s; position: relative; }
.lease-para:hover { background: #eef8fd; }
.lease-para:hover::after {
  content: "explain"; position: absolute; right: 4px; top: 2px; font-family: Arial, sans-serif;
  font-size: 10px; color: var(--cyan); text-transform: uppercase; letter-spacing: .5px;
}
.lease-para .secnum { font-weight: 700; }
.filled {
  background: #fff3bf; padding: 0 3px; font-weight: 700; border-bottom: 1px solid #e0c341;
}
.filled.empty { background: #fde2de; color: #a93226; font-weight: 400; font-style: italic; }
.doc-note {
  font-family: Arial, sans-serif; font-size: 11px; color: #9a9a9a; text-align: center;
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 12px;
}

/* ---------- explain modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #fff; max-width: 620px; width: 100%; max-height: 84vh; overflow-y: auto; padding: 0 0 18px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 10px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; color: var(--cyan); text-transform: uppercase; font-size: 15px; letter-spacing: .5px; }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: #9a9a9a; line-height: 1; }
.modal-clause { padding: 12px 22px; border-bottom: 1px solid #efefef; max-height: 130px; overflow-y: auto; font-family: Georgia, serif; }
.modal-body { padding: 16px 22px; font-size: 15px; line-height: 1.65; }
.modal-body .watchout { margin-top: 10px; color: var(--amber); font-weight: 600; }
.disclaimer { font-size: 11px; color: #9a9a9a; padding: 0 22px; margin: 4px 0 0; }

/* ---------- print ---------- */
@media print {
  .topbar, .lease-toolbar, .screen-only, .actions, .toast, .modal, .overlay { display: none !important; }
  main { max-width: none; padding: 0; }
  .lease-doc { border: none; box-shadow: none; padding: 0; }
  .lease-para:hover { background: none; }
  .lease-para:hover::after { content: none; }
  body { font-size: 12px; }
}

/* ---------- prominent tip banner ---------- */
.tip-banner {
  max-width: 980px; margin: 10px auto 4px; background: #e5f7fd; border: 1px solid #9adcf2;
  color: #056585; font-size: 16px; font-weight: 600; text-align: center; padding: 13px 20px;
}
.tip-banner .tip-ico { font-size: 18px; margin-right: 8px; }

/* ---------- global disclaimer footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 50px; padding: 16px 20px 22px;
  text-align: center; font-size: 11.5px; color: #9a9a9a; line-height: 1.6;
}
.review-disclaimer {
  max-width: 860px; margin: 0 auto 20px; border: 1px solid #eccf9a; background: #fdf6e8;
  font-size: 13px; color: #7a5a1e; padding: 11px 16px; text-align: center;
}

/* ---------- step 5: abstract & key dates ---------- */
.abstract-wrap { max-width: 980px; margin: 0 auto; }
.abstract-table { width: 100%; border-collapse: collapse; margin: 18px 0 34px; font-size: 14px; }
.abstract-table th {
  background: var(--bg-soft); border: 1px solid var(--line); text-align: left; padding: 9px 14px;
  font-family: var(--head-font); font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-dark); width: 240px;
}
.abstract-table td { border: 1px solid var(--line); padding: 9px 14px; }
.dates-list { list-style: none; padding: 0; margin: 14px 0 24px; }
.dates-list li {
  display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line);
  border-left: 4px solid var(--cyan); padding: 12px 16px; margin-bottom: 10px; background: #fff;
}
.dates-list li.cat-deadline { border-left-color: var(--red); }
.dates-list li.cat-renewal { border-left-color: var(--amber); }
.dates-list li.cat-financial { border-left-color: var(--green); }
.dl-date { font-family: var(--head-font); font-weight: 700; font-size: 14px; color: var(--ink-dark); width: 110px; flex-shrink: 0; }
.dl-body b { display: block; font-size: 14px; color: var(--ink-dark); }
.dl-body span { font-size: 12.5px; color: #8a8a8a; }
.dl-lead { margin-left: auto; font-size: 11px; color: #9a9a9a; white-space: nowrap; padding-top: 3px; }
