/* Shared theme and pages. home.css supplies the approved homepage and base tokens. */
[hidden] {
  display: none !important;
}
body {
  min-width: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
input,
select,
textarea {
  color: var(--ink);
}
textarea {
  font: inherit;
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--ink);
}
.login-link {
  font-size: 14px;
}
.site-header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 5vw;
  background: var(--paper);
}
.site-nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 14px;
}
.site-nav [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.site-nav a {
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--ink);
}
.site-header-actions {
  display: flex;
  gap: 23px;
  align-items: center;
  font-size: 14px;
}
.nav-toggle {
  display: none;
}
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 36px;
}
.page-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2.7px;
  margin: 18px 0 20px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 670px;
}
.page-intro {
  margin-bottom: 40px;
}
.page-intro.center {
  text-align: center;
}
.page-intro.center .lead {
  margin: auto;
}
.page-intro.center .eyebrow {
  color: #65798a;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1dbe9;
  background: #e5eff5;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 12px;
  color: #3f5d88;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.subhead {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.copy {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}
.copy p + p {
  margin-top: 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 28px;
}
.panel-dark {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.panel-dark .copy {
  color: #a1b7cc;
}
.panel h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
}
.panel h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.panel > p {
  margin-top: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stack {
  display: grid;
  gap: 22px;
}
.mt {
  margin-top: 28px;
}
.section-line {
  border-top: 1px solid var(--line);
  margin-top: 58px;
  padding-top: 48px;
}
.section-line > h2 {
  font-size: 32px;
  margin-bottom: 25px;
}
.button-outline {
  border: 1px solid #c6d1e3;
  background: transparent;
  color: var(--ink);
}
.button-outline:hover {
  background: #e7eef6;
}
.button-wide {
  width: 100%;
}
.button-light {
  background: white;
  color: var(--ink);
}
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 25px;
}
.compact-link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-notice {
  font-size: 13px;
  line-height: 1.65;
  border: 1px solid #d4dfeb;
  border-radius: 7px;
  background: #e8eff7;
  color: #455c88;
  padding: 12px 16px;
  margin: 20px 0;
}
.form-status {
  background: #f9eeea;
  border: 1px solid #e7c8bb;
  color: #914027;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.form-status.success {
  background: #e2edf5;
  color: #2a5280;
  border-color: #c7d8e5;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label,
.field-label {
  font-size: 14px;
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  border: 1px solid #cfd9e9;
  border-radius: 6px;
  background: #fff;
  min-height: 48px;
}
.field textarea {
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #7a9ec4;
  outline-offset: 1px;
}
.field small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.field input[aria-invalid="true"] {
  border-color: #b65b42;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 66px;
}
.password-input button {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: #f1f4f9;
  border-radius: 4px;
  font-size: 12px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0;
}
.check-row input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-footer {
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 24px;
}
.form-footer a {
  color: var(--ink);
  font-weight: 600;
}
.auth-layout {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 70px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-story .eyebrow {
  color: #a4bfd6;
  font-size: 11px;
}
.auth-story h1 {
  font-size: clamp(44px, 4.5vw, 65px);
  letter-spacing: -3px;
  line-height: 1.13;
  margin: 25px 0;
}
.auth-story h1 span {
  color: var(--lime);
}
.auth-story p {
  max-width: 410px;
  color: #9db5cc;
  font-size: 16px;
  line-height: 1.9;
}
.auth-story-foot {
  margin-top: 50px;
  font-size: 12px;
  color: #85a2b8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.auth-form-area {
  padding: 55px 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form-inner {
  width: 100%;
  max-width: 425px;
}
.auth-form-inner h2 {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 550;
}
.auth-form-inner .intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 26px;
}
.segmented {
  display: flex;
  padding: 4px;
  background: #e5ecf5;
  border-radius: 6px;
  margin-bottom: 25px;
  gap: 4px;
}
.segmented button {
  flex: 1;
  border: 0;
  padding: 10px;
  background: transparent;
  border-radius: 4px;
  font-size: 14px;
  color: var(--muted);
}
.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px #192f4810;
  font-weight: 600;
}
.auth-mini-card {
  border: 1px solid #2f5378;
  border-radius: 9px;
  padding: 24px;
  margin-top: 35px;
  max-width: 380px;
  background: #122f55;
}
.auth-mini-card .mini-label {
  font-size: 11px;
  color: #afc1d4;
}
.auth-mini-card strong {
  font-size: 21px;
  font-weight: 500;
  display: block;
  margin: 12px 0;
}
.auth-mini-card .auth-signals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.auth-signals span {
  font-size: 12px;
  padding: 7px 10px;
  border: 1px solid #395780;
  border-radius: 4px;
  color: #a9c3da;
}
.otp-input {
  font-family: monospace !important;
  font-size: 26px !important;
  letter-spacing: 9px;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 1px solid #bec8de;
  background: #e1ecf4;
  font-size: 30px;
  color: #37608a;
  margin-bottom: 22px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  align-items: stretch;
  margin-top: 35px;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.plan-label {
  font-size: 12px;
  color: #67858e;
  height: 25px;
  letter-spacing: 0.4px;
}
.plan.featured .plan-label {
  color: var(--lime);
}
.plan h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.plan-price {
  font-family: "Manrope", sans-serif;
  font-size: 45px;
  letter-spacing: -2px;
  margin: 18px 0;
}
.plan-price span {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 3px;
}
.plan.featured .plan-price span,
.plan.featured p {
  color: #a9bfd2;
}
.plan p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  min-height: 102px;
}
.plan ul {
  margin: 22px 0 27px;
}
.plan li {
  font-size: 13px;
  color: var(--ink);
}
.plan.featured li {
  color: #b3c9dc;
}
.plan .button {
  margin-top: auto;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
}
.plan.featured .button {
  background: var(--lime);
  color: var(--dark);
}
.comparison {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.comparison table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
  background: white;
  font-size: 14px;
}
.comparison th,
.comparison td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}
.comparison thead {
  background: #e8eef7;
}
.comparison th {
  font-weight: 600;
}
.comparison tr:last-child td {
  border: 0;
}
.enterprise-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #e4edf5;
  padding: 30px;
  border: 1px solid #d3e0eb;
  border-radius: 8px;
  margin-top: 25px;
}
.enterprise-banner h3 {
  font-size: 22px;
  font-weight: 500;
}
.enterprise-banner p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}
.status-page {
  max-width: 680px;
  margin: 65px auto;
  text-align: center;
  padding: 45px 35px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.status-page .success-icon {
  margin: 0 auto 25px;
}
.status-page h1 {
  font-size: 44px;
  letter-spacing: -2px;
  line-height: 1.15;
}
.status-page p {
  color: var(--muted);
  line-height: 1.8;
}
.status-page .inline-actions {
  justify-content: center;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 35px;
  align-items: start;
}
.order-lines {
  margin: 25px 0;
}
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.order-line.total {
  font-size: 20px;
  font-weight: 600;
}
.secure-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
}
.coverage-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 30px 0;
}
.coverage-tools input,
.coverage-tools select {
  font-size: 15px;
  padding: 13px;
  border: 1px solid #cdd8e7;
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}
.coverage-tools input {
  flex: 1;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.coverage-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 24px;
}
.coverage-card-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}
.coverage-card h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin: 14px 0 7px;
}
.coverage-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.authority-links {
  margin: 20px 0;
  min-height: 150px;
}
.authority-link {
  display: block;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}
.authority-link strong {
  font-weight: 600;
  margin-right: 5px;
}
.profile-initial {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  background: #dbe7f1;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 500;
  margin-bottom: 20px;
}
.timeline-card {
  border-left: 2px solid #adc0d5;
  padding: 3px 0 3px 23px;
}
.timeline-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}
.timeline-card h3 {
  font-size: 21px;
  margin-top: 10px;
}
.product-banner {
  background: var(--dark);
  color: white;
  border-radius: 10px;
  padding: 45px;
}
.product-banner .eyebrow {
  color: #a8bed6;
}
.product-banner h1 {
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.13;
  margin: 20px 0;
}
.product-banner h1 span {
  color: var(--lime);
}
.product-banner p {
  max-width: 550px;
  color: #9eb7cc;
  line-height: 1.85;
  font-size: 17px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 5vw 24px;
  margin-top: 20px;
}
.site-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.site-footer-top p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
}
.site-footer nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 14px;
  padding-top: 10px;
}
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
/* Application workspace */
.app-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eaf0f7;
  border-right: 1px solid #d4deeb;
  padding: 28px 17px;
}
.app-sidebar .brand {
  font-size: 23px;
  padding-left: 12px;
}
.app-product {
  margin: 27px 10px 22px;
  padding: 15px 0;
  border-top: 1px solid #ced9e8;
  border-bottom: 1px solid #ced9e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
.app-product .pill {
  font-size: 10px;
}
.app-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  font-size: 14px;
  color: #5a6c85;
  border-radius: 5px;
}
.app-nav a > span {
  width: 20px;
  font-size: 19px;
  line-height: 1;
}
.app-nav a:hover {
  background: #dee8f2;
}
.app-nav a[aria-current="page"] {
  background: #d7e3ef;
  color: #20385c;
  font-weight: 600;
}
.app-sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
}
.app-sidebar-bottom p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.app-sidebar-bottom .button {
  font-size: 12px;
  padding: 12px;
  width: 100%;
  gap: 12px;
}
.app-main {
  min-width: 0;
  background: #f7f9fc;
}
.app-topbar {
  height: 77px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.app-crumb {
  font-size: 13px;
  color: var(--muted);
}
.app-topbar-actions {
  display: flex;
  gap: 17px;
  align-items: center;
  font-size: 13px;
}
.app-topbar-actions .avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.app-topbar-actions button {
  border: 0;
  background: none;
  font-size: 13px;
}
.app-content {
  padding: 36px;
  max-width: 1400px;
  margin: auto;
}
.app-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.app-heading h1 {
  font-size: 34px;
  letter-spacing: -1.3px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}
.app-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 9px;
}
.app-heading .button {
  padding: 13px 17px;
  font-size: 13px;
  gap: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 22px;
}
.metric > span {
  font-size: 13px;
  color: var(--muted);
}
.metric > strong {
  font-size: 34px;
  font-weight: 500;
  display: block;
  margin: 12px 0 8px;
  letter-spacing: -1px;
}
.metric > small {
  font-size: 12px;
  color: #68838e;
}
.workspace-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}
.feed-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  overflow: hidden;
}
.feed-filters {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}
.filter-row:last-child {
  margin-bottom: 0;
}
.filter-row input,
.filter-row select {
  border: 1px solid #d2dce9;
  border-radius: 5px;
  background: #fff;
  padding: 11px 12px;
  font-size: 14px;
  min-width: 0;
  flex: 1;
}
.filter-row input[type="search"] {
  width: 100%;
  flex-basis: 100%;
}
.filter-row label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 150px;
}
.filter-row label input {
  width: 100%;
}
.feed-toolbar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  font-size: 12px;
  color: var(--muted);
}
.feed-toolbar-bottom button {
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
}
.article-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.article-row:last-child {
  border: 0;
}
.article-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.6;
}
.article-content {
  flex: 1;
  min-width: 0;
}
.article-content h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 550;
  margin: 7px 0;
}
.article-content h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.article-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.article-bottom .topic-chip {
  margin: 0;
  font-size: 11px;
}
.article-bottom small {
  font-size: 11px;
  color: #7c8c92;
}
.article-save {
  border: 1px solid #d5dfe9;
  border-radius: 5px;
  background: #fff;
  min-width: 34px;
  height: 34px;
  font-size: 19px;
  line-height: 1;
}
.article-save[aria-pressed="true"] {
  background: #d9e6ef;
  color: #334e7a;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.pagination button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  background: #fff;
  font-size: 12px;
  color: var(--ink);
}
.pagination button:disabled {
  cursor: not-allowed;
}
.workspace-aside .panel {
  padding: 23px;
}
.workspace-aside .panel h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.workspace-aside .panel p {
  font-size: 13px;
  line-height: 1.9;
}
.workspace-aside .button {
  font-size: 12px;
  padding: 12px;
  margin-top: 20px;
  gap: 10px;
  width: 100%;
}
.workspace-aside .panel-dark p {
  color: #abbdd0;
}
.workspace-aside ul {
  margin-bottom: 0;
}
.workspace-aside li {
  font-size: 13px;
  line-height: 1.8;
}
.loading-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.skeleton-line {
  height: 14px;
  background: #e5ecf5;
  border-radius: 3px;
  margin-bottom: 13px;
  animation: pulse 1s ease-in-out infinite alternate;
}
.skeleton-line:nth-child(2) {
  width: 75%;
}
.skeleton-line:nth-child(3) {
  width: 45%;
}
@keyframes pulse {
  to {
    opacity: 0.45;
  }
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 26px;
  align-items: start;
}
.detail-content {
  padding: 32px;
}
.detail-content h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  line-height: 1.35;
  margin: 18px 0;
}
.detail-content .copy {
  margin: 25px 0;
  white-space: pre-line;
}
.detail-list {
  margin: 20px 0 0;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.settings-layout h2 {
  margin-bottom: 24px;
}
.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.billing-table td,
.billing-table th {
  padding: 15px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.billing-table th {
  font-weight: 500;
  color: var(--muted);
}
.empty-state .button {
  margin-top: 20px;
}
.request-success h2 {
  margin-bottom: 17px;
}
.request-success p {
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}
#coverage-results-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
@media (max-width: 1100px) {
  .site-nav {
    gap: 16px;
  }
  .site-header {
    padding: 0 28px;
  }
  .site-header-actions {
    gap: 15px;
  }
  .auth-story {
    padding: 60px 38px;
  }
  .auth-form-area {
    padding: 45px 38px;
  }
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan p {
    min-height: 60px;
  }
  .app-shell {
    grid-template-columns: 204px 1fr;
  }
  .app-content {
    padding: 28px;
  }
  .app-topbar {
    padding: 0 28px;
  }
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  .workspace-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout > aside .panel {
    margin-top: 0;
  }
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .auth-story h1 {
    font-size: 50px;
  }
  .auth-story-foot {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 76px;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 75px;
    padding: 25px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 10;
    box-shadow: 0 10px 20px #122f4610;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-toggle {
    display: block;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 5px;
    font-size: 19px;
    width: 38px;
    height: 37px;
  }
  .site-header-actions > .button {
    display: none;
  }
  .page-wrap {
    padding: 45px 25px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form-area {
    padding: 45px 25px;
    min-height: calc(100vh - 76px);
  }
  .three-column {
    grid-template-columns: 1fr;
  }
  .two-column {
    gap: 20px;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: fixed;
    left: -250px;
    width: 236px;
    z-index: 11;
    height: 100dvh;
    transition: left 0.2s;
    box-shadow: 5px 0 30px #0f2f4517;
  }
  .app-sidebar.is-open {
    left: 0;
  }
  .app-topbar .nav-toggle {
    display: block;
  }
  .app-topbar {
    padding: 0 22px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 8;
  }
  .app-content {
    padding: 25px;
  }
  .app-topbar-actions {
    gap: 10px;
  }
  .app-topbar-actions .pill {
    font-size: 10px;
  }
  .app-heading h1 {
    font-size: 30px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .product-banner {
    padding: 35px;
  }
  .product-banner h1 {
    font-size: 48px;
  }
  .app-sidebar .nav-toggle {
    align-self: flex-end;
    margin-bottom: 20px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 18px;
  }
  .metric > span {
    font-size: 12px;
  }
  .metric > small {
    font-size: 11px;
  }
  .site-footer {
    padding: 30px 25px 20px;
  }
  .site-footer-top {
    flex-direction: column;
  }
  .site-footer nav {
    gap: 20px;
  }
  .site-footer-bottom {
    font-size: 11px;
  }
  .status-page {
    margin: 40px 25px;
  }
  .enterprise-banner {
    padding: 25px;
  }
  .enterprise-banner .button {
    white-space: nowrap;
  }
  .coverage-tools {
    flex-wrap: wrap;
  }
  .coverage-tools select {
    max-width: 200px;
  }
  .detail-content {
    padding: 25px;
  }
}
@media (max-width: 540px) {
  .site-header {
    padding: 0 20px;
  }
  .site-header-actions {
    gap: 12px;
  }
  .site-header .brand {
    font-size: 21px;
  }
  .page-wrap {
    padding: 35px 20px;
  }
  .page-title {
    font-size: 41px;
    letter-spacing: -1.7px;
    margin: 18px 0;
  }
  .lead {
    font-size: 16px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .plan {
    padding: 27px;
  }
  .plan-price {
    font-size: 47px;
  }
  .plan p {
    min-height: 0;
    font-size: 15px;
  }
  .plan li {
    font-size: 14px;
  }
  .page-intro {
    margin-bottom: 30px;
  }
  .plan ul {
    margin-top: 15px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 23px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-form-area {
    padding: 35px 22px;
  }
  .auth-form-inner h2 {
    font-size: 31px;
  }
  .auth-form-inner .intro {
    font-size: 15px;
  }
  .enterprise-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .enterprise-banner h3 {
    font-size: 21px;
  }
  .section-line {
    margin-top: 38px;
    padding-top: 32px;
  }
  .section-line > h2 {
    font-size: 28px;
  }
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  .coverage-tools select {
    max-width: none;
    width: 100%;
  }
  .coverage-tools input {
    flex-basis: 100%;
  }
  .authority-links {
    min-height: 0;
  }
  .coverage-card {
    padding: 25px;
  }
  .product-banner {
    padding: 28px;
  }
  .product-banner h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }
  .product-banner p {
    font-size: 15px;
  }
  .product-banner .inline-actions .button {
    width: 100%;
  }
  .site-footer-top .brand {
    font-size: 22px;
  }
  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .site-footer nav {
    font-size: 13px;
  }
  .app-content {
    padding: 22px 15px;
  }
  .app-topbar {
    padding: 0 15px;
    gap: 10px;
  }
  .app-topbar-actions .avatar {
    display: none;
  }
  .app-crumb {
    font-size: 12px;
  }
  .app-topbar-actions .pill {
    font-size: 9px;
    padding: 4px 6px;
  }
  .app-topbar-actions button {
    font-size: 11px;
  }
  .app-topbar .nav-toggle {
    width: 33px;
    height: 33px;
    flex-shrink: 0;
  }
  .app-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .app-heading h1 {
    font-size: 29px;
  }
  .app-heading p {
    font-size: 14px;
  }
  .app-heading .button {
    font-size: 12px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 13px 10px;
  }
  .metric > span {
    font-size: 10px;
    line-height: 1.5;
    display: block;
  }
  .metric > strong {
    font-size: 26px;
  }
  .metric > small {
    font-size: 10px;
    line-height: 1.5;
    display: block;
  }
  .workspace-aside {
    grid-template-columns: 1fr;
  }
  .feed-filters {
    padding: 16px;
  }
  .filter-row {
    gap: 8px;
  }
  .filter-row select {
    flex-basis: calc(50% - 8px);
    font-size: 13px;
    padding: 10px;
  }
  .filter-row label {
    flex-basis: 100%;
    font-size: 12px;
  }
  .filter-row input {
    font-size: 14px;
  }
  .article-row {
    padding: 18px 15px;
    gap: 10px;
  }
  .article-meta {
    font-size: 10px;
    gap: 5px;
  }
  .article-content h2 {
    font-size: 15px;
  }
  .article-content p {
    font-size: 13px;
  }
  .article-save {
    min-width: 30px;
    height: 31px;
    font-size: 17px;
  }
  .article-bottom small {
    font-size: 10px;
  }
  .article-bottom .topic-chip {
    font-size: 10px;
  }
  .pagination {
    padding: 15px;
    font-size: 11px;
    gap: 8px;
  }
  .pagination button {
    padding: 8px;
    font-size: 11px;
  }
  .detail-content {
    padding: 23px;
  }
  .detail-content h1 {
    font-size: 29px;
  }
  .detail-content .copy {
    font-size: 15px;
  }
  .detail-layout {
    gap: 18px;
  }
  .settings-layout {
    gap: 20px;
  }
  .status-page {
    margin: 28px 20px;
    padding: 30px 24px;
  }
  .status-page h1 {
    font-size: 36px;
  }
  .status-page p {
    font-size: 15px;
  }
  .status-page .button {
    width: 100%;
  }
  .checkout-layout {
    gap: 22px;
  }
  .demo-notice {
    font-size: 12px;
  }
  .form-status {
    font-size: 13px;
  }
  .price-head .outline-tag {
    white-space: normal;
  }
  .app-sidebar .brand {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-line {
    animation: none;
  }
  .app-sidebar {
    transition: none;
  }
}

/* ==========================================================================
   Additions for the live-backend integration and the approved messaging.
   Everything above is the delivered design, unchanged. This block only styles
   elements that did not exist in it: the GRIP AI pill, the CEO photo, and the
   landing-page sections carried over from the approved copy. It reuses the
   design's own tokens (--ink, --lime, --line, --soft, --muted).
   ========================================================================== */

/* GRIP AI: a pill on every update with a tinted panel underneath, as on the previous site. */
.ai-summary-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #c7d9e5;
  border-radius: 999px;
  background: #e5eff5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.ai-summary-button:hover {
  border-color: #6d9ab8;
}
.ai-summary-button[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ai-spark {
  font-size: 0.85em;
}
.ai-summary-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #d3e1eb;
  border-radius: 8px;
  background: #edf3fa;
}
.ai-summary-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #385580;
}
.ai-summary-points {
  margin: 0;
}
.ai-summary-points li {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.ai-summary-panel p.ai-summary-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.ai-summary-panel p.ai-summary-status.error {
  color: #914027;
}

/* CEO photo (replaces the initials placeholder) */
.profile-photo {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #dbe7f1;
  object-fit: cover;
  object-position: center 18%;
}
.profile-photo-lg {
  width: 200px;
  height: 200px;
  margin-bottom: 0;
}
.founder-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px;
}
.founder-panel h3 {
  font-size: 26px;
  letter-spacing: -0.8px;
}
.founder-role {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.founder-panel .copy {
  max-width: 640px;
  margin-top: 18px;
}
.founder-panel .detail-list {
  max-width: 640px;
}
.founder-quote {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid #adc0d5;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

/* Landing: problem stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.stat-band > div {
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}
.stat-band > div:first-child {
  border-left: 0;
}
.stat-band strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.6px;
}
.stat-band span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Landing: horizontal bars (enforcement snapshot, speed comparison) */
.bars {
  margin: 20px 0 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 72px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 14px;
}
.bar-row > span {
  color: var(--muted);
}
.bar-row > i {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
}
.bar-row > i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 0%);
  min-width: 4px;
  border-radius: 4px;
  background: var(--ink);
}
.bar-row > b {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Landing: how it works, comparison, pricing, closing, regulator directory */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.how-grid .panel {
  padding: 24px;
}
.how-grid .panel h3 {
  margin-top: 12px;
  font-size: 18px;
}
.how-grid .panel p {
  font-size: 14px;
}
.how-grid .panel-dark p {
  color: #a1b7cc;
}
.how-grid .panel-dark .eyebrow {
  color: var(--lime);
}
.edge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}
.edge-grid .panel {
  padding: 20px 22px;
}
.edge-grid .panel h3 {
  font-size: 17px;
}
.edge-grid .panel p {
  margin-top: 4px;
  font-size: 14px;
}
.comparison th.col-us,
.comparison td.col-us {
  background: #e7eef7;
  font-weight: 600;
}
.price-num {
  font-weight: inherit;
}
.regulators .regulator-more {
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.regulators .regulator-more:hover {
  color: var(--ink);
  opacity: 1;
}
.hero h1 span {
  white-space: nowrap;
}
.faq-list summary > b {
  font-weight: inherit;
}
/* With no summary line (the public preview) the topic chip stays on its own line. */
.feed-content > .feed-title {
  display: block;
}
.button-outline-light {
  border: 1px solid #3b6185;
  background: transparent;
  color: #fff;
}
.button-outline-light:hover {
  background: #123358;
}
.closing p {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: -8px 0 28px;
  font-size: 16px;
  line-height: 1.8;
  color: #9db2cc;
}
.closing-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.reg-directory {
  display: grid;
  gap: 18px;
  max-height: 52vh;
  margin: 18px 0;
  padding-right: 6px;
  overflow: auto;
}
.reg-directory h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.reg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.reg-pills li {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.reg-pills li::before {
  content: none;
}

/* Contact form honeypot: real visitors never see or fill it (the backend drops the lead
   silently if it is set). Off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-band > div:nth-child(3) {
    border-left: 0;
  }
  .stat-band > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 800px) {
  .founder-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }
  .profile-photo-lg {
    width: 140px;
    height: 140px;
  }
  .bar-row {
    grid-template-columns: 110px 1fr 64px;
    gap: 10px;
  }
}
@media (max-width: 540px) {
  .how-grid,
  .edge-grid {
    grid-template-columns: 1fr;
  }
  .stat-band {
    grid-template-columns: 1fr;
  }
  .stat-band > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat-band > div:first-child {
    border-top: 0;
  }
  .stat-band strong {
    font-size: 34px;
  }
}

/* Grounded extraction: impact badge (feed rows + detail), obligation map, dates at a glance. */
.impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.impact-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.impact-critical {
  background: #fbe9e7;
  border-color: #efc2ba;
  color: #9b2c1c;
}
.impact-high {
  background: #fdf1e1;
  border-color: #f0d2a8;
  color: #8a4b08;
}
.impact-medium {
  background: #e5eff5;
  border-color: #c7d9e5;
  color: #2f5680;
}
.impact-low {
  background: #edf4ef;
  border-color: #cfe1d4;
  color: #3c6b4b;
}
.detail-list dd .impact-badge {
  font-size: 11px;
}
.extract-panel {
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid #d3e1eb;
  border-radius: 10px;
  background: #f5f9fc;
}
.extract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.extract-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.extract-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.extract-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.extract-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.extract-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
}
.obligation-list,
.flag-list,
.hint-list,
.deadline-list,
.lineage-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.obligation-list {
  counter-reset: obligation;
}
.obligation-list li,
.flag-list li {
  position: relative;
  padding: 10px 0 10px 30px;
}
.obligation-list li + li,
.flag-list li + li,
.deadline-list li + li {
  border-top: 1px dashed var(--line);
}
.obligation-list li::before {
  counter-increment: obligation;
  content: counter(obligation);
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.flag-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fbe9e7;
  color: #9b2c1c;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.obligation-list p,
.flag-list p,
.deadline-list p,
.extract-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.source-cite {
  margin: 6px 0 0;
  padding: 2px 0 2px 10px;
  border-left: 2px solid #c7d9e5;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.source-cite strong {
  color: var(--ink);
  font-weight: 650;
}
.deadline-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 10px 0;
}
.deadline-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-list .topic-chip {
  margin: 0;
  padding: 4px 9px;
  font-size: 12px;
}
.hint-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.hint-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.lineage-list li {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.deadline-list li::before,
.lineage-list li::before {
  content: none;
}
.detail-list dd.glance-ref {
  min-width: 0;
  overflow-wrap: anywhere;
}
.lineage-list span {
  flex: none;
  min-width: 78px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .extract-panel {
    padding: 16px;
  }
  .deadline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Country flags (self-hosted SVGs in assets/flags/, see assets/js/flags.js). */
.flag {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  vertical-align: -1px;
}
.country-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.detail-list dd.country-label {
  justify-content: flex-end;
}
.select-flag {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}
.select-flag select {
  flex: 1 1 100%;
  width: 100%;
}
.select-flag-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  margin-top: -6px;
  pointer-events: none;
  visibility: hidden;
}
.select-flag.has-flag .select-flag-icon {
  visibility: visible;
}
.select-flag.has-flag select {
  padding-left: 36px;
}
@media (max-width: 540px) {
  /* The phone layout puts two filters per row; the flag wrapper takes the country select's slot. */
  .select-flag {
    flex-basis: calc(50% - 8px);
  }
}

/* Larger flag beside a heading-sized country name (coverage cards). */
.flag.flag-lg {
  width: 22px;
  height: 16.5px;
  border-radius: 3px;
}
h2.country-label,
h3.country-label {
  gap: 9px;
}
#country-name .flag {
  width: 30px;
  height: 22.5px;
  border-radius: 3px;
}

/* Company profile (company-profile.html) */
.profile-checks {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
.profile-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 18px;
}
.profile-check-grid .check-row {
  margin: 8px 0;
}
.profile-check-grid .check-row[hidden] {
  display: none;
}
.profile-form h2 {
  margin-bottom: 18px;
}

/* GRIP intelligence: legal classification, change timeline, structured obligations, and the
   upcoming-deadlines panel. Existing tokens and component styles only. */
.classification-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
}
.classification-line .pill,
.classification-line .topic-chip {
  margin: 0;
  font-size: 11px;
}
.obligation-structure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.obligation-structure div {
  display: contents;
}
.obligation-structure dt {
  color: var(--muted);
  font-weight: 650;
}
.obligation-structure dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.obligation-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.version-list,
.change-list,
.upcoming-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.version-list > li {
  padding: 10px 0;
}
.version-list > li + li,
.upcoming-list li + li {
  border-top: 1px dashed var(--line);
}
.version-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--ink);
}
.version-head span {
  font-size: 12px;
  color: var(--muted);
}
.change-list {
  margin-top: 8px;
}
/* home.css ticks every li; these lists carry their own labels. */
.version-list li::before,
.change-list li::before,
.upcoming-list li::before {
  content: none;
}
.change-list li {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.change-list .topic-chip {
  margin: 0 6px 0 0;
  font-size: 11px;
}
.upcoming-list {
  margin-top: 12px;
}
.workspace-aside .upcoming-list li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  line-height: 1.5;
}
.upcoming-type {
  font-size: 12px;
  color: var(--muted);
}
.upcoming-list a {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.upcoming-list small {
  font-size: 12px;
  color: var(--muted);
}
.workspace-aside .upcoming-empty {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- REGULATOR AVATARS (api.js regulatorAvatar) ----------
   A regulator's logo on a white chip, or its initials on its own colour (--reg-bg) until the
   logo loads. --reg-size is the one size knob; each context below sets it. */
.reg-avatar {
  --reg-size: 36px;
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--reg-size);
  height: var(--reg-size);
  overflow: hidden;
  vertical-align: middle;
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 7px;
  background: var(--reg-bg, #4a5b73);
  color: #fff;
}
.reg-avatar-initials {
  font-size: calc(var(--reg-size) * 0.32);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.reg-avatar.is-long .reg-avatar-initials {
  font-size: calc(var(--reg-size) * 0.22);
}
.reg-avatar .reg-logo {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  opacity: 0;
}
.reg-avatar.is-logo {
  background: #fff;
  border-color: #dae3ee;
}
.reg-avatar.is-logo .reg-avatar-initials {
  visibility: hidden;
}
.reg-avatar.is-logo .reg-logo {
  opacity: 1;
}
.feed-row .reg-avatar,
.article-row .reg-avatar {
  --reg-size: 40px;
}
.mini-row .reg-avatar {
  --reg-size: 34px;
}
.regulator-logo .reg-avatar {
  --reg-size: 28px;
  margin-right: 12px;
}
.authority .reg-avatar {
  --reg-size: 32px;
}
/* The pill already prints the regulator's name, so a monogram there is just a colour chip. */
.pill .reg-avatar {
  --reg-size: 20px;
  margin-right: 6px;
}
.pill .reg-avatar-initials {
  display: none;
}
@media (max-width: 800px) {
  .regulators .regulator-logo .reg-avatar {
    --reg-size: 24px;
  }
}
@media (max-width: 600px) {
  .feed-row .reg-avatar {
    --reg-size: 34px;
  }
}
@media (max-width: 540px) {
  .article-row .reg-avatar {
    --reg-size: 33px;
  }
}

/* ============================================================================
   Added features: auth spinner, full-page loader, workspace-menu attention
   pulse, free-trial side popup, trial countdown pill.
   ============================================================================ */

/* Inline button spinner (injected by TruvadUI.busy) */
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: truvad-spin 0.6s linear infinite;
}
@keyframes truvad-spin {
  to { transform: rotate(360deg); }
}

/* Full-page loader overlay (TruvadUI.showLoader / hideLoader) */
.truvad-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(9, 30, 54, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.truvad-loader.show { display: flex; }
.truvad-loader .ring {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: truvad-spin 0.7s linear infinite;
}
.truvad-loader p { margin: 0; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }

/* Attention pulse on the workspace-menu (hamburger) button, feed page only.
   Stops once the user opens the menu (common.js adds .nav-seen). */
body[data-page="regulations"] .app-topbar .nav-toggle:not(.nav-seen) {
  border-radius: 10px;
  animation: truvad-nav-pulse 1.8s ease-in-out infinite;
}
@keyframes truvad-nav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 184, 240, 0); }
  50% { box-shadow: 0 0 0 7px rgba(126, 184, 240, 0.28); color: #2f5680; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spinner, .truvad-loader .ring { animation-duration: 1.4s; }
  body[data-page="regulations"] .app-topbar .nav-toggle:not(.nav-seen) { animation: none; box-shadow: 0 0 0 3px rgba(126,184,240,0.3); }
}

/* Free-trial side popup (slides in from the right) */
.trial-pop {
  position: fixed;
  right: -400px;
  bottom: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(9, 30, 54, 0.22);
  padding: 20px 20px 22px;
  z-index: 9000;
  transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}
.trial-pop.is-open { right: 24px; opacity: 1; }
.trial-pop-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #9aa7b8;
  cursor: pointer;
}
.trial-pop-close:hover { color: #4a5b70; }
.trial-pop-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #2f5680;
  background: #e5eff5;
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.trial-pop h3 { margin: 0 0 6px; font-size: 18px; color: #091e36; letter-spacing: -0.3px; }
.trial-pop p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #4a5b70; }
.trial-pop .button { width: 100%; text-align: center; }

/* Trial countdown pill (shows on workspace pages while a trial is live) */
.trial-countdown {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #091e36;
  color: #eaf0f7;
  border-radius: 999px;
  padding: 9px 10px 9px 16px;
  box-shadow: 0 12px 34px rgba(9, 30, 54, 0.3);
  z-index: 9000;
  font-size: 13px;
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.trial-countdown.is-open { top: 16px; }
.trial-countdown.ending { background: #7a1f12; }
.trial-countdown .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fe36b;
  box-shadow: 0 0 0 3px rgba(143, 227, 107, 0.25);
}
.trial-countdown.ending .dot { background: #ffb4a3; box-shadow: 0 0 0 3px rgba(255, 180, 163, 0.25); }
.trial-countdown strong { color: #fff; }
.trial-countdown a {
  color: #9fd0ff;
  text-decoration: none;
  font-weight: 700;
  padding: 2px 4px;
}
.trial-countdown a:hover { text-decoration: underline; }
.trial-countdown-close {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #eaf0f7;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.trial-countdown-close:hover { background: rgba(255, 255, 255, 0.22); }

/* Free-trial page feature grid */
.trial-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.trial-feature {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
}
.trial-feature-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e5eff5;
  color: #2f5680;
  font-size: 18px;
  margin-bottom: 12px;
}
.trial-feature h3 { margin: 0 0 6px; font-size: 16px; color: #091e36; letter-spacing: -0.2px; }
.trial-feature p { margin: 0; font-size: 13px; line-height: 1.55; color: #4a5b70; }
.inline-actions.center { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Monthly report page */
.report-controls { margin-bottom: 20px; }
.report-controls-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.2fr;
  gap: 14px;
}
.report-controls .field { display: flex; flex-direction: column; gap: 6px; }
.report-controls .field > span {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: #6b7a8d; font-weight: 700;
}
.report-controls select {
  width: 100%; padding: 10px 12px; border: 1px solid #d1dbe9; border-radius: 8px;
  background: #fff; font-size: 14px; color: #091e36;
}
.report-controls-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.report-status { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #eef3f9; color: #2f5680; font-size: 13px; }
.report-status.error { background: #fbe9e7; color: #9b2c1c; }
.report-status[hidden] { display: none; }
.report-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.report-head .flag { width: 40px; height: 28px; border-radius: 4px; border: 1px solid #dde3ed; object-fit: cover; }
.report-head h2 { margin: 0; font-size: 22px; color: #091e36; letter-spacing: -0.4px; }
.report-head .report-period { margin: 2px 0 0; color: #4a5b70; font-size: 13px; }
.report-metrics { margin-bottom: 20px; }
.report-locked {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 20px; background: #fff7ed; border: 1px solid #f0d2a8; border-radius: 12px;
}
.report-locked strong { color: #8a4b08; }
.report-locked p { margin: 4px 0 0; font-size: 13px; color: #6b5330; }
.report-locked-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-item h3 { margin: 2px 0 6px; font-size: 15px; }
.report-item h3 a { color: #091e36; text-decoration: none; }
.report-item h3 a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .report-controls-row { grid-template-columns: 1fr 1fr; }
}

/* Premium gating: blur the locked section's own content and float an unlock card over it.
   The overlay is excluded from the blur so the CTA stays crisp and clickable. */
.gated { position: relative; overflow: hidden; }
.gated > *:not(.gate-overlay) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(247, 249, 252, 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.gate-card {
  text-align: center;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(9, 30, 54, 0.16);
  padding: 20px 22px;
  max-width: 300px;
}
.gate-lock { font-size: 26px; line-height: 1; display: block; margin-bottom: 8px; }
.gate-text { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #091e36; }
.gate-card .button { width: 100%; text-align: center; }

/* ---------- INTELLIGENCE LAYER STATEMENT (index.html #compare) ---------- */
.intelligence-statement {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.intelligence-statement h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #fff;
}
.intelligence-statement > p {
  color: #a9c0d6;
  line-height: 1.75;
  margin: 0;
}
.intelligence-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.intelligence-coverage span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #d6e4f2;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- "+N more" clickable link (workspace.js upcoming) ---------- */
.upcoming-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.upcoming-more:hover,
.upcoming-more:focus-visible {
  color: var(--dark);
  border-color: var(--ink);
}

/* ---------- Full deadlines page list (deadlines.html) ---------- */
.upcoming-list-full li {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  line-height: 1.55;
}
.upcoming-list-full .deadline-date {
  font-weight: 700;
}

/* ---------- U.S. ENFORCEMENT LEDGER (index.html #penalties) ---------- */
.enforce-panel {
  display: flex;
  flex-direction: column;
}
.enforce-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.enforce-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.enforce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 28%, transparent);
}
.enforce-headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 18px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.enforce-headline strong {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.enforce-headline span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 220px;
}
.enforce-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}
.enforce-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.enforce-row + .enforce-row {
  border-top: 1px dashed var(--line);
}
.enforce-row::before {
  content: none;
}
.enforce-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.enforce-firm {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.enforce-reason {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.enforce-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.enforce-amount {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.enforce-regs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.enforce-regs em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fb;
}
.enforce-panel .secure-caption {
  margin-top: 18px;
}
@media (max-width: 560px) {
  .enforce-headline strong {
    font-size: 38px;
  }
  .enforce-amount {
    font-size: 17px;
  }
}

/* === SOCIAL LOGIN + AUTH DIVIDER (login.html, signup.html) — moved out of copilot.css === */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted, #6b7a8d);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, #dde3ed);
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.social-google {
  background: #fff;
  border: 1px solid var(--line, #dde3ed);
  color: #3c4043;
}
.social-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.social-apple {
  background: #000;
  border: 1px solid #000;
  color: #fff;
}
.social-apple:hover {
  background: #1a1a1a;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* signup consent line (Terms/Privacy) */
.auth-consent { font-size: 13px; line-height: 1.6; color: var(--muted, #6b7a8d); text-align: center; margin-top: 14px; }
.auth-consent a { color: inherit; text-decoration: underline; }
