:root {
  --bg: #121212;
  --surface: #1c1c1c;
  --surface-high: #282828;
  --border: #383838;
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --error: #ff8a80;
  --focus: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, .wordmark { font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; }

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 960px) {
  .layout { grid-template-columns: 1.1fr 1fr; }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem 16px 3rem;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .55) 0%, rgba(18, 18, 18, .8) 60%, var(--bg) 100%),
    url("/images/our-story-dancers.jpg") center / cover no-repeat;
}

@media (min-width: 960px) {
  .hero {
    padding: 2rem 3.5rem 4rem;
    justify-content: space-between;
    background:
      linear-gradient(90deg, rgba(18, 18, 18, .35) 0%, rgba(18, 18, 18, .85) 100%),
      url("/images/our-story-dancers.jpg") center / cover no-repeat;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  align-self: flex-start;
}

.logo-mark {
  display: inline-block;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  background-color: currentColor;
  -webkit-mask: url("/favicon-96x96.png") no-repeat center / contain;
  mask: url("/favicon-96x96.png") no-repeat center / contain;
}

.logo-mark.big { width: 3rem; height: 3rem; }

/* The brand is "Kumpas" in the source; the caps are only a look. */
.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-copy { max-width: 34rem; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.lede {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  color: #e0e0e0;
}

.perks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}

.perks li {
  position: relative;
  padding-left: 1.6rem;
  color: #e0e0e0;
}

.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .7rem;
  height: .7rem;
  border-radius: 2px;
  background: var(--text);
  transform: rotate(45deg) scale(.7);
}

/* Form panel */
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 3rem;
}

@media (min-width: 960px) {
  .panel { padding: 3rem 3.5rem; }
}

#form-view, .done {
  width: 100%;
  max-width: 30rem;
}

h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -.01em;
}

.muted { color: var(--muted); margin: .35rem 0 0; }

form { margin-top: 1.75rem; display: grid; gap: 1rem; }

.row { display: grid; gap: 1rem; }

@media (min-width: 480px) {
  .row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: .4rem; min-width: 0; }

label { font-size: .9rem; font-weight: 500; }

.optional { color: var(--muted); font-weight: 400; }

input:not([type="checkbox"]), select {
  width: 100%;
  min-height: 2.9rem;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .15s ease, background-color .15s ease;
}

select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b5b5b5' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
}

input::placeholder { color: #7a7a7a; }

input:hover, select:hover { border-color: #555; }

input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible, .check input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[aria-invalid="true"] { border-color: var(--error) !important; }

.error {
  margin: 0;
  min-height: 0;
  font-size: .85rem;
  color: var(--error);
}

.error:empty { display: none; }

.form-error { text-align: center; }

.divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: -.25rem 0;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.check {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: .9rem;
  color: #d6d6d6;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: .15rem 0 0;
  accent-color: #f5f5f5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 1rem/1 "DM Sans", ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.button:hover { opacity: .9; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .6; cursor: progress; }

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

form .button { width: 100%; margin-top: .25rem; }

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.done {
  display: grid;
  justify-items: start;
  gap: .75rem;
}

.done:focus { outline: none; }
.done .button { margin-top: 1rem; }

.footer {
  padding: 1.5rem 16px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid #222;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
