
:root {
  --portal-ink: #0d1628;
  --portal-line: rgba(26,39,68,0.1);
  --portal-soft: #f8fafc;
  --portal-blue: #315cda;
  --portal-green: #2f8f7a;
}

body { background: #fff; }

.portal-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(61,127,138,0.14), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(200,184,154,0.18), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%);
  color: var(--portal-ink);
  overflow: hidden;
}

.portal-hero {
  padding: 8.5rem 6% 4rem;
  position: relative;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 4.5rem 4% auto;
  height: 28rem;
  background-image:
    linear-gradient(rgba(26,39,68,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,39,68,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}

.portal-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  border: 1px solid rgba(61,127,138,0.2);
  background: rgba(255,255,255,0.75);
  color: var(--teal);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(26,39,68,0.05);
}

.portal-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 0.35rem rgba(61,127,138,0.12);
}

.portal-hero h1 {
  max-width: 760px;
  margin: 1.3rem 0 1rem;
  color: var(--portal-ink);
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.portal-hero h1 em {
  color: var(--teal);
  font-style: italic;
}

.portal-lede {
  max-width: 640px;
  color: #536176;
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.portal-btn:hover {
  transform: translateY(-2px);
}

.portal-btn-primary {
  background: var(--portal-ink);
  color: white;
  box-shadow: 0 18px 40px rgba(13,22,40,0.18);
}

.portal-btn-primary:hover {
  background: #16233b;
}

.portal-btn-soft {
  background: white;
  color: var(--portal-ink);
  border-color: var(--portal-line);
  box-shadow: 0 10px 30px rgba(26,39,68,0.07);
}

.portal-btn-teal {
  background: var(--teal);
  color: white;
  box-shadow: 0 14px 32px rgba(61,127,138,0.22);
}

.portal-summary {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(26,39,68,0.1);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(26,39,68,0.11);
  padding: 1.1rem;
  backdrop-filter: blur(16px);
}

.summary-top {
  border-radius: 16px;
  background: linear-gradient(135deg, #101a2e, #22365b);
  color: white;
  padding: 1.35rem;
}

.summary-top span {
  display: block;
  color: var(--sand);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.summary-top strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.summary-top p {
  color: rgba(255,255,255,0.68);
  font-size: 0.93rem;
  line-height: 1.65;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.metric {
  background: white;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  padding: 0.95rem;
}

.metric b {
  display: block;
  color: var(--portal-ink);
  font-size: 1.3rem;
  line-height: 1.1;
}

.metric span {
  color: #66758a;
  font-size: 0.74rem;
  line-height: 1.35;
}

.buyer-path {
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.buyer-step {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 14px 38px rgba(26,39,68,0.06);
}

.buyer-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #eef8f7;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.buyer-step strong {
  display: block;
  color: var(--portal-ink);
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

.buyer-step p {
  color: #607086;
  font-size: 0.86rem;
  line-height: 1.55;
}

.mode-bar {
  margin: 3rem auto 0;
  max-width: 760px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(26,39,68,0.08);
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.mode-btn {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  background: transparent;
  color: #617086;
  font-weight: 800;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.mode-btn.is-active {
  background: var(--portal-ink);
  color: white;
  box-shadow: 0 10px 24px rgba(13,22,40,0.18);
}

.portal-section {
  padding: 4.8rem 6%;
}

.portal-section:nth-of-type(even) {
  background: rgba(248,250,252,0.72);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  color: var(--portal-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  margin-top: 0.6rem;
}

.section-heading p {
  max-width: 470px;
  color: #607086;
  line-height: 1.75;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  background: #eef8f7;
  color: #2f716f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.pricing-grid.is-four-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: white;
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 18px 56px rgba(26,39,68,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.pricing-card[id] {
  scroll-margin-top: 110px;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61,127,138,0.35);
  box-shadow: 0 28px 80px rgba(26,39,68,0.12);
}

.pricing-card.is-hidden,
.portal-section.is-hidden {
  display: none;
}

.filter-status {
  margin: 0.85rem auto 0;
  max-width: 760px;
  color: var(--portal-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.pricing-card.is-popular {
  border-color: rgba(61,127,138,0.65);
  box-shadow: 0 26px 90px rgba(61,127,138,0.16);
}

.website-scope-section {
  padding: 4.8rem 6%;
  background: linear-gradient(180deg, rgba(248,250,252,0.72), #ffffff);
}

.website-scope-panel {
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 56px rgba(26,39,68,0.07);
  padding: 1.5rem;
}

.website-scope-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.website-scope-heading h2 {
  color: var(--portal-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-top: 0.6rem;
}

.website-scope-heading p {
  max-width: 620px;
  color: #607086;
  line-height: 1.75;
  margin-top: 0.75rem;
}

.website-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.website-scope-card {
  min-width: 0;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: var(--portal-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.website-scope-card.is-hidden {
  display: none;
}

.website-scope-card.is-featured {
  background: white;
  border-color: rgba(61,127,138,0.5);
  box-shadow: 0 18px 56px rgba(61,127,138,0.12);
}

.website-scope-card span {
  display: block;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.website-scope-card strong {
  display: block;
  color: var(--portal-ink);
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.website-scope-card p {
  color: #607086;
  font-size: 0.86rem;
  line-height: 1.6;
}

.website-price {
  max-width: 100%;
  color: var(--portal-ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 1.7vw, 1.85rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0.8rem 0 0.3rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.website-price-note {
  color: #758397;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

.website-scope-card ul {
  margin: 0.85rem 0 1rem;
  padding-left: 1.05rem;
}

.website-scope-card li {
  color: #607086;
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 0.38rem;
}

.website-card-actions {
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
}

.website-card-actions .portal-btn {
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
}

.website-scope-note {
  margin-top: 1rem;
  color: #607086;
  font-size: 0.88rem;
  line-height: 1.65;
}

.website-value-grid,
.website-fit-grid,
.website-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.website-value-card,
.website-fit-card,
.website-faq-card {
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: white;
  padding: 1rem;
}

.website-value-card {
  background: linear-gradient(180deg, #ffffff, var(--portal-soft));
}

.website-fit-card.is-not {
  background: #fffaf7;
}

.website-value-card h3,
.website-fit-card h3,
.website-faq-card h3 {
  color: var(--portal-ink);
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.website-value-card p,
.website-faq-card p {
  color: #607086;
  font-size: 0.86rem;
  line-height: 1.65;
}

.website-fit-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.05rem;
}

.website-fit-card li {
  color: #607086;
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 0.34rem;
}

.popular-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  background: var(--portal-ink);
  color: white;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-kicker {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pricing-card h3 {
  color: var(--portal-ink);
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.price {
  color: var(--portal-ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.8rem 0 0.3rem;
}

.price-note {
  color: #758397;
  font-size: 0.84rem;
}

.card-copy {
  color: #607086;
  line-height: 1.7;
  margin: 1.1rem 0;
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.55rem;
  color: #42516a;
  font-size: 0.92rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: "\2713";
  color: var(--teal);
  font-weight: 900;
}

.card-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.card-actions .portal-btn {
  width: 100%;
}

.fine-print {
  color: #7b8898;
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.portal-proof {
  padding: 5rem 6%;
  background: #0d1628;
  color: white;
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.proof-copy h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.proof-copy p {
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  max-width: 460px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1.25rem;
}

.trust-card span {
  display: inline-flex;
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.trust-card p {
  color: rgba(255,255,255,0.76);
  line-height: 1.7;
  font-size: 0.93rem;
}

.trust-card strong {
  display: block;
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.portal-faq {
  padding: 5rem 6%;
  background: white;
}

.faq-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.portal-faq-item {
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.portal-faq-item h3 {
  color: var(--portal-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.portal-faq-item p {
  color: #607086;
  line-height: 1.72;
  font-size: 0.93rem;
}

[data-theme="dark"] .portal-proof .portal-badge {
  background: rgba(142,219,224,0.16);
  border-color: rgba(142,219,224,0.3);
  color: #8edbe0;
}
[data-theme="dark"] .portal-hero .portal-badge {
  background: rgba(142,219,224,0.14);
  border-color: rgba(142,219,224,0.35);
  color: #8edbe0;
}
[data-theme="dark"] .portal-proof .proof-copy p,
[data-theme="dark"] .portal-faq .section-heading p {
  color: rgba(255,255,255,0.86) !important;
}

.portal-final {
  padding: 4.5rem 6% 5.5rem;
  background:
    linear-gradient(135deg, rgba(61,127,138,0.1), rgba(200,184,154,0.16)),
    #f8fafc;
}

.final-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: white;
  border: 1px solid var(--portal-line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(26,39,68,0.1);
}

.final-panel h2 {
  color: var(--portal-ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0.45rem;
}

.final-panel p {
  color: #607086;
  line-height: 1.7;
}

.portal-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.portal-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-hero .portal-reveal {
  opacity: 1;
  transform: none;
}

@media(max-width:980px) {
  .hero-panel,
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .buyer-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid,
  .trust-grid,
  .faq-portal-grid,
  .website-scope-grid,
  .website-value-grid,
  .website-fit-grid,
  .website-faq-grid,
  .website-scope-heading {
    grid-template-columns: 1fr;
  }
  .pricing-grid.is-four-up {
    grid-template-columns: 1fr;
  }
  .section-heading,
  .final-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media(max-width:768px) {
  .portal-hero {
    padding: 7rem 5% 3rem;
  }
  .portal-section,
  .portal-proof,
  .portal-faq,
  .portal-final,
  .website-scope-section {
    padding-left: 5%;
    padding-right: 5%;
  }
  .portal-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }
  .portal-lede {
    font-size: 1rem;
  }
  .portal-summary {
    padding: 0.85rem;
  }
  .summary-metrics {
    grid-template-columns: 1fr;
  }
  .buyer-path {
    grid-template-columns: 1fr;
  }
  .mode-bar {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }
  .mode-btn {
    border-radius: 14px;
  }
  .pricing-card:hover,
  .portal-btn:hover {
    transform: none;
  }
}

@media(max-width:480px) {
  .portal-hero,
  .portal-section,
  .portal-proof,
  .portal-faq,
  .portal-final,
  .website-scope-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .portal-hero {
    padding-top: 6.5rem;
  }
  .hero-actions,
  .final-panel .hero-actions {
    width: 100%;
  }
  .hero-actions .portal-btn,
  .final-panel .portal-btn {
    width: 100%;
  }
  .pricing-card,
  .final-panel {
    border-radius: 18px;
    padding: 1.1rem;
  }
  .popular-label {
    position: static;
    width: fit-content;
    margin-bottom: 0.7rem;
  }
  .price {
    font-size: 2rem;
  }
}

@media(prefers-reduced-motion: reduce) {
  .portal-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Lottie placements — pricing portal */
.portal-hero-lottie {
  width: 260px; max-width: 100%; aspect-ratio: 1/1; margin: 0 auto;
  opacity: 0.92; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.22));
}
.summary-lottie { width: 56px; height: 56px; margin-bottom: 0.5rem; opacity: 0.95; }
.buyer-step-lottie { width: 60px; height: 60px; margin-bottom: 0.6rem; opacity: 0.95; }
.pricing-card-lottie { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.95; }
.trust-card-lottie { width: 60px; height: 60px; margin-bottom: 0.6rem; opacity: 0.95; }
.proof-section-lottie { width: 84px; height: 84px; margin-bottom: 0.8rem; opacity: 0.95; }
.final-panel-lottie { width: 96px; height: 96px; margin: 0 auto 1rem; opacity: 0.95; }
.hero-panel-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) {
  .portal-hero-lottie { width: 180px; }
  .pricing-card-lottie { width: 52px; height: 52px; }
  .buyer-step-lottie { width: 48px; height: 48px; }
  .hero-panel-grid { grid-template-columns: 1fr; }
}

