/* ==========================================================================
   CONVEO — Homepage Styles
   No framework. No build step. Desktop-first responsive strategy.

   FONT LICENSING NOTE:
   The @font-face declarations below point at the "Test Söhne" trial files
   supplied in /Test Söhne. These are Klim Type Foundry TEST fonts for
   design/dev review only — they are NOT licensed for public production use.
   Before this page ships, a commercial Söhne web license must be purchased
   and the font files swapped in. Until then this build renders Test Söhne
   locally and falls back to the system stack per FONT-FALLBACK below.
   ========================================================================== */

/* ---------- Font faces (Test Söhne — review only, see note above) ---------- */
@font-face {
  font-family: 'Söhne';
  src: url("../Test Söhne/TestSöhne-Leicht.otf") format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url("../Test Söhne/TestSöhne-Buch.otf") format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url("../Test Söhne/TestSöhne-Kräftig.otf") format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url("../Test Söhne/TestSöhne-Halbfett.otf") format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url("../Test Söhne/TestSöhne-Fett.otf") format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Custom properties ---------- */
:root {
  /* Brand colors — three only */
  --color-dark: #171514;
  --color-white: #F4F1EA;
  --color-blue: #6BA7E3;

  /* Tonal elevation of Studio Dark — not a fourth brand color, used only to
     lift flat surfaces (FAQ answer panel, typography panel) off the base field */
  --color-surface: #1D1B19;

  /* Reduced-opacity utilities built from the two neutral brand colors */
  --white-muted: rgba(244, 241, 234, 0.6);
  --white-muted-50: rgba(244, 241, 234, 0.5);
  --white-70: rgba(244, 241, 234, 0.7);
  --white-85: rgba(244, 241, 234, 0.85);
  --white-faint: rgba(244, 241, 234, 0.15);
  --white-faint-10: rgba(244, 241, 234, 0.1);
  --white-faint-16: rgba(244, 241, 234, 0.16);
  --white-faint-20: rgba(244, 241, 234, 0.2);
  --white-faint-25: rgba(244, 241, 234, 0.25);
  --white-faint-30: rgba(244, 241, 234, 0.3);
  --white-faint-40: rgba(244, 241, 234, 0.4);
  --color-blue-15: rgba(107, 167, 227, 0.15);
  --dark-scrim: rgba(23, 21, 20, 0.9);
  --dark-84: rgba(23, 21, 20, 0.84);

  /* Dashboard project cards sit slightly lighter than --color-surface —
     a distinct tonal step, not the same surface used by the FAQ/modal panels */
  --color-card-bg: #1E1C1B;

  --nav-height: 72px;

  /* Type */
  --font-fallback: 'Söhne', 'Aktiv Grotesk', 'GT America', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --fs-display: 64px;
  --fs-large: 48px;
  --fs-section: 36px;
  --fs-feature: 24px;
  --fs-body: 18px;
  --fs-small: 13px;
  --fs-button: 15px;

  /* Layout */
  --max-width: 1760px;
  --pad-desktop: 80px;
  --pad-tablet: 40px;
  --pad-mobile: 24px;
  --section-pad-desktop: 80px;
  --section-pad-tablet: 80px;
  --section-pad-mobile: 60px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-fallback);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

/* ---------- Layout utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.container--narrow {
  max-width: 1280px;
}

.section {
  padding-top: var(--section-pad-desktop);
  padding-bottom: var(--section-pad-desktop);
  border-bottom: 1px solid var(--white-faint-16);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  line-height: 1.4;
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  color: var(--color-blue);
  margin-bottom: 24px;
}

.text-accent {
  color: var(--color-blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-white);
  border-radius: 2px;
  color: var(--color-white);
  background: transparent;
  font-size: var(--fs-button);
  font-weight: var(--fw-medium);
  padding: 16px 32px;
  transition: background-color 150ms ease;
}

.btn:hover {
  background-color: rgba(244, 241, 234, 0.1);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--small {
  padding: 12px 24px;
}

/* Solid Monitor Blue CTA — distinct from the outline .btn used elsewhere */
.btn--solid {
  background: var(--color-blue);
  color: var(--color-dark);
  border: 1px solid var(--color-blue);
  border-radius: 0;
  padding: 18px 40px;
}

.btn--solid:hover {
  background-color: var(--color-blue);
  filter: brightness(1.1);
}

.btn__arrow {
  font-weight: var(--fw-regular);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--dark-84);
  border-bottom: 1px solid var(--white-faint-16);
}

/* Dropped once scrolled so it doesn't double up with the section divider
   lines underneath it */
.nav.nav--scrolled {
  border-bottom-color: transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__center a,
.nav__right a {
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--color-white);
  transition: opacity 150ms ease;
}

.nav__center a:hover,
.nav__right a:hover {
  opacity: 0.65;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__sep {
  color: var(--white-muted);
}

.nav__login {
  margin-left: 16px;
}

/* ---------- Hamburger trigger (mobile only — see mobile media query) ---------- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}

.nav__hamburger-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-white);
}

/* ---------- Mobile nav overlay — same fixed full-screen overlay pattern
   as Our Story's chapter overlay / the How It Works lightbox, reused here
   for the site-wide mobile menu. Shared across every marketing page. ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-dark);
}

.mobile-nav-overlay[hidden] {
  display: none;
}

.mobile-nav-overlay__inner {
  position: relative;
  height: 100%;
  padding: 96px var(--pad-mobile) var(--pad-mobile);
}

.mobile-nav-overlay__close {
  position: absolute;
  top: 28px;
  right: var(--pad-mobile);
  font-size: 28px;
  color: var(--color-white);
  line-height: 1;
}

.mobile-nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav-overlay__links a {
  font-size: 22px;
  font-weight: var(--fw-medium);
  color: var(--color-white);
  /* Overrides .nav__login's desktop-only spacing (that link is reused
     here for the auth.js swap hook, not for its desktop layout rules). */
  margin-left: 0;
}

.mobile-nav-overlay__links a.active {
  color: var(--color-blue);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Comp was built at 1762px wide with a 704px-tall hero (40:100 ratio),
     but the bottom-anchored text needs more breathing room than that
     strict ratio gives it — --hero-extra-height adds a flat top-up on
     top of the proportional base so we can dial it in 50px at a time. */
  --hero-extra-height: 50px;
  height: calc(100vw * 704 / 1762 + var(--hero-extra-height));
  min-height: 420px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* Functional legibility scrim over the photograph (not a decorative gradient) */
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 62%;
  right: 0;
  background: linear-gradient(to right, var(--color-dark) 0%, transparent 35%);
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.hero__headline {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-large);
  line-height: 1.15;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  max-width: 720px;
}

/* ---------- Founding Truth / Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

.story__media img {
  width: 100%;
  height: auto;
}

.story__content h2 {
  font-size: var(--fs-large);
  margin-bottom: 24px;
}

.story__content p:not(.eyebrow) {
  margin-bottom: 20px;
  color: var(--color-white);
}

.story__content .btn {
  margin-top: 16px;
}

/* ---------- Features ---------- */
.features__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  /* Without this, grid items stretch to match the taller column's row
     height, which drags the shorter column's blue border-left down past
     its own content. Sizing each column to its own content keeps every
     rule hugging just its feature, matching the comp. */
  align-items: start;
}

.feature {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--color-blue);
}

.feature__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.feature__icon {
  display: flex;
  flex-shrink: 0;
}

.feature__icon img {
  height: 26px;
  width: auto;
}

.feature__icon .ph {
  font-size: 26px;
  color: var(--color-white);
}

.feature h3 {
  font-size: var(--fs-feature);
  line-height: 1.3;
}

.feature p {
  color: var(--color-white);
  margin-bottom: 16px;
}

.feature p:last-child {
  margin-bottom: 0;
}

.feature__accent {
  color: var(--color-blue);
  font-weight: var(--fw-medium);
}

.features__stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---------- Set the Register ---------- */
.register__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: stretch;
}

.register__label {
  font-size: var(--fs-feature);
  font-weight: var(--fw-semibold);
  margin-bottom: 32px;
}

.register__slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--white-muted);
  margin-bottom: 16px;
}

.slider-wrap {
  position: relative;
  height: 2px;
  background: var(--white-faint);
  margin-bottom: 24px;
}

.slider-track {
  position: absolute;
  inset: 0;
  background: var(--white-faint);
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--color-blue);
  width: 65%;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 20px;
  transform: translateY(-50%);
  background: transparent;
  margin: 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-blue);
  cursor: pointer;
  border: none;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-blue);
  cursor: pointer;
  border: none;
}

.slider::-moz-range-track {
  background: transparent;
}

.register__value {
  color: var(--color-white);
  margin-bottom: 32px;
}

.register__question {
  margin-bottom: 20px;
}

.register__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--color-white);
  border-radius: 2px;
  padding: 8px 16px;
  font-size: var(--fs-small);
  color: var(--color-white);
}

.register__panel {
  background: var(--color-surface);
  padding: 48px;
}

.register__panel h3 {
  font-size: var(--fs-feature);
  margin-bottom: 20px;
}

.register__panel p {
  color: var(--color-white);
}

/* ---------- FAQ ---------- */
.faq h2 {
  font-size: var(--fs-large);
  margin-bottom: 56px;
}

.accordion__item {
  border-bottom: 1px solid transparent;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-size: var(--fs-feature);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  padding: 28px 0;
}

.accordion__icon {
  color: var(--color-blue);
  font-size: 22px;
  font-weight: var(--fw-regular);
  flex-shrink: 0;
}

.accordion__rule {
  height: 1px;
  background: var(--white-faint);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.accordion__panel-inner {
  background: var(--color-surface);
  padding: 32px;
  margin: 24px 0 8px;
}

.accordion__panel-inner p {
  margin-bottom: 16px;
}

.accordion__panel-inner p:last-child {
  margin-bottom: 0;
}

.accordion__placeholder {
  color: var(--white-muted);
  font-style: italic;
}

/* ---------- Close ---------- */
.close {
  /* No divider before the footer in the comp — just a color shift, no stroke */
  border-bottom: none;
  /* A little extra room beyond the base section padding on the closing block */
  padding-top: calc(var(--section-pad-desktop) + 24px);
  padding-bottom: calc(var(--section-pad-desktop) + 24px);
}

.close__grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1.1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.close__media img {
  width: 100%;
  height: auto;
}

.close__headline h2 {
  font-size: var(--fs-large);
}

.close__copy p {
  color: var(--color-white);
  margin-bottom: 20px;
}

.close__copy .btn {
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.footer {
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--white-faint-16);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  height: 100%;
}

.footer__copyright {
  color: var(--white-muted);
  font-size: var(--fs-small);
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  color: var(--white-muted);
  font-size: var(--fs-small);
  transition: opacity 150ms ease;
}

.footer__links a:hover {
  opacity: 0.65;
}

/* ==========================================================================
   Responsive — Tablet: 768px – 1279px
   ========================================================================== */
@media (max-width: 1279px) {
  .container {
    padding: 0 var(--pad-tablet);
  }

  .section {
    padding-top: var(--section-pad-tablet);
    padding-bottom: var(--section-pad-tablet);
  }

  .close {
    padding-top: calc(var(--section-pad-tablet) + 24px);
    padding-bottom: calc(var(--section-pad-tablet) + 24px);
  }

  :root {
    --fs-display: 52px;
    --fs-large: 40px;
    --fs-section: 32px;
  }

  .nav__center {
    gap: 24px;
  }

  .story__grid,
  .register__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .close__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .close__media {
    max-width: 220px;
  }
}

/* ==========================================================================
   Responsive — Mobile: below 768px
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--pad-mobile);
  }

  .section {
    padding-top: var(--section-pad-mobile);
    padding-bottom: var(--section-pad-mobile);
  }

  .close {
    padding-top: calc(var(--section-pad-mobile) + 24px);
    padding-bottom: calc(var(--section-pad-mobile) + 24px);
  }

  :root {
    --fs-display: 36px;
    --fs-large: 30px;
    --fs-section: 26px;
    --fs-feature: 20px;
    --fs-body: 16px;
  }

  .nav__center {
    display: none;
  }

  /* Everything nav__right used to show standalone (Login/Dashboard, plus
     Contact Us before it) now lives inside the hamburger menu instead —
     see .mobile-nav-overlay. */
  .nav__right {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__image {
    width: 100%;
  }

  .hero__scrim {
    width: 100%;
    background: linear-gradient(to right, var(--color-dark) 20%, var(--dark-scrim) 100%);
  }

  .hero__content {
    bottom: 56px;
  }

  .register__panel {
    padding: 32px 24px;
  }

  .close__media {
    max-width: 160px;
  }

  .footer {
    /* Fixed nav-height doesn't fit two stacked rows (copyright + links)
       below — that plus flex-wrap:wrap on a column-direction flex
       container was overflowing into a second, off-screen column instead
       of just growing taller. Auto height + nowrap here lets it stack
       normally, and vertical padding fills in what the fixed height used
       to provide. */
    height: auto;
    padding: 20px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .footer__links {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
