/* Hāvin public website v0.5.0 — responsive story, image, and conversion audit */

:root {
  --page-gutter: 48px;
  --section-space: 92px;
  --soft-surface: #f6f8fc;
  --soft-blue: #eef4ff;
  --ink-muted: #667085;
}

body {
  background: #fff;
}

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

/* Header */
.site-header {
  border-bottom-color: rgba(13, 20, 38, 0.08);
  box-shadow: 0 1px 0 rgba(13, 20, 38, 0.015);
}

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

.nav-links {
  gap: 24px;
}

/* Hero */
.hero {
  min-height: 0;
  padding: 72px 0 28px;
}

.hero-grid {
  min-height: 548px;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.92fr);
  gap: 34px;
}

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

.hero-copy h1 {
  max-width: 650px;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 625px;
  color: #aeb9cb !important;
}

.hero-footnote {
  gap: 10px;
  color: #9ba8bd;
}

.hero-footnote i {
  background: rgba(212, 175, 55, 0.75);
}

.portal-phone-stage {
  width: 100%;
  max-width: 620px;
  height: 600px;
  margin-inline: auto;
}

.portal-demo-caption {
  color: #8997ac;
}

/* The category rail should never become a tall wrapped block on mobile. */
.ownership-strip {
  width: min(1180px, calc(100% - var(--page-gutter)));
  margin: 2px auto 0;
  padding: 17px 18px 0;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-top-color: rgba(255, 255, 255, 0.09);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.ownership-strip::-webkit-scrollbar {
  display: none;
}

.ownership-strip span {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(198, 204, 214, 0.12);
  border-radius: 999px;
  color: #a6b2c5;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  letter-spacing: 0.08em;
  scroll-snap-align: start;
}

/* Problem / ecosystem visual */
.problem-section {
  padding: 82px 0;
}

.problem-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 62px;
}

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

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

.problem-visual {
  width: 100%;
  max-width: 650px;
  aspect-ratio: auto;
  justify-self: end;
  padding: 10px;
  border-color: rgba(30, 58, 138, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, #fbfcff, #f6f8fc);
  box-shadow: 0 24px 64px rgba(13, 20, 38, 0.08);
}

.problem-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
}

.problem-close {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e6e9f0;
}

/* How it works */
.story-section {
  background: linear-gradient(180deg, #f8f9fc 0%, #f4f6fb 100%);
}

.story-heading {
  max-width: 790px;
}

.story-rail {
  gap: 14px;
}

.story-card {
  min-height: 266px;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(13, 20, 38, 0.04);
}

.story-icon {
  margin: 28px 0 16px;
}

.story-card h3 {
  font-size: 21px;
}

.story-card p {
  color: #69758a;
  font-size: 13px;
}

/* Asset breadth */
.breadth-section {
  padding-bottom: 100px;
}

.breadth-heading {
  margin-bottom: 38px;
}

.asset-tile {
  border-radius: 20px;
}

.asset-tile img,
.asset-tile-wide img {
  background: #f3f5f9;
  object-fit: cover;
  object-position: center;
}

/* Use cases */
.usecases-section {
  background: linear-gradient(180deg, #f7f8fc, #f3f5fa);
}

.usecase-shell {
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(13, 20, 38, 0.07);
}

.usecase-tabs button {
  min-height: 58px;
  color: #667085;
}

.usecase-panel {
  gap: 46px;
  padding: 42px;
}

.usecase-art {
  border-radius: 18px;
}

.usecase-copy > p:not(.eyebrow) {
  color: #667085;
}

/* Ask Hāvin */
.intelligence-section {
  padding: 96px 0;
}

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

/* Trust */
.promise-preview {
  padding: 82px 0;
}

.promise-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.promise-points > div {
  padding: 18px 0;
}

/* Pricing */
.pricing-section {
  background: linear-gradient(180deg, #f7f8fc 0%, #f2f4f9 100%);
}

.price-card {
  border-radius: 20px;
}

.plus-card {
  border-color: rgba(30, 58, 138, 0.22);
  box-shadow: 0 20px 60px rgba(30, 58, 138, 0.10);
}

/* Platform availability — replaces the repeated miniature portal mockup. */
.mobile-coming {
  background: #fff;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 72px;
  align-items: center;
}

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

.platform-copy .button {
  margin-top: 8px;
}

.platform-status {
  display: grid;
  gap: 12px;
}

.platform-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 20px 22px;
  border: 1px solid #dfe4ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 20, 38, 0.045);
}

.platform-card-live {
  border-color: rgba(30, 58, 138, 0.20);
  background: linear-gradient(135deg, #f9fbff 0%, #f2f6ff 100%);
}

.platform-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--havin-experimental-blue);
  background: rgba(30, 58, 138, 0.08);
  font-size: 22px;
  font-weight: 800;
}

.platform-card-live .platform-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--havin-experimental-blue), var(--havin-deep-purple));
}

.platform-card small,
.platform-card strong,
.platform-card p {
  display: block;
}

.platform-card small {
  margin-bottom: 5px;
  color: var(--havin-experimental-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.10em;
}

.platform-card strong {
  color: var(--havin-midnight-navy);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.platform-card p {
  margin: 4px 0 0;
  color: #758096;
  font-size: 12px;
  line-height: 1.4;
}

/* Final CTA */
.start-section {
  padding: 82px 0;
}

.start-grid {
  gap: 64px;
}

.start-grid h2 {
  max-width: 620px;
}

.waitlist-card {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
}

/* Footer */
.site-footer {
  background: #080d1c;
}

/* Tablet */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .portal-phone-stage {
    max-width: 720px;
    height: 585px;
  }

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

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

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

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

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

/* Mobile navigation and section flow */
@media (max-width: 860px) {
  :root {
    --page-gutter: 34px;
  }

  .site-header {
    height: 68px;
  }

  .nav-links {
    top: 68px;
    padding: 10px 18px 20px;
    border-bottom: 1px solid #dfe4ee;
  }

  .nav-links a {
    padding: 13px 4px;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    padding: 13px 16px;
  }

  .hero {
    padding-top: 58px;
  }

  .problem-section,
  .promise-preview,
  .intelligence-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .usecase-panel {
    padding: 28px;
  }

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

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

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

  .container {
    width: min(100% - var(--page-gutter), 1180px);
  }

  .site-header {
    height: 64px;
  }

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

  .mobile-menu-button {
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-content: center;
  }

  .nav-links {
    top: 64px;
  }

  .section {
    padding: 56px 0;
  }

  h2 {
    font-size: clamp(33px, 9.7vw, 40px);
    line-height: 1.04;
  }

  .lead {
    font-size: 16px;
  }

  .hero {
    padding: 46px 0 16px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1,
  .hero-copy h1 em {
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 520px;
    font-size: clamp(44px, 13vw, 56px);
    line-height: 0.98;
  }

  .hero-lead {
    margin-inline: 0;
  }

  .hero-actions,
  .hero-footnote {
    justify-content: flex-start;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .button {
    min-height: 50px;
  }

  .hero-footnote {
    gap: 7px 9px;
    font-size: 10px;
  }

  /* One clean, legible current-product device is better than three tiny phones on small screens. */
  .portal-phone-stage {
    height: 452px;
    margin: 6px auto 0;
  }

  .portal-phone-stage .phone-back {
    display: none;
  }

  .portal-phone-stage .phone-front {
    left: 50%;
    width: 224px;
    transform: translateX(-50%) scale(0.92);
  }

  .portal-phone-stage .phone-screen {
    height: 466px;
  }

  .portal-demo-caption {
    bottom: 4px;
    max-width: 90%;
    font-size: 7px;
  }

  .ownership-strip {
    width: 100%;
    margin: 0;
    padding: 13px 14px 12px;
    justify-content: flex-start;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ownership-strip span {
    min-height: 29px;
    padding: 0 10px;
    font-size: 9px;
  }

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

  .problem-grid {
    gap: 28px;
  }

  .problem-copy .lead {
    margin-bottom: 14px;
  }

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

  .problem-visual {
    max-width: none;
    padding: 6px;
    border-radius: 20px;
  }

  .problem-visual img {
    border-radius: 15px;
  }

  /* Compact rows keep the five-step story from becoming a huge stack of cards. */
  .story-heading {
    margin-bottom: 28px;
  }

  .story-rail {
    gap: 10px;
  }

  .story-card,
  .story-card-dark {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 14px;
    min-height: 0;
    padding: 17px;
    border-radius: 16px;
  }

  .story-card-top {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .story-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    align-self: start;
  }

  .story-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 1px 0 5px;
    padding-right: 4px;
    font-size: 18px;
  }

  .story-card p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding-right: 2px;
    font-size: 12.5px;
  }

  .story-index {
    display: none;
  }

  .plan-chip {
    min-height: 20px;
    padding: 0 7px;
    font-size: 8px;
  }

  .breadth-section {
    padding-bottom: 64px;
  }

  .breadth-heading {
    margin-bottom: 26px;
    text-align: left;
  }

  .breadth-heading .lead {
    margin-inline: 0;
  }

  .asset-gallery {
    margin-right: calc(-1 * (var(--page-gutter) / 2));
    padding-right: calc(var(--page-gutter) / 2);
  }

  .asset-tile,
  .asset-tile-wide {
    flex-basis: 82%;
    border-radius: 18px;
  }

  .asset-tile img,
  .asset-tile-wide img {
    height: 205px;
  }

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

  .usecases-section .section-heading .lead {
    margin-inline: 0;
  }

  .usecase-shell {
    margin-inline: -4px;
    border-radius: 18px;
  }

  .usecase-tabs {
    padding-left: 3px;
  }

  .usecase-tabs button {
    min-width: 136px;
    min-height: 50px;
    padding: 0 13px;
    font-size: 11px;
  }

  .usecase-panel {
    gap: 22px;
    padding: 18px;
  }

  .usecase-art {
    border-radius: 15px;
  }

  .usecase-art img {
    height: 205px;
  }

  .usecase-copy h3 {
    font-size: 29px;
    line-height: 1.05;
  }

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

  .intelligence-stage {
    min-height: 440px;
    padding: 18px;
  }

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

  .promise-grid {
    gap: 26px;
  }

  .pricing-heading {
    text-align: left;
  }

  .pricing-heading .lead {
    margin-inline: 0;
  }

  .price-card {
    border-radius: 17px;
  }

  .platform-grid {
    gap: 30px;
  }

  .platform-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 98px;
    padding: 17px;
    border-radius: 15px;
  }

  .platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 19px;
  }

  .platform-card strong {
    font-size: 16px;
  }

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

  .start-grid {
    gap: 30px;
  }

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

  .waitlist-card {
    padding: 22px;
    border-radius: 17px;
  }

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

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 43px;
  }

  .portal-phone-stage {
    height: 435px;
  }

  .portal-phone-stage .phone-front {
    width: 214px;
    transform: translateX(-50%) scale(0.88);
  }

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

  .story-icon {
    width: 39px;
    height: 39px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .ownership-strip {
    scroll-behavior: auto;
  }
}
