/* ==========================================================================
   Bravura AI Historian Explorer: marketing site
   Brand: primary #0066cc · dark #0052a3 · light #e3f2fd
   ========================================================================== */

:root {
  --blue:        #0066cc;
  --blue-dark:   #0052a3;
  --blue-light:  #e3f2fd;
  --text:        #333333;
  --muted:       #6b7280;
  --border:      #dee2e6;
  --bg:          #ffffff;
  --bg-alt:      #f5f5f5;
  --success:     #1f9d57;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 8px 24px rgba(0,82,163,.10);
  --shadow-lg: 0 20px 50px rgba(0,82,163,.18);
  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: .92em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--blue-dark);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: #fff; color: var(--blue-dark); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-product {
  font-weight: 700; color: var(--blue-dark); font-size: 18px;
  border-left: 1px solid var(--border); padding-left: 10px;
}
.primary-nav { display: flex; gap: 28px; }
.primary-nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.primary-nav a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.user-name { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .primary-nav { display: none; } }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(ellipse at top right, var(--blue-light), transparent 60%),
    var(--bg);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue); margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; color: var(--blue-dark); margin: 0 0 20px;
}
.lede { font-size: 18px; color: var(--text); margin: 0 0 28px; max-width: 560px; }
.lede code { font-size: .9em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: var(--muted); margin: 0; }
.hero-shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0 48px; } }

/* ---- Section scaffolding ---- */
section { padding: 84px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }
.section-title {
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.015em;
  color: var(--blue-dark); margin: 0 0 14px;
}
.section-sub { font-size: 17px; color: var(--muted); max-width: 680px; margin: 0 0 48px; }

/* ---- Features ---- */
.features { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0,102,204,.3); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--blue-dark); margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.feature-card code { font-size: .85em; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- How it works ---- */
.how-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: none;
}
.how-step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative;
}
.how-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.how-step h3 { font-size: 18px; font-weight: 700; color: var(--blue-dark); margin: 0 0 10px; }
.how-step p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }
@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } }

/* ---- Gallery ---- */
.gallery { background: var(--bg-alt); }
.gallery-main { margin: 0 0 18px; text-align: center; }
.gallery-main img {
  width: 100%; max-width: 980px; height: auto; display: block; margin: 0 auto;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.gallery-main figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px;
}
.gallery-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: #fff; transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumb img { width: 100%; height: auto; display: block; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--blue); }
@media (max-width: 760px) { .gallery-thumbs { grid-template-columns: repeat(4, 1fr); } }

/* ---- Export ---- */
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.export-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.export-list li {
  position: relative; padding: 14px 18px 14px 46px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); line-height: 1.5;
}
.export-list li::before {
  content: ""; position: absolute; left: 16px; top: 18px;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
.export-list strong { color: var(--blue-dark); }
.export-shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
@media (max-width: 880px) { .export-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Pricing ---- */
.pricing-h { font-size: 20px; font-weight: 700; color: var(--blue-dark); margin: 40px 0 6px; }
.pricing-h:first-of-type { margin-top: 8px; }
.pricing-sub { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--blue-dark); color: #fff; font-weight: 600; font-size: 14px; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--blue-light); }
.price-row-featured { background: rgba(0,102,204,.05); }
.price-row-featured td:first-child { font-weight: 700; color: var(--blue-dark); }
.pricing-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.pricing-note strong { color: var(--text); }

/* ---- Licensing ---- */
.licensing { background: var(--bg-alt); }
.licensing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.licensing-shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
.licensing-copy p { font-size: 16px; color: var(--text); line-height: 1.7; margin: 0; }
.licensing-copy strong { color: var(--blue-dark); }
@media (max-width: 880px) { .licensing-grid { grid-template-columns: 1fr; gap: 28px; } .licensing-shot { order: 2; } }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--blue-dark); font-size: 16px;
  list-style: none; position: relative; padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; font-weight: 400;
  color: var(--blue); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---- Get started / lead form ---- */
.get-started { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.get-started .section-title { color: #fff; }
.get-started .section-sub { color: rgba(255,255,255,.85); }
.get-started-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.gs-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.gs-points li { position: relative; padding-left: 26px; color: rgba(255,255,255,.92); font-size: 15px; }
.gs-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
}
.gs-alt { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }
.gs-alt a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.gs-form-card { background: #fff; border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-lg); color: var(--text); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--blue-dark); margin-bottom: 6px; }
.field input {
  width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.15); }
.form-status { font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.form-status.error { color: #c0392b; }
.form-status.busy { color: var(--muted); }

.gs-success { text-align: center; }
.gs-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.gs-success h3 { font-size: 22px; color: var(--blue-dark); margin: 0 0 8px; }
.gs-success > p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.gs-version { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.verify { margin-top: 18px; text-align: left; border-top: 1px solid var(--border); padding-top: 16px; }
.verify summary { cursor: pointer; font-weight: 600; color: var(--blue-dark); font-size: 14px; }
.verify p { font-size: 13.5px; color: var(--muted); margin: 12px 0 6px; }
.verify pre { background: var(--blue-dark); color: #fff; padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 8px; font-size: 12.5px; }
.verify pre code { background: none; border: none; color: #fff; padding: 0; }
.verify-hash code { word-break: break-all; }
@media (max-width: 880px) { .get-started-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Footer ---- */
.site-footer { background: #0a2233; color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-logo { filter: brightness(0) invert(1); height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 340px; line-height: 1.6; margin: 0; color: rgba(255,255,255,.6); }
.footer-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 14px; font-weight: 600; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,.65); padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom code { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } .footer-bottom { flex-direction: column; } }

/* ---- 0.2.0 additions: wordmark lockup, Advanced Export, estimator ---- */

.hero-wordmark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-wordmark img { height: 30px; width: auto; display: block; }
.hero-wordmark span {
  font-weight: 700; font-size: 18px; color: var(--blue-dark);
  border-left: 1px solid var(--border); padding-left: 10px; line-height: 1;
}

.feature-card-accent { border-color: rgba(0,102,204,.35); background: linear-gradient(180deg, var(--blue-light) 0%, #fff 60%); }
.feature-tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--blue-dark); background: #fff; border: 1px solid var(--blue);
  padding: 2px 8px; border-radius: 20px;
}

.export-note {
  margin: 18px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; padding: 12px 16px;
}
.export-note strong { color: var(--blue-dark); }

.estimator {
  max-width: 520px; margin: 22px 0 0;
  background: #fff; border: 1px solid var(--blue); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.estimator h4 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--blue-dark); }
.estimator-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--text); }
.estimator-base-price { font-weight: 600; }
.estimator-addon {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 14.5px;
}
.estimator-addon input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.estimator-addon span:nth-child(2) { flex: 1; }
.estimator-addon-price { font-weight: 600; color: var(--blue-dark); }
.estimator-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px;
  font-size: 17px; font-weight: 700; color: var(--blue-dark);
}

.footer-product { font-weight: 700; color: #fff; margin: 0 0 6px; font-size: 15px; }

/* ---- 0.2.2 additions: chart QoL + time zone showcase ---- */
.chart-tz { background: var(--bg-alt); }
.chart-tz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.chart-tz-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 28px 24px; box-shadow: var(--shadow-sm);
}
.chart-tz-card h3 { font-size: 19px; color: var(--blue-dark); margin: 0 0 12px; font-weight: 700; }
.chart-tz-card p { font-size: 14.5px; color: var(--text); line-height: 1.6; margin: 0 0 18px; }
.chart-tz-card em { font-style: normal; font-weight: 600; color: var(--blue-dark); }
.chart-tz-card figure { margin: 0; }
.chart-tz-card figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.chart-tz-card figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.chart-tz-shots { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 900px) { .chart-tz-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---- Ask Historian section + privacy modes ---- */
.ask { background: var(--bg); border-top: 1px solid var(--border); }
.ask .eyebrow { margin-bottom: 12px; }
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }
.ask-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px;
}
.ask-card h3 { font-size: 18px; font-weight: 700; color: var(--blue-dark); margin: 0 0 10px; }
.ask-card p { font-size: 14.5px; color: var(--text); line-height: 1.6; margin: 0; }
.ask-card em { font-style: normal; font-weight: 600; color: var(--blue-dark); }
@media (max-width: 880px) { .ask-grid { grid-template-columns: 1fr; } }

.ask-h {
  font-size: 19px; font-weight: 700; color: var(--blue-dark);
  margin: 36px 0 14px; padding-top: 4px;
}

.ask-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-card {
  background: var(--blue-light); border: 1px solid rgba(0,102,204,.25);
  border-radius: var(--radius); padding: 22px 22px;
}
.mode-tag {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.mode-card h4 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin: 0 0 8px; }
.mode-card p { font-size: 14px; color: var(--text); line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .ask-modes { grid-template-columns: 1fr; } }

.ask-note {
  margin: 18px 0 0; font-size: 14.5px; color: var(--text); line-height: 1.65;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0;
  padding: 14px 18px;
}
.ask-note strong { color: var(--blue-dark); }
.ask-note code { background: #fff; }

.ask-list { margin: 0 0 0 20px; padding: 0; }
.ask-list li { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 6px; }
.ask-list li::marker { color: var(--blue); }
.ask-list strong { color: var(--blue-dark); }
.ask > .container > p { font-size: 15px; color: var(--text); line-height: 1.65; }

/* ---- Ask Historian: inline screenshots ---- */
.ask-headline-shot { margin: 8px 0 36px; text-align: center; }
.ask-headline-shot img {
  width: 100%; max-width: 980px; height: auto; display: block; margin: 0 auto;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.ask-headline-shot figcaption {
  margin-top: 12px; font-size: 14px; color: var(--muted);
}
.ask-shot-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0 8px;
}
.ask-shot-row figure { margin: 0; }
.ask-shot-row figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.ask-shot-row figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
@media (max-width: 880px) { .ask-shot-row { grid-template-columns: 1fr; } }

/* ---- Planned tag for roadmap items ---- */
.mode-card-planned { opacity: .85; }
.mode-tag-planned { background: var(--muted) !important; }
.planned-tag {
  display: inline-block; margin-left: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: #fff; border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 20px; vertical-align: middle;
}

/* ---- Contact / license builder ---- */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 22px; } }

.builder, .contact-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.builder h3, .contact-form h3 {
  font-size: 18px; color: var(--blue-dark); font-weight: 700; margin: 0 0 18px;
}

.builder-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.builder-label { width: 90px; font-weight: 600; color: var(--blue-dark); font-size: 14px; }
.builder-row select, .builder-row input[type="number"] {
  flex: 1; font-family: inherit; font-size: 14.5px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); background: #fff;
}
.builder-row select:focus, .builder-row input:focus,
.builder-num input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.15);
}

.builder-group {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px 14px; margin: 18px 0; background: var(--bg-alt);
}
.builder-group legend {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 0 8px;
}

.builder-check {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 14.5px; color: var(--text);
}
.builder-check input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.builder-check input:disabled { cursor: not-allowed; }
.builder-check-text { flex: 1; }
.builder-price { font-weight: 600; color: var(--blue-dark); font-size: 13.5px; }
.builder-price-included { color: var(--success); }

.builder-num {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 7px 0; font-size: 14px; color: var(--text);
}
.builder-num input { width: 80px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 5px; }

.builder-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: 12px;
  font-size: 17px; font-weight: 700; color: var(--blue-dark);
}
.builder-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

.contact-form .field-hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 14.5px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); resize: vertical; line-height: 1.55;
}
.contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.15); }

.cf-success {
  text-align: center; padding: 16px 0;
}
.cf-success h3 { color: var(--blue-dark); font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.cf-success p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Latest build hotfix note on the demo download list ---- */
.latest-build {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.92);
  margin-top: 4px;
}
.latest-build::before { background: none !important; width: 0 !important; height: 0 !important; content: ""; }

/* ---- Ask Historian CTA inside the demo download bullet list ---- */
.gs-ask-cta {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14px; line-height: 1.6; color: #fff;
  margin-top: 4px;
}
.gs-ask-cta::before { background: none !important; width: 0 !important; height: 0 !important; content: ""; }
.gs-ask-cta strong { color: #fff; font-weight: 700; }

/* ---- Access gate overlay ---- */
/* Hide page chrome while the gate is checking or blocking. */
body[data-gate="pending"] .site-header,
body[data-gate="pending"] main,
body[data-gate="pending"] .site-footer,
body[data-gate="blocked"] .site-header,
body[data-gate="blocked"] main,
body[data-gate="blocked"] .site-footer { visibility: hidden; }
body[data-gate="authorized"] #gate { display: none; }

.gate {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gate-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px 36px 30px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate-logo { height: 40px; width: auto; display: block; margin: 0 auto 18px; }
.gate-card h1 {
  font-size: 20px; font-weight: 700; color: var(--blue-dark);
  margin: 0 0 10px; line-height: 1.3;
}
.gate-sub {
  font-size: 14px; color: var(--muted); line-height: 1.55;
  margin: 0 0 24px;
}
.gate-card form { text-align: left; margin: 0 0 18px; }
.gate-card label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--blue-dark); margin-bottom: 6px;
}
.gate-card input[type="text"] {
  width: 100%; font-family: inherit; font-size: 15px;
  padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); letter-spacing: .02em;
}
.gate-card input[type="text"]:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,.15);
}
.gate-status {
  font-size: 13px; margin: 10px 0 0; min-height: 18px; text-align: center;
}
.gate-status.error { color: #c0392b; }
.gate-status.busy  { color: var(--muted); }
.gate-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted); margin: 18px 0;
}
.gate-divider::before, .gate-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.gate-help {
  font-size: 13px; color: var(--muted); margin: 22px 0 0;
}
.gate-help a { color: var(--blue); }

.nav-logout {
  font-size: 13px; color: var(--muted); padding: 6px 10px;
  border-radius: 5px; transition: color .15s ease, background .15s ease;
}
.nav-logout:hover { color: var(--blue-dark); background: var(--bg-alt); }

@media (max-width: 480px) {
  .gate-card { padding: 28px 24px 24px; }
  .gate-card h1 { font-size: 18px; }
}
