/* ---------- WizeHost product page (/wizehost) — Figma 2470:16349 ---------- */

.wizehost-page .frame {
  padding-inline: 24px;
}

.wizehost-header {
  width: 100%;
  max-width: 1312px;
  margin-inline: auto;
  padding-top: 32px;
  margin-bottom: 80px;
}

.wizehost-header__rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wizehost-header__logo-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.wizehost-header__logo-link:focus-visible {
  outline: 2px solid rgba(255, 227, 142, 0.45);
  outline-offset: 6px;
  border-radius: 4px;
}

.wizehost-header__logo {
  width: 179px;
  height: auto;
  display: block;
}

.wizehost-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wizehost-header__toggle {
  display: none;
}

.wizehost-header__link {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  color: #666666;
  text-decoration: none;
  white-space: nowrap;
}

.wizehost-header__link-strong {
  font-weight: 700;
}

.wizehost-header__link:hover {
  color: #dfdfdf;
}

.wizehost-header__link--active {
  color: #dfdfdf;
}

.wizehost-header__link:focus-visible {
  outline: 2px solid rgba(255, 227, 142, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.wizehost-page main {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  max-width: 1312px;
  margin-inline: auto;
  padding-bottom: 32px;
  box-sizing: border-box;
}

/* ---------- Hero — Figma 2513:14106 ---------- */
.wizehost-hero {
  width: 100%;
}

.wizehost-hero__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Copy column — Figma 3260:16521 */
.wizehost-hero__copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: 273px;
}

.wizehost-hero__eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #9d9d9d;
  white-space: nowrap;
}

.wizehost-hero__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.wizehost-hero__brand {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: normal;
  color: #dfdfdf;
  white-space: nowrap;
}

.wizehost-hero__brand-strong {
  font-weight: 700;
}

.wizehost-hero__lead {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: #dfdfdf;
}

.wizehost-hero__lead strong {
  font-weight: 700;
}

/* Free Download — matches main-site .btn-waitlist (shimmer + gradient outline) */
.wizehost-hero__download-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.wizehost-hero__download .btn-waitlist__inner {
  background: var(--bg);
}

.wizehost-hero__download-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #9d9d9d;
  white-space: nowrap;
}

/* Stage — Figma 2513:14102 (873 × 436.5) */
.wizehost-hero__stage {
  --wh-stage-w: 873;
  --wh-stage-h: 436.5;
  width: 100%;
  max-width: 873px;
}

.wizehost-hero__ui {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1.27px solid #343434;
  box-sizing: border-box;
}

/* ---------- Feature cards — Figma 3264:17449 ---------- */
.wizehost-features {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 80px;
  width: 100%;
}

.wizehost-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 24px;
  border-radius: 16px;
  background: var(--bg-elevated);
  text-align: center;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
}

.wizehost-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #121212;
  border: 2.857px solid;
  flex-shrink: 0;
  box-sizing: border-box;
}

.wizehost-feature__icon--tone3000 {
  border-color: #fa494c;
}

.wizehost-feature__icon--plugins {
  border-color: #20e9b5;
}

.wizehost-feature__icon--presets {
  border-color: #31d0f3;
}

.wizehost-feature__icon img {
  width: 57px;
  height: 57px;
  display: block;
}

.wizehost-feature__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  color: #dfdfdf;
}

.wizehost-feature__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #9d9d9d;
}

.wizehost-feature__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizehost-feature__link:hover {
  color: #dfdfdf;
}

.wizehost-feature__link:focus-visible {
  outline: 2px solid rgba(255, 227, 142, 0.55);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Download form — Figma 2514:18336 ---------- */
.wizehost-download {
  width: 100%;
  padding: 64px;
  border-radius: 16px;
  background: #1b1b1b;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  scroll-margin-top: 24px;
}

.wizehost-download__title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #dfdfdf;
}

.wizehost-download__title strong {
  font-weight: 700;
}

.wizehost-download__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #9d9d9d;
  max-width: 400px;
}

.wizehost-download .waitlist-form {
  margin: 0;
  text-align: left;
}

.wizehost-download .btn-waitlist__inner {
  background: #1b1b1b;
}

.wizehost-download .waitlist-form .btn-waitlist {
  margin-top: 8px;
}

/* OS picker (dropdown) */
.wizehost-download .waitlist-form__select {
  width: 100%;
  padding: 10px 28px 12px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9a9a' d='M6 8 .5 0h11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  min-height: 44px;
}

.wizehost-download .waitlist-form__select:focus {
  outline: none;
  border-bottom-color: #5ed5ef;
}

.wizehost-download .waitlist-form__select option {
  background: #1b1b1b;
  color: var(--text);
}

/* ---------- Early version — Figma 3268:17512 ---------- */
.wizehost-early {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 64px;
  box-sizing: border-box;
}

.wizehost-early__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.wizehost-early__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  color: #dfdfdf;
  white-space: nowrap;
}

.wizehost-early__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #9d9d9d;
}

.wizehost-early__cols {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  width: 100%;
}

.wizehost-early__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.wizehost-early__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #9d9d9d;
}

/* Column copy rails — Figma 3268:17518 (229px) / 3268:17524 (185px) */
.wizehost-early__col:first-child .wizehost-early__text {
  max-width: 229px;
}

.wizehost-early__col:last-child .wizehost-early__text {
  max-width: 185px;
}

/* ---------- CTA buttons (shared) ---------- */
.wizehost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.wizehost-cta--solid {
  background: #343434;
  color: #dfdfdf;
  font-weight: 400;
}

.wizehost-cta--solid:hover {
  background: #3f3f3f;
  color: #ffffff;
}

.wizehost-cta--solid:focus-visible {
  outline: 2px solid rgba(255, 227, 142, 0.55);
  outline-offset: 3px;
}

.wizehost-cta__icon {
  width: 17px;
  height: 13px;
  flex-shrink: 0;
  display: block;
}

/* ---------- WizeCore — Figma 2514:18353 ---------- */
.wizehost-core {
  width: 100%;
  padding: 64px;
  border-radius: 16px;
  background: #1b1b1b;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizehost-core__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  width: 100%;
}

.wizehost-core__visual {
  position: relative;
  width: 345px;
  max-width: 100%;
  height: 263px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px;
}

.wizehost-core__visual img {
  position: absolute;
  left: -8.6%;
  top: -5.2%;
  width: 113.76%;
  max-width: none;
  height: 106.74%;
  object-fit: cover;
}

.wizehost-core__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  max-width: 340px;
}

.wizehost-core__eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #9d9d9d;
}

.wizehost-core__brand {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: normal;
  color: #dfdfdf;
}

.wizehost-core__brand-strong {
  font-weight: 700;
}

.wizehost-core__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #9d9d9d;
}

/* Meet WizeCore — same shimmer CTA as the download buttons; inner fill blends with the #1b1b1b band */
.wizehost-core__cta .btn-waitlist__inner {
  background: #1b1b1b;
}

/* ---------- Responsive: tablet ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wizehost-hero__download,
  .wizehost-cta {
    transition: none;
  }
}

@media (max-width: 959px) {
  .wizehost-header {
    padding-top: 16px;
    margin-bottom: 40px;
  }

  .wizehost-header__rail {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .wizehost-header__logo {
    width: 150px;
  }

  .wizehost-header__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: 0;
    border: 1px solid #343434;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }

  .wizehost-header__toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #dfdfdf;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .wizehost-header__toggle[aria-expanded='true'] .wizehost-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .wizehost-header__toggle[aria-expanded='true'] .wizehost-header__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .wizehost-header__toggle[aria-expanded='true'] .wizehost-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .wizehost-header__toggle:focus-visible {
    outline: 2px solid #ffe38e;
    outline-offset: 2px;
  }

  .wizehost-header__nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #1b1b1b;
    border: 1px solid #343434;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 60;
  }

  .wizehost-header__nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .wizehost-header__link {
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .wizehost-header__link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .wizehost-header__link--active {
    background: rgba(94, 213, 239, 0.08);
  }

  .wizehost-page main {
    gap: 56px;
  }

  .wizehost-hero__copy-block {
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .wizehost-hero__title-block,
  .wizehost-hero__download-block {
    align-items: center;
  }

  .wizehost-features {
    gap: 24px;
  }

  .wizehost-feature {
    padding: 32px 24px;
  }

  .wizehost-download,
  .wizehost-early,
  .wizehost-core {
    padding: 32px 24px;
  }

  .wizehost-early {
    gap: 48px;
  }

  .wizehost-early__cols {
    gap: 48px;
  }

  .wizehost-early__title {
    white-space: normal;
  }
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 960px) {
  .wizehost-page .frame {
    padding-inline: 64px;
  }

  .wizehost-hero__layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .wizehost-hero__copy-block {
    flex: 0 0 273px;
    max-width: 273px;
  }

  .wizehost-hero__stage {
    flex: 0 1 873px;
    min-width: 0;
    max-width: 873px;
  }

  .wizehost-features {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 80px;
  }

  .wizehost-feature {
    flex: 1 1 0;
    max-width: 384px;
    min-width: 0;
  }

  .wizehost-early__cols {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 72px;
  }

  .wizehost-early__col {
    flex: 0 0 auto;
  }

  .wizehost-core__layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 72px;
  }
}

/* ---------- WizeCore page (/wizecore) — shared header reuse ---------- */

/* The WizeCore page reuses the WizeHost header component. Its `.frame` has no
   horizontal padding (unlike `.wizehost-page`), so give the header its own gutters. */
.wizecore-page .wizehost-header {
  padding-inline: 24px;
}

/* Header is non-sticky on WizeCore, so the mobile sticky CTA sits near the top. */
.wizecore-page {
  --hero-cta-sticky-top: 12px;
}

@media (min-width: 960px) {
  .wizecore-page .wizehost-header {
    padding-inline: 64px;
  }
}

/* ---------- WizeHost cross-promo card on /wizecore ----------
   Reuses .wizehost-core (mirrors the WizeCore card on /wizehost), adapted to the
   WizeCore page's 1221px content column and the wide WizeHost UI screenshot. */
.wizecore-page .wizehost-core__visual {
  width: 480px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}

.wizecore-page .wizehost-core__visual img {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 960px) {
  .wizecore-page .wizehost-core {
    max-width: min(1221px, calc(100vw - 48px));
    margin-inline: auto;
  }

  /* Let the wide UI screenshot grow to fill the space next to the copy column. */
  .wizecore-page .wizehost-core__visual {
    flex: 1 1 560px;
    min-width: 0;
    width: auto;
  }
}

/* ---------- WizeCore page (/wizecore) — tone3000 section (NAM loop) ----------
   The section used to hold a tall full-bleed picture in a half-width grid cell
   (legacy `.tone` rules in styles.css). Now that it hosts the wide NAM loop
   panel (Figma 2474:17353 — 1571.4196 × 791.8673), we drop that layout and
   stack: full-width panel on top, centered copy below, with balanced gutters. */
.wizecore-page .tone {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(56px, 9vw, 120px) 24px;
}

.wizecore-page .tone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  width: 100%;
  max-width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
  min-height: 0;
}

/* Wide NAM browser panel */
.wizecore-page .tone__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.wizecore-page .tone__nam {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1571.4196 / 791.8673;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 16px;
}

/* Copy — mirrors the WizeHost TONE3000 feature card copy */
.wizecore-page .tone__text-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.wizecore-page .tone__text-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.wizecore-page .tone__heading {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #9d9d9d;
  scroll-margin-top: 24px;
}

.wizecore-page .tone__brand-wrap {
  margin: 0;
}

.wizecore-page .tone__brand-mask {
  width: min(240px, 78vw);
}

.wizecore-page .tone__blurb {
  margin: 0;
  max-width: min(560px, 100%);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #9d9d9d;
}

.wizecore-page .tone__blurb .tone__link {
  color: #dfdfdf;
  text-decoration-color: rgba(94, 213, 239, 0.55);
  white-space: nowrap;
}

.wizecore-page .tone__blurb .tone__link:hover {
  color: #5ed5ef;
  text-decoration-color: #7ee8cc;
}

@media (max-width: 959px) {
  .wizecore-page .tone {
    padding: clamp(56px, 11vw, 96px) clamp(20px, 5vw, 24px);
  }

  .wizecore-page .tone__inner {
    gap: clamp(28px, 6vw, 40px);
    max-width: none;
  }

  /* Neutralise the legacy `display: contents` split (head / image / tail) */
  .wizecore-page .tone__text-column {
    display: flex;
  }

  .wizecore-page .tone__text-head {
    order: 0;
  }

  .wizecore-page .tone__visual {
    order: 0;
  }
}

@media (min-width: 960px) {
  /* Two-column editorial split — media panel left, copy right — so the wide
     browser panel no longer spans the full band. */
  .wizecore-page .tone {
    padding: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 48px);
  }

  .wizecore-page .tone__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 0;
    max-width: min(1221px, calc(100vw - 48px));
  }

  .wizecore-page .tone__visual {
    width: 100%;
    min-width: 0;
  }

  .wizecore-page .tone__nam {
    width: 100%;
  }

  .wizecore-page .tone__text-column {
    justify-content: center;
    padding: 0;
    min-width: 0;
  }

  .wizecore-page .tone__text-head {
    width: 100%;
  }
}

/* Keep the WizeHost cross-promo card clear of the footer — the promo band's
   main has no bottom padding, so without this its #1b1b1b panel sits flush
   against the footer's top border at every viewport size. */
.wizecore-page .wizehost-core {
  margin-bottom: clamp(48px, 8vw, 96px);
}

/* ---------- Coming-soon / inert controls (WizeCore page) ----------
   WizeHost is not live yet, so the header "WizeHost"/"Login" entries and the
   cross-promo "Meet WizeHost" CTA stay visible but do not navigate (they have
   no href). The /wizehost page itself remains reachable by direct URL. */

.wizehost-header__link--coming-soon,
.wizehost-header__link--coming-soon:hover {
  color: #565656;
  cursor: default;
  background: transparent;
}

.wizehost-header__link--coming-soon:focus-visible {
  outline: none;
}

/* Dimmed, non-animated state for the shimmer CTA when it points at a product
   that is not live yet. */
.wizehost-core__cta--coming-soon,
.wizehost-core__cta--coming-soon:hover {
  animation: none;
  background-image: none;
  background-color: #3a3a3a;
  filter: none;
  cursor: default;
}

.wizehost-core__cta--coming-soon .btn-waitlist__inner {
  background: #262626;
}

.wizehost-core__cta--coming-soon .btn-waitlist__label,
.wizehost-core__cta--coming-soon:hover .btn-waitlist__label {
  animation: none;
  background: none;
  background-clip: initial;
  -webkit-background-clip: initial;
  color: #9d9d9d;
  -webkit-text-fill-color: #9d9d9d;
}
