/* StrataMinutes design system — formal, civic, legible.
   Primary users are older council volunteers: big type, high contrast,
   generous targets, no clutter. */

:root {
  --navy: #1b2a4a;
  --navy-dark: #12203c;
  --navy-light: #2c4270;
  --ink: #1f2430;
  --body: #33404f;
  --muted: #5b6674;
  --line: #d8dce3;
  --paper: #f7f6f2;
  --card: #ffffff;
  --gold: #96731c;
  --green: #1d6b3c;
  --red: #a02c2c;
  --amber: #9a6a10;
  --focus: #2c5dbb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
}
h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.1rem; margin: 0 0 .6rem; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
p { margin: .5rem 0 1rem; }
a { color: var(--navy-light); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ── Header ─────────────────────────────── */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand .brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .4px; }
.brand .brand-tag { display: block; font-family: var(--sans); font-size: .72rem; opacity: .85; letter-spacing: .6px; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: #e8ebf2; text-decoration: none; font-family: var(--sans);
  font-size: .95rem; padding: 9px 13px; border-radius: 4px;
}
.site-nav a:hover { background: rgba(255,255,255,.12); }
.site-nav a.nav-cta { background: #fff; color: var(--navy); font-weight: 600; }

/* Mobile header: stack the brand above a clean centered nav row instead of
   cramming everything onto one line. */
@media (max-width: 760px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 12px;
    min-height: 0;
  }
  .brand { justify-content: center; text-align: left; }
  .brand img { height: 34px; }
  .brand .brand-name { font-size: 1.2rem; }
  .brand .brand-tag { font-size: .6rem; letter-spacing: .4px; }
  .site-nav { width: 100%; justify-content: center; gap: 2px; }
  .site-nav a { font-size: .92rem; padding: 8px 9px; }
  .site-nav a.nav-cta { padding: 8px 12px; }
}
@media (max-width: 360px) {
  .site-nav a { font-size: .85rem; padding: 7px 7px; }
}

/* ── Buttons & forms ─────────────────────── */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 1.05rem; padding: 13px 26px; border-radius: 5px;
  border: 2px solid var(--navy); cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: #fff; color: var(--navy); }
.btn-secondary:hover { background: #eef1f6; }
.btn-big { font-size: 1.2rem; padding: 16px 34px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--navy-light); text-decoration: underline; cursor: pointer; font-size: .95rem; font-family: var(--sans); padding: 4px; }

label { display: block; font-family: var(--sans); font-weight: 600; color: var(--ink); margin: 14px 0 6px; font-size: 1rem; }
input[type=text], input[type=email], textarea, select {
  width: 100%; font-size: 1.05rem; font-family: var(--sans);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 5px;
  background: #fff; color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.hint { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin-top: 4px; }
.error-text { font-family: var(--sans); color: var(--red); font-weight: 600; margin-top: 8px; }

/* ── Cards & layout ──────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 28px; box-shadow: 0 1px 3px rgba(27,42,74,.06);
}
.section { padding: 44px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.badge { display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.badge-green { background: #e3f1e8; color: var(--green); }
.badge-amber { background: #f7edd8; color: var(--amber); }
.badge-red { background: #f9e5e5; color: var(--red); }
.badge-navy { background: #e8ebf2; color: var(--navy); }

/* ── Hero / upload-first ─────────────────── */
.hero { padding: 46px 0 10px; text-align: center; }
.hero h1 { font-size: 2.5rem; max-width: 820px; margin: 0 auto .5rem; }
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 700px; margin: 0 auto 1rem; }
@media (max-width: 640px) { .hero h1 { font-size: 1.85rem; } }

.uploader-card { max-width: 820px; margin: 26px auto 0; text-align: left; }
.type-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
@media (max-width: 640px) { .type-row { grid-template-columns: 1fr; } }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; }
.type-option .type-card {
  display: block; border: 2px solid var(--line); border-radius: 6px;
  padding: 12px 14px; cursor: pointer; font-family: var(--sans); background: #fff;
}
.type-option input:checked + .type-card { border-color: var(--navy); background: #eef1f6; box-shadow: inset 0 0 0 1px var(--navy); }
.type-card .t-label { font-weight: 700; color: var(--ink); display: block; }
.type-card .t-desc { font-size: .85rem; color: var(--muted); }

.drop-zone {
  border: 2.5px dashed #b8bfca; border-radius: 8px; background: #fbfbf9;
  padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop-zone.dragover { border-color: var(--navy); background: #eef1f6; }
.drop-zone .dz-title { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 0; }
.drop-zone .dz-sub { font-family: var(--sans); color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.file-list { margin: 10px 0 0; padding: 0; list-style: none; font-family: var(--sans); }
.file-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: #eef1f6; border: 1px solid var(--line); border-radius: 5px;
  padding: 8px 12px; margin-top: 6px; font-size: .95rem;
}
.file-list button { background: none; border: none; color: var(--red); font-size: 1.1rem; cursor: pointer; padding: 2px 6px; }

.tabs { display: flex; gap: 0; margin-top: 18px; border-bottom: 2px solid var(--line); }
.tab-btn {
  font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--muted);
  background: none; border: none; padding: 10px 18px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ── Analysis / tease ────────────────────── */
.progress-steps { font-family: var(--sans); }
.progress-steps .step-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 1.02rem; color: var(--muted); }
.progress-steps .step-line.active { color: var(--ink); font-weight: 600; }
.progress-steps .step-line.done { color: var(--green); }
.spinner {
  width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--navy);
  border-radius: 50%; animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tease-banner {
  background: #eef4ec; border: 1.5px solid #bcd4c2; border-radius: 8px;
  padding: 18px 22px; font-size: 1.08rem; color: #24422e;
}
.tease-banner strong { color: #16341f; }

.blur-stage { position: relative; margin-top: 22px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.blur-doc { filter: blur(7px); user-select: none; pointer-events: none; padding: 36px 44px; background: #fff; min-height: 460px; }
.blur-doc h1 { font-size: 1.3rem; text-align: center; color: var(--navy); }
.blur-doc h2 { font-size: 1rem; color: var(--navy); font-family: var(--sans); }
.blur-doc p, .blur-doc td { font-size: .95rem; }
.blur-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(247,246,242,.25), rgba(247,246,242,.88) 78%);
  padding: 30px;
}
.blur-overlay .card { max-width: 460px; }

.code-inputs { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.code-inputs input {
  width: 52px; height: 60px; text-align: center; font-size: 1.7rem; font-family: var(--sans);
  border: 1.5px solid var(--line); border-radius: 6px;
}

/* ── Minutes preview (dashboard) ─────────── */
.minutes-preview { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 38px; max-height: 520px; overflow-y: auto; }
.minutes-preview h1 { font-size: 1.25rem; text-align: center; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.minutes-preview h2 { font-size: 1rem; font-family: var(--sans); color: var(--navy); text-transform: uppercase; letter-spacing: .3px; }
.minutes-preview .motion-block { background: #eef1f6; border-left: 4px solid var(--navy); padding: 10px 16px; margin: 12px 0; }
.minutes-preview .action-item { background: #f6f1e7; border-left: 4px solid var(--gold); padding: 10px 16px; margin: 12px 0; }
.minutes-preview table { border-collapse: collapse; width: 100%; }
.minutes-preview th, .minutes-preview td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.minutes-preview th { background: #e8ebf2; }

/* ── Pricing ─────────────────────────────── */
.price-card { text-align: center; position: relative; }
.price-card.featured { border: 2.5px solid var(--navy); }
.price-card .plan-name { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: .9rem; }
.price-figure { font-size: 3rem; color: var(--ink); font-weight: 700; margin: 6px 0 0; }
.price-figure .per { font-size: 1.05rem; color: var(--muted); font-weight: 400; font-family: var(--sans); }
.price-was { color: var(--muted); font-family: var(--sans); }
.price-was s { color: var(--red); }
.founding-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-family: var(--sans); font-size: .78rem;
  font-weight: 700; letter-spacing: 1px; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.feature-list { list-style: none; padding: 0; margin: 18px 0; font-family: var(--sans); text-align: left; }
.feature-list li { padding: 7px 0 7px 30px; position: relative; }
.feature-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

/* ── Dashboard ───────────────────────────── */
.job-card { margin-bottom: 18px; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.job-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.job-meta { font-family: var(--sans); color: var(--muted); font-size: .9rem; }
.progress-bar { height: 10px; background: #e8ebf2; border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.progress-bar .fill { height: 100%; background: var(--navy); border-radius: 999px; transition: width .6s ease; }
.dl-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.compliance-summary { font-family: var(--sans); font-size: .95rem; margin-top: 10px; }
.compliance-summary .miss { color: var(--red); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 820px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stat .n { font-size: 1.9rem; font-weight: 700; color: var(--navy); font-family: var(--sans); }
.stat .l { font-family: var(--sans); color: var(--muted); font-size: .85rem; }

table.data { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; background: #fff; }
table.data th, table.data td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data th { background: #e8ebf2; color: var(--navy); }

/* ── Footer ──────────────────────────────── */
.site-footer { background: var(--navy); color: #c8d0de; margin-top: 60px; padding: 34px 0; font-family: var(--sans); font-size: .92rem; }
.site-footer a { color: #e8ebf2; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.notice { background: #fdf6e3; border: 1px solid #e4d5a1; border-radius: 6px; padding: 14px 18px; font-family: var(--sans); font-size: .95rem; }
.hidden { display: none !important; }
