:root {
  --portal-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --portal-ink: #18221f;
  --portal-muted: #6d746e;
  --portal-muted-2: #8f8a80;
  --portal-brand: #24483f;
  --portal-brand-dark: #172f2a;
  --portal-accent: #b98a63;
  --portal-accent-strong: #d8844e;
  --portal-danger: #a3443f;
  --portal-success: #2f7052;
  --portal-line: rgba(31, 39, 35, .10);
  --portal-line-strong: rgba(31, 39, 35, .18);
  --portal-surface: rgba(255, 250, 242, .88);
  --portal-surface-strong: #fffaf2;
  --portal-surface-soft: rgba(255, 255, 255, .52);
  --portal-shadow: 0 28px 76px rgba(62, 48, 30, .105);
  --portal-card-shadow: 0 16px 42px rgba(62, 48, 30, .075);
  --portal-radius-xl: 34px;
  --portal-radius-lg: 26px;
  --portal-radius-md: 18px;
}

/* Hide the old concept/principles strip wherever it appears. */
.principles { display: none !important; }

body.pricing-page,
body.seido-legal,
body.seido-delete,
body.billing-account {
  min-height: 100vh;
  color: var(--portal-ink) !important;
  background:
    radial-gradient(980px circle at 9% -8%, rgba(185, 138, 99, .17), transparent 56%),
    radial-gradient(860px circle at 94% 6%, rgba(36, 72, 63, .105), transparent 52%),
    linear-gradient(180deg, #fffaf2 0%, #f8f1e7 50%, #f4ebde 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.pricing-page::after,
body.seido-legal::after,
body.seido-delete::after,
body.billing-account::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .03;
  background-image: repeating-radial-gradient(circle at 0 0, rgba(24,34,31,.8) 0, rgba(24,34,31,.8) 1px, transparent 1px, transparent 5px);
}

body.pricing-page a,
body.seido-legal a,
body.seido-delete a,
body.billing-account a {
  text-decoration: none;
}

body.pricing-page .shell,
body.billing-account .shell,
body.seido-legal .container-xl,
body.seido-delete .container-xl {
  max-width: 1320px !important;
}

/* Shared top navigation */
body.pricing-page .site-nav,
body.seido-legal .site-nav,
body.seido-delete .site-nav,
body.billing-account .topbar {
  border-top: 0 !important;
  border-bottom: 1px solid rgba(31, 39, 35, .08) !important;
  background: rgba(248, 241, 231, .78) !important;
  backdrop-filter: blur(18px);
}

body.pricing-page .topbar-inner,
body.billing-account .topbar-inner,
body.seido-legal .site-nav .container-xl > div,
body.seido-delete .site-nav .container-xl > div {
  min-height: 70px;
}

body.pricing-page .brand,
body.billing-account .brand,
body.seido-legal .site-nav a,
body.seido-delete .site-nav a {
  text-decoration: none !important;
}

body.pricing-page .brand strong,
body.billing-account .brand strong,
body.seido-legal .brand-wordmark,
body.seido-delete .brand-wordmark {
  color: var(--portal-brand) !important;
  font-family: var(--portal-serif) !important;
  font-size: 1.24rem !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
}

body.pricing-page .brand small,
body.billing-account .brand small,
body.seido-legal .brand-subline,
body.seido-delete .brand-subline,
body.seido-legal .nav-user {
  color: var(--portal-muted) !important;
  font-weight: 780 !important;
}

body.pricing-page .brand img,
body.billing-account .brand img,
body.seido-legal .brand-logo,
body.seido-delete .brand-logo {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
}

body.pricing-page .topbar-actions,
body.seido-legal .btn-group,
body.seido-delete .btn-group,
body.billing-account .topbar-inner .d-flex {
  gap: 8px !important;
}

body.pricing-page .topbar-link,
body.seido-legal .btn,
body.seido-delete .btn,
body.billing-account .btn {
  min-height: 40px !important;
  border-radius: 999px !important;
  font-size: .88rem !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
}

body.pricing-page .topbar-link.is-active,
body.pricing-page .btn-primary,
body.seido-legal .btn-primary,
body.seido-delete .btn-primary,
body.billing-account .btn-primary {
  color: #fffaf2 !important;
  border-color: var(--portal-brand) !important;
  background: var(--portal-brand) !important;
  box-shadow: 0 13px 28px rgba(36,72,63,.18) !important;
}

body.pricing-page .btn-outline-primary,
body.seido-legal .btn-outline-primary,
body.seido-delete .btn-outline-primary,
body.billing-account .btn-outline-primary,
body.pricing-page .topbar-link {
  border-color: rgba(36,72,63,.18) !important;
  color: var(--portal-brand) !important;
  background: rgba(255,250,242,.68) !important;
}

body.pricing-page .btn-outline-primary:hover,
body.seido-legal .btn-outline-primary:hover,
body.seido-delete .btn-outline-primary:hover,
body.billing-account .btn-outline-primary:hover,
body.pricing-page .topbar-link:hover {
  color: #fffaf2 !important;
  border-color: var(--portal-brand) !important;
  background: var(--portal-brand) !important;
}

body.pricing-page .topbar-link.is-accent,
body.seido-legal .btn-outline-danger,
body.seido-delete .btn-outline-danger,
body.billing-account .btn-outline-danger {
  color: var(--portal-danger) !important;
  border-color: rgba(163,68,63,.22) !important;
  background: rgba(255,250,242,.68) !important;
}

body.pricing-page .topbar-link.is-accent:hover,
body.seido-legal .btn-outline-danger:hover,
body.seido-delete .btn-outline-danger:hover,
body.billing-account .btn-outline-danger:hover,
body.seido-delete .btn-danger {
  color: #fffaf2 !important;
  border-color: var(--portal-danger) !important;
  background: var(--portal-danger) !important;
}

/* Shared page rhythm */
body.pricing-page .hero,
body.seido-legal .legal-main,
body.seido-delete .delete-main,
body.billing-account main.shell {
  padding-top: 2.25rem !important;
}

body.pricing-page .section,
body.billing-account .panel,
body.seido-legal .legal-grid,
body.seido-delete .delete-layout {
  margin-top: 1.05rem;
}

body.pricing-page .hero-card,
body.billing-account .hero,
body.seido-legal .legal-card,
body.seido-legal .side-card,
body.seido-delete .delete-card,
body.seido-delete .delete-side-card,
body.billing-account .panel,
body.billing-account .summary-card,
body.billing-account .app-card,
body.pricing-page .group-card,
body.pricing-page .plan-card,
body.pricing-page .section-card,
body.seido-delete .delete-app,
body.seido-delete .delete-request-box {
  border-color: var(--portal-line) !important;
  border-radius: var(--portal-radius-lg) !important;
  background: var(--portal-surface) !important;
  box-shadow: var(--portal-card-shadow) !important;
  backdrop-filter: blur(16px);
}

body.pricing-page .hero-card,
body.billing-account .hero,
body.seido-legal .legal-card,
body.seido-delete .delete-card {
  border-radius: var(--portal-radius-xl) !important;
  background:
    radial-gradient(640px circle at 86% 8%, rgba(185,138,99,.15), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(253,245,235,.74)) !important;
  box-shadow: var(--portal-shadow) !important;
}

body.pricing-page .hero h1,
body.pricing-page .section-head h2,
body.pricing-page .group-top h3,
body.pricing-page .plan-head h4,
body.billing-account .hero h1,
body.billing-account .panel-head h2,
body.seido-legal .legal-title,
body.seido-legal .legal-card-title,
body.seido-legal .side-card h3,
body.seido-delete .delete-title,
body.seido-delete .delete-card-title,
body.seido-delete .delete-side-card h3 {
  font-family: var(--portal-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -.055em !important;
}

body.pricing-page .hero h1,
body.seido-legal .legal-title,
body.seido-delete .delete-title,
body.billing-account .hero h1 {
  font-size: clamp(2.7rem, 5.3vw, 5rem) !important;
  line-height: .95 !important;
}

body.pricing-page .hero p,
body.pricing-page .section-head p,
body.pricing-page .plan-copy,
body.pricing-page .section-card span,
body.billing-account .hero p,
body.billing-account .muted,
body.billing-account .panel-head p,
body.billing-account .summary-card span,
body.seido-legal .legal-copy,
body.seido-legal .note,
body.seido-delete .delete-copy,
body.seido-delete .delete-muted,
body.seido-delete .delete-app p,
body.seido-delete .delete-app small {
  color: var(--portal-muted) !important;
}

body.pricing-page .eyebrow,
body.seido-legal .section-label,
body.seido-delete .section-label,
body.billing-account .eyebrow {
  color: var(--portal-accent) !important;
  border-color: rgba(185,138,99,.2) !important;
  background: rgba(255,250,242,.72) !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

/* Pricing page: variant 1 public/portal style */
body.pricing-page .hero-card {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 1.2rem !important;
  padding: clamp(1.6rem, 3vw, 2.35rem) !important;
}

body.pricing-page .hero-side {
  gap: .9rem !important;
}

body.pricing-page .section-card {
  padding: 1.05rem !important;
}

body.pricing-page .section-card strong {
  color: var(--portal-ink) !important;
  font-family: var(--portal-serif);
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  letter-spacing: -.04em;
}

body.pricing-page .group-grid {
  gap: 1.25rem !important;
}

body.pricing-page .group-card {
  overflow: hidden !important;
  background: rgba(255,250,242,.82) !important;
}

body.pricing-page .group-top {
  border-bottom-color: rgba(255,250,242,.18) !important;
  background:
    radial-gradient(520px circle at 80% 10%, rgba(185,138,99,.24), transparent 60%),
    linear-gradient(135deg, #1d342e, #24483f 52%, #51634d) !important;
}

body.pricing-page .group-logo {
  border-color: rgba(255,250,242,.16) !important;
  background: rgba(255,250,242,.10) !important;
}

body.pricing-page .group-pill,
body.pricing-page .plan-badge,
body.billing-account .pill {
  border: 1px solid rgba(36,72,63,.14) !important;
  border-radius: 999px !important;
  color: var(--portal-brand) !important;
  background: rgba(36,72,63,.08) !important;
}

body.pricing-page .plans-grid {
  gap: 1rem !important;
  padding: 1.15rem !important;
}

body.pricing-page .plan-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem !important;
  background: rgba(255,250,242,.9) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

body.pricing-page .plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--portal-line-strong) !important;
  box-shadow: var(--portal-shadow) !important;
}

body.pricing-page .price-list {
  padding: .85rem;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-md);
  background: rgba(255,255,255,.48);
}

body.pricing-page .price-line {
  color: var(--portal-ink);
}

body.pricing-page .feature-block {
  border-color: rgba(31,39,35,.12) !important;
}

body.pricing-page .feature-block strong {
  color: var(--portal-brand) !important;
  font-weight: 900 !important;
}

body.pricing-page .feature-block ul {
  color: var(--portal-muted) !important;
}

body.pricing-page .ready-note {
  border: 1px solid rgba(163,68,63,.18) !important;
  border-radius: var(--portal-radius-md) !important;
  background: rgba(163,68,63,.10) !important;
}

/* Account billing page: variant 2 account-management style */
body.billing-account .hero {
  align-items: flex-end !important;
  border-radius: var(--portal-radius-xl) !important;
  padding: clamp(1.5rem, 3vw, 2.2rem) !important;
}

body.billing-account .panel {
  padding: 1.2rem !important;
}

body.billing-account .panel-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  line-height: 1 !important;
}

body.billing-account .summary-grid,
body.billing-account .app-grid {
  gap: 1rem !important;
}

body.billing-account .summary-card,
body.billing-account .app-card {
  background: rgba(255,250,242,.9) !important;
  padding: 1rem !important;
}

body.billing-account .summary-card strong {
  font-family: var(--portal-serif);
  font-size: 2rem !important;
  font-weight: 500 !important;
  letter-spacing: -.05em;
}

body.billing-account .table-wrap {
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-lg);
  background: rgba(255,255,255,.42);
  box-shadow: none;
}

body.billing-account .table {
  margin: 0;
  color: var(--portal-ink);
}

body.billing-account .table thead th,
body.pricing-page .table thead th {
  color: var(--portal-muted) !important;
  border-color: var(--portal-line) !important;
  background: rgba(255,255,255,.48) !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

body.billing-account .table td,
body.billing-account .table th,
body.pricing-page .table td,
body.pricing-page .table th {
  border-color: var(--portal-line) !important;
  vertical-align: middle;
}

body.billing-account .feature-row {
  border-top-color: rgba(31,39,35,.12) !important;
}

body.billing-account .app-top strong,
body.billing-account .feature-row strong {
  color: var(--portal-ink);
}

/* Legal pages: variant 1 editorial document style */
body.seido-legal .legal-main,
body.seido-delete .delete-main {
  padding-bottom: 3.8rem !important;
}

body.seido-legal .legal-hero,
body.seido-delete .delete-hero {
  max-width: 860px !important;
  margin-bottom: 1.6rem !important;
}

body.seido-legal .legal-title,
body.seido-delete .delete-title {
  max-width: 860px;
}

body.seido-legal .legal-copy,
body.seido-delete .delete-copy {
  max-width: 720px !important;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem) !important;
}

body.seido-legal .legal-grid,
body.seido-delete .delete-layout {
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 1.05rem !important;
}

body.seido-legal .legal-card-body,
body.seido-delete .delete-card-body {
  padding: clamp(1.1rem, 2.4vw, 1.65rem) !important;
}

body.seido-legal .legal-details-row {
  border-color: var(--portal-line) !important;
}

body.seido-legal .legal-details-key,
body.seido-legal .legal-details-value,
body.seido-legal .legal-section h3 {
  color: var(--portal-ink) !important;
}

body.seido-legal .side-card,
body.seido-delete .delete-side-card {
  position: sticky;
  top: 94px;
  color: #fffaf2 !important;
  background:
    radial-gradient(520px circle at 80% 10%, rgba(185,138,99,.22), transparent 60%),
    linear-gradient(135deg, #1d342e, #24483f 55%, #51634d) !important;
}

body.seido-legal .side-card h3,
body.seido-delete .delete-side-card h3 {
  color: #fffaf2 !important;
}

body.seido-legal .side-card p,
body.seido-delete .delete-side-card p,
body.seido-delete .delete-side-card .delete-muted {
  color: rgba(255,248,239,.74) !important;
}

body.seido-legal .side-link,
body.seido-delete .delete-check {
  border: 1px solid rgba(255,250,242,.14) !important;
  border-radius: 18px !important;
  color: #fffaf2 !important;
  background: rgba(255,255,255,.09) !important;
}

body.seido-legal .side-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
}

/* Deletion request: variant 2 account-management style with calm danger states */
body.seido-delete .delete-request-box {
  background: rgba(36,72,63,.07) !important;
}

body.seido-delete .delete-request-box.is-warning,
body.seido-delete .delete-app.is-warning,
body.seido-delete .alert-danger {
  border-color: rgba(163,68,63,.18) !important;
  background: rgba(163,68,63,.10) !important;
}

body.seido-delete .delete-grid {
  gap: .95rem !important;
}

body.seido-delete .delete-app h3 {
  color: var(--portal-ink) !important;
  font-weight: 850 !important;
}

body.seido-delete textarea.form-control,
body.seido-delete .form-control {
  min-height: 48px;
  border-color: rgba(31,39,35,.13) !important;
  border-radius: var(--portal-radius-md) !important;
  background: rgba(255,255,255,.58) !important;
}

body.seido-delete textarea.form-control:focus,
body.seido-delete .form-control:focus {
  border-color: rgba(36,72,63,.42) !important;
  box-shadow: 0 0 0 .22rem rgba(36,72,63,.12) !important;
}

/* Footer */
body.pricing-page .footer,
body.billing-account .footer,
body.seido-legal .footer,
body.seido-delete .footer {
  color: var(--portal-muted) !important;
  border-top-color: rgba(31,39,35,.08) !important;
  background: transparent !important;
}

body.pricing-page .footer a,
body.billing-account .footer a,
body.seido-legal .footer a,
body.seido-delete .footer a {
  color: var(--portal-muted) !important;
  font-weight: 780 !important;
}

body.pricing-page .footer a:hover,
body.billing-account .footer a:hover,
body.seido-legal .footer a:hover,
body.seido-delete .footer a:hover {
  color: var(--portal-ink) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  body.pricing-page .hero-card,
  body.seido-legal .legal-grid,
  body.seido-delete .delete-layout {
    grid-template-columns: 1fr !important;
  }

  body.seido-legal .side-card,
  body.seido-delete .delete-side-card {
    position: static !important;
  }
}

@media (max-width: 900px) {
  body.pricing-page .section-head,
  body.billing-account .hero,
  body.billing-account .panel-head,
  body.seido-legal .site-nav .container-xl > div,
  body.seido-delete .site-nav .container-xl > div,
  body.billing-account .topbar-inner,
  body.pricing-page .topbar-inner {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  body.pricing-page .topbar-actions,
  body.billing-account .topbar-inner .d-flex,
  body.seido-legal .btn-group,
  body.seido-delete .btn-group {
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  body.pricing-page .shell,
  body.billing-account .shell,
  body.seido-legal .container-xl,
  body.seido-delete .container-xl {
    width: min(100%, calc(100% - 28px)) !important;
  }

  body.pricing-page .hero-card,
  body.billing-account .hero,
  body.seido-legal .legal-card-body,
  body.seido-delete .delete-card-body,
  body.billing-account .panel {
    padding: 1.15rem !important;
  }

  body.pricing-page .hero h1,
  body.seido-legal .legal-title,
  body.seido-delete .delete-title,
  body.billing-account .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.8rem) !important;
  }

  body.pricing-page .plans-grid,
  body.billing-account .summary-grid,
  body.billing-account .app-grid,
  body.seido-delete .delete-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Fresh pricing page included in this patch */
body.pricing-page .pricing-shell {
  width: min(1420px, calc(100% - 48px));
  margin: 26px auto 0;
}

body.pricing-page .pricing-window {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-xl);
  background: rgba(255,250,242,.88);
  box-shadow: var(--portal-shadow);
  backdrop-filter: blur(18px);
}

body.pricing-page .pricing-topbar {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  padding: 0 22px;
  border-bottom: 1px solid var(--portal-line);
  background: rgba(255,250,242,.72);
}

body.pricing-page .pricing-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--portal-brand);
}

body.pricing-page .pricing-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

body.pricing-page .pricing-logo strong,
body.pricing-page .pricing-logo small {
  display: block;
  line-height: 1;
}

body.pricing-page .pricing-logo strong {
  font-family: var(--portal-serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: .08em;
}

body.pricing-page .pricing-logo small {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .22em;
  text-transform: uppercase;
}

body.pricing-page .pricing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

body.pricing-page .pricing-nav a,
body.pricing-page .pricing-actions a {
  color: var(--portal-ink);
  font-size: .88rem;
  font-weight: 820;
}

body.pricing-page .pricing-nav a:hover,
body.pricing-page .pricing-actions a:hover {
  color: var(--portal-brand);
}

body.pricing-page .pricing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.pricing-page .pricing-actions a,
body.pricing-page .pricing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(36,72,63,.18);
  border-radius: 999px;
  color: var(--portal-brand);
  background: rgba(255,250,242,.68);
  font-size: .88rem;
  font-weight: 850;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.pricing-page .pricing-actions a:hover,
body.pricing-page .pricing-button:hover {
  transform: translateY(-2px);
  color: #fffaf2;
  border-color: var(--portal-brand);
  background: var(--portal-brand);
}

body.pricing-page .pricing-button.is-primary {
  color: #fffaf2;
  border-color: var(--portal-brand);
  background: var(--portal-brand);
  box-shadow: 0 13px 28px rgba(36,72,63,.18);
}

body.pricing-page .pricing-button.is-light {
  color: var(--portal-brand);
  border-color: rgba(255,250,242,.18);
  background: #fffaf2;
}

body.pricing-page .pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.2rem;
  align-items: end;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--portal-line);
  background:
    radial-gradient(700px circle at 82% 18%, rgba(185,138,99,.14), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(253,245,235,.72));
}

body.pricing-page .pricing-kicker {
  margin: 0 0 .8rem;
  color: var(--portal-accent);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.pricing-page .pricing-title {
  max-width: 760px;
  margin: 0;
  font-family: var(--portal-serif);
  color: var(--portal-ink);
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.062em;
  text-wrap: balance;
}

body.pricing-page .pricing-copy {
  max-width: 650px;
  color: var(--portal-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

body.pricing-page .pricing-side {
  display: grid;
  gap: .8rem;
}

body.pricing-page .pricing-stat {
  padding: 1rem;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-md);
  background: rgba(255,250,242,.78);
  box-shadow: var(--portal-card-shadow);
}

body.pricing-page .pricing-stat strong {
  display: block;
  font-family: var(--portal-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.04em;
}

body.pricing-page .pricing-stat span {
  display: block;
  margin-top: .25rem;
  color: var(--portal-muted);
  font-size: .88rem;
}

body.pricing-page .pricing-section {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid var(--portal-line);
}

body.pricing-page .pricing-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.1rem;
}

body.pricing-page .pricing-section-head h2 {
  margin: 0;
  font-family: var(--portal-serif);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.055em;
}

body.pricing-page .pricing-section-head p {
  max-width: 560px;
  margin: .5rem 0 0;
  color: var(--portal-muted);
  line-height: 1.65;
}

body.pricing-page .pricing-warning {
  padding: 1rem;
  border: 1px solid rgba(163,68,63,.18);
  border-radius: var(--portal-radius-md);
  color: #7d2f2b;
  background: rgba(163,68,63,.10);
}

body.pricing-page .pricing-group-list {
  display: grid;
  gap: 1rem;
}

body.pricing-page .pricing-group {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-lg);
  background: rgba(255,250,242,.82);
  box-shadow: var(--portal-card-shadow);
}

body.pricing-page .pricing-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem;
  color: #fffaf2;
  background:
    radial-gradient(520px circle at 80% 10%, rgba(185,138,99,.24), transparent 60%),
    linear-gradient(135deg, #1d342e, #24483f 52%, #51634d);
}

body.pricing-page .pricing-group-main {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}

body.pricing-page .pricing-logo-card {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,250,242,.16);
  border-radius: 18px;
  background: rgba(255,250,242,.10);
}

body.pricing-page .pricing-logo-card img {
  max-width: 36px;
  max-height: 36px;
}

body.pricing-page .pricing-group h3 {
  margin: 0;
  font-family: var(--portal-serif);
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: -.045em;
}

body.pricing-page .pricing-group p {
  margin: .25rem 0 0;
  color: rgba(255,250,242,.74);
}

body.pricing-page .portal-pill,
body.pricing-page .plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 .7rem;
  border: 1px solid rgba(36,72,63,.14);
  border-radius: 999px;
  color: var(--portal-brand);
  background: rgba(255,250,242,.86);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.pricing-page .pricing-group-header .portal-pill {
  color: #fffaf2;
  border-color: rgba(255,250,242,.16);
  background: rgba(255,250,242,.10);
}

body.pricing-page .pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

body.pricing-page .pricing-plan {
  padding: 1rem;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-md);
  background: rgba(255,250,242,.9);
  box-shadow: var(--portal-card-shadow);
}

body.pricing-page .pricing-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .8rem;
}

body.pricing-page .pricing-plan h4 {
  margin: 0;
  font-family: var(--portal-serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -.045em;
}

body.pricing-page .pricing-plan-copy,
body.pricing-page .pricing-feature-block ul,
body.pricing-page .pricing-plan .text-muted {
  color: var(--portal-muted) !important;
}

body.pricing-page .pricing-price-list {
  display: grid;
  gap: .45rem;
  margin: .9rem 0;
  padding: .85rem;
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius-md);
  background: rgba(255,255,255,.5);
}

body.pricing-page .pricing-price {
  font-weight: 850;
}

body.pricing-page .pricing-feature-stack {
  display: grid;
  gap: .8rem;
}

body.pricing-page .pricing-feature-block {
  padding-top: .8rem;
  border-top: 1px dashed rgba(31,39,35,.14);
}

body.pricing-page .pricing-feature-block:first-child {
  padding-top: 0;
  border-top: 0;
}

body.pricing-page .pricing-feature-block strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--portal-brand);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
}

body.pricing-page .site-footer {
  margin-bottom: 2rem;
}

body.pricing-page .footer-inner-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--portal-muted);
}

body.pricing-page .footer-inner-clean nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 960px) {
  body.pricing-page .pricing-topbar,
  body.pricing-page .pricing-hero {
    grid-template-columns: 1fr;
  }
  body.pricing-page .pricing-nav,
  body.pricing-page .pricing-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.pricing-page .pricing-section-head,
  body.pricing-page .pricing-group-header,
  body.pricing-page .footer-inner-clean {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* reference-style internal pages polish */
body.pricing-page .pricing-hero,
body.seido-legal .legal-hero-panel,
body.seido-delete .delete-hero-panel,
body.billing-account .billing-hero {
  padding: 34px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(24, 34, 31, .08) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,243,235,.52)) !important;
}

body.pricing-page .pricing-title,
body.billing-account .billing-title,
body.seido-legal .legal-title-new,
body.seido-delete .delete-title-new {
  color: #17302b !important;
  font-family: var(--portal-serif) !important;
  font-size: clamp(2.9rem, 5vw, 4.8rem) !important;
  line-height: .96 !important;
}

body.pricing-page .pricing-kicker,
body.billing-account .billing-kicker,
body.seido-legal .legal-kicker,
body.seido-delete .delete-kicker {
  color: #bb8856 !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase;
}

body.pricing-page .pricing-section,
body.seido-legal .legal-section,
body.seido-delete .delete-section,
body.billing-account .billing-section {
  padding: 30px 34px !important;
}

/* reference-style shared internal page refinement */
body.pricing-page .pricing-side,
body.billing-account .billing-side,
body.seido-legal .legal-side-note,
body.seido-delete .delete-side-note {
  display: grid;
  gap: 14px;
}

body.pricing-page .pricing-stat,
body.billing-account .billing-stat,
body.seido-legal .legal-aside-card,
body.seido-delete .delete-card-clean,
body.seido-legal .legal-card-clean {
  border: 1px solid rgba(24, 34, 31, .08);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 30px rgba(71, 53, 27, .05);
}

body.pricing-page .pricing-stat,
body.billing-account .billing-stat {
  padding: 18px;
}

body.pricing-page .pricing-stat strong,
body.billing-account .billing-stat strong,
body.seido-legal .legal-card-clean h2,
body.seido-delete .delete-card-clean h2 {
  color: #17302b;
}

body.billing-account .billing-summary-grid,
body.billing-account .billing-card-grid,
body.seido-delete .delete-grid,
body.seido-legal .legal-layout {
  display: grid;
  gap: 16px;
}

body.billing-account .billing-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.billing-account .billing-card,
body.seido-delete .delete-card-clean,
body.seido-legal .legal-card-clean {
  padding: 22px;
}

body.billing-account .billing-card,
body.seido-delete .delete-card-clean,
body.seido-legal .legal-card-clean,
body.pricing-page .pricing-group,
body.pricing-page .pricing-plan {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.billing-account .billing-card:hover,
body.seido-delete .delete-card-clean:hover,
body.seido-legal .legal-card-clean:hover,
body.pricing-page .pricing-group:hover,
body.pricing-page .pricing-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 72, 63, .16);
  box-shadow: 0 18px 40px rgba(71, 53, 27, .08);
}

body.billing-account .billing-pill,
body.seido-legal .legal-details-list dt,
body.seido-delete .delete-checklist li strong {
  color: #24483f;
}

body.pricing-page .site-footer,
body.billing-account .site-footer,
body.seido-legal .site-footer,
body.seido-delete .site-footer {
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  body.billing-account .billing-summary-grid {
    grid-template-columns: 1fr;
  }
}
