/* Apex Club partner site. Same dark "racing" theme as the app and apexclub.dk:
   near-black background, dark grey surfaces, racing red #DB2828 as the one signal colour. */

:root {
  --bg: #0b0b0c;
  --surface: #161618;
  --surface-raised: #222225;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #a1a1a6;
  --signal: #db2828;
  --signal-hover: #c21f1f;
  --tile: #edf1f3;
  --radius: 20px;
  --wrap: 1160px;
  --section-gap: clamp(48px, 6vw, 88px);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0; font-family: var(--display); font-weight: 800;
  line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

.eyebrow {
  margin: 0 0 14px; color: var(--signal);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.body { color: var(--text-muted); max-width: 56ch; }
.body a { color: var(--text); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 14px;
  background: var(--signal); color: #fff;
  font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.button:hover { background: var(--signal-hover); }
.button:active { transform: scale(0.98); }
.button--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.button--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.button--small { min-height: 42px; padding: 0 18px; font-size: 0.9rem; border-radius: 12px; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px 0;
  transition: background 0.3s;
}
.nav.is-scrolled { background: rgba(11, 11, 12, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav__inner { display: flex; align-items: center; gap: 32px; }
.nav__logo img { width: 72px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.nav__links a:hover { color: #fff; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .button--small { margin-left: auto; }
}

/* Hero */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 9vh, 100px); overflow: hidden;
}
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.45) 0%, rgba(11, 11, 12, 0.2) 35%, rgba(11, 11, 12, 0.88) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 11, 12, 0.8) 0%, rgba(11, 11, 12, 0) 65%);
}
.hero__content { position: relative; z-index: 2; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.9); }
.hero h1 span { color: var(--signal); }
.lede { margin: 24px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.facts {
  list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px);
}
.facts li { display: grid; gap: 2px; }
.facts strong { font: 800 clamp(2rem, 3.6vw, 2.8rem) var(--display); line-height: 1; text-transform: uppercase; }
.facts span { color: var(--text-muted); font-size: 0.9rem; }

/* Sections */
.section { padding: var(--section-gap) 0; }
.section--surface { background: linear-gradient(180deg, var(--bg), #111113 12%, #111113 88%, var(--bg)); }
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { margin-bottom: 18px; }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reasons li { background: var(--surface); border-radius: var(--radius); padding: 32px 30px; }
.reasons h3 { margin-bottom: 14px; }
.reasons p { margin: 0; color: var(--text-muted); }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr; } }
.founder { margin: 36px 0 0; max-width: 70ch; color: var(--text-muted); font-size: 0.98rem; border-left: 3px solid var(--signal); padding-left: 18px; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1000px) { .packages { grid-template-columns: 1fr; max-width: 620px; } }
.package {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); padding: 36px 30px 30px;
  border: 1px solid var(--line);
}
.package--featured { border-color: var(--signal); box-shadow: 0 30px 80px -40px rgba(219, 40, 40, 0.6); }
.package__badge {
  position: absolute; top: -13px; left: 30px; margin: 0;
  padding: 4px 12px; border-radius: 99px; background: var(--signal);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.package h3 { font-size: 1.9rem; }
.package__price { margin: 18px 0 0; font: 800 clamp(2.1rem, 2.9vw, 2.6rem) var(--display); line-height: 1; white-space: nowrap; }
.package__scope { margin: 6px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.package__tagline { margin: 22px 0 0; font: 600 1.05rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.package__intro { margin: 10px 0 0; color: var(--text-muted); font-size: 0.96rem; }
.package__list { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.package__list li { position: relative; padding-left: 28px; font-size: 0.96rem; }
.package__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg) translateY(-4px);
}
.package__cta { margin-top: auto; width: 100%; }

/* Comparison table */
.compare-wrap { margin-top: clamp(48px, 6vw, 72px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.compare caption { text-align: left; margin-bottom: 18px; font: 800 1.8rem var(--display); text-transform: uppercase; }
.compare th, .compare td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font: 600 0.78rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.compare thead th:nth-child(2) { color: var(--signal); }
.compare tbody th { font-weight: 500; color: rgba(255, 255, 255, 0.9); width: 34%; }
.compare td { color: var(--text-muted); }
.compare td.yes { color: var(--text); }
.compare td:nth-child(2) { background: rgba(219, 40, 40, 0.06); }

/* Visibility showcases */
.showcase {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(32px, 4vw, 56px) 0;
}
.showcase + .showcase { border-top: 1px solid var(--line); }
.section__head + .showcase { padding-top: 0; }
.showcase--reverse .showcase__text { order: 2; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--reverse .showcase__text { order: 0; }
}
.showcase h3 { margin-bottom: 16px; }
.showcase p { color: var(--text-muted); margin: 0; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }

.showcase__media { position: relative; }
.screen {
  margin: 0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen--small {
  position: absolute; right: 0; bottom: -14%; width: 44%; transform: translateX(6%);
  border: 3px solid var(--bg);
}
.showcase__media:has(.screen--small) { margin-bottom: 12%; }
.screen--photo { border-radius: var(--radius); }

.phones { display: flex; justify-content: center; gap: clamp(12px, 2vw, 24px); padding-bottom: clamp(24px, 4vw, 48px); }
.phone {
  margin: 0; width: clamp(130px, 15vw, 210px); aspect-ratio: 720 / 1565;
  border-radius: clamp(22px, 2.6vw, 34px); padding: clamp(4px, 0.5vw, 7px);
  background: linear-gradient(145deg, #3a3a3e, #121214);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(18px, 2.2vw, 28px); background: #000; }
.phone--offset { transform: translateY(clamp(20px, 4vw, 48px)); }

/* Statement */
.statement { padding: clamp(64px, 9vw, 120px) 0; text-align: center; background: var(--signal); }
.statement__big { margin: 0; font: 800 clamp(2.6rem, 7vw, 6rem) var(--display); line-height: 0.95; text-transform: uppercase; }
.statement__line { margin: 18px 0 0; font: 600 clamp(1.1rem, 2vw, 1.5rem) var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }

/* Partner logos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo {
  display: flex; align-items: center; justify-content: center;
  height: 150px; padding: 28px 34px; background: var(--tile); border-radius: 14px;
}
/* Multiply blends white logo backgrounds into the tile. */
.logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { margin-bottom: 18px; }

.form { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.form__row { display: grid; gap: 8px; }
.form label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.form label span { color: var(--text-muted); font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%; padding: 14px 16px; background: var(--surface-raised); color: #fff;
  border: 1.5px solid transparent; border-radius: 12px; font: 400 1rem var(--body);
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a1a1a6 50%), linear-gradient(135deg, #a1a1a6 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 100px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--signal); }
.form [aria-invalid="true"] { border-color: #ff5c6b; }
.form__consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; color: var(--text-muted); line-height: 1.5; }
.form__consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; min-height: 1.5em; font-size: 0.95rem; }
.form__status.is-error { color: #ff5c6b; }
.form__status.is-success { color: #30c76b; }

/* Footer */
.footer { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; justify-items: center; gap: 8px; text-align: center; }
.footer img { width: 72px; margin-bottom: 8px; }
.footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.footer p:first-of-type { font: 800 1.3rem var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
