/* ArcDocs — Main Stylesheet */
:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --red: #c0392b;
  --red-light: #e74c3c;
  --gold: #e0a800;
  --text: #111;
  --text-muted: #555;
  --bg: #f8f9fa;
  --white: #fff;
  --border: #dee2e6;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --font: 'Arial', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar {
  background: var(--navy);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}
.brand-arc { color: #fff; }
.brand-docs { color: #7eb8f7; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { color: #ccc; font-size: 14px; text-decoration: none; }
.nav-link:hover { color: #fff; text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-primary { background: var(--red); color: white; }
.btn-navy { background: var(--navy); color: white; }
.btn-ghost { background: transparent; color: #ccc; border: 1px solid #555; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-full { width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--navy);
}

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ── Section spacing ── */
.section { padding: 64px 0; }
.section-sm { padding: 32px 0; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero .subtitle { font-size: 18px; color: #b0c4de; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: #7eb8f7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ── Warning box ── */
.warning-box {
  background: #fff3cd;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}
.warning-box strong { color: #856404; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecea; border: 1px solid #f5c6cb; color: #721c24; }
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.alert-info { background: #cce5ff; border: 1px solid #b8daff; color: #004085; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,26,46,.1); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: #888; margin-top: 4px; }
.form-required { color: var(--red); }

/* ── Permit review fields ── */
.permit-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.permit-field {
  background: white;
  padding: 10px 14px;
}
.permit-field.full-width { grid-column: 1 / -1; }
.permit-field.three { grid-column: span 1; }
.permit-field-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; }
.permit-field-value { font-size: 14px; color: var(--text); min-height: 20px; }
.permit-field-value.empty { color: #bbb; font-style: italic; }
.permit-field-value.required-empty { color: var(--red); font-style: italic; font-weight: 600; }
.permit-field-value.uncertain { background: #fffbe6; border-left: 3px solid var(--gold); padding-left: 6px; }

/* ── Section header ── */
.section-header {
  background: var(--navy);
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 16px;
  margin-bottom: 1px;
}

/* ── Quota bar ── */
.quota-bar-wrap { margin-bottom: 20px; }
.quota-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.quota-bar { background: #e9ecef; border-radius: 10px; height: 8px; overflow: hidden; }
.quota-fill { height: 100%; border-radius: 10px; background: var(--navy); transition: width .3s; }
.quota-fill.warn { background: var(--gold); }
.quota-fill.danger { background: var(--red); }

/* ── Table ── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: var(--navy); color: white; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:hover td { background: #f0f4ff; }
.table .status-complete { color: #155724; font-weight: 600; }
.table .status-draft { color: #856404; }

/* ── Pricing cards ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}
.pricing-card.featured { border-color: var(--navy); position: relative; }
.pricing-card .plan-name { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.pricing-card .plan-price { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-card .plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-card .plan-features { text-align: left; margin: 20px 0; }
.pricing-card .plan-features li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f0f0f0; list-style: none; }
.pricing-card .plan-features li::before { content: "✓ "; color: var(--navy); font-weight: bold; }
.badge-popular { background: var(--navy); color: white; font-size: 11px; padding: 2px 10px; border-radius: 12px; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* ── Steps / How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: white; font-size: 20px; font-weight: bold; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Voice recorder ── */
.recorder-wrap { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 20px; }
.recorder-wrap.recording { border-color: var(--red); background: #fdecea; }
#record-btn { width: 72px; height: 72px; border-radius: 50%; font-size: 28px; border: none; cursor: pointer; background: var(--red); color: white; box-shadow: 0 4px 16px rgba(192,57,43,.4); transition: transform .15s; }
#record-btn:hover { transform: scale(1.05); }
#record-btn.recording { background: var(--navy); box-shadow: 0 4px 16px rgba(26,26,46,.4); }
.recording-indicator { display: none; color: var(--red); font-size: 13px; margin-top: 10px; font-weight: 600; }
.recording-indicator.active { display: block; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 10px 20px; border: none; background: none; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Misc ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.page-title { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Footer ── */
.footer { background: var(--navy); color: #aaa; padding: 32px 20px; margin-top: 60px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { font-size: 15px; color: white; margin-bottom: 12px; }
.footer-links { display: flex; gap: 20px; margin-bottom: 16px; }
.footer-links a { color: #aaa; font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-legal { font-size: 12px; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .permit-field-grid { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
}
