/* Homepage: account card and 3-step onboarding */

.tier-card ul {
  padding-left: 0;
}

.tier-card li {
  margin-bottom: 10px;
  list-style: none;
}

.tier-card li::before {
  content: none;
}

.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tier-cards--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.account-layout.reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-layout.reverse .account-visual {
  order: 2;
}

.account-layout.reverse .account-offer {
  order: 1;
}

.feature-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px;
  align-items: center;
}

.account-layout > *,
.feature-split > * {
  width: 100%;
}

.feature-split .account-offer {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 18px;
  width: 100%;
  height: auto;
}

.feature-split .tier-card h3 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-split .tier-card p {
  max-width: 32rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-split .tier-card ul {
  margin-top: 8px;
}

.feature-split .tier-card li {
  font-size: 1.02rem;
  line-height: 1.55;
}

.account-visual {
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--surface-lowest);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 30px;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.08);
}

.account-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.account-offer {
  height: 100%;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 30px 26px;
}

.tier-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.tier-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.tier-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

.tier-card li .material-symbols-outlined {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(19, 92, 76, 0.08);
  color: var(--primary-2);
  font-size: 1.1rem;
}

.onboarding-section,
.onboarding-section .shell {
  text-align: center;
}

.onboarding-section .eyebrow,
.onboarding-section h2 {
  margin-left: auto;
  margin-right: auto;
}

.onboarding-section h2 {
  max-width: min(100%, calc(var(--max) * 0.8));
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.steps-grid article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 8px 18px;
  min-height: 100%;
  padding: 24px 22px;
  text-align: left;
}

.steps-grid span {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--text-14);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.steps-grid h3 {
  grid-column: 2;
  margin: 0;
  font-size: var(--text-18);
  line-height: 1.25;
  text-align: left;
}

.steps-grid p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  text-align: left;
  line-height: 1.55;
}

.tier-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tier-card.is-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--primary-2);
}

.account-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.steps-grid article {
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.steps-grid article:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 91, 75, 0.35);
}

.steps-grid span {
  border-radius: 8px;
  background: #e6f2ec;
  box-shadow: none;
}

.feature-split .account-offer {
  overflow: visible;
}

.feature-split .account-offer::before {
  display: none;
}

.feature-split .tier-card h3 {
  padding-block: 0.05em;
  overflow-wrap: anywhere;
}

.steps-grid article {
  background: #ffffff;
}

.account-section::before {
  inset: 0;
  background-image: radial-gradient(rgba(26, 91, 75, 0.06) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 80% at 0% 50%, #000, transparent 70%);
  mask-image: radial-gradient(60% 80% at 0% 50%, #000, transparent 70%);
}

.account-section::after {
  display: none;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 140, 43, 0.14), transparent 68%);
}

.onboarding-section::before {
  inset: 0 0 auto 0;
  height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='%231a5b4b' stroke-opacity='.1'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%23c58c2b' fill-opacity='.28'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

.steps-grid .step-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
  color: #000;
}

@media (hover: none) {
  .steps-grid article:hover {
    transform: none;
  }

}

@media (max-width: 1120px) {
  .tier-cards,
  .steps-grid,
  .account-layout,
  .account-layout.reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-visual {
    aspect-ratio: 16 / 10;
  }

  .feature-split {
    gap: 32px;
  }

  .feature-split .tier-card h3 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

}

@media (max-width: 760px) {
  .tier-cards {
    gap: 12px;
  }

  .tier-card h3 {
    font-size: 19px;
  }

  .steps-grid span {
    width: 36px;
    height: 36px;
  }

  .account-section::after {
    width: 260px;
    height: 260px;
  }

  .feature-split .tier-card h3 {
    font-family: var(--font-head);
    font-size: var(--m-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .steps-grid h3 {
    font-family: var(--font-body);
    font-size: var(--m-h3);
    font-weight: 600;
    line-height: 1.3;
  }

  .tier-card p,
  .steps-grid p {
    font-size: var(--m-body);
    line-height: 1.65;
  }

  .tier-card {
    padding: var(--m-card-pad);
  }

  .tier-card,
  .steps-grid article,
  .account-visual img {
    border-radius: var(--radius-md);
  }

  .tier-card p {
    margin: 0 0 12px;
  }

  .tier-card p:last-of-type {
    margin-bottom: var(--m-card-pad);
  }

  .tier-card h3 {
    margin-bottom: 14px;
  }

  .feature-split,
  .account-layout,
  .steps-grid {
    gap: var(--m-gap);
  }

  .steps-grid article {
    padding: var(--m-card-pad);
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 14px;
    align-items: start;
  }

  .steps-grid article p {
    margin: 0;
  }

  .steps-grid .step-urdu {
    font-size: 1.2rem;
    line-height: 1.9;
  }

}
