/* kortapp.com — the landing page. Tokens follow admin / site (--kort-* palette); light and dark both. */

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --ink: #14171f;
  --muted: #5a6372;
  --line: #d7dbe1;
  --accent: #1859e0;
  --accent-hover: #1248b8;
  --accent-soft: #e6eefc;
  --on-accent: #ffffff;
  --success: #17803d;
  --success-soft: #e3f3e8;
  --warn: #a16207;
  --warn-soft: #fdf1d6;
  --info: #6d28d9;
  --info-soft: #ede9fe;
  --dark-bg: #0e1015;
  --dark-surface: #171a21;
  --dark-ink: #e8eaef;
  --dark-muted: #9ba3b1;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(20 23 31 / 0.05), 0 16px 40px -16px rgb(20 23 31 / 0.22);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1015;
    --surface: #171a21;
    --surface-2: #20242d;
    --ink: #e8eaef;
    --muted: #9ba3b1;
    --line: #2e3440;
    --accent: #6b98ff;
    --accent-hover: #8badff;
    --accent-soft: #1b2740;
    --on-accent: #0b0d12;
    --success: #52c47e;
    --success-soft: #16301f;
    --warn: #f5c451;
    --warn-soft: #3a2d0c;
    --info: #b79cff;
    --info-soft: #2a2140;
    --dark-bg: #0a0c10;
    --dark-surface: #13161c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 28px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn--lg {
  padding: 14px 24px;
  font-size: 16px;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn:active {
  transform: translateY(1px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--accent);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  margin-right: auto;
}
.brand__mark {
  width: 30px;
  height: 30px;
}
.brand__name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.nav__link:hover {
  background: var(--surface-2);
}
.nav__link--muted {
  color: var(--muted);
}
.nav__cta {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__cta {
  display: none;
}

.lang {
  position: relative;
}
.lang__code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
}
.lang__menu[hidden] {
  display: none;
}
.lang__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
}
.lang__item:hover {
  background: var(--surface-2);
}
.lang__item[aria-checked="true"] {
  color: var(--accent);
  font-weight: 600;
}
.lang__item[aria-checked="true"]::after {
  content: "✓";
}

.burger__close {
  display: none;
}
.burger[aria-expanded="true"] .burger__open {
  display: none;
}
.burger[aria-expanded="true"] .burger__close {
  display: block;
}

/* Mobile navigation: the nav drops below the header. */
@media (max-width: 1023.98px) {
  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link {
    padding: 12px 10px;
    font-size: 17px;
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    margin-top: 8px;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
  .header__cta {
    display: inline-flex;
  }
}
/* Long labels (de, fr, pl): the staff link leaves the bar until there is room; the footer keeps it. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .nav__link--muted {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background:
    radial-gradient(60% 50% at 20% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(45% 40% at 85% 10%, color-mix(in srgb, var(--info) 16%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mock__title {
  font-weight: 700;
  font-size: 15px;
}
.mock__chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}
.mock__grid {
  display: grid;
  grid-template-columns: 44px repeat(3, 1fr);
  gap: 6px;
}
.mock__times {
  display: flex;
  flex-direction: column;
  padding-top: 26px;
}
.mock__times span {
  height: 36px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
}
.mock__court {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock__court-name {
  height: 23px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev {
  display: flex;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
}
.ev.s1 {
  height: 33px;
}
.ev.s2 {
  height: 69px;
}
.ev.s3 {
  height: 105px;
}
.ev--booked {
  background: var(--accent-soft);
  color: var(--accent);
}
.ev--training {
  background: var(--info-soft);
  color: var(--info);
}
.ev--hold {
  background: var(--warn-soft);
  color: var(--warn);
}
.ev--open {
  background: var(--success-soft);
  color: var(--success);
}
.ev--free {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 500;
}

.mock-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.mock-card strong {
  display: block;
  font-size: 14px;
}
.mock-card span {
  color: var(--muted);
}
.mock-card svg {
  width: 20px;
  height: 20px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}
.mock-card--pay {
  right: 12px;
  bottom: -22px;
  animation: float 6s ease-in-out infinite;
}

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

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 80px;
  }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero__visual {
    justify-self: end;
  }
  .mock-card--pay {
    right: -8px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.section__head--left {
  margin-left: 0;
  text-align: left;
}
.section__title {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section__lead {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}

.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Cards ---------- */

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card__text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.card--accent {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 24px 24px 72px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.step__title {
  font-size: 18px;
  font-weight: 700;
}
.step__text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Personas ---------- */

.persona {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.persona__title {
  font-size: 17px;
  font-weight: 700;
}
.persona__text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Why (dark band) ---------- */

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.section--dark .section__title {
  color: var(--dark-ink);
}
.why {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}
.why__item {
  display: flex;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--dark-surface);
  border: 1px solid rgb(255 255 255 / 0.08);
}
.why__item svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 999px;
  background: rgb(107 152 255 / 0.18);
  color: #8badff;
}
.why__title {
  font-size: 17px;
  font-weight: 700;
}
.why__text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--dark-muted);
}
@media (min-width: 720px) {
  .why {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  gap: 36px;
}
.contact__copy .section__lead {
  max-width: 460px;
}
.contact__direct {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 15px;
}
.contact__mail {
  color: var(--accent);
  font-weight: 600;
}
.contact__mail:hover {
  text-decoration: underline;
}

.form {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  gap: 14px;
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field__input--area {
  resize: vertical;
  min-height: 110px;
}
.form__submit {
  width: 100%;
  margin-top: 4px;
}
.form__hint {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.form.is-invalid .field__input:invalid {
  border-color: #b42318;
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--surface);
}
.footer__inner {
  display: grid;
  gap: 20px;
}
.footer__tagline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}
.footer__links a {
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--accent);
}
.footer__copy {
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer__copy {
    grid-column: 1 / -1;
  }
}
