:root {
  color-scheme: light;
  --ink: #17211d;
  --ink-soft: #3f4e47;
  --muted: #66756e;
  --page: #f7faf7;
  --paper: #ffffff;
  --line: #d9e2dc;
  --indigo: #4058d6;
  --indigo-dark: #27348b;
  --teal: #087f7a;
  --teal-soft: #ddf5f1;
  --rose: #bc4b62;
  --rose-soft: #fde8ed;
  --amber: #b7791f;
  --amber-soft: #fff1cd;
  --green: #2f7d4f;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.12);
  --max-width: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

a:hover {
  color: var(--teal);
}

img {
  display: block;
  max-width: 100%;
}

.install-banner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: #1f2d56;
  color: #f8fafc;
  box-shadow: 0 14px 38px rgba(31, 45, 86, 0.18);
}

.install-banner__content {
  flex: 1 1 340px;
  min-width: 240px;
}

.install-banner__content h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.install-banner__content p {
  margin: 0;
  color: rgba(248, 250, 252, 0.82);
  line-height: 1.4;
}

.install-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.install-banner__cta,
.install-banner__dismiss {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 700;
}

.install-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: #f8fafc;
  color: #1f2d56;
  text-decoration: none;
}

.install-banner__dismiss {
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: transparent;
  color: rgba(248, 250, 252, 0.86);
  cursor: pointer;
  padding: 8px 14px;
}

.hero {
  min-height: 640px;
  background:
    linear-gradient(120deg, rgba(221, 245, 241, 0.95), rgba(255, 241, 205, 0.7) 45%, rgba(253, 232, 237, 0.72)),
    var(--page);
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
}

.site-nav {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand img {
  width: 188px;
  height: auto;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--ink-soft);
  font-weight: 700;
}

.site-nav__links a,
.footer nav a {
  text-decoration: none;
}

.hero__inner,
.section__inner,
.footer__content {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero__inner {
  padding: 58px 24px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: 56px;
  align-items: center;
}

.hero__content h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 3.36rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__content p {
  max-width: 660px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero__subtitle {
  color: var(--muted);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__badge,
.surface__label,
.plan__badge,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__badge,
.surface__label,
.plan__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e7ebff;
  color: var(--indigo-dark);
}

.hero__badge--mint,
.surface__label {
  background: var(--teal-soft);
  color: #05615d;
}

.hero__badge--amber {
  background: var(--amber-soft);
  color: #7b4d0d;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button,
.surface__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.button:hover,
.surface__cta:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 16px 32px rgba(64, 88, 214, 0.28);
}

.button--primary:hover {
  color: #fff;
  box-shadow: 0 20px 42px rgba(64, 88, 214, 0.34);
}

.button--secondary {
  background: #fff;
  border-color: rgba(8, 127, 122, 0.25);
  color: var(--teal);
}

.button--text {
  background: transparent;
  color: var(--ink-soft);
  padding-inline: 6px;
}

.button--nav {
  min-height: 40px;
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
}

.button--nav:hover {
  color: #fff;
}

.button--footer {
  background: var(--teal-soft);
  color: #045b57;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero__stats div,
.proof-item,
.surface,
.plan,
.benefits li,
blockquote,
details {
  border-radius: 8px;
}

.hero__stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 33, 29, 0.08);
}

.hero__stats dt {
  color: var(--ink);
  font-weight: 800;
}

.hero__stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 36px -18px -24px 44px;
  background: rgba(8, 127, 122, 0.16);
  border-radius: 8px;
}

.hero__media img {
  position: relative;
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

main {
  display: flex;
  flex-direction: column;
}

.section {
  padding: 88px 24px;
  background: var(--paper);
}

.section--proof {
  padding-block: 28px;
  background: var(--ink);
  color: #f8fafc;
}

.section--tint {
  background: #eef8f4;
}

.section--accent {
  background: #20283e;
  color: #f8fafc;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 56px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

.section__header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section__content {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
}

.section--accent .eyebrow {
  color: #ffd27e;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 2.65rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.section p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.section--accent p {
  color: rgba(248, 250, 252, 0.82);
}

.proof-strip,
.surfaces,
.plans,
.testimonials,
.faq__list {
  display: grid;
  gap: 18px;
}

.proof-layout {
  display: grid;
  gap: 18px;
}

.launch-metrics.hero__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.launch-metrics.hero__stats div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.launch-metrics.hero__stats dt {
  color: #f8fafc;
}

.launch-metrics.hero__stats dd {
  color: rgba(248, 250, 252, 0.72);
}

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

.proof-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 8px;
  font-size: 1.03rem;
}

.proof-item span {
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.5;
}

.proof-item--rose {
  border-top: 4px solid #f08aa0;
}

.proof-item--mint {
  border-top: 4px solid #5ed0c8;
}

.proof-item--amber {
  border-top: 4px solid #ffd27e;
}

.features {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feature {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.feature__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e7ebff;
  color: var(--indigo-dark);
  font-weight: 900;
}

.feature__marker--green {
  background: var(--teal-soft);
  color: #05615d;
}

.feature__marker--amber {
  background: var(--amber-soft);
  color: #7b4d0d;
}

.feature h3,
.surface h3,
.plan h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.feature p,
.surface p,
.benefits li,
.plan li,
details p {
  color: var(--ink-soft);
  line-height: 1.58;
}

.section__media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.surface {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: 1px solid rgba(8, 127, 122, 0.16);
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.08);
}

.surface--portal .surface__label {
  background: var(--rose-soft);
  color: #8c2940;
}

.surface--extension .surface__label {
  background: #e7ebff;
  color: var(--indigo-dark);
}

.surface__cta {
  margin-top: auto;
  align-self: flex-start;
  color: var(--teal);
  border-color: rgba(8, 127, 122, 0.26);
  background: #fff;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefits li {
  padding: 22px;
  background: #f7faf7;
  border: 1px solid var(--line);
}

.benefits strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.plan {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.plan--highlight {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.plan__badge {
  margin-bottom: 18px;
  background: var(--amber-soft);
  color: #7b4d0d;
}

.plan__price {
  margin: 16px 0;
  color: inherit;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.section--accent .plan--highlight .plan__price {
  color: var(--ink);
}

.plan__price span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.section--accent .plan:not(.plan--highlight) .plan__price span,
.section--accent .plan:not(.plan--highlight) li {
  color: rgba(248, 250, 252, 0.78);
}

.plan ul {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
}

.plan li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.plan__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section--accent .plan--highlight .plan__note {
  color: var(--muted);
}

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

blockquote {
  margin: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(8, 127, 122, 0.16);
  box-shadow: 0 18px 44px rgba(23, 33, 29, 0.08);
}

blockquote p {
  font-size: 1.05rem;
}

blockquote cite {
  display: block;
  margin-top: 18px;
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

.faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 42px;
  align-items: flex-start;
}

.faq .section__header {
  margin-bottom: 0;
}

details {
  background: #f7faf7;
  border: 1px solid var(--line);
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

details p {
  margin-top: 12px;
}

.footer {
  background: var(--ink);
  color: #e8eee9;
  padding: 44px 24px;
}

.footer__content {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer__brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.footer__brand strong {
  display: block;
}

.footer__brand p {
  margin: 4px 0 0;
  color: rgba(232, 238, 233, 0.68);
}

.footer__legal-name {
  font-size: 0.9rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: rgba(232, 238, 233, 0.82);
  font-weight: 700;
}

.footer a:hover {
  color: #a5e6df;
}

/* Dormant portal styles are retained because portal.js can hydrate these panels when embedded in static builds. */
.portal {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portal__panel,
.portal__card,
.portal__metric {
  border-radius: 8px;
}

.portal__panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.portal__panel--dashboard,
.portal__card {
  background: #20283e;
  color: #f8fafc;
}

.portal__message--error {
  color: #b91c1c;
}

.portal__message--success {
  color: #15803d;
}

.portal__message--info {
  color: #1d4ed8;
}

.portal__message--warning {
  color: #b45309;
}

.portal__message--muted,
.portal__hint {
  color: var(--muted);
}

.portal__metrics,
.portal__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.portal__metric,
.portal__card {
  padding: 18px;
}

.portal__list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal__status,
.portal__tag {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero__inner,
  .split,
  .split--reverse,
  .faq,
  .footer__content {
    grid-template-columns: 1fr;
  }

  .hero__content h1 {
    font-size: 2.9rem;
  }

  .hero__stats,
  .launch-metrics.hero__stats,
  .proof-strip,
  .surfaces,
  .plans,
  .testimonials,
  .benefits {
    grid-template-columns: 1fr;
  }

  .footer__content {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-nav {
    align-items: flex-start;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__brand img {
    width: 160px;
  }

  .hero__inner {
    padding-top: 52px;
  }

  .hero__content h1 {
    font-size: 2.34rem;
  }

  .hero__content p {
    font-size: 1.04rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .surface__cta {
    width: 100%;
  }

  .section {
    padding-block: 64px;
  }

  .section h2 {
    font-size: 2rem;
  }

  .proof-strip {
    gap: 12px;
  }
}

@media (max-width: 440px) {
  .site-nav,
  .hero__inner,
  .section,
  .footer {
    padding-inline: 18px;
  }

  .hero__content h1 {
    font-size: 2.08rem;
  }

  .hero__stats div,
  .surface,
  .plan,
  .benefits li,
  blockquote {
    padding: 18px;
  }
}
