/* websites.css
   Page-level styles for /websites/index.html
   All tokens from styles.css — no hardcoded values.
*/

/* ============================================================
   PACKAGES GRID
   ============================================================ */

.packages-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 32px;
}

.pkg-card {
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .2s ease;
}

.pkg-card:hover {
  border-color: var(--border);
}

.pkg-card--feature {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(26, 107, 255, .08) 0%, var(--glass) 60%);
  border-color: rgba(26, 107, 255, .25);
  position: relative;
  overflow: hidden;
}

.pkg-card--feature::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(26, 107, 255, .12) 0%, transparent 70%);
  pointer-events: none;
}

.pkg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cobalt-active);
  background: rgba(26, 107, 255, .12);
  border: 1px solid rgba(26, 107, 255, .2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
  width: fit-content;
}

.pkg-name {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pkg-card--feature .pkg-name {
  font-size: 2.6rem;
}

.pkg-tagline {
  font-size: 0.875rem;
  opacity: .55;
  margin-bottom: 20px;
}

.pkg-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: .75;
  margin-bottom: 24px;
}

.pkg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.pkg-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink-muted);
  background: var(--matte);
  border: 1px solid var(--border2);
  padding: 3px 10px;
  border-radius: 999px;
}

.pkg-divider {
  border: none;
  border-top: 1px solid var(--border2);
  margin: 4px 0 20px;
}

.pkg-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pkg-list li {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: .8;
  padding-left: 20px;
  position: relative;
}

.pkg-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: .4;
  font-size: 12px;
}

.pkg-price {
  font-family: var(--ff-base);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.pkg-card--feature .pkg-price {
  font-size: 2.6rem;
}

.pkg-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: .45;
  letter-spacing: 0;
}

.pkg-price--sm {
  font-size: 1.4rem;
  margin-top: auto;
}

.pkg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* ============================================================
   PRICING TABLE (ADD-ONS)
   ============================================================ */

.pricing-table {
  margin-top: 32px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border2);
  gap: 16px;
  transition: background .15s ease;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row:hover {
  background: var(--matte);
}

.pricing-row--header {
  background: var(--matte);
  padding: 10px 24px;
  cursor: default;
}

.pricing-row--header:hover {
  background: var(--matte);
}

.pricing-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: .9;
}

.pricing-item-note {
  font-size: 0.78rem;
  opacity: .45;
  margin-top: 2px;
}

.pricing-item-price {
  font-family: var(--ff-number);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: .9;
  text-align: right;
}

.pricing-item-highlight {
  font-size: 0.75rem;
  color: var(--cobalt-active);
  opacity: 1;
  margin-top: 2px;
  text-align: right;
}

.pricing-header-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .35;
}

/* ============================================================
   TIMELINE (PROCESS)
   ============================================================ */

.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cobalt-active), transparent);
  opacity: .3;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bgMid1);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-number);
  font-size: 9px;
  font-weight: 700;
  color: var(--cobalt-active);
  z-index: 1;
}

.timeline-item:first-child .timeline-dot {
  background: var(--cobalt-active);
  border-color: var(--cobalt-active);
  color: #fff;
  box-shadow: 0 0 16px rgba(26, 107, 255, .4);
}

.timeline-step {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .35;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-meta {
  font-size: 0.8rem;
  opacity: .4;
  margin-bottom: 10px;
}

.timeline-body {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: .7;
  max-width: 52ch;
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */

.accordion {
  margin-top: 32px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border2);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-family: var(--ff-base);
  transition: background .15s ease;
}

.accordion-trigger:hover {
  background: var(--matte);
}

.accordion-question {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.accordion-meta {
  font-size: 0.78rem;
  opacity: .4;
  margin-top: 2px;
  font-weight: 400;
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-dim);
  transition: transform .25s ease, background .15s ease, border-color .15s ease;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
  background: var(--cobalt-active);
  border-color: var(--cobalt-active);
  color: #fff;
}

.accordion-body {
  display: none;
  padding: 0 24px 20px;
}

.accordion-item.is-open .accordion-body {
  display: block;
}

.accordion-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: .7;
  max-width: 60ch;
}

/* ============================================================
   CTA CARD
   ============================================================ */

.cta-card {
  background: linear-gradient(135deg, rgba(26, 107, 255, .1) 0%, var(--glass) 100%);
  border: 1px solid rgba(26, 107, 255, .2);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(26, 107, 255, .1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.cta-card p {
  font-size: 1rem;
  opacity: .65;
  max-width: 52ch;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 28px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

  .pkg-card--feature {
    grid-row: span 1;
  }

  .pkg-card--feature .pkg-name,
  .pkg-card--feature .pkg-price {
    font-size: 2rem;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .timeline {
    padding-left: 36px;
  }
}

@media (max-width: 560px) {
  .pkg-card {
    padding: 24px;
  }

  .pricing-row {
    padding: 12px 16px;
  }

  .accordion-trigger {
    padding: 16px 18px;
  }

  .accordion-body {
    padding: 0 18px 16px;
  }
}