/* Fonts — Figma One-pager */
@font-face {
  font-family: 'Mango Grotesque';
  src: url('../fonts/MangoGrotesque-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mango Grotesque';
  src: url('../fonts/MangoGrotesque-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mango Grotesque';
  src: url('../fonts/MangoGrotesque-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mango Grotesque';
  src: url('../fonts/MangoGrotesque-SemiBold.woff2') format('woff2'),
    url('../fonts/MangoGrotesque-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mango Grotesque';
  src: url('../fonts/MangoGrotesque-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mango Grotesque';
  src: url('../fonts/MangoGrotesque-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saira Condensed';
  src: url('../fonts/SairaCondensed-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Condensed';
  src: url('../fonts/SairaCondensed-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Condensed';
  src: url('../fonts/SairaCondensed-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Condensed';
  src: url('../fonts/SairaCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saira ExtraCondensed';
  src: url('../fonts/SairaExtraCondensed-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira ExtraCondensed';
  src: url('../fonts/SairaExtraCondensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0328;
  --bg-mid-top: #0d0328;
  --bg-mid-bottom: #2e0b8e;
  --bg-elevated: #14053a;
  --bg-form: #0d0328;
  --text: #ffffff;
  /* Figma primary button fill (#2E0B8E) */
  --accent: #2e0b8e;
  /* Figma eyebrow */
  --accent-soft: #9471f3;
  /* Figma ghost stroke / footer link */
  --accent-stroke: #8259f1;
  --accent-bright: #6b3bff;
  --form-grad-top: #2e0b8e;
  --form-grad-bottom: #0d0328;
  --border: rgba(255, 255, 255, 0.35);
  --radius: 20px;
  --radius-pill: 999px;
  --nav-h: 112px;
  --container: 1184px;
  --font-body: 'Saira Condensed', system-ui, sans-serif;
  --font-eyebrow: 'Saira ExtraCondensed', 'Saira Condensed', sans-serif;
  --font-display: 'Mango Grotesque', sans-serif;
  --font-ui: 'Saira Condensed', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Eyebrow — Saira ExtraCondensed SemiBold 24 / 125% UPPER */
.eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.5rem;
}

/* Display — Mango Grotesque SemiBold 48 / 90%; Figma enables stylistic set salt */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 48px);
  line-height: 0.9;
  letter-spacing: 0;
  font-feature-settings: 'salt' 1;
  font-variant-alternates: styleset(1);
  color: var(--text);
  margin: 0 0 0.85rem;
  hanging-punctuation: first;
}

.display-hero {
  font-size: clamp(2.4rem, 5.5vw, 64px);
  text-transform: uppercase;
  max-width: 7.2em;
  white-space: pre-line;
}

.display-quote {
  text-transform: none;
}

.lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text);
  max-width: 36rem;
  margin: 0;
  white-space: pre-line;
}

.lead-center {
  margin-inline: auto;
  text-align: center;
  max-width: 40rem;
}

/* Buttons — Saira Condensed Bold 16 / 100% UPPER */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--accent-stroke);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Header — Figma: top fade scrim #0D0328→0 (not solid bar), 112px */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(13, 3, 40, 1) 0%,
    rgba(13, 3, 40, 0) 100%
  );
  pointer-events: none;
}

.site-header .container,
.site-header a,
.site-header button {
  pointer-events: auto;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 4.5rem, 1208px);
}

.site-header .container > a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  overflow: visible;
  flex-shrink: 0;
}

.logo {
  width: 118px;
  height: 36px;
  display: block;
  object-fit: contain;
  object-position: left center;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--radius-pill);
}

.nav-cta {
  min-height: 48px;
  padding: 0 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

/* Hero — Figma Frame 34116 is 1280×720 */
.hero {
  position: relative;
  height: 720px;
  min-height: 720px;
  max-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: #0d0327;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}

/* Figma Overlay: soft left scrim so copy stays readable; keep stadium light visible */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(13, 3, 39, 0.88) 0%,
      rgba(13, 3, 39, 0.55) 36%,
      rgba(13, 3, 39, 0.12) 62%,
      rgba(13, 3, 39, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(13, 3, 39, 0.35) 0%, rgba(31, 7, 94, 0.25) 100%);
  pointer-events: none;
}

.hero-copy,
.scroll-hint {
  position: relative;
  z-index: 2;
}

/* Figma copy: x=112, width≈489, gap 12 / 32 */
.hero-copy {
  width: min(100% - 2.5rem, 30.5rem);
  max-width: 489px;
  margin-left: max(1.25rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
  padding-top: calc(var(--nav-h) * 0.15);
  text-align: left;
}

.hero-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.hero-copy .display-hero {
  margin-bottom: 0.75rem;
}

.hero-copy .lead {
  max-width: 404px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* Figma 24px */
  margin-top: 2rem; /* Figma stack gap 32 */
  justify-content: flex-start;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  animation: bob 1.8s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

/* Post-hero band: Figma Frame 33983 vertical gradient (dark top → purple bottom) */
.page-band {
  background: linear-gradient(180deg, var(--bg-mid-top) 0%, var(--bg-mid-bottom) 100%);
}

.features {
  padding: 5rem 0 3rem;
  text-align: center;
}

.features .display {
  text-transform: uppercase;
}

.features .lead {
  margin-bottom: 3rem; /* Figma section gap 48 */
  max-width: 512px; /* Figma body width */
}

.phone-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem; /* Figma 24 */
  align-items: start;
  text-align: center;
  max-width: 1184px;
  margin-inline: auto;
}

.phone-card {
  margin: 0;
}

.phone-card img {
  width: 100%;
  height: auto;
  display: block;
  /* Figma Typografie card: 278×417 — crops already include frame + glow */
  aspect-ratio: 278 / 417;
  object-fit: contain;
  object-position: top center;
}

/* Pillars */
.pillars {
  padding: 1rem 0 2rem;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

.pillar-media img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 480 / 320;
  object-fit: cover;
}

.pillar[data-image-side='left'] .pillar-media {
  order: -1;
}

/* Quote split */
.quote-split {
  padding: 3rem 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.quote-attr {
  margin-bottom: 1rem;
}

.quote-media img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 480 / 320;
  object-fit: cover;
}

/* Signup */
.signup {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.signup > .container > .display {
  text-transform: uppercase;
}

.signup > .container > .lead {
  margin-bottom: 2.5rem;
  max-width: 512px;
}

.signup-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(100%, 992px); /* Figma Frame 34009 */
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  text-align: left;
}

.signup-media img {
  width: 100%;
  height: 100%;
  min-height: 514px;
  object-fit: cover;
}

.signup-form-wrap {
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(
    180deg,
    var(--form-grad-top) 0%,
    var(--form-grad-bottom) 100%
  );
  color-scheme: dark;
}

.signup-form-wrap h3 {
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}

.field-line input,
.field-line select {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: transparent;
  color: #fff;
  outline: none;
  box-shadow: none;
  caret-color: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.field-line input::placeholder,
.field-line select:invalid {
  color: rgba(255, 255, 255, 0.4);
}

.field-line input:focus,
.field-line select:focus {
  border-bottom-color: var(--accent-soft);
}

/* Kill browser autofill’s light blue/yellow fill on dark forms */
.field-line input:-webkit-autofill,
.field-line input:-webkit-autofill:hover,
.field-line input:-webkit-autofill:focus,
.field-line select:-webkit-autofill,
.field-line select:-webkit-autofill:hover,
.field-line select:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px var(--form-grad-bottom) inset;
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.field-line select {
  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='white' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-color: var(--bg-form);
  padding-right: 1.5rem;
  color-scheme: dark;
}

.field-line select option,
.field-line select optgroup {
  background-color: #1a0a4a;
  color: #fff;
}

/* Custom role dropdown — native <select> popup stays white in Chrome */
.role-dd {
  position: relative;
}

.role-dd-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.role-dd-toggle {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 1.5rem 0.45rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: transparent
    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='white' d='M6 8L0 0h12z'/%3E%3C/svg%3E")
    no-repeat right 0.1rem center;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.role-dd-toggle.is-placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.role-dd-toggle:focus {
  outline: none;
  border-bottom-color: var(--accent-soft);
}

.role-dd-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #16083a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow: auto;
}

.role-dd.is-open .role-dd-menu {
  display: block;
}

.role-dd-menu button {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}

.role-dd-menu button:hover,
.role-dd-menu button:focus,
.role-dd-menu button[aria-selected='true'] {
  background: rgba(107, 59, 255, 0.35);
  outline: none;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.25rem 0 1.35rem;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.terms a {
  color: #fff;
  text-decoration: underline;
}

.terms input {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.terms input:checked {
  background: #3b82f6;
  border-color: #3b82f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

.signup-form-wrap .btn-primary {
  width: 100%;
  min-height: 48px;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  font-size: 16px;
}

.form-status.is-ok {
  color: #7dffb0;
}

.form-status.is-err {
  color: #ff8f9f;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0 3rem;
  text-align: center;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.4rem;
}

.testimonial-quote {
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.testimonial-name {
  margin-bottom: 1.5rem;
}

.testimonial-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.dots {
  display: flex;
  gap: 0.45rem;
}

.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  padding: 0;
  cursor: pointer;
  opacity: 1;
}

.dots button.is-active {
  background: var(--accent-stroke);
}

/* Footer — Figma solid #2E0E8E + logo wordmark (not plain text) */
.site-footer {
  position: relative;
  padding: 3rem 0 2rem;
  overflow: hidden;
  background: var(--bg-mid-bottom);
}

.footer-mark {
  display: block;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.footer-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: min(100% - 2.5rem, var(--container));
  margin: 1.75rem auto 0;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.footer-bar a {
  font-weight: 700;
  text-decoration: underline;
}

.terms-panel {
  display: none;
  padding: 3rem 0 4rem;
}

.terms-panel.is-open {
  display: block;
}

.terms-panel .card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
}

.terms-panel h2 {
  margin-top: 0;
  color: var(--text);
}

@media (max-width: 960px) {
  .phone-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar,
  .pillar[data-image-side='left'],
  .quote-grid,
  .signup-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pillar[data-image-side='left'] .pillar-media,
  .pillar .pillar-media {
    order: -1;
  }

  .signup-media img {
    min-height: 220px;
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 72px;
  }

  .eyebrow {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: var(--nav-h);
    background: rgba(8, 0, 24, 0.96);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
    align-items: center;
    padding: calc(var(--nav-h) + 1rem) 0 4rem;
  }

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

  .phone-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .phone-card {
    flex: 0 0 58%;
    scroll-snap-align: center;
  }
}
