:root {
  --ink: #18324a;
  --muted: #627385;
  --line: #dfe6ec;
  --soft: #f6f8fa;
  --accent: #0f6f62;
  --accent-dark: #0b574d;
  --warn: #9a6110;
  --danger: #a33a35;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 50, 74, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #eef3f6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand-wrap { display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: white; font-weight: 800; letter-spacing: .5px;
}
.brand { font-weight: 800; font-size: 17px; }
.pilot { color: var(--muted); font-size: 12px; margin-top: 2px; }
.link-button { border: 0; background: transparent; color: var(--accent); font-weight: 700; }

.shell {
  max-width: 1180px;
  margin: 36px auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.progress-card, .trust-card, .workspace {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.sidebar-stack {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
  align-self: start;
}
.progress-card { padding: 22px; }
.progress-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); }
.progress-track { height: 7px; border-radius: 99px; background: #e9eef2; overflow: hidden; margin: 13px 0 22px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.progress-steps { list-style: none; padding: 0; margin: 0; }
.progress-steps li { padding: 10px 0; color: #8a98a6; font-weight: 650; font-size: 14px; }
.progress-steps li.active { color: var(--accent); }
.progress-steps li.done { color: var(--ink); }
.progress-steps li.done::before { content: "✓ "; color: var(--accent); }
.draft-note { font-size: 12px; color: var(--muted); line-height: 1.45; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }

.trust-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 21px 20px 18px;
  background: linear-gradient(145deg, #f6fbfa 0%, #ffffff 76%);
}
.trust-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -34px;
  bottom: -36px;
  border-radius: 50%;
  background: rgba(15, 111, 98, .07);
  pointer-events: none;
}
.trust-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.15px;
}
.trust-mark {
  height: 28px;
  margin-top: 5px;
  color: #9bc9c1;
  font-family: Georgia, serif;
  font-size: 50px;
  line-height: 1;
}
.trust-quote {
  min-height: 82px;
  margin: 3px 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: opacity .18s ease;
}
.trust-benefit {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  transition: opacity .18s ease;
}
.trust-quote.is-changing, .trust-benefit.is-changing { opacity: 0; }
.trust-dots {
  display: flex;
  gap: 6px;
  margin-top: 15px;
}
.trust-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d5e2e0;
  cursor: pointer;
}
.trust-dot.active {
  width: 19px;
  background: var(--accent);
}
.trust-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.workspace { min-height: 640px; padding: 42px 46px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 10px 0 12px; letter-spacing: -1.2px; }
h2 { font-size: 27px; margin: 6px 0 12px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 720px; margin-bottom: 28px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card {
  border: 1px solid var(--line); background: white; border-radius: 14px; padding: 20px;
  text-align: left; transition: .15s ease; min-height: 105px;
}
.project-card:hover { border-color: #9bbdb7; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,111,98,.08); }
.project-card.selected { border: 2px solid var(--accent); background: #f3fbf9; }
.project-title { font-weight: 800; font-size: 16px; margin-bottom: 7px; }
.project-desc { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Form system: consistent two-column rhythm, 16px controls, and top-aligned inputs.
   JavaScript equalizes only the metadata height within each visual row, so hints
   can vary without moving the controls. Validation text always grows downward. */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 30px;
  align-items: start;
}
.field {
  min-width: 0;
  align-self: start;
}
.field.full { grid-column: 1 / -1; }
.field-meta { min-width: 0; }
.field label {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
}
.field .hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.field > input,
.field > select,
.field > textarea,
.field > .field-load-error {
  margin-top: 12px;
}
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #cfd9e0;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,111,98,.10);
}
textarea { min-height: 112px; resize: vertical; }
.section-title {
  margin: 40px 0 18px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 850;
}

.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice {
  border: 1px solid var(--line); border-radius: 10px; background: white; padding: 12px 16px; min-height: 46px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.choice.active { border-color: var(--accent); color: var(--accent-dark); background: #f2faf8; }

.actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.actions-right { display: flex; gap: 10px; }
.btn { border: 0; border-radius: 10px; padding: 12px 18px; min-height: 46px; font-size: 16px; font-weight: 800; }
.btn.primary { background: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: #eef3f5; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); padding-left: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.notice { border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; margin: 16px 0; }
.notice.info { background: #eef8f6; border: 1px solid #c5e4de; }
.notice.warn { background: #fff7e8; border: 1px solid #edd6aa; color: #68440c; }

.review-top { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: center; }
.score { border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; background: var(--soft); }
.score-number { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.score-label { font-size: 12px; color: var(--muted); }
.review-section { margin-top: 28px; }
.review-section h3 { margin: 0 0 12px; font-size: 16px; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.summary-table td:first-child { width: 38%; color: var(--muted); font-weight: 700; }
.missing-list { margin: 0; padding-left: 20px; color: var(--danger); }
.complete-pill { display: inline-flex; align-items: center; gap: 7px; background: #edf8f5; color: var(--accent-dark); padding: 7px 10px; border-radius: 99px; font-size: 12px; font-weight: 850; }

footer { max-width: 1180px; margin: 0 auto 38px; padding: 0 22px; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 800px) {
  .site-header { padding: 0 18px; }
  .shell { grid-template-columns: 1fr; margin-top: 18px; }
  .sidebar-stack { position: static; }
  .trust-card { display: none; }
  .progress-card { position: static; }
  .progress-steps { display: flex; gap: 12px; flex-wrap: wrap; }
  .workspace { padding: 28px 22px; }
  .project-grid, .form-grid, .review-top { grid-template-columns: 1fr; }
}
.small-copy { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: -6px; }
.schedule-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.schedule-table { width: 100%; min-width: 930px; border-collapse: collapse; background: white; }
.schedule-table th, .schedule-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px; vertical-align: middle; font-size: 12px; }
.schedule-table th { background: var(--soft); text-align: left; font-weight: 800; color: var(--ink); }
.schedule-table th:first-child, .schedule-table td:first-child { width: 42px; text-align: center; }
.schedule-table input, .schedule-table select { padding: 8px; border-radius: 7px; min-width: 120px; }
.cd-table { min-width: 1120px; }
.cd-table th:first-child, .cd-table td:first-child { width: 150px; text-align: left; }
.cd-table td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; min-width: 90px; }
.cd-table td:last-child input { min-width: 210px; }
.tiny-hint { color: var(--muted); font-size: 10px; margin-top: 3px; font-weight: 500; }

.brand-button { border: 0; background: transparent; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.hidden { display: none !important; }
.save-status { color: var(--muted); font-size: 12px; min-width: 58px; text-align: right; }
.shell.dashboard-mode { grid-template-columns: 1fr; }
.dashboard-mode .sidebar-stack { display: none; }
.dashboard-mode .workspace { min-height: 500px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.auth-tab { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 14px; font-weight: 800; color: var(--muted); }
.auth-tab.active { border-color: var(--accent); color: var(--accent); background: #f2faf8; }
.auth-card { max-width: 620px; }
.account-note { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.error-box { background: #fff0ef; border: 1px solid #ecc7c3; color: var(--danger); border-radius: 10px; padding: 11px 13px; margin: 14px 0; font-size: 13px; }
.dashboard-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.project-list { display: grid; gap: 14px; }

.project-card-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; max-width:440px; }
.status-pill.attention { background:#fff4df; color:#8a5a00; }
.generation-change-note { margin:10px 0 0; padding:10px 12px; border-radius:9px; background:#fffaf0; border:1px solid #ead8ad; }
.saved-project { border: 1px solid var(--line); border-radius: 15px; padding: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; }
.saved-project h3 { margin: 0 0 5px; font-size: 17px; }
.project-meta { color: var(--muted); font-size: 13px; line-height: 1.55; }
.status-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: #eef3f5; font-size: 11px; font-weight: 800; color: var(--muted); }
.status-pill.paid { background: #edf8f5; color: var(--accent-dark); }
.version-list { display: grid; gap: 8px; margin-top: 10px; }
.version-link { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 13px; }
.purchase-box { border: 1px solid #bcded7; background: #f1faf8; border-radius: 14px; padding: 18px; margin-top: 22px; }
.purchase-box h3 { margin: 0 0 6px; }
.purchase-price { font-size: 26px; font-weight: 900; margin: 8px 0; }
.mini { font-size: 11px; color: var(--muted); line-height: 1.5; }
.project-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #8a98a6; margin-top: 5px; }
@media (max-width: 800px) {
  .header-actions { gap: 8px; }
  .save-status { display: none; }
  .saved-project { grid-template-columns: 1fr; }
  .project-card-actions { max-width:none; width:100%; justify-content:stretch; }
  .project-card-actions .btn { width:100%; }
  .dashboard-head { display: block; }
  .dashboard-head .btn { margin-top: 12px; }
}

.permit-category { margin: 18px 0 26px; }
.permit-category .section-title { margin-top: 0; }
.version-link[type="button"] { width: 100%; background: #fff; cursor: pointer; text-align: left; font-family: inherit; }


/* Field labels, help, hints and section grouping. */
.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
}
.required-mark { color: var(--danger); }
.field-support { min-height: 0; }
.field-help { position: relative; display: inline-block; flex: 0 0 auto; }
.field-help > summary {
  list-style: none;
  width: 32px;
  height: 32px;
  border: 1px solid #bfcbd4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.field-help > summary::-webkit-details-marker { display: none; }
.field-help > summary:hover, .field-help[open] > summary { background: #eef8f6; border-color: var(--accent); }
.field-help-card {
  position: absolute;
  z-index: 20;
  top: 38px;
  right: 0;
  width: min(340px, 78vw);
  padding: 13px 14px;
  border: 1px solid #cdd9df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24,50,74,.16);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.translation-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border: 1px solid #c5e4de; background: #f2faf8; border-radius: 12px; margin: 0 0 28px; font-size: 14px; }
.translation-banner strong { width: 100%; }
.translation-banner span { background: white; border: 1px solid #d6e6e2; padding: 6px 9px; border-radius: 99px; }
.plain-language-note { margin-top: 28px; }
.subsection-title {
  margin: 42px 0 18px;
  padding-top: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}
.form-grid + .subsection-title {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section-title + .subsection-title { margin-top: 24px; padding-top: 0; border-top: 0; }
.advanced-card { margin-top: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); overflow: visible; }
.advanced-card > summary { cursor: pointer; padding: 15px 16px; font-weight: 800; }
.advanced-card > summary span { color: var(--muted); font-weight: 600; margin-left: 8px; font-size: 13px; }
.advanced-grid { padding: 8px 16px 20px; }
.validation-summary { margin-bottom: 22px; }
.validation-summary ul { margin: 8px 0 0; padding-left: 21px; }
.review-status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0 22px; }
.review-status-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; display: flex; gap: 11px; align-items: flex-start; background: white; }
.review-status-card strong { display: block; margin-bottom: 3px; }
.review-status-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.status-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.status-good .status-icon { background: #e5f5f1; color: var(--accent-dark); }
.status-warn .status-icon { background: #fff1d5; color: var(--warn); }
.status-neutral .status-icon { background: #eef3f5; color: var(--ink); }
.review-callout { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: #fafcfd; }
.inferred-callout { background: #f2faf8; border-color: #c5e4de; }
.check-list { margin: 8px 0 0; padding-left: 22px; }
.check-list li { margin: 6px 0; }
.verify-list li::marker { color: var(--warn); }
.new-permit-dialog { border: 0; border-radius: 18px; padding: 0; width: min(540px, calc(100vw - 32px)); box-shadow: 0 24px 70px rgba(24,50,74,.28); }
.new-permit-dialog::backdrop { background: rgba(17,34,48,.42); }
.dialog-card { padding: 28px; }
.dialog-card h2 { margin-top: 8px; }
.dialog-copy { color: var(--muted); margin: 0 0 16px; }
.same-property-card { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 13px 14px; margin-bottom: 18px; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(15,111,98,.28); outline-offset: 2px;
}

@media (max-width: 800px) {
  .site-header { min-height: 68px; height: auto; padding: 10px 14px; gap: 10px; }
  .brand { font-size: 15px; }
  .pilot { display: none; }
  .header-actions { gap: 4px; }
  .link-button { padding: 10px 7px; min-height: 44px; }
  .shell { padding: 0 12px; gap: 12px; }
  .progress-card { padding: 12px 14px; border-radius: 12px; }
  .progress-label { font-size: 10px; }
  .progress-track { margin: 8px 0 10px; }
  .progress-steps { display: block; }
  .progress-steps li { display: none; padding: 0; font-size: 14px; }
  .progress-steps li.active { display: block; }
  .draft-note { display: none; }
  .workspace { padding: 24px 18px; border-radius: 14px; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .lede { font-size: 16px; line-height: 1.55; margin-bottom: 22px; }
  .field-help-card { position: fixed; left: 16px; right: 16px; top: auto; bottom: 20px; width: auto; max-height: 45vh; overflow: auto; font-size: 15px; box-shadow: 0 18px 50px rgba(24,50,74,.26); }
  .field-help > summary { width: 36px; height: 36px; }
  .review-status-grid { grid-template-columns: 1fr; }
  .dialog-card { padding: 22px; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .btn { width: 100%; }
  .actions { align-items: stretch; }
  .actions .btn { min-width: 0; }
}

/* V13 account consent, legal and email preference UX */
.signup-consents { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--accent); }
.consent-row a { color: var(--accent); font-weight: 700; }
.required-consent { font-weight: 600; }
.consent-note { margin-left: 30px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.account-preferences-card { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 18px 20px; }
.account-preferences-card h3 { margin: 0 0 5px; }
.preference-actions { justify-content: flex-start; margin-top: 14px; }
.site-footer { display: grid; gap: 10px; max-width: 1180px; margin: 18px auto 40px; padding: 0 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--accent); font-weight: 650; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
@media (max-width:800px) {
  .consent-row { font-size: 14px; }
  .consent-note { margin-left: 30px; }
  .account-preferences-card { padding: 16px; }
  .site-footer { padding: 0 16px; }
}


/* V14 conversion + checkout trust */
.value-strip { margin: -6px 0 26px; padding: 14px 16px; border: 1px solid #cfe1dd; background: #f7fbfa; border-radius: 13px; }
.value-strip-copy { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.value-strip-copy strong { font-size: 15px; }
.value-strip-copy span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.value-points { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--accent-dark); font-size: 13px; font-weight: 750; }
.private-fee-note { display: grid; gap: 3px; margin: 8px 0 14px; padding: 11px 13px; border-radius: 10px; background: white; border: 1px solid #d8e6e2; }
.private-fee-note strong { font-size: 14px; }
.private-fee-note span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.purchase-terms { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.purchase-terms a { color: var(--accent); }
.purchase-cta { width: 100%; min-height: 50px; }
.checkout-trust { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; padding: 11px 12px; border-radius: 11px; background: #fff; border: 1px solid #d9e3e7; }
.secure-checkout { display: flex; align-items: center; gap: 8px; min-width: 0; }
.secure-checkout svg { width: 22px; height: 22px; fill: var(--accent); flex: 0 0 auto; }
.secure-checkout span { display: grid; line-height: 1.2; }
.secure-checkout strong { font-size: 13px; }
.secure-checkout small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.payment-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.pay-badge, .stripe-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 2px 7px; border: 1px solid #d5dde3; border-radius: 5px; background: white; font-size: 10px; font-weight: 850; letter-spacing: -.15px; color: #243c50; }
.stripe-badge { color: #635bff; font-size: 13px; letter-spacing: -.6px; }
.pay-badge.visa { font-style: italic; letter-spacing: -.5px; }
@media (max-width: 620px) {
  .value-strip { padding: 13px 14px; }
  .value-strip-copy { display: block; }
  .value-strip-copy strong { display: block; margin-bottom: 4px; }
  .value-points { gap: 7px 12px; }
  .checkout-trust { align-items: flex-start; flex-direction: column; }
  .payment-badges { justify-content: flex-start; }
}

.private-service-inline { margin-top: 10px; padding-top: 9px; border-top: 1px solid #dce8e5; color: var(--muted); font-size: 11px; line-height: 1.4; }
.private-service-inline a, .private-fee-note a { color: var(--accent); font-weight: 700; }

/* V14.2: number fields should look like fields, not empty dropdowns/spinners. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.field-load-error {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #c84a4a;
  border-radius: 10px;
  background: #fff7f7;
  font-size: 14px;
  line-height: 1.4;
}

/* Validation: visual emphasis without changing field geometry. */
.validation-summary { font-size: 15px; line-height: 1.5; }
.validation-summary p { margin: 5px 0 8px; color: var(--ink); }
.validation-summary li { margin: 6px 0; }
.validation-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.validation-link:hover, .validation-link:focus-visible { color: var(--ink); }
.field.field-error-state {
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 0 0 8px #fff8e8, 0 0 0 9px #e3b965;
}
.field.field-error-state input,
.field.field-error-state select,
.field.field-error-state textarea,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #b66b25;
  box-shadow: 0 0 0 3px rgba(182,107,37,.10);
}
.field-error-message {
  margin: 8px 2px 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}


/* V14.6: concise conversion + service-scope copy and jurisdiction-neutral checkout. */
.conversion-note,
.service-scope-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.conversion-note { color: var(--accent-dark); }
.service-scope-note {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dce8e5;
  color: var(--muted);
}
.service-scope-note strong,
.finish-scope-note strong { color: var(--ink); }
.finish-scope-note {
  display: grid;
  gap: 5px;
  margin: 10px 0 16px;
  padding: 13px 14px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #cfe1dd;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.promo-box {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #d8e2e7;
  border-radius: 12px;
  background: #fff;
}
.promo-box > label { display:block; font-weight:800; font-size:14px; margin-bottom:7px; }
.promo-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.promo-row input { min-height:46px; }
.promo-row .btn { min-width:92px; }
.promo-status { margin-top:7px; font-size:12px; line-height:1.4; }
.promo-status.valid, .promo-savings { color: var(--accent-dark); font-weight:750; }
.promo-status.invalid { color: var(--danger); font-weight:700; }
.promo-status.neutral { color: var(--muted); }
.promo-price { display:flex; align-items:baseline; gap:10px; }
.original-price { font-size:17px; color:var(--muted); text-decoration:line-through; font-weight:650; }
.promo-savings { margin:-4px 0 10px; font-size:13px; }
@media (max-width:620px) {
  .promo-row { grid-template-columns:1fr; }
  .promo-row .btn { width:100%; }
  .conversion-note,.service-scope-note { font-size:13px; }
}


/* Responsive form behavior. */
@media (max-width: 800px) {
  .form-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .field-meta { min-height: 0 !important; }
  .field > input, .field > select, .field > textarea, .field > .field-load-error { margin-top: 10px; }
  .subsection-title { margin: 34px 0 14px; padding-top: 8px; }
  .form-grid + .subsection-title { margin-top: 40px; padding-top: 20px; }
  .field.field-error-state { box-shadow: 0 0 0 6px #fff8e8, 0 0 0 7px #e3b965; }
  .field-help-card {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 20px;
    width: auto;
    max-height: 45vh;
    overflow: auto;
    font-size: 15px;
    box-shadow: 0 18px 50px rgba(24,50,74,.26);
  }
  .field-help > summary { width: 36px; height: 36px; }
}

/* V15.9 account confirmation handoff */
.confirmation-card { max-width: 720px; margin: 0 auto; text-align: left; }
.confirmation-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; background: #eef7f5; color: var(--accent-dark); font-size: 28px; font-weight: 800; }
.confirmation-lede { margin: 4px 0 18px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.confirmation-progress { display: grid; gap: 5px; margin: 16px 0 20px; padding: 15px 16px; border: 1px solid #cfe1dd; background: #f7fbfa; border-radius: 12px; }
.confirmation-progress strong { color: var(--accent-dark); }
.confirmation-progress span { color: var(--muted); line-height: 1.5; }
.confirmation-steps { margin: 0 0 20px 22px; padding: 0; display: grid; gap: 10px; color: var(--ink); line-height: 1.5; }
.confirmation-actions { margin-top: 18px; justify-content: flex-start; flex-wrap: wrap; }
.confirmation-change-email { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 700; padding: 8px 0; margin-top: 8px; cursor: pointer; text-decoration: underline; }
.confirmation-help { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-return-notice { display: flex; gap: 8px; align-items: baseline; margin: 0 0 20px; padding: 13px 15px; border: 1px solid #b8d9cf; background: #f2fbf7; border-radius: 12px; color: var(--ink); line-height: 1.45; }
.auth-return-notice strong { color: var(--accent-dark); flex: 0 0 auto; }
@media (max-width:800px) {
  .confirmation-card { max-width: none; }
  .confirmation-actions { flex-direction: column; }
  .confirmation-actions .btn { width: 100%; }
  .auth-return-notice { display: grid; gap: 3px; }
}

/* V16.2 purchase-completion and document-ready handoff */
.completion-box { padding: 22px; }
.completion-kicker { color: var(--accent-dark); font-size: 13px; font-weight: 850; letter-spacing: .01em; margin-bottom: 5px; }
.completion-box h3 { font-size: 23px; line-height: 1.2; margin-bottom: 8px; }
.completion-lede { margin: 0 0 17px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.completion-primary { width: 100%; min-height: 52px; font-size: 16px; }
.completion-save-note { margin: 12px 0 0; line-height: 1.55; }
.changed-document-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.changed-document-actions .btn { min-height: 48px; }
@media (max-width: 620px) {
  .completion-box { padding: 18px; }
  .completion-box h3 { font-size: 21px; }
  .changed-document-actions { grid-template-columns: 1fr; }
}
