/* Polished Ordexly Styles */
:root {
  --primary: #2d3748;          /* Graphite */
  --accent: #276749;           /* Deep forest green */
  --accent-light: #f0fff4;     /* Very light green tint */
  --light: #f7fafc;
  --text: #1a202c;             /* Near-black graphite */
  --muted: #4a5568;
  --success: #276749;
  --border: #e2e8f0;
  --bg: #ffffff;
}

.beta-banner {
  background: #fffbeb;
  color: #92400e;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #fcd34d;
}
body { 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; 
  line-height: 1.6; 
  color: var(--text); 
  background: #fff; 
}
header { 
  background: var(--primary); 
  color: white; 
  padding: 1rem 1.5rem; 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  max-width: 1100px; 
  margin: 0 auto; 
}
.logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
nav ul { display: flex; list-style: none; gap: 1.75rem; }
nav a { color: white; text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
nav a:hover { opacity: 0.85; }
nav a.active { border-bottom: 2px solid white; padding-bottom: 2px; }

.hero { 
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); 
  color: white; 
  text-align: center; 
  padding: 5rem 1.5rem 4rem; 
}
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.hero p { font-size: 1.15rem; max-width: 720px; margin: 0.75rem auto; }
.sub { font-size: 1.05rem; opacity: 0.95; }
.cta { 
  display: inline-block; 
  background: white; 
  color: var(--primary); 
  padding: 0.85rem 2rem; 
  margin-top: 1.75rem; 
  text-decoration: none; 
  border-radius: 6px; 
  font-weight: 600; 
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cta.secondary { background: transparent; color: white; border: 2px solid white; margin-left: 0.75rem; }
.cta.secondary:hover { background: rgba(255,255,255,0.1); }

section { padding: 3.5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
h2 { color: var(--primary); margin-bottom: 1.25rem; text-align: center; font-size: 1.85rem; font-weight: 700; }
.lead { text-align: center; color: var(--muted); margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card { 
  background: var(--light); 
  padding: 1.75rem; 
  border-radius: 8px; 
  border-left: 4px solid var(--accent); 
  transition: transform 0.15s;
}
.card:hover { transform: translateY(-2px); }
.card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1.15rem; }

.scope-list { 
  list-style: none; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 0.75rem; 
  max-width: 800px; 
  margin: 1.5rem auto; 
}
.scope-list li { 
  background: var(--accent-light); 
  padding: 0.75rem 1rem; 
  border-radius: 6px; 
  font-size: 0.95rem;
}
.note { text-align: center; color: var(--muted); margin-top: 1.25rem; font-size: 0.95rem; }

.disclaimer { 
  background: #fffbeb; 
  border: 1px solid #fcd34d; 
  padding: 1.5rem; 
  border-radius: 8px; 
  margin: 2.5rem auto; 
  max-width: 820px; 
  font-size: 0.95rem;
}
.disclaimer strong { color: #92400e; }

footer { 
  background: #f1f5f9; 
  text-align: center; 
  padding: 2rem 1.5rem; 
  color: var(--muted); 
  font-size: 0.9rem; 
  border-top: 1px solid var(--border);
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 1.5rem; }
.price-card { 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: 2rem 1.5rem; 
  text-align: center; 
  background: white;
  transition: box-shadow 0.2s;
}
.price-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.price-card.featured { 
  border: 2px solid var(--accent); 
  position: relative;
}
.price-card.featured::before {
  content: "For firms";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}
.price { font-size: 2.25rem; color: var(--primary); font-weight: 700; margin: 0.5rem 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 1.25rem 0; text-align: left; }
.price-card li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; }
.price-card li::before { content: "✓"; color: var(--success); position: absolute; left: 0; font-weight: bold; }

/* Additional polish for smoothness and engagement */
html { scroll-behavior: smooth; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 640px) {
  .hamburger { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
  nav ul.open { display: flex; }
}

.benefits {
  background: var(--light);
}
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.benefit-item .icon {
  background: var(--accent);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.upcoming-teaser {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  max-width: 480px;
  margin: 1.5rem auto;
}
.upcoming-teaser .date {
  color: var(--accent);
  font-weight: 600;
}

.email-capture {
  background: var(--accent-light);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 520px;
  margin: 2rem auto;
}
.email-capture input {
  max-width: 280px;
  margin: 0.5rem;
}
.email-capture button {
  margin-top: 0.5rem;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 0.5rem 0 1rem;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}
label { display: block; margin: 1rem 0 0.4rem; font-weight: 600; font-size: 0.95rem; }
input, select, textarea { 
  width: 100%; 
  padding: 0.7rem 0.85rem; 
  border: 1px solid var(--border); 
  border-radius: 6px; 
  font-size: 1rem;
  background: white;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,108,176,0.15); }
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 0.5rem 0 1rem;
}
.checkbox-group label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.checkbox-group label:hover {
  background: var(--accent-light);
}
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Form enhancements */
.form-success {
  display: none;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  text-align: center;
}
.form-success.visible { display: block; }

/* Enhanced features */
.faq {
  max-width: 700px;
  margin: 2rem auto 0;
}
.faq details {
  background: var(--light);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
}
.faq summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.faq details[open] summary { margin-bottom: 0.5rem; }

/* Mobile nav improvement */
@media (max-width: 640px) {
  nav ul { gap: 0.75rem; font-size: 0.9rem; }
  .hero h1 { font-size: 1.9rem; }
  .cta.secondary { display: block; margin: 0.75rem auto 0; width: fit-content; }
  .checkbox-group { max-height: 180px; }
}
button, .btn { 
  background: var(--primary); 
  color: white; 
  border: none; 
  padding: 0.85rem 1.75rem; 
  border-radius: 6px; 
  cursor: pointer; 
  margin-top: 1.25rem; 
  font-weight: 600; 
  font-size: 1rem;
  transition: background 0.15s;
}
button:hover, .btn:hover { background: var(--accent); }

/* Dashboard */
.dashboard { background: var(--light); padding: 2rem; border-radius: 10px; }
.ics-box { 
  background: white; 
  padding: 1.25rem; 
  border: 1px solid var(--border); 
  border-radius: 8px; 
  margin: 1rem 0;
}
.ics-link { 
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; 
  font-size: 0.9rem; 
  word-break: break-all; 
  background: #f1f5f9; 
  padding: 0.75rem; 
  border-radius: 4px; 
  margin: 0.5rem 0;
}
.item { 
  background: white; 
  padding: 1.1rem 1.25rem; 
  margin: 0.65rem 0; 
  border-left: 4px solid var(--accent); 
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.item strong { color: var(--primary); }
.item small { color: var(--muted); }
.item a { color: var(--accent); text-decoration: none; }
.item a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  nav ul { gap: 1rem; font-size: 0.95rem; }
  .cta.secondary { display: block; margin: 0.75rem auto 0; width: fit-content; }
  .price-card.featured::before { font-size: 0.7rem; }
}


/* Dark mode */
[data-theme="dark"] {
  --primary: #e2e8f0;
  --accent: #48bb78;
  --accent-light: #1a202c;
  --light: #2d3748;
  --text: #e2e8f0;
  --muted: #a0aec0;
  --success: #48bb78;
  --border: #4a5568;
  --bg: #1a202c;
}
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] header { background: #1a202c; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%); }
[data-theme="dark"] .card, [data-theme="dark"] .price-card { background: #2d3748; }
[data-theme="dark"] footer { background: #1a202c; }
[data-theme="dark"] .disclaimer { background: #2d3748; border-color: #4a5568; color: var(--text); }
[data-theme="dark"] .beta-banner { background: #2d3748; color: #fbd38d; border-color: #4a5568; }

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 1rem;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); }

/* QA pass additions */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
nav { position: relative; }
.logo a { color: white; text-decoration: none; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .5rem; z-index: 10; }
.theme-toggle { background: transparent; color: white; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; padding: .25rem .6rem; cursor: pointer; font: inherit; }
.narrow { max-width: 760px; }
.center { text-align: center; }
h1 { color: var(--primary); text-align: center; font-size: 2rem; margin: 0 0 1rem; }
.hero h1 { color: white; }
.narrow h2, .faq h3 { text-align: left; font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.faq { max-width: 760px; margin: 0 auto; }
.sample-email { max-width: 640px; margin: 0 auto; }
.sample-email ul { margin-left: 1.25rem; }
.benefit-list { max-width: 700px; margin: 0 auto; }
.price-card h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.price-card .cta { display: block; text-align: center; margin: .5rem 0 0; }
.cta.secondary-dark { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.upcoming { list-style: none; padding: 0; max-width: 640px; margin: 0 auto 1.5rem; }
.upcoming li { border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; margin: .5rem 0; }
.upcoming time { display: block; color: var(--accent); font-weight: 600; }
.verify { display: inline-block; font-size: .75rem; font-weight: 700; color: #7b341e; background: #feebc8; border-radius: 4px; padding: 0 .35rem; margin-left: .35rem; }
.site-disclaimer { font-size: .85rem; max-width: 800px; margin: .5rem auto; }
footer a { color: inherit; }
footer nav.foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: static; padding: 0; background: none; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0 0 1rem; } .stats dt { font-weight: 700; } .stats dd { margin: 0; }
.ics-box { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .ics-box code { word-break: break-all; }
.linklike { background: none; border: none; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
form label { display: block; margin-top: .75rem; } fieldset { margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; }
fieldset label { display: inline-flex; gap: .35rem; margin-right: 1rem; }
.error { color: #c53030; }
@media (max-width: 640px) { .hero h1 { font-size: 1.9rem; } .cta.secondary { margin-left: 0; margin-top: .75rem; } section { padding: 2.5rem 1rem; } }
section:not(.hero) .cta:not(.secondary-dark) { background: var(--accent); color: #fff; }
[data-theme="dark"] section:not(.hero) .cta:not(.secondary-dark) { background: #276749; }
[data-theme="dark"] .verify { background: #7b341e; color: #feebc8; }
nav ul { align-items: center; margin: 0; }
.pricing-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tier-size { color: var(--muted); font-size: .9rem; margin: 0; }
.founding { max-width: 760px; margin: 0 auto 2rem; padding: 1.25rem 1.5rem; border: 2px dashed var(--accent); border-radius: 10px; background: var(--accent-light); text-align: center; }
.founding h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.founding code { font-weight: 700; }
.tag { display: inline-block; font-size: .75rem; background: var(--light); border: 1px solid var(--border); border-radius: 4px; padding: 0 .35rem; margin: 0 .25rem; }
.callout { background: #fffbeb; border: 1px solid #fcd34d; color: #7b341e; padding: .75rem 1rem; border-radius: 8px; }
[data-theme="dark"] .callout { background: #2d3748; color: #fbd38d; }

/* Feedback-1: slate light mode + clearer dark cards + link contrast */
:root {
  --bg: #eef1f5;
  --card-bg: #ffffff;
  --link: #1a5f3f;
}
body { background: var(--bg); }
.card, .price-card, .upcoming-teaser, .item, .ics-box, .faq details, .founding {
  background: var(--card-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.price-card { background: var(--card-bg); }
.benefits { background: #e2e8f0; }
.scope-list li { background: #dcefe3; border: 1px solid #b7d8c4; }
footer { background: #e2e8f0; }
a { color: var(--link); }
.banner-link { color: #92400e; font-weight: 700; text-decoration: underline; }
.banner-link:hover { color: #78350f; }
.cta.secondary-dark { color: var(--accent); }
.copy-email { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; }
.copy-btn {
  margin-left: 0.4rem; margin-top: 0; padding: 0.15rem 0.5rem; font-size: 0.75rem;
  background: var(--accent); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600;
}
.copy-btn:hover { filter: brightness(1.08); }

[data-theme="dark"] {
  --bg: #0f1419;
  --card-bg: #243044;
  --light: #1c2636;
  --accent-light: #1a2838;
  --border: #3d4f66;
  --text: #e8eef6;
  --muted: #a8b8cc;
  --primary: #e8eef6;
  --accent: #5ecf8e;
  --link: #7ddea8;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .upcoming-teaser,
[data-theme="dark"] .item,
[data-theme="dark"] .ics-box,
[data-theme="dark"] .faq details,
[data-theme="dark"] .founding,
[data-theme="dark"] .sample-email {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
[data-theme="dark"] .benefits { background: #151c27; }
[data-theme="dark"] .scope-list li { background: #1a2838; border-color: #2d4a3a; color: var(--text); }
[data-theme="dark"] footer { background: #151c27; color: var(--muted); }
[data-theme="dark"] a { color: var(--link); }
[data-theme="dark"] .banner-link { color: #f6d38a; }
[data-theme="dark"] .banner-link:hover { color: #ffe6b0; }
[data-theme="dark"] .cta.secondary-dark { color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea,
[data-theme="dark"] .checkbox-group, [data-theme="dark"] fieldset {
  background: #1a2332; color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .checkbox-group label:hover { background: #243044; }
[data-theme="dark"] .error { color: #fc8181; }

/* State checkbox grid */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  border: none;
  padding: 0;
}
.state-grid legend { font-weight: 600; margin-bottom: 0.5rem; grid-column: 1 / -1; }
.state-grid label {
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
  min-height: 3rem; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-bg, #fff); cursor: pointer; font-weight: 500;
}
.state-grid label:hover { border-color: var(--accent); }
.state-grid input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: 0; flex-shrink: 0; }
@media (max-width: 640px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Subscribe action buttons */
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.25rem 0; }
.subscribe-actions .cta { margin-top: 0; }
.sub-steps { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.sub-step { background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.sub-step h3 { margin-top: 0; text-align: left; }
.mock { width: 100%; max-width: 420px; margin: 0.75rem 0; border-radius: 8px; border: 1px solid var(--border); background: #1a2332; }
.feature-now { color: var(--success); font-weight: 600; font-size: 0.8rem; }
.tier-table { width: 100%; border-collapse: collapse; margin: 1.5rem auto; max-width: 900px; font-size: 0.95rem; }
.tier-table th, .tier-table td { border: 1px solid var(--border); padding: 0.55rem 0.75rem; text-align: left; }
.tier-table th { background: var(--light); }
.pricing-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.pricing-grid.four .price-card { display: flex; flex-direction: column; min-width: 0; }
.pricing-grid.four .price-card ul { flex: 1 1 auto; }
.pricing-grid.four .price-card .cta { margin-top: auto; }
@media (max-width: 1100px) {
  .pricing-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pricing-grid.four { grid-template-columns: 1fr; }
}
.guide-steps { counter-reset: step; }
.guide-steps .card { counter-increment: step; position: relative; }
.cancel-note { max-width: 760px; margin: 1.5rem auto; padding: 1rem 1.25rem; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg, #fff); }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
.ext-box { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg, #fff); }
.ext-box legend { font-weight: 700; padding: 0 .35rem; }
.state-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: #000; padding: .5rem; z-index: 200; }

/* Dashboard / login (preview) */
.dash-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
header.dash-head, [data-theme="dark"] header.dash-head { background: transparent; color: inherit; padding: 0; position: static; box-shadow: none; z-index: auto; }
.stack { display: grid; gap: .75rem; }
.btn.secondary { background: transparent; color: var(--primary); border: 1px solid var(--border, #555); }
.card { margin: 1.25rem 0; padding: 1rem 1.25rem; border: 1px solid var(--border, #333); border-radius: 8px; }

/* ===== Feedback-2: contrast, nav, checkboxes, subscribe, import ===== */
[data-theme="dark"] button.btn,
[data-theme="dark"] button:not(.linklike):not(.theme-toggle):not(.hamburger):not(.copy-btn),
[data-theme="dark"] .btn {
  background: #2f855a;
  color: #ffffff;
  border: 1px solid #9ae6b4;
}
[data-theme="dark"] button.btn:hover,
[data-theme="dark"] .btn:hover {
  background: #38a169;
  color: #ffffff;
}
[data-theme="dark"] .btn.secondary {
  background: transparent;
  color: #9ae6b4;
  border: 1px solid #9ae6b4;
}

/* Nav: wrap + readable spacing desktop/mobile */
header nav { flex-wrap: wrap; gap: 0.75rem 1rem; }
header nav ul#navlist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  row-gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 0;
  max-width: 100%;
}
header nav ul#navlist a {
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
  font-size: 0.95rem;
}
header .hamburger { margin-left: auto; }
@media (max-width: 900px) {
  header nav ul#navlist {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
  }
  header nav ul#navlist.open { display: flex; }
  header nav ul#navlist li {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.65rem 0;
  }
  header nav ul#navlist a { display: block; font-size: 1.05rem; padding: 0.25rem 0; }
}

/* Normal-sized state checkboxes (override oversized) */
.state-grid input[type="checkbox"],
.checkbox-group input[type="checkbox"],
fieldset input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0 0.4rem 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.state-grid label,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
}

/* One-click calendar subscribe */
.subscribe-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.subscribe-btns a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--light);
}
[data-theme="dark"] .subscribe-btns a { background: #2d3748; color: #e2e8f0; }
.subscribe-btns a:hover { border-color: var(--accent); }
.subscribe-btns a.google { border-color: #4285f4; }
.subscribe-btns a.apple { border-color: #a0aec0; }
.subscribe-btns a.outlook { border-color: #0078d4; }

/* Import wizard */
.import-wizard .map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.35rem 0; }
.import-wizard table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.import-wizard th, .import-wizard td { border: 1px solid var(--border); padding: 0.35rem 0.5rem; text-align: left; }
.import-wizard tr.bad { background: rgba(229, 62, 62, 0.12); }
.import-wizard tr.dup { background: rgba(214, 158, 46, 0.15); }
.pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.8rem; background: var(--accent-light); }

/* Coverage badges */
.tag.badge-deep, .badge-deep { background: #276749; color: #fff; }
.tag.badge-official, .badge-official { background: #2b6cb0; color: #fff; }
.tag.badge-annual, .badge-annual { background: #744210; color: #fff; }
#noSurprisesBox ul { margin: .5rem 0 0; }


/* Overnight a11y / perf pass */
:focus-visible { outline: 3px solid #63b3ed; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
img, svg { max-width: 100%; height: auto; }
.skip:focus { position: static; left: auto; width: auto; height: auto; overflow: visible; clip: auto; }
/* Ensure dark/light contrast for notes */
[data-theme="dark"] .note { color: #cbd5e0; }
[data-theme="light"] .note { color: #4a5568; }
.card table { width: 100%; overflow-x: auto; display: block; }
#askFab:focus-visible, .cta:focus-visible, .btn:focus-visible { outline: 3px solid #f6e05e; }

/* a11y (pre-launch audit): WCAG AA contrast + distinguishable links */
.copy-btn { background: #276749; color: #fff; }
[data-theme="dark"] .copy-btn { background: #9ae6b4; color: #1a202c; }
[data-theme="dark"] .cta:not(.secondary):not(.secondary-dark) { color: #1a202c; }
.item a, .card p a, main p a { text-decoration: underline; }
.consent { border: 1px solid var(--border, #cbd5e0); border-radius: 6px; padding: .75rem; margin: .75rem 0; }
.consent label { display: flex; gap: .5rem; align-items: flex-start; margin: .35rem 0; font-size: .92rem; }
.consent input[type=checkbox] { margin-top: .2rem; flex: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-backdrop .modal { max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* a11y: dark-mode CTA text must be light on green (WCAG AA) */
[data-theme="dark"] .cta:not(.secondary):not(.secondary-dark),
[data-theme="dark"] a.cta:not(.secondary):not(.secondary-dark) { color: #ffffff; background-color: #276749; }

.btn.danger{background:#b91c1c;color:#fff;border-color:#7f1d1d}.btn.danger:hover{background:#991b1b}

/* Site audit 2026-10-15: single nav CTA, homepage app screenshot, coverage summary, placeholder marker */
nav .nav-cta { margin: 0; padding: .45rem 1rem; font-size: .95rem; white-space: nowrap; }
.app-shot { margin: 1rem auto; max-width: 1000px; }
.app-shot img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.coverage-summary caption { caption-side: bottom; text-align: left; font-size: .85rem; opacity: .8; padding-top: .5rem; }
.coverage-summary th[scope="row"] { text-align: left; }
.placeholder { border-left: 4px solid #d69e2e; padding-left: .75rem; }
.offer { font-weight: 600; }
/* QA 2026-10-15: checkboxes in the upcoming-deadlines list sat on their own line (inherited width:100%) */
#dueList input[type="checkbox"] { width: auto; display: inline-block; margin: 0 .5rem 0 0; vertical-align: middle; }

/* ===== State picker redesign (no mid-word wrapping) ===== */
body { overflow-wrap: break-word; } /* was "anywhere", which let grid cells break names mid-word (Alabam/a, G/u/a/m) */
.state-grid, .state-grid * , .sp-tools, .sp-tools *, .tag { word-break: normal; overflow-wrap: normal; hyphens: none; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin: .5rem 0 1rem; padding: 0; border: none; background: transparent; }
[data-theme="dark"] .state-grid { background: transparent; }
.state-grid > legend { font-weight: 600; margin-bottom: .5rem; grid-column: 1 / -1; padding: 0; }
.state-grid > .sp-tools { grid-column: 1 / -1; }
.state-grid label, .state-grid label.chip {
  display: flex !important; align-items: center; gap: .4rem; margin: 0; min-height: 48px; min-width: 0;
  padding: .55rem .55rem .55rem .65rem !important; white-space: nowrap; font-size: .93rem; font-weight: 500; line-height: 1.2;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg, #fff); color: var(--text); cursor: pointer;
}
.state-grid label[hidden] { display: none !important; }
.state-grid label:hover { border-color: var(--accent); }
.state-grid label.is-checked { border-color: var(--accent); background: var(--accent-light, #e6fffa); }
[data-theme="dark"] .state-grid label { background: #1a2332; }
[data-theme="dark"] .state-grid label.is-checked { background: #1f3b35; border-color: #68d391; }
.state-grid label:focus-within { outline: 3px solid #63b3ed; outline-offset: 2px; }
.state-grid input[type="checkbox"] { width: 1.2rem !important; height: 1.2rem !important; min-width: 1.2rem; margin: 0 !important; flex-shrink: 0; accent-color: var(--accent); }
.vicon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto;
  width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .75rem; font-weight: 700; line-height: 1; cursor: help; }
.vicon.ok { background: #2f855a; color: #fff; }
.vicon.part { background: transparent; color: #4a5568; border: 1px solid #a0aec0; font-style: italic; font-family: Georgia, serif; }
[data-theme="dark"] .vicon.ok { background: #38a169; color: #fff; }
[data-theme="dark"] .vicon.part { color: #cbd5e0; border-color: #718096; }
.sp-tools { margin: 0 0 .25rem; }
.sp-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sp-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-search { flex: 1 1 240px; min-height: 44px; margin: 0 !important; padding: .5rem .75rem; font-size: 1rem; border-radius: 8px; }
.sp-tools .sp-btn { min-height: 44px; padding: .5rem 1rem; margin: 0; border-radius: 8px; white-space: nowrap; cursor: pointer;
  background: transparent !important; color: var(--text) !important; border: 1px solid var(--border) !important; font-weight: 600; }
.sp-tools .sp-btn:hover { border-color: var(--accent) !important; }
.sp-status { margin: .4rem 0; font-size: .85rem; color: var(--muted, #718096); }
.sp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; padding: 0; }
.sp-chips:empty { display: none; }
.sp-tools .sp-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .5rem .35rem .85rem; margin: 0;
  border-radius: 999px; white-space: nowrap; font-size: .9rem; font-weight: 500; cursor: pointer;
  background: var(--accent-light, #e6fffa) !important; color: var(--text) !important; border: 1px solid var(--accent) !important; }
[data-theme="dark"] .sp-tools .sp-chip { background: #1f3b35 !important; border-color: #68d391 !important; color: #e2e8f0 !important; }
.sp-x { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 1.1rem; }
.sp-chip:hover .sp-x { background: rgba(0,0,0,.12); }
.sp-tools button:focus-visible, .sp-search:focus-visible { outline: 3px solid #63b3ed; outline-offset: 2px; }
@media (max-width: 480px) { .state-grid { grid-template-columns: 1fr; } .sp-search { flex-basis: 100%; } .sp-tools .sp-btn { flex: 1 1 0; } }
/* Other pages: coverage/pricing tags and badges never split mid-word */
.tag, .pill, .badge-deep, .badge-official, .badge-annual { white-space: nowrap; }

/* ===== Visual QA 2026-10-16 (items 1–9) ===== */
/* Sticky footer on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > footer { flex-shrink: 0; }

/* Announcement banner: an aside with a dismiss button; one line on phones */
.beta-banner { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .45rem 2.75rem .45rem 1rem; position: relative; }
.beta-banner .banner-text { margin: 0; }
.banner-short { display: none; }
.banner-close { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); margin: 0 !important; padding: 0 !important;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; font-size: 1.35rem; line-height: 1; background: transparent !important;
  color: inherit !important; border: none !important; cursor: pointer; }
.banner-close:hover { background: rgba(0,0,0,.08) !important; }
html[data-banner="closed"] .beta-banner { display: none; }
@media (max-width: 640px) {
  .banner-long { display: none; }
  .banner-short { display: inline; }
  .beta-banner { font-size: .85rem; white-space: nowrap; }
  .beta-banner .banner-text { overflow: hidden; text-overflow: ellipsis; }
  header { padding: .6rem 1rem; }
}

/* Header: one aligned row, icon theme toggle, CTA green in both themes */
header nav, header nav ul#navlist { align-items: center; }
header nav ul#navlist > li { display: flex; align-items: center; }
header .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 !important;
  width: 2.25rem; height: 2.25rem; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.45) !important;
  background: transparent !important; color: #fff !important; font-size: 1.05rem; line-height: 1; }
header .theme-toggle:hover { background: rgba(255,255,255,.12) !important; }
header .theme-toggle .theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
header .nav-cta, [data-theme="dark"] header .nav-cta { background: #2f855a !important; color: #fff !important; border: none; margin: 0 !important; line-height: 1.3; }
header .nav-cta:hover { background: #276749 !important; }
header .hamburger { margin-top: 0 !important; padding: .25rem .6rem !important; background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.35) !important; min-height: 44px; min-width: 44px; }

/* Mobile menu: same dark panel in both themes, full width, theme toggle as the last row */
@media (max-width: 900px) {
  header nav ul#navlist.open { display: flex; position: absolute; top: calc(100% + .6rem); left: -1rem; right: -1rem; width: auto;
    padding: .25rem 1.25rem 1rem; background: #1a202c; color: #e8eef6; box-shadow: 0 12px 24px rgba(0,0,0,.45); z-index: 150;
    border-top: 1px solid rgba(255,255,255,.12); }
  header nav ul#navlist.open > li { display: block; border-top: 1px solid rgba(255,255,255,.12); padding: .7rem 0; }
  header nav ul#navlist.open > li:first-child { border-top: none; }
  header nav ul#navlist.open a { color: #e8eef6; display: block; }
  header nav ul#navlist.open .nav-cta { display: block; text-align: center; padding: .7rem 1rem; }
  header nav ul#navlist.open .theme-toggle { width: 100%; height: auto; min-height: 44px; border-radius: 8px; justify-content: flex-start; padding: .5rem .75rem !important; font-size: 1rem; }
  header nav ul#navlist.open .theme-toggle .theme-text { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
}

/* Tables: no mid-word breaks; dates on one line; stacked cards on phones */
.tier-table th, .tier-table td { word-break: normal; overflow-wrap: normal; hyphens: none; }
.tier-table thead th { white-space: nowrap; }
.tier-table time { white-space: nowrap; }
.coverage-summary td { text-align: center; }
.coverage-summary td:last-child { white-space: nowrap; }
@media (max-width: 767px) {
  .table-wrap:has(.stack-cards) { overflow: visible; }
  table.stack-cards, table.stack-cards tbody, table.stack-cards tr, table.stack-cards th, table.stack-cards td { display: block; width: 100%; }
  table.stack-cards { border: none; max-width: none; }
  table.stack-cards caption { display: block; padding: 0 0 .75rem; }
  table.stack-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack-cards tr { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 .75rem; padding: .35rem .9rem .5rem; background: var(--card-bg, #fff); }
  table.stack-cards tr > :first-child { border: none; padding: .45rem 0; font-weight: 700; font-size: 1.05rem; background: none; text-align: left; }
  table.stack-cards tr > :not(:first-child) { display: flex; justify-content: space-between; gap: 1rem; border: none; border-top: 1px solid var(--border);
    padding: .4rem 0; text-align: right; background: none; }
  table.stack-cards tr > :not(:first-child)::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; }
}

/* Consent checkboxes: checkbox column + text column (no flex on inline text) */
.consent label, fieldset.consent label { display: grid !important; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin: .5rem 0; font-weight: 500; }
.consent label > input[type=checkbox] { margin: .2rem 0 0 !important; width: 1.1rem !important; height: 1.1rem !important; }
.consent label > span { display: block; min-width: 0; }

/* One primary and one secondary button style */
.cta, .btn, a.cta { border-radius: 8px; font-weight: 600; }
.subscribe-actions { align-items: stretch; }
.subscribe-actions .cta, .subscribe-actions button.cta { margin: 0; padding: .75rem 1.4rem; font-size: 1rem; line-height: 1.3; border: 2px solid transparent; }
.subscribe-actions .cta:not(.secondary-dark) { background: #2f855a !important; color: #fff !important; border-color: #2f855a; }
.subscribe-actions .cta.secondary-dark, [data-theme="dark"] .subscribe-actions .cta.secondary-dark { background: transparent !important; color: var(--accent) !important; border-color: var(--accent) !important; }
.small-link { font-size: .9rem; margin-top: .25rem; }
.btn.btn-sm { padding: .2rem .6rem; margin: 0; font-size: .82rem; white-space: nowrap; }

/* Signed-out app/account states */
.signed-out { display: block; max-width: 520px; margin: 2rem auto; padding: 2rem 1.5rem; text-align: center; }
.signed-out h1, .signed-out .so-title { display: block; font-size: 1.6rem; margin: 0 0 .5rem; color: var(--primary); }
.signed-out > span { display: block; margin-bottom: 1rem; }
.signed-out .cta { margin-top: 1rem; }

/* Dashboard upcoming-deadline rows: friendly date column, ellipsis, badge never wraps */
.due-controls { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: .5rem 0 1rem; }
.due-controls label { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 500; white-space: nowrap; }
.due-controls select { width: auto; }
.due-controls .btn { margin: 0; padding: .55rem 1rem; }
.due-list { display: grid; gap: .35rem; text-align: left; }
label.due-row { display: grid !important; grid-template-columns: auto 6.5rem minmax(0, 1fr) auto; gap: .65rem; align-items: center; margin: 0 !important;
  padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg, #fff); font-weight: 400; }
label.due-row input[type=checkbox] { width: 1.05rem !important; height: 1.05rem !important; margin: 0 !important; }
.due-date { font-weight: 700; color: var(--accent); white-space: nowrap; }
.due-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--text); }
@media (max-width: 640px) {
  label.due-row { grid-template-columns: auto 1fr auto; }
  label.due-row .due-text { grid-column: 2 / -1; white-space: normal; }
}
@media (max-width: 900px) {
  header nav { position: static; }
  header nav ul#navlist.open { top: 100%; left: 0; right: 0; padding: .25rem 1.25rem 1rem; text-align: left; }
  header nav ul#navlist.open .nav-cta { display: inline-block; }
}
.hero a:not(.cta) { color: #9ae6b4; }
#navlist > li[hidden] { display: none !important; }
/* App: feed URLs wrap cleanly inside cards */
#firmFeed, #app .card code { display: inline; word-break: break-all; white-space: normal; font-size: .85rem; line-height: 1.5; }
.dash-head .btn { margin-top: 0; }
/* App client rows: subscribe buttons in one wrapping row, feed URL left-aligned and wrapped */
#app code, #acct code { word-break: break-all; white-space: normal; }
.founding code, p code { word-break: normal; white-space: nowrap; }
.item .note { text-align: left; }
#bizList [id^="sub-"] { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
#bizList [id^="sub-"] > code { flex-basis: 100%; font-size: .82rem; }

/* VISUAL-QA-VERIFY: keep the Ask button off pricing copy on phones; coverage summary cards stay inside the viewport at 768. */
@media (max-width: 640px) { .founding, .price-card { padding-right: 56px; } }
.coverage-summary.stack-cards { box-sizing: border-box; max-width: 100%; }
#planPicker { box-sizing: border-box; width: calc(100% - 3rem); max-width: calc(1100px - 3rem); margin: 2rem auto; }
@media (max-width: 640px) { #planPicker { width: calc(100% - 2rem); } }
.price-foot { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; white-space: normal; overflow-wrap: break-word; }
/* Coverage summary fits its container from ~1000px up: tighter cells, headers may wrap onto two lines. */
@media (min-width: 768px) {
  .coverage-summary.stack-cards th, .coverage-summary.stack-cards td { padding: .45rem .5rem; }
  .coverage-summary.stack-cards thead th { white-space: normal; vertical-align: bottom; }
}

/* ===== First-login onboarding dialog ===== */
body.onb-open { overflow: hidden; }
.onb-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(10,14,20,.6); display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.onb-dialog { width: 100%; max-width: 720px; margin: 0 !important; padding: 1.25rem 1.5rem 1.5rem !important; border-radius: 14px; background: var(--card-bg, #fff); color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.4); text-align: left; }
.onb-dialog h2 { text-align: left; margin: .75rem 0 .25rem; font-size: 1.5rem; }
.onb-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.onb-steps { display: flex; gap: .5rem 1rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.onb-steps li { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.onb-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--border); font-weight: 700; font-size: .8rem; }
.onb-steps li[aria-current] { color: var(--text); font-weight: 700; }
.onb-steps li[aria-current] span, .onb-steps li.done span { background: #2f855a; border-color: #2f855a; color: #fff; }
.onb-x { margin: 0 !important; padding: 0 !important; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; background: transparent !important; color: var(--text) !important; border: 1px solid var(--border) !important; flex-shrink: 0; }
.onb-lead { color: var(--muted); margin: 0 0 .75rem; }
.onb-alt { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .5rem; padding: .75rem; border: 1px dashed var(--border); border-radius: 10px; }
.onb-alt .btn { margin: 0; padding: .55rem 1rem; text-decoration: none; }
.onb-or { font-size: .88rem; color: var(--muted); }
.onb-dialog #bizForm { margin-top: .5rem; }
.onb-dialog #bizForm button[type=submit] { width: 100%; min-height: 48px; }
.onb-due { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.onb-due li { display: grid; grid-template-columns: 7rem 1fr auto; gap: .6rem; align-items: baseline; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 8px; }
.onb-due time { font-weight: 700; color: var(--accent); white-space: nowrap; }
.onb-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.onb-actions .btn { margin: 0; min-height: 48px; }
.onb-foot { display: flex; justify-content: flex-start; margin-top: .75rem; }
.onb-foot .btn { margin: 0; }
body.onb-open #askFab { display: none !important; }
@media (max-width: 640px) {
  .onb-backdrop { padding: 0; }
  .onb-dialog { min-height: 100%; border-radius: 0; padding: 1rem !important; }
  .onb-steps { font-size: .8rem; gap: .35rem .6rem; }
  .onb-due li { grid-template-columns: 1fr auto; }
  .onb-due li span { grid-column: 1 / -1; }
  .onb-actions .btn { width: 100%; }
}
.tpl-list { list-style: none; padding: 0; display: grid; gap: .4rem; } .tpl-list a { font-weight: 600; } #previewErrors ul { margin: .4rem 0 0 1.1rem; }
.onb-alt[hidden], .onb-foot[hidden] { display: none !important; }
.onb-dialog code { word-break: break-all; white-space: normal; font-size: .82rem; }
#onbSub { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
#onbSub > code { flex-basis: 100%; }

/* Pre-launch review #8: checkout box. Plan + billing on a two-column grid; checkboxes sit next to their text. */
#planCard .ck-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem .75rem; align-items: center; margin: .75rem 0; }
#planCard .ck-fields select { width: 100%; max-width: 32rem; }
#planCard .ck-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; margin: .5rem 0; font-weight: 500; text-align: left; }
#planCard .ck-check > input[type=checkbox] { margin: .2rem 0 0; width: 1.1rem; height: 1.1rem; }
@media (max-width: 560px) { #planCard .ck-fields { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .app-shot picture img { max-width: 380px; margin: 0 auto; display: block; } }
.price-card .tier-desc { margin: .25rem 0 .5rem; font-size: .95rem; opacity: .9; }
.price-card .tier-for, .cf-plan-for { margin: .25rem 0 .5rem; font-size: .95rem; font-weight: 600; }

/* /pricing?plan=…: the plan from the link is marked (pricing.js). */
.price-card.plan-picked { outline: 3px solid var(--accent, #2f855a); outline-offset: 2px; }

/* State questions stay hidden until state-forms.js has attached to the form (site audit 2026-10-18 B2). */
form:not([data-sf-ready]) [data-sf], form:not([data-sf-ready]) [data-pack-block] { display: none !important; }
