.public-home {
  color-scheme: light;
  --page-bg: #f7f8fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #101a31;
  --muted: #5e687a;
  --line: #dfe3e9;
  --brand: #ffa800;
  --brand-strong: #f39a00;
  --home-eyebrow: #8a4b00;
  --focus: #155eef;
  --content-width: 1390px;
  background: var(--page-bg);
  color: var(--text);
}

.public-home::before {
  display: none;
}

.public-home .skip-link {
  z-index: 80;
}

.home-header {
  position: relative;
  z-index: 30;
  min-height: 78px;
  border-color: #e8e9ec;
  background: #ffffff;
}

.home-header .public-brand strong {
  font-size: 1.25rem;
}

.home-header .public-brand small {
  color: #7a8290;
}

.home-nav {
  gap: clamp(12px, 2vw, 30px);
  color: #243047;
}

.home-nav a:not(.button) {
  border-bottom: 2px solid transparent;
}

.home-nav a:not(.button):hover,
.home-nav a:not(.button).active {
  border-bottom-color: var(--brand);
  color: #101a31;
}

.home-locale {
  display: inline-flex;
  align-items: center;
}

.home-locale select {
  min-height: 40px;
  padding-inline: 13px 34px;
  border-radius: 10px;
  font-weight: 800;
}

.header-install {
  min-height: 44px;
  border-radius: 9px;
}

.home-nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}

.home-hero {
  position: relative;
  width: min(1490px, 100%);
  min-height: 620px;
  margin-inline: auto;
  overflow: hidden;
  background: #ffffff;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(50%, 690px);
  padding: clamp(54px, 6vw, 92px) clamp(28px, 5vw, 74px);
}

.home-hero-copy .eyebrow {
  color: var(--home-eyebrow);
  letter-spacing: 0;
}

.public-home .eyebrow {
  color: var(--home-eyebrow);
}

.home-hero h1 {
  max-width: 590px;
  margin: 0;
  color: #d96700;
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero h1 span {
  display: block;
  margin-bottom: 6px;
}

.home-hero h1 span:first-child {
  color: #101a31;
}

.home-hero h1 span:last-child {
  color: #d96700;
}

.home-hero-lead {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.home-trial {
  margin: 18px 0 0;
  color: #344056;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.public-home .button {
  border-radius: 9px;
}

.public-home .button.primary {
  color: #221501;
  box-shadow: 0 12px 28px rgba(206, 124, 0, 0.18);
}

.public-home .button.secondary {
  border-color: #cfd4dc;
  color: #18243a;
}

.home-disclaimer {
  max-width: 570px;
  margin: 24px 0 0;
  color: #657084;
  font-size: 0.84rem;
  line-height: 1.5;
}

.home-hero-visual {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  background: #e8e5de;
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.platform-ribbon {
  position: relative;
  z-index: 2;
  width: min(1390px, calc(100% - 56px));
  margin: -28px auto 0;
  padding: 28px;
  border: 1px solid #e4e6ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(25, 35, 55, 0.1);
  scroll-margin-top: 24px;
}

.platform-ribbon-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2px 24px;
  margin-bottom: 22px;
}

.platform-ribbon-heading .eyebrow {
  grid-row: 1;
  margin: 0;
}

.platform-ribbon-heading h2 {
  grid-row: 2;
  margin: 0;
  font-size: 1.8rem;
}

.platform-ribbon-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 680px;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(94px, 1fr));
  gap: 10px;
}

.platform-card {
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-rows: 48px auto auto;
  place-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid #e0e3e8;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  text-align: center;
}

.platform-card:not(:disabled):hover {
  border-color: #ec9a17;
  box-shadow: 0 10px 24px rgba(31, 40, 59, 0.1);
}

.platform-card:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.48;
}

.platform-card img {
  max-width: 82px;
  max-height: 42px;
  object-fit: contain;
}

.platform-card strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.25;
}

.platform-card-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff3d7;
  color: #8c5300;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.platform-card:disabled .platform-card-status {
  background: #edf0f3;
  color: #5f6875;
}

.home-steps {
  width: min(1320px, calc(100% - 56px));
  margin: 74px auto;
}

.home-section-heading {
  text-align: center;
}

.home-section-heading h2 {
  margin: 0;
  font-size: 3rem;
}

.home-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  list-style: none;
  overflow: hidden;
}

.home-step-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 34px;
  background: #ffffff;
}

.home-step-list li > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand);
  border-radius: 12px;
  color: #b86000;
  font-size: 1.2rem;
  font-weight: 800;
}

.home-step-list strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.home-step-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-media-notice {
  margin-bottom: 56px;
  border-color: #d7dce4;
  background: #ffffff;
}

.platform-install-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.platform-install-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.68);
}

.platform-install-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
}

.platform-install-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
}

.platform-install-heading {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
  padding-right: 70px;
}

.platform-install-logo-frame {
  height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.platform-install-logo-frame img {
  max-height: 44px;
}

.platform-install-status {
  color: #a35900;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.platform-install-dialog h2 {
  margin: 6px 0 0;
  font-size: 1.7rem;
}

.platform-install-dialog > p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.platform-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1120px) {
  .home-header {
    width: min(100% - 32px, var(--content-width));
  }

  .home-nav {
    gap: 12px;
    font-size: 0.84rem;
  }

  .platform-grid {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
  }

  .home-hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 900px) {
  .home-header {
    align-items: center;
    flex-direction: row;
    padding-block: 14px;
  }

  .home-nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .home-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(28, 38, 55, 0.14);
  }

  .home-nav.is-open {
    display: flex;
  }

  .home-nav a,
  .home-locale {
    justify-content: center;
    text-align: center;
  }

  .home-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    width: 100%;
    padding-bottom: 48px;
  }

  .home-hero-visual {
    position: relative;
    inset: auto;
    min-height: 420px;
  }

  .platform-ribbon-heading {
    display: block;
  }

  .platform-ribbon-heading > p:last-child {
    margin-top: 10px;
  }

  .home-step-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-header,
  .platform-ribbon,
  .home-steps,
  .public-home .public-footer,
  .public-home .media-notice {
    width: min(100% - 28px, var(--content-width));
  }

  .home-header .public-brand small {
    display: none;
  }

  .home-hero-copy {
    padding: 34px 22px 28px;
  }

  .home-hero h1 {
    font-size: 2.75rem;
  }

  .home-hero-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .home-trial {
    margin-top: 14px;
  }

  .home-hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .home-disclaimer {
    margin-top: 18px;
  }

  .platform-ribbon-heading h2 {
    font-size: 1.5rem;
  }

  .home-section-heading h2 {
    font-size: 2rem;
  }

  .home-hero-actions,
  .platform-install-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero-actions .button,
  .platform-install-actions .button {
    width: 100%;
  }

  .home-hero-visual {
    min-height: 210px;
  }

  .platform-ribbon {
    margin-top: -22px;
    padding: 22px 16px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-steps {
    margin-block: 54px;
  }

  .home-step-list li {
    padding: 24px 20px;
  }

  .platform-install-modal {
    align-items: end;
    padding: 12px;
  }

  .platform-install-dialog {
    padding: 24px 20px;
  }

  .platform-install-heading {
    grid-template-columns: 72px 1fr;
    padding-right: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-card,
  .home-nav {
    transition: none;
  }
}
