:root {
  --navy: #0a2a66;
  --navy-deep: #06183c;
  --blue: #1a6fe0;
  --blue-bright: #2f8bff;
  --ink: #101a2c;
  --body: #47536b;
  --line: #dbe4f2;
  --tint: #f2f6fd;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

/* The attribute wins over any display we set. Without this a `hidden` button
 * still shows, because .btn sets display:inline-flex and an author rule beats
 * the browser's own [hidden] rule - which is how the chat panel shipped open
 * and the wizard shipped with a Next button on its last step. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.16; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { height: 56px; width: auto; object-fit: contain; }
.brand-text strong {
  display: block; font-size: 1.4rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1.1;
}
.brand-text strong span { color: var(--blue); }
.brand-text em {
  display: block; font-style: normal; font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #8494ae; margin-top: 2px;
}

.nav { display: flex; gap: 26px; font-size: 0.94rem; font-weight: 500; color: var(--ink); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Only the mobile nav panel shows this one - on a desktop the same call to
 * action sits in the header, beside the nav. */
.nav-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(26, 111, 224, 0.26);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(26, 111, 224, 0.34); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 28px rgba(4, 18, 48, 0.28); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(47, 139, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 96px 0 84px; max-width: 880px; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.lede { font-size: 1.14rem; margin-top: 26px; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note {
  margin-top: 34px; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #93a1ba; font-weight: 600;
}

/* ---------- journey strip ---------- */

.journey { background: var(--navy-deep); color: #cfdcf3; }
.steps {
  display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 26px 0;
}
.steps li { padding: 4px 16px 4px 0; border-left: 1px solid rgba(255, 255, 255, 0.13); padding-left: 16px; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.step-n { display: block; font-size: 0.72rem; font-weight: 700; color: var(--blue-bright); letter-spacing: 0.1em; }
.step-t { display: block; font-size: 0.92rem; font-weight: 500; color: #eaf1fd; margin-top: 3px; line-height: 1.3; }

/* ---------- sections ---------- */

.section { padding: 92px 0; }
.section-alt { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.sub { margin-top: 18px; font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { border-color: #bfd3f2; box-shadow: 0 14px 34px rgba(10, 42, 102, 0.08); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card-lg { padding: 32px 30px; }
.card-bio { margin-top: 22px; }
.card-bio p + p { margin-top: 12px; }

/* pre-site inspection panel */

.panel {
  margin-top: 40px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
}
.panel-head { max-width: 620px; margin-bottom: 26px; }
.panel-head h3 { font-size: 1.3rem; margin-bottom: 8px; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 34px; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.panel-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.95rem; }

/* analyzers */

.analyzers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.analyzer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.analyzer:hover { border-color: #bfd3f2; box-shadow: 0 14px 34px rgba(10, 42, 102, 0.08); }
.analyzer h3 { color: var(--navy); margin-bottom: 8px; }
.analyzer p { font-size: 0.94rem; }

/* reagent columns */

.cols { columns: 2; column-gap: 48px; }
.cols li { break-inside: avoid; padding: 11px 0 11px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.99rem; }
.cols li::before {
  content: ""; position: absolute; left: 4px; top: 1.25em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue);
}

/* billing */

.billing-inner { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.ticks { margin-top: 26px; }
.ticks li { position: relative; padding: 10px 0 10px 30px; font-size: 0.99rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em; width: 13px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.quote-card {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e8f0ff; border-radius: var(--radius); padding: 38px 34px; font-size: 1.06rem;
  line-height: 1.55; position: relative; top: 42px;
}

.fineprint { margin-top: 34px; font-size: 0.86rem; color: #7c89a1; max-width: 760px; }

/* ---------- cta ---------- */

.cta {
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(47, 139, 255, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dce7fa; padding: 76px 0;
}
.cta h2 { color: #fff; }
.cta p { margin-top: 16px; max-width: 620px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }

/* ---------- footer ---------- */

.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 62px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; padding-bottom: 46px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-logo { width: 150px; height: auto; flex: none; }
.footer-brand p { font-size: 0.95rem; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.95rem; padding: 5px 0; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 22px; font-size: 0.86rem; color: #8894ab;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
  .steps li:nth-child(4) { border-left: 0; padding-left: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .billing-inner { grid-template-columns: 1fr; gap: 34px; }
  .quote-card { top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav {
    /* 100%, not a pixel figure: the header's height moves every time the logo
     * does, and 76px was written for a header two sizes ago - it already sat
     * under its own edge. */
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { display: block; color: var(--blue); font-weight: 600; border-bottom: 0; }
  .nav-toggle { display: block; order: 3; }
  .header-inner .btn-sm { display: none; }
  .hero-inner { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { border-left: 0; padding-left: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .cols { columns: 1; }
  .panel { padding: 30px 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- AI lab planner panel ---------- */

.ai-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.ai-launcher {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 14px 22px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  box-shadow: 0 10px 26px rgba(10, 42, 102, 0.28);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.ai-launcher:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 42, 102, 0.34); }
.ai-launcher-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ce0a0; box-shadow: 0 0 0 4px rgba(124, 224, 160, 0.25); }
.ai-root.is-open .ai-launcher { display: none; }

.ai-panel {
  width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(6, 24, 60, 0.28);
}

.ai-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; color: #eaf1fd;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.ai-head strong { display: block; color: #fff; font-size: 1rem; }
.ai-head span { display: block; font-size: 0.78rem; color: #a9c0e6; margin-top: 2px; }
.ai-close { background: none; border: 0; color: #cfdcf3; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.ai-close:hover { color: #fff; }

.ai-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #f8fbff; }

.ai-msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 0.95rem; line-height: 1.55; }
.ai-msg p { margin: 0; }
.ai-msg p + p { margin-top: 10px; }
.ai-msg a { color: var(--blue); text-decoration: underline; }
.ai-msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ai-msg-user { align-self: flex-end; background: var(--navy); color: #eef4ff; }
.ai-msg-user a { color: #bcd6ff; }

.ai-typing { display: flex; gap: 5px; align-items: center; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb4d4; animation: ai-bounce 1.1s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.16s; }
.ai-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes ai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-form { display: flex; gap: 10px; padding: 14px 16px 0; align-items: flex-end; background: #fff; }
.ai-input {
  flex: 1; resize: none; font-family: inherit; font-size: 0.95rem; line-height: 1.5;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  max-height: 140px;
  /* A textarea scrolls by default, and at one row the content is a hair taller
   * than the box, so an empty input showed a scrollbar stub. The box grows with
   * the text instead (assistant.js), and only turns scrolling back on when it
   * reaches max-height. */
  overflow-y: hidden;
}
.ai-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 111, 224, 0.14); }
.ai-send {
  border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  font-family: inherit; font-size: 0.92rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}
.ai-send:disabled { opacity: 0.55; cursor: default; }
.ai-foot { padding: 10px 16px 14px; margin: 0; font-size: 0.78rem; color: #8a97ae; background: #fff; }
.ai-foot a { color: var(--blue); text-decoration: underline; }

@media (max-width: 520px) {
  .ai-root { right: 12px; bottom: 12px; left: 12px; align-items: stretch; }
  .ai-launcher { justify-content: center; }
  .ai-panel { width: 100%; height: calc(100vh - 80px); }
}

/* ---------- questionnaire ---------- */

.q-intro {
  padding: 72px 0 48px;
  background:
    radial-gradient(760px 340px at 88% -20%, rgba(47, 139, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.q-intro h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.q-intro .sub { max-width: 720px; }
.q-shortcut { margin-top: 22px; font-size: 0.97rem; }
.q-shortcut a { color: var(--blue); text-decoration: underline; }

.q-form { padding: 52px 0 88px; display: flex; flex-direction: column; gap: 26px; }

.q-block {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 30px 30px 32px; margin: 0;
  /* A fieldset carries a UA `min-inline-size: min-content`, so it refuses to
   * shrink to its container and pushes the page sideways on a narrow screen —
   * which is exactly the horizontal scroll this page had on a phone. */
  min-inline-size: 0;
}
.q-block legend {
  display: flex; align-items: center; gap: 12px; padding: 0 10px; margin-left: -10px;
  font-size: 1.12rem; font-weight: 650; color: var(--ink);
}
.q-block legend span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue);
  background: var(--tint); border-radius: 6px; padding: 4px 8px;
}
.q-hint { margin: 4px 0 18px; font-size: 0.93rem; color: #7f8ca4; }

.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin-top: 20px; }
.q-field { display: flex; flex-direction: column; gap: 7px; }
.q-field.q-wide { grid-column: 1 / -1; }
.q-field > span { font-size: 0.87rem; font-weight: 600; color: var(--ink); }
.q-field > span em { color: var(--blue); font-style: normal; }
.q-field input, .q-field select, .q-field textarea {
  font-family: inherit; font-size: 0.97rem; color: var(--ink); background: #fff;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; width: 100%;
}
.q-field textarea { resize: vertical; line-height: 1.55; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 111, 224, 0.14);
}

.q-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-top: 18px; }
.q-checks label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.97rem; cursor: pointer; }
.q-checks + .q-field { margin-top: 26px; }
.q-checks input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; }

.q-upload {
  margin-top: 22px; padding: 18px 20px; border: 1px dashed #c3d4ee; border-radius: 12px;
  background: #fafcff;
}
.q-upload-label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.q-upload input[type=file] { font-family: inherit; font-size: 0.9rem; color: var(--body); }
.q-upload-state { margin-top: 8px; font-size: 0.88rem; color: #7f8ca4; min-height: 1.2em; }
.q-upload-state.is-ok { color: #1c7a4a; }
.q-upload-state.is-bad { color: #b0344a; }

.q-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.q-status { display: block; margin-top: 14px; font-size: 0.93rem; color: #7f8ca4; }
.q-status.is-bad { color: #b0344a; }

.q-done { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; }
.q-done h2 { margin-bottom: 14px; }
.q-done p { margin-bottom: 16px; }
.q-done a { color: var(--blue); }
.q-done .btn-ghost { text-decoration: none; }

.cta-alt { margin-top: 18px; font-size: 0.95rem; }
.cta-alt a { color: #cfe2ff; text-decoration: underline; }

@media (max-width: 760px) {
  .q-grid, .q-checks { grid-template-columns: 1fr; }
  .q-block { padding: 24px 20px 26px; }
}

/* ---------- questionnaire wizard ---------- */

.q-progress { margin-bottom: 22px; }
.q-progress-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.q-progress-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  transition: width 0.25s ease;
}
.q-progress-text {
  margin-top: 10px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; color: #7f8ca4;
}

.q-nav { display: flex; gap: 12px; align-items: center; }
.q-nav .q-back:disabled { opacity: 0.4; cursor: default; }
.q-nav .q-next, .q-nav .q-submit { margin-left: auto; }
.q-nav .q-submit { padding: 0; }

/* ---------- questionnaire in an overlay ---------- */

.q-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6, 24, 60, 0.55); backdrop-filter: blur(3px);
}
.q-modal {
  width: min(760px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: var(--tint); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(4, 18, 48, 0.4);
}
.q-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; color: #eaf1fd;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.q-modal-head strong { display: block; color: #fff; font-size: 1.05rem; }
.q-modal-head span { display: block; font-size: 0.82rem; color: #a9c0e6; margin-top: 3px; }
.q-modal-close { background: none; border: 0; color: #cfdcf3; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.q-modal-close:hover { color: #fff; }
.q-modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.q-modal-body .q-form { width: 100%; padding: 0; gap: 0; }
.q-modal-body .q-block { padding: 24px 22px 26px; }
.q-modal-body .q-nav, .q-modal-body .q-submit { margin-top: 22px; }
.q-modal-note { padding: 40px 0; text-align: center; color: #7f8ca4; }
.q-modal-note a { color: var(--blue); text-decoration: underline; }

@media (max-width: 620px) {
  .q-overlay { padding: 0; }
  .q-modal { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
  .q-modal-body { padding: 16px; }
}

/* ---------- file picker, validation ---------- */

/* The browser's own file control cannot be styled, so it is the label that is
 * visible and the input that is only reachable through it. */
.q-file { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.q-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.q-file-button {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease;
}
.q-file:hover .q-file-button { border-color: var(--blue); color: var(--blue); }
.q-file input[type=file]:focus-visible + .q-file-button { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 111, 224, 0.14); }
.q-file-name { font-size: 0.88rem; color: #7f8ca4; overflow-wrap: anywhere; }

.q-checks-tight { grid-template-columns: repeat(3, 1fr); gap: 10px 20px; margin-top: 10px; }

.q-field input.is-bad, .q-field select.is-bad, .q-field textarea.is-bad {
  border-color: #d2637a; box-shadow: 0 0 0 3px rgba(210, 99, 122, 0.12);
}
.q-error { margin-top: 6px; font-size: 0.85rem; color: #b0344a; }

@media (max-width: 760px) {
  .q-checks-tight { grid-template-columns: 1fr 1fr; }
  .brand-mark { height: 46px; }
  .brand-text strong { font-size: 1.2rem; }
}

/* ---------- opening choices in the planner ---------- */

.ai-starters { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 2px; }
.ai-chip {
  font-family: inherit; font-size: 0.9rem; font-weight: 500; text-align: left; cursor: pointer;
  padding: 10px 15px; border-radius: 999px; color: var(--navy);
  background: #fff; border: 1px solid #c3d4ee;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.ai-chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
