/* Hāvin public website v0.5.1 — full content, responsive, spacing, and portal-fidelity audit */

:root {
  --page-gutter: 48px;
  --section-space: 84px;
  --content-max: 1180px;
}

html {
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(var(--content-max), calc(100% - var(--page-gutter)));
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading .lead,
.section-copy .lead {
  max-width: 700px;
}

.button,
.nav-cta {
  min-height: 48px;
}

.button {
  padding-inline: 21px;
}

.button.primary {
  background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-deep-purple));
  color: var(--havin-white);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.22);
}

.button.primary:hover {
  background: linear-gradient(135deg, #27479d, #593287);
}

.button.secondary {
  border-color: rgba(30, 58, 138, 0.22);
}

/* Header */
.site-header {
  height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-link img {
  width: 124px;
  height: auto;
}

.nav-links {
  gap: 23px;
}

.nav-links > a:not(.nav-cta) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-deep-purple));
}

/* Hero and product proof */
.hero {
  min-height: 0;
  padding: 70px 0 26px;
}

.hero-grid {
  min-height: 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(510px, 1.06fr);
  gap: 42px;
}

.hero-copy {
  max-width: 610px;
}

.hero-copy h1 {
  max-width: 600px;
  margin-bottom: 22px;
}

.hero-copy h1 em {
  color: var(--havin-sky-blue);
}

.hero-lead {
  max-width: 590px;
}

.hero-actions {
  margin: 27px 0 22px;
}

.hero-pill {
  border-color: rgba(63, 167, 225, 0.28);
  color: #c3d4eb;
}

.hero-pill span {
  background: var(--havin-sky-blue);
  box-shadow: 0 0 0 4px rgba(63, 167, 225, 0.12);
}

.portal-showcase {
  position: relative;
  width: 100%;
  max-width: 650px;
  min-width: 0;
  margin: 0 auto;
  padding-bottom: 26px;
}

.portal-desktop-demo {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  width: 100%;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  border: 1px solid rgba(63, 167, 225, 0.22);
  border-radius: 18px;
  background: var(--havin-midnight-navy);
  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.33),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.portal-desktop-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(75, 42, 114, 0.10), transparent 34%, rgba(63, 167, 225, 0.035));
}

.portal-demo-sidebar {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 15px 9px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 10% 5%, rgba(75, 42, 114, 0.50), transparent 46%),
    var(--havin-midnight-navy);
}

.portal-demo-brand {
  padding: 2px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.portal-demo-brand img {
  width: 92px;
  height: auto;
}

.portal-demo-brand small {
  display: block;
  max-width: 94px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 4.7px;
  font-weight: 700;
  letter-spacing: 0.10em;
  line-height: 1.25;
}

.portal-demo-nav {
  display: grid;
  gap: 3px;
  margin-top: 11px;
}

.portal-demo-nav span,
.portal-demo-sidebar-bottom > span {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 6.5px;
  white-space: nowrap;
}

.portal-demo-nav b,
.portal-demo-sidebar-bottom > span b {
  width: 12px;
  color: #8aa5cc;
  font-size: 8px;
  text-align: center;
}

.portal-demo-nav span.active {
  border-color: rgba(63, 167, 225, 0.30);
  color: #f6f8ff;
  background: linear-gradient(90deg, rgba(75, 42, 114, 0.58), rgba(30, 58, 138, 0.46));
  box-shadow: inset 2px 0 var(--havin-sky-blue);
}

.portal-demo-nav span.active b {
  color: var(--havin-sky-blue);
}

.portal-demo-pulse {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgba(63, 167, 225, 0.17);
  border-radius: 8px;
  background: rgba(30, 58, 138, 0.12);
}

.portal-demo-pulse small,
.portal-demo-pulse strong,
.portal-demo-pulse span {
  display: block;
}

.portal-demo-pulse small {
  color: var(--havin-sky-blue);
  font-size: 4.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-demo-pulse strong {
  margin-top: 4px;
  color: #f4f7ff;
  font-size: 6px;
}

.portal-demo-pulse span {
  margin-top: 5px;
  color: #8fbaff;
  font-size: 5px;
}

.portal-demo-sidebar-bottom {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.portal-demo-sidebar-bottom > div {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  padding: 5px 6px;
}

.portal-demo-sidebar-bottom i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(63, 167, 225, 0.22);
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-deep-purple));
  font-size: 6px;
  font-style: normal;
}

.portal-demo-sidebar-bottom p {
  min-width: 0;
  margin: 0;
}

.portal-demo-sidebar-bottom strong,
.portal-demo-sidebar-bottom small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-demo-sidebar-bottom strong {
  color: #f6f8ff;
  font-size: 6px;
}

.portal-demo-sidebar-bottom small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 4.6px;
}

.portal-demo-workspace {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0d1426 0%, #101a31 100%);
}

.portal-demo-topbar {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 20, 38, 0.94);
}

.portal-demo-search {
  width: min(62%, 270px);
  min-width: 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #83a0c7;
  background: rgba(8, 15, 31, 0.66);
  font-size: 7px;
}

.portal-demo-search span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-demo-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.portal-demo-tools span,
.portal-demo-tools b {
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #b6c5dc;
  background: rgba(14, 24, 46, 0.80);
  font-size: 7px;
}

.portal-demo-tools span {
  width: 25px;
}

.portal-demo-tools b {
  padding: 0 9px;
  border-color: rgba(63, 167, 225, 0.36);
  color: white;
  background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-sky-blue));
  font-weight: 700;
}

.portal-demo-main {
  padding: 17px 16px 14px;
}

.portal-demo-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
}

.portal-demo-heading > div:first-child {
  min-width: 0;
}

.portal-demo-heading small {
  color: #88d2ff;
  font-size: 5px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.portal-demo-heading h4 {
  margin: 4px 0 2px;
  color: white;
  font-size: 20px;
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 1;
}

.portal-demo-heading p {
  margin: 0;
  color: #8393ad;
  font-size: 6.3px;
  line-height: 1.35;
}

.portal-demo-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.portal-demo-actions span,
.portal-demo-actions b {
  height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  color: #d1dae8;
  background: rgba(14, 24, 46, 0.74);
  font-size: 5.7px;
  white-space: nowrap;
}

.portal-demo-actions b {
  border-color: rgba(63, 167, 225, 0.34);
  color: white;
  background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-sky-blue));
}

.portal-demo-divider {
  height: 1px;
  margin: 12px 0 12px;
  background: rgba(255, 255, 255, 0.09);
}

.portal-demo-status {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 0.68fr 0.78fr;
  overflow: hidden;
  border: 1px solid rgba(63, 167, 225, 0.17);
  border-radius: 13px;
  background:
    radial-gradient(circle at 85% 30%, rgba(30, 58, 138, 0.24), transparent 38%),
    rgba(10, 20, 42, 0.76);
  box-shadow: inset 3px 0 rgba(63, 167, 225, 0.10);
}

.portal-demo-status-copy,
.portal-demo-health,
.portal-demo-kpis {
  min-width: 0;
}

.portal-demo-status-copy {
  padding: 15px 13px;
}

.portal-demo-status-copy > small {
  color: #7fc7ff;
  font-size: 5px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.portal-demo-status-copy h5 {
  max-width: 200px;
  margin: 8px 0 6px;
  color: white;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.portal-demo-status-copy p {
  max-width: 230px;
  margin: 0;
  color: #8595ae;
  font-size: 5.7px;
  line-height: 1.5;
}

.portal-demo-status-copy > div {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.portal-demo-status-copy > div b {
  padding: 6px 8px;
  border: 1px solid rgba(63, 167, 225, 0.28);
  border-radius: 6px;
  color: white;
  background: rgba(30, 58, 138, 0.45);
  font-size: 5.6px;
}

.portal-demo-status-copy > div span {
  color: #8fc1ff;
  font-size: 5.5px;
}

.portal-demo-health {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.portal-demo-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-content: center;
  border: 7px solid rgba(30, 58, 138, 0.50);
  border-top-color: var(--havin-sky-blue);
  border-right-color: var(--havin-experimental-blue);
  border-radius: 50%;
  background: var(--havin-midnight-navy);
  box-shadow: 0 0 24px rgba(30, 58, 138, 0.34);
}

.portal-demo-ring strong,
.portal-demo-ring small {
  display: inline;
}

.portal-demo-ring strong {
  color: white;
  font-size: 20px;
  font-weight: 450;
}

.portal-demo-ring small {
  color: #9ecdf0;
  font-size: 6px;
}

.portal-demo-health > b {
  margin-top: 7px;
  color: white;
  font-size: 6px;
}

.portal-demo-health > small {
  max-width: 90px;
  margin-top: 3px;
  color: #7789a5;
  font-size: 4.8px;
  line-height: 1.3;
}

.portal-demo-kpis {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.portal-demo-kpis > div {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.portal-demo-kpis > div:last-child {
  border-bottom: 0;
}

.portal-demo-kpis small,
.portal-demo-kpis strong,
.portal-demo-kpis span {
  display: block;
}

.portal-demo-kpis small {
  color: #8193b1;
  font-size: 4.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-demo-kpis strong {
  margin-top: 3px;
  color: white;
  font-size: 11px;
  font-weight: 480;
}

.portal-demo-kpis strong.gold,
.portal-mobile-healthline strong.gold {
  color: var(--havin-aviator-gold);
}

.portal-demo-kpis span {
  margin-top: 1px;
  color: #6f809a;
  font-size: 4.5px;
}

.portal-demo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.portal-demo-row > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(11, 22, 44, 0.74);
}

.portal-demo-row small,
.portal-demo-row strong,
.portal-demo-row span {
  display: block;
}

.portal-demo-row small {
  color: #7fc7ff;
  font-size: 4.3px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portal-demo-row strong {
  margin-top: 4px;
  overflow: hidden;
  color: #eaf0fa;
  font-size: 5.8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-demo-row span {
  margin-top: 2px;
  color: #75849c;
  font-size: 4.7px;
}

.portal-mobile-demo {
  display: none;
}

.portal-product-caption {
  display: block;
  margin-top: 10px;
  color: #8d9bb0;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.ownership-strip {
  margin-top: 20px;
  padding-top: 18px;
}

/* Story flow */
.problem-section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.problem-grid {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 58px;
}

.problem-copy h2 {
  max-width: 540px;
}

.problem-copy .lead {
  max-width: 540px;
}

.problem-visual {
  max-width: 690px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 138, 0.12);
  border-radius: 24px;
  background: #f8f9fc;
  box-shadow: 0 22px 60px rgba(13, 20, 38, 0.075);
}

.problem-visual img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.problem-close {
  max-width: 540px;
}

.story-section {
  padding-top: 80px;
  padding-bottom: 84px;
}

.story-rail {
  gap: 12px;
}

.story-card {
  min-height: 252px;
}

.story-card h3 {
  min-height: 49px;
}

.breadth-section {
  padding-top: 82px;
  padding-bottom: 88px;
}

.asset-gallery {
  gap: 15px;
}

.usecases-section {
  padding-top: 82px;
  padding-bottom: 84px;
}

.usecase-shell {
  overflow: clip;
}

.usecase-tabs button {
  padding-inline: 16px;
}

.usecase-panel {
  min-height: 400px;
  padding: 38px;
}

.intelligence-section {
  padding: 86px 0;
}

.promise-preview {
  padding: 76px 0;
}

.pricing-section {
  padding-top: 82px;
  padding-bottom: 82px;
}

.mobile-coming {
  padding: 76px 0;
}

.platform-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 62px;
}

.platform-status {
  gap: 10px;
}

.platform-card {
  min-height: 104px;
  padding: 18px 20px;
}

.start-section {
  padding: 76px 0;
}

.start-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
  gap: 58px;
}

/* Long-form pages */
.legal-hero {
  padding: 76px 0 56px;
}

.legal-hero .container {
  max-width: 1180px;
}

.legal-hero h1 {
  max-width: 860px;
  margin-bottom: 16px;
}

.legal-hero p {
  max-width: 720px;
}

.legal-body {
  padding: 66px 0 92px;
}

.legal-grid {
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  justify-content: center;
}

.legal-grid article {
  max-width: 760px;
}

.legal-grid article section {
  padding-bottom: 34px;
  margin-bottom: 34px;
}

.legal-grid article p,
.legal-grid article li {
  max-width: 72ch;
}

.legal-aside-card {
  padding: 18px;
  border-radius: 13px;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 64px;
}

.contact-card {
  padding: 28px;
}

.contact-form input,
.contact-form textarea,
.waitlist-form input {
  min-height: 48px;
  border-radius: 10px;
}

/* Tablet */
@media (max-width: 1080px) {
  :root {
    --page-gutter: 40px;
    --section-space: 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .portal-showcase {
    max-width: 820px;
  }

  .portal-desktop-demo {
    grid-template-columns: 142px minmax(0, 1fr);
  }

  .problem-grid,
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .problem-copy,
  .platform-copy {
    max-width: 760px;
  }

  .problem-visual {
    max-width: 820px;
    justify-self: center;
  }

  .platform-status {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 180px;
  }

  .start-grid {
    grid-template-columns: 1fr 0.8fr;
  }
}

@media (max-width: 860px) {
  :root {
    --page-gutter: 34px;
    --section-space: 68px;
  }

  .site-header {
    height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .portal-desktop-demo {
    display: none;
  }

  .portal-mobile-demo {
    display: block;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
  }

  .portal-mobile-device {
    position: relative;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 36px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  }

  .portal-mobile-island {
    position: absolute;
    z-index: 4;
    top: 13px;
    left: 50%;
    width: 74px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #050913;
  }

  .portal-mobile-screen {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 29px;
    color: white;
    background:
      radial-gradient(circle at 14% 4%, rgba(75, 42, 114, 0.32), transparent 36%),
      var(--havin-midnight-navy);
  }

  .portal-mobile-top {
    height: 62px;
    padding: 27px 15px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .portal-mobile-top img {
    width: 94px;
    height: auto;
  }

  .portal-mobile-top span {
    color: #b4c3da;
    font-size: 11px;
  }

  .portal-mobile-search {
    height: 35px;
    margin: 10px 13px 0;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    color: #7587a3;
    background: rgba(7, 13, 28, 0.56);
    font-size: 9px;
  }

  .portal-mobile-content {
    padding: 18px 14px 73px;
  }

  .portal-mobile-kicker {
    color: #86d0ff;
    font-size: 6px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .portal-mobile-content > h4 {
    margin: 6px 0 4px;
    color: white;
    font-size: 25px;
    font-weight: 430;
    letter-spacing: -0.045em;
    line-height: 1;
  }

  .portal-mobile-content > p {
    margin: 0;
    color: #8b9bb3;
    font-size: 9px;
  }

  .portal-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 14px;
  }

  .portal-mobile-actions span,
  .portal-mobile-actions b {
    min-height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    color: #d9e2ef;
    background: rgba(15, 27, 52, 0.78);
    font-size: 8px;
  }

  .portal-mobile-actions b {
    border-color: rgba(63, 167, 225, 0.30);
    color: white;
    background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-sky-blue));
  }

  .portal-mobile-status {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(63, 167, 225, 0.18);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.19), rgba(75, 42, 114, 0.12));
  }

  .portal-mobile-status > small {
    color: #86d0ff;
    font-size: 6px;
    font-weight: 850;
    letter-spacing: 0.08em;
  }

  .portal-mobile-status h5 {
    margin: 7px 0 12px;
    color: white;
    font-size: 17px;
    font-weight: 460;
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .portal-mobile-healthline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
  }

  .portal-mobile-healthline > div {
    padding: 9px 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .portal-mobile-healthline > div:last-child {
    border-right: 0;
  }

  .portal-mobile-healthline strong,
  .portal-mobile-healthline span {
    display: block;
  }

  .portal-mobile-healthline strong {
    color: white;
    font-size: 16px;
    font-weight: 500;
  }

  .portal-mobile-healthline span {
    margin-top: 2px;
    color: #7687a1;
    font-size: 6px;
    line-height: 1.25;
  }

  .portal-mobile-list {
    margin-top: 10px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(10, 20, 40, 0.75);
  }

  .portal-mobile-list small,
  .portal-mobile-list strong,
  .portal-mobile-list span {
    display: block;
  }

  .portal-mobile-list small {
    color: #7fc7ff;
    font-size: 5.5px;
    font-weight: 850;
    letter-spacing: 0.09em;
  }

  .portal-mobile-list strong {
    margin-top: 5px;
    color: #edf3fb;
    font-size: 9px;
  }

  .portal-mobile-list span {
    margin-top: 2px;
    color: #7c8da7;
    font-size: 7px;
  }

  .portal-mobile-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 61px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 16, 31, 0.97);
  }

  .portal-mobile-bottom > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #71819a;
    font-size: 11px;
  }

  .portal-mobile-bottom > span.active {
    color: var(--havin-sky-blue);
  }

  .portal-mobile-bottom small {
    font-size: 5px;
  }

  .platform-status {
    grid-template-columns: 1fr;
  }

  .platform-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 104px;
  }

  .start-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --page-gutter: 28px;
    --section-space: 56px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(var(--content-max), calc(100% - var(--page-gutter)));
  }

  .site-header {
    height: 64px;
  }

  .brand-link img {
    width: 110px;
  }

  .nav-links {
    top: 64px;
    padding-inline: 16px;
  }

  .nav-links a {
    min-height: 48px;
    padding: 0 4px;
  }

  .nav-links .nav-cta {
    min-height: 48px;
    justify-content: center;
    margin-top: 7px;
    padding-inline: 16px;
  }

  .section {
    padding: var(--section-space) 0;
  }

  h2 {
    font-size: clamp(32px, 9.4vw, 40px);
  }

  .lead {
    font-size: 16px;
  }

  .hero {
    padding: 44px 0 14px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-copy h1 {
    max-width: 520px;
    font-size: clamp(43px, 12.7vw, 55px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-footnote {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-mobile-demo {
    max-width: 294px;
  }

  .portal-mobile-screen {
    min-height: 520px;
  }

  .portal-product-caption {
    max-width: 280px;
    margin-inline: auto;
    font-size: 7px;
    line-height: 1.4;
  }

  .ownership-strip {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px 10px;
    justify-content: flex-start;
  }

  .problem-section {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .problem-grid {
    gap: 26px;
  }

  .problem-close {
    margin-top: 18px;
    padding-top: 17px;
  }

  .problem-visual {
    border-radius: 18px;
  }

  .story-card,
  .story-card-dark {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 16px;
  }

  .story-card h3 {
    min-height: 0;
    font-size: 17px;
  }

  .story-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .breadth-heading,
  .usecases-section .section-heading,
  .pricing-heading {
    text-align: left;
  }

  .asset-tile,
  .asset-tile-wide {
    flex-basis: 84%;
  }

  .usecase-tabs button {
    min-width: 132px;
  }

  .usecase-panel {
    padding: 18px;
  }

  .usecase-copy h3 {
    font-size: 28px;
  }

  .intelligence-section,
  .promise-preview,
  .pricing-section,
  .mobile-coming,
  .start-section {
    padding: 58px 0;
  }

  .intelligence-stage {
    min-height: 420px;
  }

  .platform-grid {
    gap: 28px;
  }

  .platform-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    min-height: 96px;
    padding: 16px;
  }

  .platform-icon {
    width: 48px;
    height: 48px;
  }

  .start-grid {
    gap: 28px;
  }

  .start-grid h2 {
    font-size: 33px;
  }

  .waitlist-card,
  .contact-card {
    padding: 21px;
  }

  .legal-hero {
    padding: 56px 0 42px;
  }

  .legal-hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .legal-hero p {
    font-size: 16px;
  }

  .legal-body {
    padding: 48px 0 68px;
  }

  .legal-grid {
    gap: 22px;
  }

  .legal-grid article section {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .legal-grid article h2 {
    font-size: 25px;
  }

  .legal-grid article p,
  .legal-grid article li {
    font-size: 14px;
    line-height: 1.65;
  }

  .contact-form button,
  .waitlist-form .button {
    width: 100%;
  }

  .footer-grid {
    gap: 26px 22px;
  }
}

@media (max-width: 390px) {
  :root {
    --page-gutter: 24px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .portal-mobile-demo {
    max-width: 276px;
  }

  .portal-mobile-screen {
    min-height: 500px;
  }

  .asset-tile,
  .asset-tile-wide {
    flex-basis: 89%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-links a,
  .asset-gallery,
  .ownership-strip {
    scroll-behavior: auto;
    transition: none;
  }
}
