/* ==========================================================================
   ZORVEZA - MULTI-PAGE DESIGN EXTENSIONS (css/pages.css)
   Clean, modern, minimal architecture with balanced spacing & responsive grids.
   ========================================================================== */

/* ---------- Page Header / Hero Banner ---------- */
.page-hero {
  padding-top: clamp(96px, 10vw, 128px);
  padding-bottom: clamp(28px, 4vw, 44px);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-hero--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.page-hero--accent .label {
  color: #b9cdbf;
}

.page-hero--accent .label b {
  color: var(--amber);
}

.page-hero--accent h1 {
  color: #ffffff;
}

.page-hero--accent p {
  color: #cfdcd3;
}

.page-hero__meta {
  max-width: 780px;
}

.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: 10px;
}

.page-hero p {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--ink-2);
  margin-top: 12px;
  line-height: 1.55;
  max-width: 62ch;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease);
}

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

.breadcrumbs span.sep {
  opacity: 0.4;
}

/* ==========================================================================
   ARCHITECTURAL PRICING SYSTEM (Homepage & Pricing Page)
   ========================================================================== */
.pricing-matrix-section {
  padding-block: var(--s-8);
  background: var(--paper-2);
}

.billing-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 22px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.billing-toggle-btn {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(28, 27, 24, 0.04);
}

.billing-toggle-option {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  transition: all var(--d-fast) var(--ease);
}

.billing-toggle-option.is-active {
  background: var(--ink);
  color: var(--paper);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(31, 90, 68, 0.22);
}

/* Modern Architectural Pricing Grid */
.zp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.zp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}

.zp-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-1);
}

.zp-card--featured {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-2);
}

.zp-card--featured:hover {
  border-color: var(--amber);
}

.zp-popular-pill {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  z-index: 2;
}

.zp-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.zp-tier-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.zp-card--featured .zp-tier-tag {
  color: var(--amber);
}

.zp-cap-pill {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.zp-card--featured .zp-cap-pill {
  background: #2b2924;
  color: #d8d2c5;
  border-color: rgba(255, 255, 255, 0.14);
}

.zp-title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.zp-card--featured .zp-title {
  color: #ffffff;
}

.zp-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 6px;
  min-height: 38px;
}

.zp-card--featured .zp-desc {
  color: #c9c4b7;
}

.zp-price-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.zp-card--featured .zp-price-box {
  background: #262420;
  border-color: rgba(255, 255, 255, 0.12);
}

.zp-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.zp-cur {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-2);
}

.zp-card--featured .zp-cur {
  color: var(--amber);
}

.zp-amt {
  font-family: var(--f-display);
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: opacity 150ms ease, transform 150ms ease;
}

.zp-amt.is-changing {
  opacity: 0.25;
  transform: translateY(-3px);
}

.zp-card--featured .zp-amt {
  color: #ffffff;
}

.zp-per {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 4px;
}

.zp-card--featured .zp-per {
  color: #b5afa1;
}

.zp-billing-note {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
}

.zp-card--featured .zp-billing-note {
  color: var(--amber);
}

/* 2x2 Architectural Quota Box Grid inside each Plan Card */
.zp-quotas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.zp-quota-cell {
  padding: 8px 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: #ffffff;
}

.zp-card--featured .zp-quota-cell {
  background: #262420;
  border-color: rgba(255, 255, 255, 0.1);
}

.zp-quota-cell small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.zp-card--featured .zp-quota-cell small {
  color: #9e988b;
}

.zp-quota-cell strong {
  display: block;
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1px;
}

.zp-card--featured .zp-quota-cell strong {
  color: #f5f1e8;
}

/* Capabilities Checklist */
.zp-features {
  list-style: none;
  margin: 16px 0 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-grow: 1;
}

.zp-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.35;
}

.zp-card--featured .zp-features li {
  color: #e5e0d4;
}

.zp-features li.is-off {
  color: var(--ink-3);
  opacity: 0.52;
}

.zp-card--featured .zp-features li.is-off {
  color: #8c867a;
  opacity: 0.5;
}

.zp-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.zp-card--featured .zp-check {
  background: rgba(226, 160, 63, 0.2);
  color: var(--amber);
}

.zp-cross {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.zp-card--featured .zp-cross {
  background: rgba(255, 255, 255, 0.08);
  color: #8c867a;
}

.zp-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
}

.zp-card--featured .zp-cta {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

.zp-card--featured .zp-cta:hover {
  background: #f0af4e;
  border-color: #f0af4e;
}

/* Free Trial Horizontal Ticket Banner */
.zp-trial-bar {
  margin-top: 22px;
  padding: 20px 26px;
  border-radius: var(--radius-m);
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.zp-trial-bar__info h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 4px;
}

.zp-trial-bar__info p {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
}

.zp-trial-bar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.zp-trial-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  border: 1px solid rgba(31, 90, 68, 0.2);
  font-weight: 600;
}

/* Feature Matrix Table */
.matrix-section {
  padding-block: var(--s-8);
  background: var(--paper);
}

.matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  margin-top: var(--s-5);
}

.matrix-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: var(--t-sm);
}

.matrix-table th,
.matrix-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.matrix-table tr:last-child td {
  border-bottom: 0;
}

.matrix-table th {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  background: var(--paper-2);
}

.matrix-table th.is-featured,
.matrix-table td.is-featured {
  background: rgba(31, 90, 68, 0.06);
}

.matrix-table td.col-feature {
  font-weight: 500;
  color: var(--ink);
  width: 32%;
}

.matrix-table th.col-plan,
.matrix-table td.col-plan {
  text-align: center;
  color: var(--ink-2);
}

.matrix-table tr.category-row td {
  background: var(--paper);
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--accent);
  padding-top: 16px;
  padding-bottom: 10px;
}

/* ==========================================================================
   LOGIN & WORKSPACE AUTH PORTAL
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  position: relative;
}

.auth-header {
  padding: 20px var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-container {
  max-width: 460px;
  width: 100%;
  margin: 28px auto 44px;
  padding: 0 var(--s-4);
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  position: relative;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label,
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}

.form-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(28, 27, 24, 0.08);
  background: #ffffff;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.auth-security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   TENANT FINDER PAGE
   ========================================================================== */
.finder-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  text-align: center;
}

.finder-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 28px;
  text-align: left;
}

.finder-search-bar {
  display: flex;
  gap: 8px;
  position: relative;
}

.finder-search-input {
  flex-grow: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  transition: all var(--d-fast) var(--ease);
  min-width: 0;
}

.finder-search-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(28, 27, 24, 0.08);
  background: #ffffff;
}

.search-results-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--d-fast) var(--ease);
}

.search-result-item:hover {
  border-color: var(--ink);
  background: #ffffff;
  transform: translateX(3px);
}

.search-result-item strong {
  display: block;
  font-size: 14px;
}

.search-result-item span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   FEATURES SHOWCASE PAGE
   ========================================================================== */
.feature-pillar-band {
  padding-block: var(--s-8);
}

.feature-pillar-band:nth-child(even) {
  background: var(--paper-2);
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.pillar-grid--reversed {
  direction: rtl;
}

.pillar-grid--reversed > * {
  direction: ltr;
}

.pillar-interactive-mockup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.pillar-list {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-base);
  color: var(--ink-2);
  line-height: 1.5;
}

.pillar-list .p-bullet {
  color: var(--accent);
  font-weight: bold;
}

/* ==========================================================================
   ABOUT US PAGE
   ========================================================================== */
.manifesto-section {
  padding-block: var(--s-8);
  background: var(--paper);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.manifesto-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  transition: transform var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}

.manifesto-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}

.manifesto-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.manifesto-card h3 {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.milestones-strip {
  padding-block: var(--s-7);
  background: var(--ink);
  color: var(--paper);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  text-align: center;
}

.milestone-item strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}

.milestone-item span {
  font-size: var(--t-sm);
  color: #c9c4b7;
  margin-top: 6px;
  display: block;
}

/* ==========================================================================
   CONTACT US, LOGIN & SIGNUP PAGES
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 44px);
  padding-block: 0;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 26px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 22px;
}

.channel-box h4 {
  font-size: var(--t-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.channel-box p {
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.channel-box a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   BLOG DIRECTORY & DETAIL PAGES
   ========================================================================== */
.blog-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 0;
}

.blog-filter-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}

.blog-filter-btn:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.blog-filter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 28px;
  margin-bottom: var(--s-6);
  transition: border-color var(--d-fast) var(--ease);
  text-decoration: none;
  color: inherit;
}

.featured-article-card:hover {
  border-color: var(--ink);
}

.article-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}

.featured-article-card h2 {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.featured-article-card p {
  color: var(--ink-2);
  margin-top: 10px;
  line-height: 1.55;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.article-card h3 {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
  margin-bottom: 8px;
}

.article-card p {
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.55;
  flex-grow: 1;
}

.article-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Blog Detail Specifics */
.reading-progress-bar {
  display: none !important;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-block: 0;
}

.article-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.article-toc a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 5px 0;
  display: block;
  font-weight: 500;
  transition: color var(--d-fast) var(--ease);
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.article-content {
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--ink);
  max-width: 720px;
}

.article-content h2 {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 22px;
  margin-bottom: 10px;
}

.article-content p {
  margin-bottom: 16px;
  color: #38352f;
}

.article-callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.95em;
}

.article-callout strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.05em;
  margin-bottom: 4px;
  color: var(--ink);
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 1120px) {
  .zp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    display: none;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .pillar-grid--reversed {
    direction: ltr;
  }

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

  .milestones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }
}

@media (max-width: 680px) {
  .page-hero {
    padding-top: 88px;
    padding-bottom: 24px;
  }

  .zp-grid,
  .zp-grid--3 {
    grid-template-columns: 1fr;
  }

  .zp-trial-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }

  .zp-trial-bar .btn {
    width: 100%;
    justify-content: center;
  }

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

  .milestones-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .finder-search-bar {
    flex-direction: column;
  }

  .finder-search-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-card,
  .finder-box,
  .featured-article-card {
    padding: 20px 18px;
  }

  .search-result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   ARCHITECTURAL PRICING REDESIGN & VISUAL MEDIA ENHANCEMENTS
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes packetFlow {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(31, 90, 68, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(31, 90, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(31, 90, 68, 0); }
}

@keyframes pulseAmber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(226, 160, 63, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(226, 160, 63, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(226, 160, 63, 0); }
}

@keyframes scanlineSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

@keyframes printSlip {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ---------- Split Hero Layout ---------- */
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-hero__visual {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(28, 27, 24, 0.05);
}

/* Telemetry Badge */
.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}

.beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulseBeacon 2s infinite;
}

.beacon-dot--amber {
  background: var(--amber);
  animation: pulseAmber 2s infinite;
}

/* ==========================================================================
   BRAND-NEW ARCHITECTURAL TIER PRICING DESIGN
   ========================================================================== */
.pricing-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-inline: 16px;
}

.pricing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(33, 76, 56, 0.06);
  border: 1px solid rgba(33, 76, 56, 0.16);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(33, 76, 56, 0.14);
}

.pricing-v2-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem) !important;
  font-weight: 700;
  line-height: 1.18 !important;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 820px !important;
  margin: 0 auto !important;
  text-wrap: balance;
}

.pricing-v2-subtitle {
  color: var(--ink-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  max-width: 660px;
  margin: 14px auto 0 auto;
  text-wrap: balance;
}

.tier-section-wrap {
  margin-top: clamp(24px, 2.5vw, 36px);
}

/* Interactive Shifter */
.pricing-shifter-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}

.pricing-shifter-pill {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(28, 27, 24, 0.04);
}

.pricing-shifter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}

.pricing-shifter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

.pricing-savings-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbf3e4;
  color: #8c5609;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

/* Mobile Quick-Switch Tier Navigation Strip */
.mobile-tier-nav {
  display: none;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin: 0 auto 20px auto;
  width: 100%;
  max-width: 440px;
}

.mobile-tier-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
  text-align: center;
  gap: 2px;
}

.mobile-tier-tab .m-tab-name {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.2;
}

.mobile-tier-tab .m-tab-price {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.2;
}

.mobile-tier-tab.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.mobile-tier-tab.is-active .m-tab-name {
  color: #ffffff;
}

.mobile-tier-tab.is-active .m-tab-price {
  color: var(--amber);
}

/* Mobile Carousel Dots */
.mobile-tier-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 28px 0;
}

.m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: all 180ms ease;
  cursor: pointer;
}

.m-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}

/* Mobile Deck Swipe Guide */
.deck-mobile-swipe-guide {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 0 auto 18px auto;
  padding: 6px 14px;
  background: var(--paper-2);
  border-radius: 999px;
  width: fit-content;
}

.deck-mobile-swipe-guide .guide-icon {
  font-size: 14px;
  font-weight: bold;
}

/* Matrix Mobile Hint */
.matrix-mobile-hint {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* The 3-Tier Deck */
.tier-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.tier-panel {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(28, 27, 24, 0.04);
  transition: transform var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}

.tier-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(28, 27, 24, 0.08);
}

/* Standard Panel */
.tier-panel--standard {
  background: var(--card);
  border: 1px solid rgba(28, 27, 24, 0.08);
}

/* Featured Centerpiece Panel (Pro Fleet in Ledger Green) */
.tier-panel--featured {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  box-shadow: 0 14px 40px rgba(31, 90, 68, 0.22);
}

.tier-panel--featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(31, 90, 68, 0.3);
}

.tier-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

/* Ultimate Enterprise Panel */
.tier-panel--ultimate {
  background: var(--card);
  border: 1px solid rgba(28, 27, 24, 0.12);
}

/* Tier Header Elements */
.tier-panel__head {
  margin-bottom: 20px;
}

.tier-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tier-code {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.tier-panel--featured .tier-code {
  color: #b9cdbf;
}

.tier-scope-pill {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.tier-panel--featured .tier-scope-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.tier-title {
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  color: var(--ink);
}

.tier-panel--featured .tier-title {
  color: #ffffff;
}

.tier-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  min-height: 40px;
}

.tier-panel--featured .tier-desc {
  color: #d1dfd6;
}

/* Pricing Display */
.tier-price-box {
  padding: 16px 0;
  margin-bottom: 20px;
}

.tier-rate-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tier-curr {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-2);
}

.tier-panel--featured .tier-curr {
  color: var(--amber);
}

.tier-val {
  font-family: var(--f-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  transition: opacity 120ms ease;
}

.tier-panel--featured .tier-val {
  color: #ffffff;
}

.tier-cadence {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 2px;
}

.tier-panel--featured .tier-cadence {
  color: #cfdcd3;
}

.tier-billing-note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
}

.tier-panel--featured .tier-billing-note {
  color: #b9cdbf;
}

/* 2x2 High-Impact Quota Matrix */
.tier-quotas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.tier-quota-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  min-width: 0;
}

.tier-panel--featured .tier-quota-cell {
  background: rgba(255, 255, 255, 0.12);
}

.tier-quota-cell .q-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.tier-quota-cell .q-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.tier-quota-cell .q-info small {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.tier-panel--featured .tier-quota-cell .q-info small {
  color: #cfdcd3;
}

.tier-quota-cell .q-info strong {
  font-family: var(--f-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-panel--featured .tier-quota-cell .q-info strong {
  color: #ffffff;
}

/* Legacy Capacity Quota Strip */
.tier-quotas-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper-2);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  margin-bottom: 22px;
}

.tier-panel--featured .tier-quotas-strip {
  background: rgba(0, 0, 0, 0.16);
}

.tier-quota-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.tier-quota-lbl {
  color: var(--ink-3);
  font-family: var(--f-mono);
}

.tier-panel--featured .tier-quota-lbl {
  color: #b9cdbf;
}

.tier-quota-val {
  font-weight: 700;
  color: var(--ink);
  font-family: var(--f-mono);
}

.tier-panel--featured .tier-quota-val {
  color: #ffffff;
}

/* Feature Checklists */
.tier-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.tier-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.tier-panel--featured .tier-features-list li {
  color: #f3efe4;
}

.tier-check-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-panel--featured .tier-check-icon {
  background: var(--amber);
  color: var(--ink);
}

/* Tier CTA Buttons */
.tier-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all var(--d-fast) var(--ease);
}

.tier-cta-btn--standard {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.tier-cta-btn--standard:hover {
  background: var(--ink);
  color: var(--paper);
}

.tier-cta-btn--featured {
  background: var(--amber);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.tier-cta-btn--featured:hover {
  background: #f0ab43;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.tier-cta-btn--ultimate {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.tier-cta-btn--ultimate:hover {
  background: #33302a;
}

/* Universal Reassurance Strip */
.tier-reassurance-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  margin-top: 32px;
  box-shadow: 0 4px 16px rgba(28, 27, 24, 0.03);
}

.tier-reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.tier-reassurance-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Bridge to Dedicated Pricing Page */
.tier-bridge-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--paper-2);
  border-radius: var(--radius-m);
  padding: 20px 26px;
  margin-top: 24px;
}

.tier-bridge-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.tier-bridge-link {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.tier-bridge-link:hover {
  text-decoration: underline;
}

/* Filter bar on Dedicated Pricing Page */
.plan-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.plan-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}

.plan-filter-btn:hover {
  border-color: var(--ink);
}

.plan-filter-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ==========================================================================
   PAGE-SPECIFIC VISUAL MEDIA COMPONENTS
   ========================================================================== */

/* 1. About Page: Dual-Core Architecture Visual */
.dual-core-schematic {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dual-core-node-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.dual-core-node-box strong {
  display: block;
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--ink);
}

.dual-core-node-box small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

.dual-core-stream-line {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 38px;
}

.dual-core-stream-line svg {
  width: 100%;
  height: 100%;
}

.dual-core-stream-badge {
  position: absolute;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 2. Features Page: 4-Pillar Interactive Topology Visual */
.topology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.topology-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}

.topology-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.topology-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topology-tile strong {
  font-size: 13px;
  color: var(--ink);
}

.topology-tile small {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

/* 3. Blog Page: Media Cover Cards */
.article-cover-box {
  width: 100%;
  height: 140px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.article-cover-box svg {
  width: 100%;
  height: 100%;
  transition: transform var(--d-med) var(--ease);
}

.article-card:hover .article-cover-box svg {
  transform: scale(1.04);
}

/* 4. Contact Page: Live Operations Console */
.ops-console {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  border: 1px solid #33302a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.ops-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.ops-console-head strong {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--amber);
}

.ops-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.ops-metric-lbl {
  color: #a9a397;
}

.ops-metric-val {
  font-family: var(--f-mono);
  font-weight: 600;
  color: #ffffff;
}

/* Topic Chips on Contact Form */
.contact-topics-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.contact-topic-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}

.contact-topic-chip.is-selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ==========================================================================
   RESPONSIVE ENHANCEMENTS FOR ALL PAGES & TIERS
   ========================================================================== */
@media (max-width: 1080px) and (min-width: 881px) {
  .tier-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .tier-panel {
    padding: 24px 18px;
  }

  .tier-reassurance-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 880px) {
  .mobile-tier-nav {
    display: flex;
    position: sticky;
    top: 68px;
    z-index: 20;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(244, 240, 230, 0.94);
    box-shadow: 0 4px 18px rgba(28, 27, 24, 0.08);
  }

  .mobile-tier-dots {
    display: flex;
  }

  .deck-mobile-swipe-guide {
    display: inline-flex;
  }

  .matrix-mobile-hint {
    display: flex;
  }

  /* Horizontal Magnetic Snap Carousel for Responsive Viewports */
  .tier-deck {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 8px 4px 24px 4px !important;
    margin-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none;
  }

  .tier-deck::-webkit-scrollbar {
    display: none;
  }

  .tier-panel {
    flex: 0 0 88% !important;
    max-width: 380px !important;
    min-width: 270px !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
  }

  .tier-panel--featured {
    transform: none;
  }

  .tier-panel--featured:hover {
    transform: translateY(-2px);
  }

  /* Filter bar smooth horizontal scroll on mobile */
  .plan-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 2px 12px 2px;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .plan-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .plan-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Sticky first column on live matrix table for flawless comparison */
  .matrix-table {
    min-width: 620px;
  }

  .matrix-table th.col-feature,
  .matrix-table td.col-feature {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--card);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  }

  .matrix-table th.col-feature {
    background: var(--paper-2);
    z-index: 4;
  }

  .tier-reassurance-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .pricing-v2-title {
    font-size: clamp(1.65rem, 5.8vw, 2.1rem) !important;
    line-height: 1.22 !important;
  }

  .pricing-v2-subtitle {
    font-size: 14.5px;
    margin-top: 10px;
  }

  .tier-reassurance-bar {
    grid-template-columns: 1fr;
  }

  .tier-panel {
    flex: 0 0 91% !important;
    max-width: 340px !important;
    padding: 20px 18px !important;
  }

  .tier-val {
    font-size: 2.6rem;
  }

  .tier-bridge-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-shifter-box {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-shifter-pill {
    width: 100%;
    justify-content: center;
  }

  .pricing-shifter-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
  }

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

/* ---------- Media Showcase Frame for Real Showcase Imagery ---------- */
.media-showcase-frame {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 0;
  background: var(--paper-2);
  box-shadow: 0 8px 28px rgba(28, 27, 24, 0.07);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
}

.media-showcase-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(28, 27, 24, 0.12);
}

.media-showcase-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform var(--d-slow) var(--ease);
}

.media-showcase-frame:hover .media-showcase-img {
  transform: scale(1.02);
}

.media-floating-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(28, 27, 24, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.media-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(28, 27, 24, 0.92) 0%, rgba(28, 27, 24, 0.6) 65%, transparent 100%);
  color: #ffffff;
  padding: 24px 18px 14px 18px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.media-caption-bar strong {
  display: block;
  font-family: var(--f-display);
  font-size: 13.5px;
  color: #ffffff;
}

.media-caption-bar span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #d1dfd6;
}
