/*
 * web-services.css — Web Services page styles
 * Page-specific styles for web-services.html.
 * Global tokens, resets, and shared components live in styles.css.
 */

/* ── HERO ── */
.hero {
  text-align: center;
  margin-bottom: 6.875rem;
  padding: 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.06em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 37.5rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.hero-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── TIER CARDS ── */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
  margin-bottom: 1rem;
}

.tier {
  border-radius: var(--radius-md);
  padding: 1.625rem 1.375rem;
}
@media (prefers-reduced-motion: no-preference) {
  .tier { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
}
.tier:hover {
  border-color: var(--accent);
  border-top-color: var(--accent-bright);
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(167,139,250,0.2);
}

.tier-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.tier-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.05em;
}
.tier-price span:not(.price) {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.tier-best {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 1.25rem;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.tier ul { list-style: none; padding: 0; }

.tier ul li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.3125rem 0 0.3125rem 1.375rem;
  position: relative;
  line-height: 1.5;
}
.tier ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.tier ul li.inherit {
  color: var(--text-tertiary);
  font-style: italic;
  font-size: 0.75rem;
  padding-left: 0;
}
.tier ul li.inherit::before { content: none; }

.tier-update {
  margin-top: 1.25rem;
  padding: 0.625rem 0.875rem;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.tier-footnote {
  margin-bottom: 3.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  font-style: italic;
}

/* ── CORE PACKAGES SECTION — STICKY TOGGLE ──
   toggle-sticky-bar is height:0 + overflow:visible so it takes
   no vertical space and never affects the tier card widths.
   The toggle overflows to the right at the same level as the
   section-header (header text left, toggle right — no conflict).
   Sticky is scoped to the section so it releases when the
   section scrolls out of view.
── */
.toggle-sticky-bar {
  position: sticky;
  top: 7.5rem;
  height: 0;
  overflow: visible;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: none;
  z-index: 50;
}

.toggle-sticky-bar > .currency-toggle {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .toggle-sticky-bar {
    top: calc(5.5rem + 0.5rem);
    height: auto;
    overflow: visible;
    justify-content: stretch;
    align-items: stretch;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  }

  .toggle-sticky-bar > .currency-toggle {
    width: 100%;
    border-radius: var(--radius-xl);
  }

  .toggle-sticky-bar > .currency-toggle .curr-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── DIVIDER SPACING IN CARDS ── */
.tier .divider,
.retainer-card .divider {
  margin-bottom: 1rem;
}

/* ── TWO-COL PANELS ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
  margin-bottom: 4.375rem;
}

.panel {
  border-radius: var(--radius-md);
  padding: 1.625rem;
}
@media (prefers-reduced-motion: no-preference) {
  .panel { transition: border-color 0.25s; }
}
.panel:hover { border-color: var(--border-bright); }

.panel h2, .panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.panel-sub {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.panel table {
  width: 100%;
  border-collapse: collapse;
}
.panel table td, .panel table th {
  font-size: 0.8125rem;
  padding: 0.6875rem 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.panel table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
}
.panel table td { color: var(--text-secondary); }
.panel table td strong { color: var(--text); }
.panel table td:last-child, .panel table th:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  padding-left: 1rem;
}

.panel-list {
  list-style: none;
  padding: 0;
}
.panel-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.375rem 0 0.375rem 1.375rem;
  position: relative;
  border-top: 1px solid var(--border);
}
.panel-list li .check {
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.panel-list li.excluded {
  color: var(--text-tertiary);
  font-style: italic;
}
.panel-list li.excluded .check { color: var(--text-tertiary); }

/* ── RETAINER CARDS ── */
.retainer-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
  margin-bottom: 4.375rem;
}

.retainer-card {
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .retainer-card { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
}
.retainer-card:hover {
  border-color: var(--accent);
  border-top-color: var(--accent-bright);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(167,139,250,0.18);
}

.r-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.r-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.05em;
  margin-bottom: 0.25rem;
}
.r-price sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.r-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.r-detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ── NOTICE (inline em for table) ── */
.table-note {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { margin-bottom: 4rem; text-align: left; padding: 0; }
  .hero h1 { letter-spacing: -0.09em; }
  .tiers, .two-col, .retainer-row { grid-template-columns: 1fr; gap: 0.875rem; margin-bottom: 3rem; }
}

@media (max-width: 400px) {
  .tier, .panel, .retainer-card { padding: 1.25rem 1rem; }
  .tier-price, .r-price { font-size: 1.625rem; }
}

/* ── PRINT ── */
@media print {
  .tier, .panel, .retainer-card {
    background: #f8f8ff !important;
    border-color: #ccc !important;
    border-top-color: #a78bfa !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .tier-update { background: #ede9ff !important; border-color: #c4b5fd !important; }
  .tier-name, .tier-price, .panel h2, .panel h3, .r-price, .hero h1 { color: #111 !important; }
  .hero h1 .gradient-text { -webkit-text-fill-color: #7c6af7; }
  .hero-sub, .tier ul li, .panel table td, .r-detail { color: #333 !important; }
  .tier-best, .tier ul li.inherit, .panel-sub, .section-desc, .hero-meta, .r-sub, footer p { color: #666 !important; }
  .panel table td:last-child { color: #111 !important; }
}
