@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1d2a35;
  --muted: #5f6f7f;
  --brand: #0d5f8f;
  --brand-dark: #0b486b;
  --accent: #f19d38;
  --border: #dbe2e8;
  --success: #dff4e7;
  --success-ink: #166534;
  --error: #fde7e8;
  --error-ink: #8c1d18;
  --shadow: 0 16px 40px rgba(8, 34, 53, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13, 95, 143, 0.1), transparent 35%),
    radial-gradient(circle at right 80%, rgba(241, 157, 56, 0.12), transparent 42%),
    var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: 'Fraunces', serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(246, 243, 238, 0.85);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  width: 58px;
  height: auto;
  max-height: 58px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-inline-form {
  margin: 0;
}

.nav-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav-link-button:hover,
.nav-link-button:focus-visible {
  color: var(--brand-dark);
}

.page-content {
  min-height: calc(100vh - 180px);
  padding-block: 1.6rem 2.4rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--brand-dark);
  background: rgba(13, 95, 143, 0.12);
}

.lede {
  color: var(--muted);
  max-width: 65ch;
}

.hero-card,
.panel,
.auth-card,
.metric-card,
.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.2rem;
}

.hero-side {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.hero-logo {
  width: min(220px, 100%);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.hero-side h3 {
  justify-self: start;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.95;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand-dark);
}

.btn-small {
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-size: 0.86rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.package-card {
  padding: 1rem;
}

.package-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tagline {
  color: var(--brand-dark);
  font-weight: 600;
}

.auth-shell {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(540px, 100%);
  padding: 1.2rem;
}

.auth-divider {
  position: relative;
  margin: 1.2rem 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.75rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-setup-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.passkey-card {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(13, 95, 143, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 95, 143, 0.06), rgba(13, 95, 143, 0.02));
}

.passkey-card h2,
.passkey-card h3 {
  margin-bottom: 0;
}

.passkey-trigger {
  width: fit-content;
  min-width: 220px;
}

.passkey-status {
  min-height: 1.5rem;
}

.passkey-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.passkey-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.passkey-item h3 {
  margin-bottom: 0.2rem;
}

.passkey-delete-form {
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
}

.notice-card {
  border: 1px solid rgba(13, 95, 143, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(13, 95, 143, 0.06);
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.legal-notice-compact {
  margin-bottom: 1rem;
}

.legal-card {
  padding: 1.35rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-block: 1rem 1.25rem;
}

.legal-section + .legal-section {
  margin-top: 1.2rem;
}

.legal-section h2 {
  margin-bottom: 0.45rem;
}

.legal-section p,
.legal-section li {
  color: #314557;
}

.legal-section ul {
  margin: 0.4rem 0 0 1.1rem;
}

.legal-section li + li {
  margin-top: 0.35rem;
}

.code-wrap {
  display: block;
  margin-top: 0.25rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.setup-list {
  margin: 0 0 1rem 1.1rem;
  color: var(--muted);
}

.setup-list li {
  margin-bottom: 0.45rem;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.recovery-codes code {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(13, 95, 143, 0.25);
  border-color: var(--brand);
}

.span-2 {
  grid-column: 1 / -1;
}

.metrics-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.metric-card {
  padding: 0.95rem;
}

.metric-label {
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1.55rem;
  font-family: 'Fraunces', serif;
}

.dashboard-panels {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.today-panel {
  border-color: rgba(13, 95, 143, 0.22);
  background:
    radial-gradient(circle at top right, rgba(241, 157, 56, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.84));
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.action-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.action-card h3,
.action-card p {
  margin: 0;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.action-urgent {
  border-color: rgba(140, 29, 24, 0.28);
  background: linear-gradient(180deg, rgba(253, 231, 232, 0.82), rgba(255, 255, 255, 0.88));
}

.action-high {
  border-color: rgba(241, 157, 56, 0.36);
  background: linear-gradient(180deg, rgba(255, 244, 225, 0.86), rgba(255, 255, 255, 0.88));
}

.panel {
  padding: 1rem;
  margin-top: 1rem;
}

.inline-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.inline-form > * {
  min-width: 0;
}

.inline-form input[type="text"],
.inline-form input[type="number"],
.inline-form select {
  min-height: 40px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
}

th {
  background: #f5f8fa;
}

.recommendation-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.recommendation-table th,
.recommendation-table td {
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.45;
}

.recommendation-table th {
  white-space: nowrap;
}

.recommendation-table .col-college {
  min-width: 230px;
}

.recommendation-table .col-fit {
  min-width: 110px;
}

.recommendation-table .col-profile {
  min-width: 150px;
}

.recommendation-table .col-testing {
  min-width: 220px;
}

.recommendation-table .col-cost {
  min-width: 250px;
}

.recommendation-table .col-travel {
  min-width: 220px;
}

.recommendation-table .col-deadline {
  min-width: 150px;
}

.recommendation-table .col-reason {
  min-width: 360px;
}

.college-name {
  display: block;
  font-size: 1.02rem;
}

.cell-stack {
  display: grid;
  gap: 0.35rem;
}

.cell-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted-note {
  color: var(--muted);
}

.directions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.directions-links a {
  white-space: nowrap;
  font-weight: 600;
}

.reason-cell {
  max-width: 46ch;
}

.fit-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.fit-safety {
  background: #e3f2e8;
  border-color: #9fc7aa;
  color: #21593b;
}

.fit-match {
  background: #eef3fb;
  border-color: #aebfdc;
  color: #264564;
}

.fit-reach {
  background: #f8ebe3;
  border-color: #d2b199;
  color: #7b4424;
}

.alert {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-error {
  background: var(--error);
  color: var(--error-ink);
}

.alert-success {
  background: var(--success);
  color: var(--success-ink);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
}

.footer-legal-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn-marketing {
  background: #c18167;
  border: 1px solid #c18167;
  color: #fff;
}

.btn-marketing:hover {
  background: #ab6e57;
  border-color: #ab6e57;
}

.marketing-hero,
.marketing-section,
.marketing-promise,
.service-detail,
.consultation-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.marketing-hero {
  overflow: hidden;
  padding: 1.6rem 1.6rem 0;
  margin-bottom: 1.15rem;
}

.marketing-logo-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
}

.marketing-logo-large {
  width: min(220px, 54vw);
  height: auto;
}

.marketing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem 2.4rem;
  align-items: start;
  padding-inline: 0.25rem;
  margin-bottom: 1rem;
}

.marketing-hero-headline {
  max-width: 35rem;
  padding-right: clamp(0.75rem, 2vw, 2.4rem);
}

.marketing-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.13;
  margin-bottom: 0;
}

.marketing-hero-title em {
  font-style: italic;
  font-weight: 500;
}

.marketing-hero-title strong {
  font-weight: 700;
}

.marketing-hero-copy {
  width: 100%;
  max-width: none;
  display: grid;
  align-content: start;
  justify-self: stretch;
}

.marketing-hero-copy p {
  font-size: 1.16rem;
  color: #34495d;
  margin-top: 0.15rem;
  margin-bottom: 1rem;
}

.marketing-hero-photo-wrap {
  margin-inline: -1.6rem;
}

.marketing-hero-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%;
}

.marketing-section {
  padding: 1.55rem;
  margin-bottom: 1rem;
}

.marketing-section h2,
.marketing-section h1 {
  margin-bottom: 1rem;
}

.marketing-section-plain {
  background: rgba(255, 255, 255, 0.6);
}

.marketing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.1rem 2rem;
  align-items: start;
}

.marketing-split-balanced {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.marketing-split p {
  margin: 0;
  font-size: 1.11rem;
}

.marketing-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
}

.marketing-story-copy {
  display: grid;
  gap: 0.9rem;
}

.marketing-story-copy h1,
.marketing-story-copy h2,
.marketing-story-copy p {
  margin: 0;
}

.marketing-story-copy p {
  color: #304457;
  font-size: 1.05rem;
}

.marketing-story-media {
  margin: 0;
  min-height: 280px;
  border: 1px solid rgba(219, 226, 232, 0.92);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.marketing-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marketing-section-copy {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.marketing-section-copy h2,
.marketing-section-copy p {
  margin: 0;
}

.marketing-section-copy p {
  color: #304457;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.service-card-image {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1rem 1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.service-card-body .cta-row {
  margin-top: auto;
  padding-top: 0.3rem;
}

.service-card-body h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.service-card-body p {
  margin: 0;
  color: #233648;
}

.service-card-pricing {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(193, 129, 103, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(241, 157, 56, 0.08), rgba(255, 255, 255, 0.9));
}

.service-card-pricing p {
  margin: 0;
}

.price-regular {
  color: #6f8090;
  font-size: 0.9rem;
}

.price-current {
  font-size: 1.08rem;
  color: #1f3242;
}

.offer-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: rgba(13, 95, 143, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offer-note {
  color: #55697a;
  font-size: 0.88rem;
}

.marketing-table table {
  min-width: 760px;
}

.marketing-table th,
.marketing-table td {
  border: 2px solid #121212;
  border-collapse: collapse;
  text-align: center;
  padding: 0.85rem 0.65rem;
  background: rgba(255, 255, 255, 0.8);
}

.marketing-table td:first-child,
.marketing-table th:first-child {
  text-align: left;
  font-weight: 700;
}

.strike {
  text-decoration: line-through;
}

.marketing-promise {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 2rem 1.55rem;
}

.marketing-promise h2,
.marketing-promise h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.3vw, 3.7rem);
}

.marketing-promise p {
  margin: 0;
  max-width: 60ch;
  color: #304457;
}

.comparison-card-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.comparison-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(219, 226, 232, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.comparison-card-featured {
  border-color: rgba(13, 95, 143, 0.24);
  background: linear-gradient(180deg, rgba(13, 95, 143, 0.08), rgba(255, 255, 255, 0.94));
}

.comparison-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.comparison-points {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-points li {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(219, 226, 232, 0.92);
}

.comparison-points li:first-child {
  padding-top: 0;
  border-top: 0;
}

.comparison-point-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e7f8e;
}

.comparison-point-value {
  color: #1f3242;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
  margin-bottom: 1rem;
  overflow: hidden;
}

.service-detail-reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr);
}

.service-detail-image {
  min-height: 520px;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-detail-content {
  padding: 1.5rem 1.45rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.service-detail-content h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.05;
}

.service-tagline {
  margin: 0;
  font-size: 1.1rem;
}

.service-detail-content p,
.service-detail-content ul {
  margin: 0;
}

.service-detail-content ul {
  padding-left: 1.3rem;
}

.service-pricing {
  justify-self: end;
  text-align: right;
  display: grid;
  gap: 0.35rem;
}

.service-pricing p {
  margin: 0;
  font-size: 1.05rem;
}

.service-pricing-note {
  max-width: 31ch;
  justify-self: end;
  color: #55697a;
  font-size: 0.92rem;
}

.offer-coupon {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 95, 143, 0.14);
  border-radius: 16px;
  background: rgba(13, 95, 143, 0.05);
}

.offer-coupon p {
  margin: 0;
}

.consultation-shell {
  display: grid;
  place-items: center;
}

.checkout-shell {
  display: grid;
  place-items: center;
}

.consultation-card {
  width: min(850px, 100%);
  padding: 1.35rem;
}

.consultation-form {
  margin-top: 0.8rem;
}

.checkout-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.checkout-summary,
.checkout-form-wrap {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.checkout-price-block {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(13, 95, 143, 0.05);
}

.checkout-price-block p,
.checkout-bullets {
  margin: 0;
}

.checkout-bullets {
  padding-left: 1.2rem;
}

.checkout-bullets li + li {
  margin-top: 0.35rem;
}

.checkout-form {
  margin-top: 0.25rem;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkout-actions .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-result-card {
  width: min(760px, 100%);
}

.checkout-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.1rem;
}

.checkout-result-grid > div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.72);
}

.checkout-result-grid p {
  margin: 0;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  .panel,
  .auth-card,
  .package-card,
  .metric-card {
    padding: 0.9rem;
  }

  .footer-legal-links {
    width: 100%;
  }

  .marketing-hero {
    padding: 1rem 1rem 0;
  }

  .marketing-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem 0.8rem;
    margin-bottom: 0.8rem;
  }

  .marketing-hero-headline {
    max-width: none;
    padding-right: 0;
  }

  .marketing-hero-copy {
    max-width: none;
  }

  .marketing-hero-photo-wrap {
    margin-inline: -1rem;
  }

  .marketing-section {
    padding: 1rem;
  }

  .marketing-split,
  .marketing-split-balanced,
  .marketing-story {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card-body h3 {
    font-size: 1.9rem;
  }

  .service-detail,
  .service-detail-reverse {
    grid-template-columns: 1fr;
  }

  .service-detail-image {
    min-height: 320px;
    max-height: 420px;
  }

  .checkout-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .service-pricing {
    justify-self: start;
    text-align: left;
  }

  .service-pricing-note {
    max-width: none;
    justify-self: start;
  }

  .marketing-story-media {
    min-height: 0;
  }

  .marketing-table table {
    min-width: 620px;
  }

  .table-wrap {
    margin-inline: -0.2rem;
    padding-inline: 0.2rem;
  }

  table {
    min-width: 560px;
  }

  .recommendation-table .col-college {
    min-width: 200px;
  }

  .recommendation-table .col-testing,
  .recommendation-table .col-cost,
  .recommendation-table .col-travel {
    min-width: 190px;
  }

  .recommendation-table .col-reason {
    min-width: 300px;
  }
}

.hidden {
  display: none !important;
}

.mode-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mode-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.mode-btn.is-active {
  border-color: var(--brand);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.chat-log {
  display: grid;
  gap: 0.65rem;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fdfdfd;
  margin-bottom: 0.9rem;
}

.chat-message {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.chat-message.assistant {
  border-color: rgba(13, 95, 143, 0.25);
  background: rgba(13, 95, 143, 0.06);
}

.chat-message.user {
  border-color: rgba(241, 157, 56, 0.35);
  background: rgba(241, 157, 56, 0.12);
}

.chat-message p {
  margin: 0.2rem 0 0;
}

.ai-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.voice-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.status-error {
  color: #b42318;
  font-weight: 600;
}

@media (max-width: 680px) {
  .container {
    width: min(1100px, 94vw);
  }

  .page-content {
    padding-block: 1rem 1.8rem;
  }

  .logo {
    width: 46px;
    height: 46px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.5rem;
  }

  .nav-links a {
    text-align: center;
    padding: 0.45rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
  }

  .nav-inline-form {
    display: contents;
  }

  .nav-link-button {
    text-align: center;
    padding: 0.45rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
  }

  .hero-logo {
    width: min(180px, 100%);
  }

  .form-grid.two-col,
  .metrics-grid,
  .dashboard-panels,
  .card-grid,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .inline-form .btn,
  .ai-input-row .btn,
  .voice-controls .btn {
    width: 100%;
  }

  .ai-input-row {
    grid-template-columns: 1fr;
  }

  .mode-toggle {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mode-btn {
    width: 100%;
  }

  .voice-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .chat-log {
    max-height: 260px;
  }

  table {
    min-width: 500px;
  }

  .recommendation-table {
    min-width: 980px;
  }

  .service-card-body h3 {
    font-size: 1.6rem;
  }

  .marketing-promise {
    padding: 1.2rem 1rem;
  }

  .consultation-card {
    padding: 1rem;
  }

  .checkbox-row {
    grid-template-columns: 1fr;
  }

  .recovery-codes {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 0.5rem;
  }
}

@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-link-button {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  table {
    min-width: 460px;
  }
}

/* UI cleanup refresh */

:root {
  --surface-muted: rgba(255, 255, 255, 0.72);
  --surface-elevated: rgba(255, 255, 255, 0.9);
  --border-strong: #cfd8e0;
  --shadow-soft: 0 18px 38px rgba(10, 35, 55, 0.08);
}

body {
  color: #20303d;
  background:
    radial-gradient(circle at top left, rgba(13, 95, 143, 0.12), transparent 34%),
    radial-gradient(circle at right 75%, rgba(241, 157, 56, 0.13), transparent 40%),
    linear-gradient(180deg, #f8f5f0 0%, #f4f1eb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35), transparent 24%);
  opacity: 0.8;
}

a {
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(13, 95, 143, 0.24);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 226, 232, 0.95);
  background: rgba(248, 245, 240, 0.9);
  box-shadow: 0 10px 24px rgba(10, 35, 55, 0.05);
  backdrop-filter: blur(10px);
}

.header-shell {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 0 1rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand:hover {
  text-decoration: none;
}

.logo {
  width: 62px;
  max-height: none;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 95, 143, 0.18);
  background: rgba(13, 95, 143, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.nav-inline-form {
  margin: 0;
}

.nav-group {
  display: grid;
  gap: 0.35rem;
}

.nav-group-label {
  margin: 0;
  padding-left: 0.15rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7f8e;
}

.nav-rail {
  display: flex;
  gap: 0.65rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.nav-rail-secondary {
  padding-top: 0.2rem;
  border-top: 1px solid rgba(219, 226, 232, 0.8);
}

.nav-pill,
.nav-link-button.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(13, 95, 143, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-pill-active {
  color: var(--brand-dark);
  border-color: rgba(13, 95, 143, 0.32);
  background: linear-gradient(180deg, rgba(13, 95, 143, 0.12), rgba(13, 95, 143, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(13, 95, 143, 0.08);
}

.nav-pill:hover,
.nav-link-button.nav-pill:hover,
.nav-pill:focus-visible,
.nav-link-button.nav-pill:focus-visible {
  color: var(--brand-dark);
  text-decoration: none;
  border-color: rgba(13, 95, 143, 0.35);
  transform: translateY(-1px);
}

.nav-pill-strong {
  background: linear-gradient(135deg, rgba(13, 95, 143, 0.14), rgba(11, 72, 107, 0.08));
  border-color: rgba(13, 95, 143, 0.24);
  color: var(--brand-dark);
}

.nav-pill-ghost,
.nav-link-button.nav-pill-ghost {
  background: transparent;
}

.page-content {
  padding-block: 1.35rem 2.4rem;
  position: relative;
  z-index: 1;
}

.offer-strip {
  border-bottom: 1px solid rgba(193, 129, 103, 0.24);
  background:
    linear-gradient(135deg, rgba(193, 129, 103, 0.14), rgba(13, 95, 143, 0.08)),
    rgba(255, 250, 244, 0.92);
}

.offer-strip-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem 1rem;
  align-items: center;
  padding: 0.8rem 0;
}

.offer-strip-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #c18167;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-strip-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  font-size: 0.95rem;
  color: #233648;
}

.offer-strip-copy strong {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
}

.offer-strip-note {
  grid-column: 2;
  margin: 0;
  color: #55697a;
  font-size: 0.88rem;
}

.page-intro {
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(219, 226, 232, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow-soft);
}

.page-intro + .metrics-grid,
.page-intro + .panel,
.page-intro + .panel-grid,
.page-intro + .dashboard-panels {
  margin-top: 1rem;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(13, 95, 143, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro h1 {
  margin-bottom: 0.45rem;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel-grid {
  display: grid;
  gap: 1rem;
}

.panel-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.auth-card,
.package-card,
.metric-card,
.service-card,
.checkout-card,
.consultation-card {
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.76));
  border-color: rgba(219, 226, 232, 0.95);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.panel-heading h2,
.panel-heading h3 {
  margin-bottom: 0.2rem;
}

.panel-heading p {
  margin: 0;
}

.metrics-grid {
  gap: 1rem;
}

.metric-card {
  padding: 1.05rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 255, 0.78));
  border: 1px solid rgba(219, 226, 232, 0.95);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), rgba(241, 157, 56, 0.7));
}

.metric-label,
.small,
.muted-note {
  color: #607182;
}

.metric-value {
  margin: 0;
  font-size: 2rem;
}

.workflow-list {
  display: grid;
  gap: 0.8rem;
}

.workflow-item,
.detail-card {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.workflow-item h3,
.detail-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.workflow-step {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill-success {
  color: #195b38;
  background: #e4f5ea;
  border-color: #b4dbc0;
}

.status-pill-info {
  color: #224f73;
  background: #e8f1fb;
  border-color: #b7cae1;
}

.status-pill-muted {
  color: #526575;
  background: #edf1f4;
  border-color: #d5dde4;
}

.form-grid,
.grid-form {
  display: grid;
  gap: 1rem;
}

.grid-form {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

.form-grid.two-col {
  gap: 1rem 1.1rem;
}

label {
  gap: 0.42rem;
  font-size: 0.92rem;
  color: #20303d;
}

input,
select,
textarea {
  min-height: 46px;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a98a6;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(13, 95, 143, 0.62);
  box-shadow:
    0 0 0 4px rgba(13, 95, 143, 0.14),
    inset 0 1px 2px rgba(16, 24, 40, 0.04);
}

.form-section {
  margin: 0;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid rgba(219, 226, 232, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.form-section legend {
  padding: 0 0.45rem;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-copy {
  margin: 0 0 1rem;
  color: var(--muted);
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0;
}

.form-submit-row p {
  margin: 0;
  max-width: 56ch;
}

.inline-form {
  gap: 0.75rem;
}

.inline-form label {
  min-width: 180px;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mode-btn {
  min-height: 72px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border-color: rgba(13, 95, 143, 0.16);
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
  font-size: 1rem;
}

.mode-btn.is-active {
  box-shadow: 0 12px 24px rgba(13, 95, 143, 0.16);
}

.chat-log {
  max-height: 360px;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.95), rgba(255, 255, 255, 0.95));
}

.chat-message {
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
}

.snapshot-grid {
  gap: 0.8rem;
}

.snapshot-grid p {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(219, 226, 232, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.table-wrap {
  border: 1px solid rgba(219, 226, 232, 0.98);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: auto;
}

table {
  min-width: 720px;
}

th,
td {
  padding: 0.8rem 0.9rem;
}

th {
  background: #f3f7fa;
  color: #55697a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) {
  background: rgba(247, 250, 252, 0.8);
}

tbody tr:hover {
  background: rgba(232, 242, 250, 0.55);
}

.recommendation-table td {
  font-size: 0.95rem;
}

.recommendation-table .col-profile {
  min-width: 170px;
}

.recommendation-table .col-testing {
  min-width: 240px;
}

.recommendation-table .col-cost {
  min-width: 260px;
}

.recommendation-table .col-travel {
  min-width: 250px;
}

.recommendation-table .col-reason {
  min-width: 400px;
}

.reason-cell {
  max-width: 52ch;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list li + li {
  margin-top: 0.45rem;
}

.detail-card {
  display: block;
}

.detail-card p,
.detail-card ul {
  margin-bottom: 0;
}

.checkout-card,
.consultation-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
}

.site-footer {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .page-intro-grid,
  .panel-grid-two {
    grid-template-columns: 1fr;
  }

  .page-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 880px) {
  .header-shell {
    gap: 0.65rem;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-group {
    gap: 0.3rem;
  }

  .brand-copy {
    gap: 0.05rem;
  }

  .brand-subtitle {
    max-width: 32ch;
  }

  .offer-strip-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .offer-strip-note {
    grid-column: auto;
  }

  .page-intro,
  .panel,
  .checkout-card,
  .consultation-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mode-toggle {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .page-content {
    padding-block: 1rem 1.9rem;
  }

  .brand {
    align-items: center;
  }

  .logo {
    width: 54px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .header-meta {
    gap: 0.55rem;
  }

  .checkout-actions .btn,
  .service-pricing .btn,
  .service-card .cta-row .btn {
    width: 100%;
  }

  .service-card-pricing {
    padding: 0.8rem 0.85rem;
  }

  .user-chip,
  .nav-pill,
  .nav-link-button.nav-pill {
    min-height: 38px;
    padding: 0.5rem 0.78rem;
    font-size: 0.88rem;
  }

  .nav-rail {
    padding-bottom: 0.2rem;
  }

  .nav-group-label {
    font-size: 0.7rem;
  }

  .page-intro {
    padding: 1rem;
  }

  .metric-card,
  .workflow-item,
  .detail-card,
  .snapshot-grid p {
    padding: 0.85rem 0.9rem;
  }

  .passkey-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .passkey-delete-form,
  .passkey-delete-form .btn {
    width: 100%;
  }

  .table-wrap {
    border-radius: 16px;
  }

  table {
    min-width: 540px;
  }

  .marketing-table .table-wrap {
    display: none;
  }

  .comparison-card-grid {
    display: grid;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 0.65rem;
  }

  .brand-subtitle {
    font-size: 0.82rem;
  }

  .offer-strip-copy {
    font-size: 0.9rem;
  }

  .header-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .header-meta > * {
    width: 100%;
  }

  .user-chip {
    justify-content: center;
  }

  .page-kicker {
    font-size: 0.72rem;
  }

  .workflow-item {
    flex-direction: column;
    align-items: flex-start;
  }

  table {
    min-width: 500px;
  }
}
