@layer pages {
  .contact-item small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted-foreground);
    line-height: 1.45;
  }
  .contact-item b {
    display: block;
  }
  .contact-item-email {
    display: inline-block;
    margin-top: 0.35rem;
  }

  .imageai-policy-note {
    margin: 10px 0 0;
    color: var(--muted-foreground);
    font-size: 0.68rem;
    line-height: 1.55;
  }

  .imageai-policy-note a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  :where(
    h1,
    h2,
    h3,
    .hero-title,
    .public-info-hero h1,
    .auth-card h1,
    .workspace-dashboard > h1,
    .admin-overview-hero h1
  ) {
    min-width: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
    font-style: normal;
  }

  :where(.legal-content, .article-body, .prose, .public-info-shell.narrow) {
    max-width: 65ch;
  }

  :where(
    .button,
    .nav-menu-trigger,
    .mobile-main-link,
    .footer-cookie-settings,
    .ui-segmented > button,
    .ui-segmented > a,
    .workspace-mobile-nav a,
    .workspace-mobile-nav button
  ) {
    max-width: 100%;
    white-space: nowrap;
  }

  :where(
    .ui-card,
    .form-card,
    .auth-card,
    .settings-card,
    .price-card,
    .product-list-card,
    .workspace-stat,
    .workspace-table-card,
    .recent-job-card,
    .admin-data-card,
    .public-form-card,
    .faq-card,
    .trust-grid article
  ) {
    border-color: var(--color-rule);
    box-shadow: var(--shadow-sm);
  }

  :where(
      .ui-card,
      .form-card,
      .auth-card,
      .settings-card,
      .price-card,
      .product-list-card,
      .workspace-stat,
      .recent-job-card,
      .admin-data-card,
      .public-form-card,
      .faq-card,
      .trust-grid article
    )
    > :first-child {
    margin-block-start: 0;
  }

  :where(
      .ui-card,
      .form-card,
      .auth-card,
      .settings-card,
      .price-card,
      .product-list-card,
      .workspace-stat,
      .recent-job-card,
      .admin-data-card,
      .public-form-card,
      .faq-card,
      .trust-grid article
    )
    > :last-child {
    margin-block-end: 0;
  }

  .original-hero {
    padding: var(--space-3xl) 0 calc(var(--space-3xl) + var(--space-lg));
    text-align: center;
    background: var(--color-paper-2);
  }

  .original-hero-inner {
    display: grid;
    justify-items: center;
    width: min(1024px, 100%);
    max-width: 64rem;
    margin-inline: auto;
    column-gap: 0;
  }

  .original-hero .hero-pill {
    justify-self: center;
    border-color: color-mix(in oklch, var(--color-feature) 24%, var(--color-rule));
    background: var(--color-paper);
    color: var(--color-accent);
  }

  .original-hero h1 {
    max-width: 18ch;
    margin: var(--space-xl) auto 0;
    text-wrap: balance;
  }

  .original-hero .accent-rule {
    width: 6rem;
    margin: var(--space-lg) auto 0;
    background: var(--color-feature);
  }

  .original-hero p {
    max-width: 48rem;
    margin: var(--space-lg) auto 0;
    text-wrap: pretty;
  }

  .original-hero .center-actions {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
  }

  .original-product-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .original-product-grid,
  .preview-grid:not([hidden]),
  .comparison {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .original-product-visual {
    background: var(--color-ink);
    color: var(--color-paper);
  }

  .original-product-visual::before {
    background: radial-gradient(
      circle at 30% 40%,
      color-mix(in oklch, var(--color-paper) 10%, transparent),
      transparent 60%
    );
  }

  .feature-four {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .feature-four .original-feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon title" "icon copy";
    column-gap: var(--space-md);
    align-items: start;
    padding: var(--space-lg);
    border-color: var(--color-rule);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur-micro) var(--ease-out);
  }

  .feature-four .original-feature:nth-child(1),
  .feature-four .original-feature:nth-child(4) {
    grid-column: span 7;
  }

  .feature-four .original-feature:nth-child(2),
  .feature-four .original-feature:nth-child(3) {
    grid-column: span 5;
  }

  .feature-four .feature-icon {
    grid-area: icon;
  }

  .feature-four .original-feature h3 {
    grid-area: title;
    margin: 0 0 var(--space-2xs);
  }

  .feature-four .original-feature p {
    grid-area: copy;
  }

  .original-feature:hover,
  .original-product-card:hover {
    border-color: var(--color-rule);
    box-shadow: var(--shadow-sm);
    transform: none;
  }

  .reveal.visible,
  .reveal.visible[data-reveal-direction="left"],
  .reveal.visible[data-reveal-direction="right"] {
    transform: none;
  }

  .site-footer {
    background: var(--color-ink);
    color: var(--color-paper);
  }

  .site-footer :where(p, a, small, .footer-bottom) {
    color: var(--color-on-dark-muted);
  }

  .site-footer :where(h2, h3, h4, .brand) {
    color: var(--color-paper);
  }

  .site-footer .footer-bottom {
    border-color: color-mix(in oklch, var(--color-paper) 14%, transparent);
  }

  @media (hover: hover) and (pointer: fine) {
    .button:not(:disabled, [aria-disabled="true"]):hover {
      border-color: var(--color-accent-hover);
      background: var(--color-accent-hover);
      color: var(--color-accent-ink);
      box-shadow: none;
      transform: none;
    }
    .button:is(.outline, .ghost):not(:disabled, [aria-disabled="true"]):hover {
      border-color: var(--color-rule-2);
      background: var(--color-paper-3);
      color: var(--color-ink);
    }
    .button.danger:not(:disabled, [aria-disabled="true"]):hover {
      border-color: var(--color-danger);
      background: var(--color-danger);
      color: var(--color-paper);
    }
    .button.danger.outline:not(:disabled, [aria-disabled="true"]):hover {
      background: var(--color-danger-soft);
      color: var(--color-danger);
    }
    .cta-panel .button:not(:disabled, [aria-disabled="true"]):hover {
      border-color: var(--color-accent-hover);
      background: var(--color-accent-hover);
      color: var(--color-accent-ink);
    }
    :where(.icon-button, .nav-menu-trigger, .footer-cookie-settings):not(:disabled, [aria-disabled="true"]):hover {
      color: var(--color-accent);
    }
    :where(.policy-link-grid a, .recent-job-card > a, .quick-action-grid a):hover {
      border-color: var(--color-rule-2);
      box-shadow: var(--shadow-md);
      transform: translateY(-1px);
    }
    :where(tbody tr):hover {
      background: color-mix(in oklch, var(--color-accent) 3.5%, transparent);
    }
  }

  @media (max-width: 64rem) {
    .feature-four {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-four .original-feature:nth-child(n) {
      grid-column: auto;
    }
  }

  @media (pointer: coarse) {
    :where(
      .button,
      .icon-button,
      .nav-toggle,
      .nav-menu-trigger,
      .locale-pill,
      .footer-cookie-settings,
      summary,
      [role="button"]
    ) {
      min-block-size: 44px;
    }
    :where(.brand, .workspace-brand, .mobile-main-link, .mobile-submenu a, .site-footer a) {
      min-block-size: 44px;
      align-items: center;
    }
    :where(.site-footer a, .footer-cookie-settings) {
      display: inline-flex;
      padding-block: 10px;
    }
    :where(input[type="checkbox"], input[type="radio"]) {
      min-width: 0;
      min-height: 22px;
    }
  }

  @media (max-width: 48rem) {
    html {
      scroll-padding-top: 4.5rem;
    }
    :where(button, .button, .icon-button, .nav-toggle, .nav-menu-trigger, .locale-pill, summary, [role="button"]) {
      min-block-size: 44px;
    }
    .button.small,
    .nav-actions .button.small,
    .ui-segmented > button,
    .ui-segmented > a {
      min-height: 44px;
    }
    .icon-button,
    .nav-toggle,
    .brand {
      min-width: 0;
    }
    :where(
      .brand,
      .workspace-brand,
      .mobile-main-link,
      .mobile-submenu a,
      .site-footer a,
      .auth-label-row a,
      .auth-card-footer a
    ) {
      min-block-size: 44px;
      align-items: center;
    }
    :where(.brand, .workspace-brand, .auth-card-footer a, .site-footer a) {
      display: flex;
    }
    :where(.site-footer a, .footer-cookie-settings) {
      padding-block: 10px;
    }
    :where(input[type="checkbox"], input[type="radio"]) {
      min-width: 0;
      min-height: 22px;
    }
    .imageai-policy-note a {
      display: inline-flex;
      min-height: 44px;
      align-items: center;
    }
    :where(.shell, .workspace-dashboard, .admin-shell, .public-info-shell) {
      min-width: 0;
    }
    :where(.marketing-section, .public-info-page) {
      padding-block: clamp(3rem, 12vw, 4.5rem);
    }
    :where(.section-heading, .workspace-section-heading, .admin-overview-hero, .public-info-cta) {
      align-items: flex-start;
      flex-direction: column;
    }
    :where(.section-heading, .workspace-section-heading, .admin-overview-hero, .public-info-cta) > .button {
      width: 100%;
    }
    :where(.faq-grid, .trust-grid, .policy-link-grid, .recent-job-grid, .workspace-stat-grid) {
      grid-template-columns: minmax(0, 1fr);
    }
    .original-hero {
      padding: var(--space-2xl) 0 calc(var(--space-2xl) + var(--space-lg));
    }
    .original-hero-inner {
      width: 100%;
      max-width: none;
    }
    .original-hero h1 {
      max-width: none;
      margin-top: var(--space-lg);
    }
    .original-hero .center-actions {
      justify-content: center;
      margin-top: var(--space-lg);
    }
    .original-hero .center-actions .button {
      width: 100%;
    }
    .feature-four {
      grid-template-columns: minmax(0, 1fr);
    }
    .feature-four .original-feature:nth-child(n) {
      grid-column: auto;
    }
    .cta-panel {
      grid-template-columns: minmax(0, 1fr);
      padding: var(--space-lg);
    }
    .cta-panel .button {
      grid-column: 1;
      grid-row: auto;
      width: 100%;
      margin-top: var(--space-lg);
    }
    :where(table) {
      max-width: 100%;
    }

  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 100ms !important;
    }
    :where(.button, .icon-button, .policy-link-grid a, .recent-job-card > a, .quick-action-grid a):is(:hover, :active) {
      transform: none !important;
    }
  }

  .showcase-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .showcase-metrics div {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-subtle, var(--color-rule));
    border-radius: 14px;
    background: var(--surface-raised, var(--color-paper));
  }

  .showcase-metrics dt {
    color: var(--text-muted, var(--color-success));
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .showcase-metrics dd {
    margin: 0.3rem 0 0;
    color: var(--text-strong, var(--color-ink));
    font-weight: 700;
  }

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

  .solution-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-subtle, var(--color-rule));
    border-radius: 22px;
    background: var(--surface-raised, var(--color-paper));
    box-shadow: var(--shadow-soft, 0 10px 28px rgba(33, 28, 20, 0.06));
  }

  .solution-card-media {
    display: grid;
    width: 100%;
    height: clamp(176px, 18vw, 220px);
    flex: 0 0 auto;
    overflow: hidden;
    place-items: center;
    border-bottom: 1px solid var(--border-subtle, var(--color-rule));
    background: var(--surface-muted, var(--color-paper-2));
  }

  .solution-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .solution-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.15rem;
  }

  .solution-card-copy h2,
  .solution-card-copy h3 {
    margin: 0;
  }

  .solution-card-copy p {
    margin: 0;
    color: var(--text-muted, var(--color-success));
  }

  .solution-card-copy .text-link {
    margin-top: auto;
  }

  .solution-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--text-muted, var(--color-success));
    font-size: 0.82rem;
  }

  .solution-card-meta span {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-muted, var(--color-paper-2));
  }

  .article-primary-cta {
    margin: 2rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle, var(--color-rule));
    border-radius: 18px;
    background: var(--surface-muted, var(--color-paper-2));
  }

  .article-primary-cta p {
    margin: 0.25rem 0 0.75rem;
  }

  @media (max-width: 64rem) {
    .showcase-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .solution-card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .solution-hero-grid,
    .solution-detail-grid {
      grid-template-columns: 1fr;
    }
    .solution-step-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 48rem) {
    .showcase-metrics,
    .solution-card-grid,
    .solution-facts-grid,
    .solution-step-grid {
      grid-template-columns: 1fr;
    }
    .solution-final-cta > .shell {
      align-items: flex-start;
      flex-direction: column;
    }
  }

  .oauth-button:disabled,
  .oauth-button.is-pending-disabled,
  .contact-form-actions .button:disabled,
  .button:is(:disabled, [aria-disabled="true"]) {
    opacity: 0.68;
  }

  .desktop-nav > a,
  .nav-menu-trigger {
    color: var(--polish-text-secondary);
    font-weight: 600;
  }

  .nav-menu-trigger .chevron {
    opacity: 0.78;
  }

  .nav-dropdown {
    border-color: var(--polish-line-strong);
    background: var(--polish-surface);
    box-shadow: 0 24px 64px color-mix(in oklch, var(--color-ink) 14%, transparent);
  }

  .mega-menu-group h3,
  .mega-menu-title {
    color: var(--polish-text-muted);
    font-weight: 750;
    letter-spacing: 0.09em;
  }

  .mega-menu-group a {
    color: var(--polish-text);
  }

  .mega-menu-group a small,
  .mega-menu-feature-copy span,
  .mega-menu-footer span {
    color: var(--polish-text-muted);
  }

  .mega-menu-feature {
    border-color: var(--polish-line);
    background: var(--color-paper-2);
  }

  .mega-menu-feature-copy small {
    color: var(--color-accent-hover);
  }

  .mega-menu-footer {
    border-top-color: var(--polish-line);
    background: var(--color-paper-2);
  }

  .mega-menu-footer a {
    color: var(--color-accent-hover);
    font-weight: 750;
  }

  .locale-menu-panel,
  .account-menu-panel,
  .credit-quick-panel {
    border-color: var(--polish-line-strong);
    background: var(--polish-surface);
  }

  .locale-menu-panel a.active {
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
  }

  .mobile-main-link,
  .mobile-nav-group > summary {
    color: var(--polish-text-secondary);
  }

  .site-footer {
    background: var(--color-ink);
    color: var(--color-on-dark);
  }

  .site-footer :where(p, a, small, .footer-bottom, .footer-address) {
    color: var(--color-on-dark-muted);
  }

  .site-footer a:hover,
  .site-footer button:hover {
    color: var(--color-paper);
  }

  .site-footer h4 {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer-brand-block > p:first-of-type {
    max-width: 34ch;
    color: var(--color-paper);
  }

  .footer-address {
    line-height: 1.75;
  }

  .footer-bottom {
    border-top-color: color-mix(in oklch, var(--color-paper) 18%, transparent);
  }

  .footer-cookie-settings {
    color: var(--color-on-dark-muted);
  }

  :where(.original-hero, .pricing-page, .public-info-page, .policies-page, .legal-page) {
    background: var(--polish-page);
  }

  .original-hero {
    border-bottom: 1px solid var(--polish-line);
    background: linear-gradient(180deg, var(--color-paper-2), var(--polish-page));
  }

  .original-hero p,
  .pricing-page-header > p:last-child,
  .public-info-hero p {
    color: var(--polish-text-muted);
  }

  .section-kicker,
  .eyebrow,
  .legal-kicker,
  .policy-card-category {
    color: var(--color-accent-hover);
  }

  :where(
    .original-feature,
    .product-list-card,
    .price-card,
    .faq-card,
    .trust-grid article,
    .public-form-card,
    .settings-card,
    .workspace-stat,
    .recent-job-card,
    .admin-panel,
    .admin-data-card,
    .payment-card
  ) {
    border-color: var(--polish-line);
    background: var(--polish-surface);
    box-shadow:
      0 1px 2px color-mix(in oklch, var(--color-ink) 4%, transparent),
      0 10px 30px color-mix(in oklch, var(--color-ink) 4%, transparent);
  }

  :where(
    .original-feature,
    .product-list-card,
    .price-card,
    .faq-card,
    .trust-grid article,
    .settings-card,
    .workspace-stat,
    .recent-job-card,
    .admin-panel,
    .admin-data-card
  ) {
    transition:
      border-color var(--dur-short) var(--ease-out),
      box-shadow var(--dur-short) var(--ease-out),
      transform var(--dur-short) var(--ease-out);
  }

  :where(
      .original-feature,
      .product-list-card,
      .price-card,
      .faq-card,
      .trust-grid article,
      .settings-card,
      .workspace-stat,
      .recent-job-card,
      .admin-panel,
      .admin-data-card
    )
    p {
    color: var(--polish-text-muted);
  }

  :where(
      .original-feature,
      .product-list-card,
      .price-card,
      .faq-card,
      .trust-grid article,
      .settings-card,
      .workspace-stat,
      .recent-job-card,
      .admin-panel,
      .admin-data-card
    )
    :where(h2, h3, h4, strong) {
    color: var(--polish-text);
  }

  .text-link,
  .policy-inline-links a,
  .prose a {
    color: var(--color-link);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .price-card.is-current-plan {
    border-color: color-mix(in oklch, var(--color-accent) 45%, var(--polish-line-strong));
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--color-accent) 18%, transparent);
  }

  .price-card .current-plan-label {
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
  }

  .pricing-inline-message {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid color-mix(in oklch, var(--color-danger) 28%, var(--polish-line-strong));
    border-radius: var(--radius-xs);
    background: color-mix(in oklch, var(--color-danger) 8%, transparent);
    color: var(--color-danger);
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .pricing-inline-message.success {
    border-color: color-mix(in oklch, var(--color-success) 28%, var(--polish-line-strong));
    background: color-mix(in oklch, var(--color-success) 8%, transparent);
    color: var(--color-success);
  }

  .pricing-inline-message[hidden] {
    display: none !important;
  }

  #pricing-plans {
    scroll-margin-top: calc(var(--space-2xl) + var(--space-lg));
  }

  .dashboard-command-button,
  .dashboard-credit-button,
  .locale-pill {
    border-color: var(--polish-line-strong);
    color: var(--polish-text-secondary);
  }

  @media (max-width: 48rem) {
    .dashboard-membership-action {
      min-width: var(--control-height);
      height: var(--control-height);
    }
    .dashboard-membership-plan {
      display: none;
    }
    .auth-back-link {
      min-width: var(--control-height);
      min-height: var(--control-height);
      justify-content: center;
    }
    .settings-tabs a {
      display: inline-flex;
      min-height: var(--control-height);
      align-items: center;
    }
    .settings-page .button.small {
      min-height: var(--control-height);
    }
    .settings-page .password-field button,
    .settings-page .security-password-wrap button {
      width: var(--control-height);
      height: var(--control-height);
    }
    .settings-page table.is-empty {
      min-width: 0;
      table-layout: fixed;
    }
    .settings-page table.is-empty thead {
      display: none;
    }
    .settings-page table.is-empty .table-empty {
      width: 100%;
      padding: var(--space-xl) var(--space-md) !important;
      white-space: normal;
    }
    .settings-page table.is-empty .ui-empty-state {
      max-width: 100%;
      padding-inline: 0;
    }
  }

  .status-badge.muted,
  .status.false {
    color: var(--polish-text-secondary);
  }

  .policies-page,
  .legal-page {
    padding: clamp(3.75rem, 7vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
  }

  .policies-shell,
  .legal-shell {
    display: grid;
    gap: clamp(2.25rem, 5vw, 4.5rem);
  }

  .policies-contact-card {
    padding: 1.35rem;
    border: 1px solid var(--polish-line);
    border-radius: var(--radius-card);
    background: var(--polish-surface);
    box-shadow: var(--shadow-sm);
  }

  .policies-contact-card > span {
    display: block;
    color: var(--polish-text-muted);
    font-size: 0.76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .policies-contact-card > strong {
    display: block;
    margin: 0.45rem 0 0.35rem;
    overflow-wrap: anywhere;
    font-size: 1rem;
  }

  .policies-contact-card > p {
    margin: 0;
    color: var(--polish-text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .policies-contact-card > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--color-accent-hover);
    font-size: 0.85rem;
    font-weight: 750;
  }

  .policies-contact-card .ui-icon {
    width: 15px;
    height: 15px;
  }

  .policy-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon category category" "icon title arrow" "icon copy copy" "icon link link";
    align-items: start;
    gap: 0.35rem 1rem;
    padding: 1.4rem;
    border: 1px solid var(--polish-line);
    border-radius: var(--radius-card);
    background: var(--polish-surface);
    box-shadow: var(--shadow-sm);
  }

  .policy-card-icon {
    grid-area: icon;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
  }

  .policy-card-icon .ui-icon {
    width: 20px;
    height: 20px;
  }

  .policy-card-category {
    grid-area: category;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .policy-card > strong {
    grid-area: title;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .policy-card > p {
    grid-area: copy;
    margin: 0.2rem 0 0;
    color: var(--polish-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .policy-card::after {
    grid-area: arrow;
    align-self: center;
    color: var(--polish-text-muted);
    content: "↗";
    font-size: 1rem;
  }

  .policy-card-link {
    grid-area: link;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    color: var(--color-accent-hover);
    font-size: 0.8rem;
    font-weight: 750;
  }

  .policy-card-link .ui-icon {
    width: 14px;
    height: 14px;
  }

  .policies-principles > .legal-section-heading {
    border-top: 1px solid var(--polish-line);
    padding-top: 2.5rem;
  }

  .legal-shell {
    max-width: 90rem;
  }

  .legal-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--polish-text-muted);
    font-size: 0.78rem;
  }

  .legal-breadcrumbs a {
    color: var(--polish-text-secondary);
    font-weight: 650;
  }

  .legal-breadcrumbs a:hover {
    color: var(--color-accent-hover);
  }

  .legal-breadcrumbs .ui-icon {
    width: 13px;
    height: 13px;
    opacity: 0.72;
  }

  .legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: end;
    gap: clamp(2rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--polish-line);
  }

  .legal-hero-copy h1 {
    max-width: 17ch;
    margin: 0.65rem 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .legal-hero-copy > p {
    max-width: 62ch;
    margin: 0;
    color: var(--polish-text-muted);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.75;
  }

  .legal-kicker {
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .legal-meta {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--polish-line);
    border-radius: var(--radius-card);
    background: var(--polish-surface);
  }

  .legal-meta > div {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--polish-line);
  }

  .legal-meta > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .legal-meta dt {
    color: var(--polish-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .legal-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--polish-text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
    text-align: right;
  }

  .legal-meta a {
    color: var(--color-accent-hover);
  }

  .legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    justify-content: center;
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
  }

  .legal-toc {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid var(--polish-line);
    border-bottom: 1px solid var(--polish-line);
  }

  .legal-toc > strong {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .legal-toc nav {
    display: grid;
    gap: 0.12rem;
    max-height: calc(100svh - 170px);
    overflow: auto;
  }

  .legal-toc a {
    padding: 0.42rem 0.55rem;
    border-left: 2px solid transparent;
    color: var(--polish-text-muted);
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .legal-toc a.level-3 {
    padding-left: 1rem;
    font-size: 0.72rem;
  }

  .legal-toc a:hover {
    border-left-color: var(--color-accent);
    background: var(--color-accent-soft);
    color: var(--color-accent-hover);
  }

  .legal-document {
    min-width: 0;
  }

  .legal-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 1rem 1.1rem;
    border: 1px solid color-mix(in oklch, var(--color-accent) 28%, var(--polish-line));
    border-radius: var(--radius-sm);
    background: color-mix(in oklch, var(--color-accent-soft) 42%, var(--polish-surface));
  }

  .legal-note .ui-icon {
    width: 18px;
    height: 18px;
    margin-top: 0.18rem;
    color: var(--color-accent-hover);
  }

  .legal-note p {
    margin: 0;
    color: var(--polish-text-secondary);
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .legal-prose {
    max-width: none !important;
    color: var(--polish-text-secondary);
    font-family: var(--font-body) !important;
    font-size: 1rem;
    line-height: 1.84;
  }

  .legal-prose > :first-child {
    margin-top: 0;
  }

  .legal-prose h2 {
    margin: 2.6rem 0 0.8rem;
    padding-top: 0.4rem;
    color: var(--polish-text);
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
  }

  .legal-prose h3 {
    margin: 2rem 0 0.65rem;
    color: var(--polish-text);
    font-size: 1.08rem;
  }

  .legal-prose p {
    margin: 1rem 0;
  }

  .legal-prose ul,
  .legal-prose ol {
    padding-left: 1.35rem;
  }

  .legal-prose li {
    padding-left: 0.2rem;
  }

  .legal-prose strong {
    color: var(--polish-text);
    font-weight: 750;
  }

  .legal-prose blockquote {
    border-left-color: var(--color-accent);
    background: var(--color-paper-2);
    color: var(--polish-text-secondary);
  }

  .legal-prose .prose-table-wrap {
    border-color: var(--polish-line-strong);
  }

  .legal-prose th {
    background: var(--color-paper-3);
    color: var(--polish-text);
  }

  .legal-prose td {
    color: var(--polish-text-secondary);
  }

  .legal-help {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding: 1.4rem;
    border: 1px solid var(--polish-line);
    border-radius: var(--radius-card);
    background: var(--color-paper-2);
  }

  .legal-help-label {
    color: var(--color-accent-hover);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .legal-help h2 {
    margin: 0.25rem 0 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
  }

  .legal-help p {
    margin: 0.45rem 0 0;
    color: var(--polish-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .legal-related {
    display: grid;
    gap: 1.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--polish-line);
  }

  .legal-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .legal-section-heading > div > span {
    color: var(--color-accent-hover);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .legal-section-heading h2 {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    line-height: 1.1;
  }

  .legal-section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-accent-hover);
    font-size: 0.8rem;
    font-weight: 750;
  }

  .legal-section-heading .ui-icon {
    width: 14px;
    height: 14px;
  }

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

  .legal-related-grid > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.8rem;
    padding: 1.15rem;
    border: 1px solid var(--polish-line);
    border-radius: var(--radius-sm);
    background: var(--polish-surface);
  }

  .legal-related-grid strong {
    font-size: 0.9rem;
  }

  .legal-related-grid span {
    grid-column: 1/-1;
    color: var(--polish-text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .legal-related-grid .ui-icon {
    width: 15px;
    height: 15px;
    color: var(--polish-text-muted);
  }

  @media (hover: hover) and (pointer: fine) {
    .policy-card:hover,
    .legal-related-grid > a:hover {
      border-color: var(--polish-line-strong);
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }
    .policy-card:hover::after {
      color: var(--color-accent-hover);
    }
    .policies-contact-card > a:hover,
    .legal-section-heading > a:hover {
      color: var(--color-link-hover);
    }
    .error-button.primary:hover {
      border-color: var(--color-accent-hover);
      background: var(--color-accent-hover);
    }
    .error-button.secondary:hover {
      border-color: var(--color-accent);
      background: var(--color-accent-soft);
    }
  }

  @media (max-width: 64rem) {
    .policies-hero,
    .legal-hero {
      grid-template-columns: minmax(0, 1fr);
    }
    .policies-contact-card,
    .legal-meta {
      max-width: 48rem;
    }
    .legal-layout {
      grid-template-columns: minmax(0, 720px);
    }
    .legal-toc {
      position: static;
      display: none;
    }
    .legal-related-grid,
    .policies-principles > div:last-child {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 48rem) {
    .policies-page,
    .legal-page {
      padding: 3rem 0 4.5rem;
    }
    .policies-shell,
    .legal-shell {
      gap: 2.25rem;
    }
    .policies-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .policies-summary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .policies-summary > div:nth-child(2) {
      border-right: 0;
    }
    .policies-summary > div:nth-child(-n + 2) {
      border-bottom: 1px solid var(--polish-line);
    }
    .legal-section-heading {
      align-items: flex-start;
      flex-direction: column;
    }
    .legal-help {
      grid-template-columns: minmax(0, 1fr);
    }
    .legal-help .button {
      width: 100%;
    }
    .policy-card {
      padding: 1.15rem;
    }
    .error-help {
      position: static;
      justify-content: center;
      margin-top: 1rem;
    }
    .error-page-main {
      align-content: center;
      place-items: stretch;
    }
  }

  @media (max-width: 30rem) {
    .policies-summary {
      grid-template-columns: minmax(0, 1fr);
    }
    .policies-summary > div {
      border-right: 0;
      border-bottom: 1px solid var(--polish-line);
    }
    .policies-summary > div:last-child {
      border-bottom: 0;
    }
    .legal-meta > div {
      grid-template-columns: minmax(0, 1fr);
    }
    .legal-meta dd {
      text-align: left;
    }
    .error-panel {
      padding: 2rem 1.35rem;
      border-radius: var(--radius-lg);
    }
    .error-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
    }
    .error-button {
      width: 100%;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .policy-card,
    .legal-related-grid > a,
    .error-button,
    .dashboard-membership-action {
      transition: none !important;
    }
    .policy-card:hover,
    .legal-related-grid > a:hover {
      transform: none;
    }
    .dashboard-membership-action:hover,
    .dashboard-membership-action:active {
      transform: none;
    }
  }

  .company-address-note,
  .contact-item small,
  .checkout-unavailable-note {
    color: var(--color-text-tertiary);
  }

  .article-share-sheet[hidden] {
    display: none !important;
  }

  .article-share-open {
    overflow: hidden;
  }

  .article-share-sheet {
    position: fixed;
    z-index: var(--z-header);
    inset: 0;
    display: grid;
    align-items: end;
    padding: 0;
    color: var(--color-text);
  }

  .article-share-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: color-mix(in srgb, var(--color-ink) 46%, transparent);
    backdrop-filter: blur(3px);
    cursor: default;
  }

  .article-share-panel {
    position: relative;
    width: 100%;
    max-height: min(84svh, 680px);
    overflow: auto;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border: 1px solid var(--color-rule);
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    background: var(--color-paper);
    box-shadow: 0 -22px 64px color-mix(in srgb, var(--color-ink) 24%, transparent);
    outline: 0;
  }

  .article-share-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.2rem 1rem;
    border-bottom: 1px solid var(--color-rule);
  }

  .article-share-panel > header span,
  .article-share-panel > header strong {
    display: block;
  }

  .article-share-panel > header span {
    color: var(--color-text-tertiary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .article-share-panel > header strong {
    max-width: 34ch;
    margin-top: 0.25rem;
    overflow: hidden;
    color: var(--color-text);
    font-size: 0.98rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .article-share-close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--color-rule);
    border-radius: 999px;
    background: var(--color-paper);
    color: var(--color-text-secondary);
    cursor: pointer;
  }

  .article-share-close .ui-icon {
    width: 17px;
    height: 17px;
  }

  .article-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding-top: 1rem;
  }

  .article-share-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 70px;
    padding: 0.75rem;
    border: 1px solid var(--color-rule);
    border-radius: 14px;
    background: var(--color-paper);
    color: var(--color-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .article-share-option:hover,
  .article-share-option:focus-within {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
    outline: 0;
  }

  .article-share-option > span:last-child {
    min-width: 0;
  }

  .article-share-option strong,
  .article-share-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .article-share-option strong {
    font-size: 0.86rem;
  }

  .article-share-option small {
    margin-top: 0.16rem;
    color: var(--color-text-tertiary);
    font-size: 0.68rem;
  }

  .article-share-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--color-paper-3);
    color: var(--color-accent-hover);
    font-size: 1rem;
    font-weight: 850;
  }

  .article-share-mark .ui-icon {
    width: 17px;
    height: 17px;
  }

  .article-share-help {
    margin: 0.9rem 0.2rem 0;
    color: var(--color-text-tertiary);
    font-size: 0.7rem;
    line-height: 1.6;
  }

  @media (min-width: 48rem) {
    .article-share-sheet {
      place-items: center;
      padding: 1.5rem;
    }
    .article-share-panel {
      width: min(560px, 100%);
      border-width: 1px;
      border-radius: 20px;
      padding: 1.2rem;
      box-shadow: var(--shadow-lg);
    }
  }

  @media (max-width: 48rem) {
    .blog-index-parity {
      width: calc(100% - 24px);
      max-width: 90rem;
      min-width: 0;
      overflow-x: hidden;
      overflow-x: clip;
    }
    .blog-index-toolbar,
    .blog-search-field,
    .blog-category-mobile,
    .blog-category-native,
    .blog-category-trigger,
    .blog-category-drawer,
    .blog-category-drawer-list,
    .blog-post-grid,
    .blog-card-link,
    .blog-card-parity,
    .blog-card-parity .post-cover,
    .blog-card-parity .post-body,
    .blog-card-parity .post-author-row {
      min-width: 0;
      max-width: 100%;
    }
    .blog-post-grid {
      width: 100%;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 18px;
    }
    .blog-card-link,
    .blog-card-parity {
      width: 100%;
    }
    .blog-card-parity {
      overflow: hidden;
    }
    .blog-card-parity .post-body h2,
    .blog-card-parity .post-body h3,
    .blog-card-parity .post-body > p,
    .blog-card-parity .post-author span {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .blog-card-parity .post-author-row {
      width: 100%;
    }
    .blog-card-parity time {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .article-share-options {
      grid-template-columns: 1fr;
    }
  }

  .page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 1rem;
    padding-bottom: 0.25rem;
    color: var(--text-muted, var(--color-success));
    font-size: 0.88rem;
  }

  .page-breadcrumb a {
    color: inherit;
    text-decoration: none;
  }

  .page-breadcrumb a:hover {
    color: var(--text, var(--color-ink-2));
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .page-breadcrumb span[aria-current="page"] {
    color: var(--text, var(--color-ink-2));
    font-weight: 600;
  }

  .showcase-section {
    overflow: hidden;
  }

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

  .showcase-card {
    overflow: hidden;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 1.25rem;
    background: var(--surface, var(--color-paper));
    box-shadow: 0 18px 48px rgba(31, 41, 55, 0.08);
  }

  .before-after-compare {
    position: relative;
    aspect-ratio: 8/5;
    overflow: hidden;
    background: var(--color-paper-2);
    isolation: isolate;
  }

  .before-after-compare img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .before-after-compare input[type="range"] {
    position: absolute;
    z-index: var(--z-raised);
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
  }

  .showcase-copy {
    padding: 1.15rem 1.2rem 1.25rem;
  }

  .showcase-copy h3 {
    margin: 0 0 0.45rem;
  }

  .showcase-copy p {
    margin: 0;
    color: var(--text-muted, var(--color-success));
  }

  .showcase-copy small {
    display: block;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border, var(--color-paper-3));
    color: var(--text-muted);
    font-size: 0.78rem;
  }

  .article-author-card {
    color: inherit;
    text-decoration: none;
  }

  .article-author-card em {
    display: block;
    margin-top: 0.1rem;
    color: var(--accent, var(--color-feature));
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 700;
  }

  .article-editorial-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 241, 234, 0.82));
  }

  .article-editorial-note p {
    margin: 0.35rem 0 0.55rem;
    color: var(--text-muted, var(--color-success));
  }

  .pricing-capacity-section {
    padding-block: 2.5rem;
  }

  .pricing-capacity-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 1.1rem;
    background: var(--color-paper);
    box-shadow: 0 14px 40px rgba(31, 41, 55, 0.06);
  }

  .pricing-capacity-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
  }

  .pricing-capacity-table th,
  .pricing-capacity-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border, var(--color-paper-3));
    text-align: center;
    vertical-align: middle;
  }

  .pricing-capacity-table thead th {
    background: var(--color-paper);
    font-size: 0.86rem;
  }

  .pricing-capacity-table tbody th {
    text-align: left;
  }

  .pricing-capacity-table tbody tr:last-child th,
  .pricing-capacity-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .pricing-capacity-table small {
    color: var(--text-muted);
    font-weight: 500;
  }

  .pricing-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .trust-detail-section {
    margin-top: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 1.35rem;
    background: var(--color-paper);
  }

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

  .trust-provider-grid article {
    padding: 1.2rem;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 1rem;
    background: var(--color-paper);
  }

  .trust-provider-grid h3 {
    margin-top: 0;
  }

  .trust-provider-grid p {
    margin-bottom: 0;
    color: var(--text-muted, var(--color-success));
  }

  .trust-contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 1.2rem;
    background: var(--color-ink-2);
    color: var(--color-paper);
  }

  .trust-contact-panel h2 {
    margin: 0 0 0.4rem;
    color: var(--color-paper);
  }

  .trust-contact-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
  }

  .trust-contact-panel .center-actions {
    margin: 0;
    flex: 0 0 auto;
  }

  .trust-contact-panel .button.outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--color-paper);
  }

  @media (max-width: 64rem) {
    .showcase-grid,
    .trust-provider-grid {
      grid-template-columns: 1fr;
    }
    .pricing-scenario-grid {
      grid-template-columns: 1fr;
    }
    .reviewer-link-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trust-contact-panel {
      align-items: flex-start;
      flex-direction: column;
    }
    .trust-contact-panel .center-actions {
      justify-content: flex-start;
    }
  }

  @media (max-width: 48rem) {
    .reviewer-link-grid {
      grid-template-columns: 1fr;
    }
    .showcase-copy small {
      display: none;
    }
    .compare-label {
      top: 0.65rem;
    }
    .compare-label.before {
      left: 0.65rem;
    }
    .compare-label.after {
      right: 0.65rem;
    }
    .article-editorial-note {
      grid-template-columns: 1fr;
    }
    .trust-detail-section {
      padding: 1.15rem;
    }
  }

  .article-verification-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 0.9rem;
    background: var(--surface-muted, var(--color-paper));
  }

  .article-verification-strip div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
  }

  .article-verification-strip dt {
    color: var(--text-muted, var(--color-success));
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .article-verification-strip dd {
    margin: 0;
    color: var(--text-strong, var(--color-ink));
    font-size: 0.84rem;
    font-weight: 650;
  }

  .prose .article-evidence-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.25rem 0;
  }

  .prose .article-evidence-pair img {
    width: 100%;
    height: auto;
    margin: 0;
    border: 1px solid var(--border, var(--color-rule));
    border-radius: 0.8rem;
    background: var(--surface-muted, var(--color-paper));
  }

  @media (max-width: 48rem) {
    .article-verification-strip {
      display: grid;
    }
    .prose .article-evidence-pair {
      grid-template-columns: 1fr;
    }
  }

  .solution-card-media {
    position: relative;
    display: grid;
    width: 100%;
    height: clamp(176px, 18vw, 220px);
    flex: 0 0 auto;
    overflow: hidden;
    place-items: center;
    border-bottom: 1px solid var(--border, var(--color-rule));
    background: linear-gradient(
      180deg,
      var(--surface-muted, var(--color-paper-2)),
      var(--surface-raised, var(--color-paper))
    );
  }

  .solution-card-media > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
  }

  @media (max-width: 48rem) {
    .solution-card-media {
      height: clamp(184px, 54vw, 224px);
    }
  }

  /* Homepage product proof — the first viewport should explain the live product, not reserve space for decoration. */
  .original-hero {
    padding-block: clamp(4.5rem, 9vw, 8rem);
  }
  .original-hero.compact-hero {
    padding-block: clamp(3rem, 6vw, 5rem);
  }
  .original-hero-inner:has(.home-hero-copy) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.72fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
    max-width: 90rem;
  }
  .home-hero-copy {
    align-self: start;
    min-width: 0;
    margin-top: clamp(0.75rem, 2.5vw, 2.5rem);
    text-align: left;
  }
  .original-hero .home-hero-copy .hero-pill {
    justify-self: start;
  }
  .original-hero .home-hero-copy h1 {
    max-width: 11.5ch;
    margin-inline: 0;
    font-size: clamp(3.25rem, 5.3vw, 5.85rem);
    line-height: 0.96;
    letter-spacing: -0.052em;
  }
  .original-hero .home-hero-copy .accent-rule {
    margin-inline: 0;
    width: 4.5rem;
  }
  .original-hero .home-hero-copy p {
    max-width: 48rem;
    margin-inline: 0;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
  }
  .original-hero .home-hero-copy .center-actions {
    justify-content: flex-start;
  }
  .home-product-proof {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid color-mix(in oklch, var(--color-accent) 23%, var(--color-rule));
    border-radius: 1.5rem;
    background: linear-gradient(
      145deg,
      var(--color-paper),
      color-mix(in oklch, var(--color-paper-2) 78%, var(--color-paper-3))
    );
    box-shadow: 0 1.5rem 3.5rem color-mix(in srgb, var(--color-ink) 11%, transparent);
    overflow: hidden;
  }
  .home-product-proof::before {
    content: "";
    position: absolute;
    right: -3.5rem;
    top: -4rem;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: color-mix(in oklch, var(--color-feature) 25%, transparent);
  }
  .home-product-proof > * {
    position: relative;
  }
  .home-product-proof-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .home-product-proof-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.15rem;
    background: var(--color-accent);
    color: var(--color-paper);
  }
  .home-product-proof-icon .ui-icon {
    width: 2rem;
    height: 2rem;
  }
  .home-product-proof-label {
    margin: 1rem 0 -0.65rem;
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .home-product-proof h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    letter-spacing: -0.04em;
  }
  .home-product-proof > p:not(.home-product-proof-label) {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
  }
  .home-product-proof-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0.25rem 0 0;
    padding: 1rem 0;
    border-block: 1px solid color-mix(in oklch, var(--color-accent) 16%, var(--color-rule));
    list-style: none;
  }
  .home-product-proof-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-ink-2);
    font-size: 0.84rem;
    font-weight: 650;
  }
  .home-product-proof-list li::before {
    content: "↗";
    color: var(--color-accent);
    font-weight: 800;
  }
  .home-product-proof-list li:last-child {
    grid-column: 1/-1;
  }
  .home-product-proof .text-link {
    margin-top: 0;
  }
  @media (max-width: 48rem) {
    .original-hero {
      padding-block: 3.25rem 4rem;
    }
    .original-hero-inner,
    .original-hero-inner:has(.home-hero-copy) {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .home-hero-copy {
      align-self: auto;
      margin-top: 0;
      text-align: center;
    }
    .original-hero .home-hero-copy .hero-pill,
    .original-hero .home-hero-copy .accent-rule,
    .original-hero .home-hero-copy p {
      margin-inline: auto;
    }
    .original-hero .home-hero-copy .center-actions {
      justify-content: center;
    }
    .home-product-proof {
      padding: 1.5rem;
      border-radius: 1.25rem;
      text-align: left;
    }
    .home-product-proof-list {
      grid-template-columns: 1fr;
    }
    .home-product-proof-list li:last-child {
      grid-column: auto;
    }
  }

  /* Corporate home: portfolio architecture first; individual products belong in the directory. */
  .corporate-hero {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-paper-2) 62%, var(--color-paper) 100%);
    border-bottom: 1px solid var(--color-rule);
  }
  .corporate-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.7fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
    max-width: 90rem;
  }
  .corporate-hero-copy {
    min-width: 0;
  }
  .corporate-hero-copy h1 {
    max-width: 15ch;
    margin: 1.5rem 0 0;
    font-size: clamp(3rem, 4.2vw, 4.75rem);
    line-height: 1;
    letter-spacing: -0.052em;
    text-wrap: balance;
  }
  .corporate-hero-copy .accent-rule {
    width: 4.5rem;
    margin: 1.5rem 0 0;
    background: var(--color-feature);
  }
  .corporate-hero-copy > p {
    max-width: 48rem;
    margin: 1.5rem 0 0;
    color: var(--color-muted);
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    line-height: 1.72;
  }
  .corporate-hero-copy .center-actions {
    justify-content: flex-start;
    margin-top: 2rem;
  }
  .product-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
    max-width: 64rem;
    margin-inline: auto;
  }
  .product-directory-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--color-rule);
    border-radius: 1rem;
    background: var(--color-paper);
    box-shadow: var(--shadow-sm);
  }
  .product-directory-card .feature-icon {
    margin: 0;
  }
  .product-directory-card h3 {
    margin: 0.55rem 0 0.3rem;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
  }
  .product-directory-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .product-directory-card .text-link {
    align-self: center;
    margin: 0;
    white-space: nowrap;
  }
  /* The product menu is a compact directory. It must not compete with the corporate homepage. */
  .nav-dropdown.mega-menu {
    width: min(29rem, calc(100vw - 32px));
  }
  .mega-menu-layout {
    display: block;
  }
  .mega-menu-groups {
    display: block;
    padding: 10px;
  }
  .mega-menu-group a {
    min-height: 0;
  }
  @media (max-width: 48rem) {
    .corporate-hero {
      padding-block: 3.25rem 4rem;
    }
    .corporate-hero-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .corporate-hero-copy {
      text-align: center;
    }
    .corporate-hero-copy h1 {
      margin-inline: auto;
      font-size: clamp(2.75rem, 13vw, 4rem);
    }
    .corporate-hero-copy .accent-rule,
    .corporate-hero-copy > p {
      margin-inline: auto;
    }
    .corporate-hero-copy .center-actions {
      justify-content: center;
    }
    .corporate-hero-copy .center-actions .button {
      width: 100%;
    }
    .product-directory-card {
      grid-template-columns: auto 1fr;
    }
    .product-directory-card .text-link {
      grid-column: 1/-1;
      justify-self: start;
    }
  }
}
