:root {
  --koza-purple: #5b2a86;
  --koza-orange: #ff7417;
  --koza-white: #fff;
  --koza-dark: #171526;
  --koza-text: #24153f;
  --koza-muted: #6f6b78;
  --koza-light: #f7f5f2;
  --koza-tint: #f6f3fb;
  --koza-border: #eae5f0;
  --koza-danger: #a63120;
  --koza-success: #2f6b3c;
  --koza-shadow: 0 20px 60px rgb(36 21 63 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--koza-text);
  background: var(--koza-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font: inherit;
}

button,
input {
  color: inherit;
}

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

a {
  color: var(--koza-purple);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
ul,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--koza-text);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.6rem, 10vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 7vw, 2.8rem);
}

h3 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}

:focus-visible {
  outline: 3px solid var(--koza-purple);
  outline-offset: 4px;
}

.koza-skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--koza-white);
  background: var(--koza-purple);
  transform: translateY(-160%);
}

.koza-skip-link:focus {
  transform: translateY(0);
}

.koza-container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.koza-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(234 229 240 / 88%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.koza-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.koza-brand {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  color: var(--koza-text);
  text-decoration: none;
}

.koza-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
}

.koza-brand span {
  display: grid;
}

.koza-brand strong {
  font-size: 0.92rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.koza-brand small {
  color: var(--koza-muted);
  font-size: 0.72rem;
}

.koza-header__nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.koza-messages {
  padding-top: 12px;
}

.koza-message {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--koza-border);
  border-radius: 12px;
  background: var(--koza-tint);
}

.koza-message--error {
  border-color: rgb(166 49 32 / 35%);
  color: var(--koza-danger);
  background: #fff5f3;
}

.koza-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 14%, rgb(255 116 23 / 15%), transparent 30rem),
    linear-gradient(145deg, var(--koza-tint), var(--koza-white) 72%);
}

.koza-hero::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border: 46px solid rgb(91 42 134 / 5%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.koza-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding-block: 48px 24px;
}

.koza-hero__copy {
  max-width: 650px;
}

.koza-eyebrow {
  margin-bottom: 10px;
  color: var(--koza-purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.koza-hero h1 {
  max-width: 11ch;
  margin-bottom: 12px;
  font-family: Oswald, "Arial Narrow", Inter, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.koza-hero__lead {
  margin-bottom: 12px;
  color: var(--koza-purple);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 800;
}

.koza-hero__text {
  max-width: 44rem;
  margin-bottom: 24px;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.koza-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.koza-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.koza-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.koza-button--primary {
  color: var(--koza-dark);
  background: var(--koza-orange);
  box-shadow: 0 12px 30px rgb(255 116 23 / 24%);
}

.koza-button--primary:not(:disabled):hover {
  box-shadow: 0 16px 34px rgb(255 116 23 / 32%);
}

.koza-button--secondary {
  border-color: var(--koza-purple);
  color: var(--koza-purple);
  background: var(--koza-white);
}

.koza-button:disabled,
.koza-button[aria-disabled="true"] {
  border-color: var(--koza-border);
  color: var(--koza-muted);
  background: #ebe8ec;
  box-shadow: none;
  cursor: not-allowed;
}

.koza-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 750;
}

.koza-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 750;
}

.koza-status--neutral {
  color: var(--koza-text);
  background: var(--koza-border);
}

.koza-hero__visual {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgb(91 42 134 / 5%), rgb(255 116 23 / 9%));
}

.koza-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}

.koza-section {
  padding-block: 56px;
}

.koza-registration {
  background: var(--koza-light);
  scroll-margin-top: 88px;
}

.koza-section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.koza-section-heading h2 {
  margin-bottom: 12px;
}

.koza-section-heading > :last-child {
  margin-bottom: 0;
  color: var(--koza-muted);
}

.koza-form {
  padding: 20px;
  border: 1px solid var(--koza-border);
  border-radius: 24px;
  background: var(--koza-white);
  box-shadow: var(--koza-shadow);
}

.koza-error-summary {
  margin-bottom: 24px;
  padding: 16px;
  border: 2px solid var(--koza-danger);
  border-radius: 14px;
  color: var(--koza-danger);
  background: #fff5f3;
}

.koza-error-summary h3 {
  margin-bottom: 8px;
  color: var(--koza-danger);
}

.koza-error-summary ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.koza-error-summary a {
  color: inherit;
}

.koza-form__layout {
  display: grid;
  gap: 24px;
}

.koza-form__fields {
  min-width: 0;
}

.koza-form-section {
  min-width: 0;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
}

.koza-form-section + .koza-form-section {
  padding-top: 28px;
  border-top: 1px solid var(--koza-border);
}

.koza-form-section legend {
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.3;
}

.koza-form-section__intro {
  margin-bottom: 20px;
  color: var(--koza-muted);
  font-size: 0.95rem;
}

.koza-field + .koza-field {
  margin-top: 18px;
}

.koza-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 750;
}

.koza-field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfc6d8;
  border-radius: 10px;
  background: var(--koza-white);
}

.koza-field input:hover {
  border-color: var(--koza-purple);
}

.koza-field input:focus-visible {
  border-color: var(--koza-purple);
  outline-offset: 1px;
}

.koza-field--error input,
.koza-field input[aria-invalid="true"] {
  border: 2px solid var(--koza-danger);
}

.koza-field-hint,
.koza-selection-status {
  margin: 6px 0 0;
  color: var(--koza-muted);
  font-size: 0.84rem;
}

.koza-field-error {
  margin-top: 6px;
  color: var(--koza-danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.koza-choice-grid {
  display: grid;
  gap: 10px;
}

.koza-choice-grid--frequency {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.koza-choice-grid--days {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.koza-choice,
.koza-day-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.koza-choice input,
.koza-day-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.koza-choice span,
.koza-day-choice span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid #cfc6d8;
  border-radius: 12px;
  background: var(--koza-white);
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.koza-choice span {
  flex-direction: column;
}

.koza-choice strong {
  color: var(--koza-purple);
  font-size: 1.25rem;
  line-height: 1;
}

.koza-choice small,
.koza-day-choice small {
  color: var(--koza-muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.koza-day-choice span {
  min-height: 60px;
  flex-direction: column;
}

.koza-day-choice strong {
  font-size: 1rem;
}

.koza-choice:hover span,
.koza-day-choice:hover span {
  border-color: var(--koza-purple);
}

.koza-choice input:focus-visible + span,
.koza-day-choice input:focus-visible + span {
  outline: 3px solid var(--koza-purple);
  outline-offset: 3px;
}

.koza-choice input:checked + span,
.koza-day-choice input:checked + span {
  border: 2px solid var(--koza-purple);
  color: var(--koza-purple);
  background: var(--koza-tint);
  box-shadow: inset 0 0 0 1px rgb(91 42 134 / 10%);
}

.koza-day-choice input:disabled + span {
  border-color: var(--koza-border);
  color: var(--koza-muted);
  background: #f1eef2;
  cursor: not-allowed;
}

.koza-plan-advice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--koza-orange);
  border-radius: 0 12px 12px 0;
  color: var(--koza-text);
  background: #fff8f2;
  font-size: 0.92rem;
}

.koza-consents {
  padding-bottom: 0;
}

.koza-consent {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--koza-border);
  border-radius: 14px;
}

.koza-consent + .koza-consent {
  margin-top: 12px;
}

.koza-consent > input {
  width: 44px;
  height: 44px;
  margin: 0;
  accent-color: var(--koza-purple);
}

.koza-consent label {
  font-weight: 700;
  cursor: pointer;
}

.koza-consent p {
  margin: 5px 0 0;
  font-size: 0.83rem;
}

.koza-consent--error {
  border: 2px solid var(--koza-danger);
  background: #fff5f3;
}

.koza-optional {
  color: var(--koza-muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.koza-plan-preview {
  align-self: start;
  padding: 20px;
  border: 1px solid #dcd2e7;
  border-radius: 20px;
  background: var(--koza-tint);
}

.koza-plan-preview h3 {
  margin-bottom: 10px;
}

.koza-plan-preview__summary {
  margin-bottom: 18px;
  font-weight: 750;
}

.koza-calendar {
  overflow: hidden;
  border: 1px solid #dcd2e7;
  border-radius: 14px;
  background: var(--koza-white);
}

.koza-calendar__head,
.koza-calendar__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.koza-calendar__head {
  border-bottom: 1px solid var(--koza-border);
  color: var(--koza-muted);
  background: #fbfafc;
  font-size: 0.66rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.koza-calendar__head span {
  padding: 7px 2px;
}

.koza-calendar__week + .koza-calendar__week {
  border-top: 1px solid var(--koza-border);
}

.koza-calendar__day {
  position: relative;
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 5px 2px;
  border-right: 1px solid var(--koza-border);
  font-size: 0.75rem;
  text-align: center;
}

.koza-calendar__day:last-child {
  border-right: 0;
}

.koza-calendar__date {
  font-weight: 700;
}

.koza-calendar__month {
  color: var(--koza-muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.koza-calendar__day.is-training {
  color: var(--koza-success);
  background: #eef7f0;
}

.koza-calendar__check {
  position: absolute;
  top: 2px;
  right: 3px;
  color: var(--koza-success);
  font-size: 0.72rem;
  font-weight: 900;
}

.koza-plan-preview__note {
  margin: 12px 0 0;
  color: var(--koza-muted);
  font-size: 0.78rem;
}

.koza-form__submit {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--koza-border);
  text-align: center;
}

.koza-form__submit .koza-button {
  width: 100%;
  max-width: 420px;
}

.koza-form__submit p {
  margin: 0;
  color: var(--koza-muted);
  font-size: 0.82rem;
}

.koza-state-section {
  min-height: calc(100vh - 260px);
  background: var(--koza-light);
}

.koza-state-container {
  display: grid;
  min-height: 55vh;
  place-items: center;
}

.koza-state-card {
  width: min(100%, 680px);
  padding: 28px 20px;
  border: 1px solid var(--koza-border);
  border-radius: 24px;
  background: var(--koza-white);
  box-shadow: var(--koza-shadow);
  text-align: center;
}

.koza-state-card__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--koza-purple);
  background: var(--koza-tint);
  font-size: 1.9rem;
  font-weight: 900;
}

.koza-state-card--success .koza-state-card__icon {
  color: var(--koza-white);
  background: var(--koza-success);
}

.koza-state-card--error .koza-state-card__icon {
  color: var(--koza-white);
  background: var(--koza-danger);
}

.koza-state-card h1,
.koza-state-card h2 {
  margin-bottom: 14px;
}

.koza-state-card h1 {
  font-size: clamp(2rem, 9vw, 3.5rem);
}

.koza-state-card__lead {
  font-size: 1.12rem;
  font-weight: 700;
}

.koza-state-card__secondary,
.koza-security-note {
  color: var(--koza-muted);
  font-size: 0.88rem;
}

.koza-state-card > :last-child {
  margin-bottom: 0;
}

.koza-resend-form {
  margin-block: 22px 12px;
}

.koza-inline-state {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.koza-inline-state--success {
  color: var(--koza-success);
  background: #eef7f0;
}

.koza-inline-state--error {
  color: var(--koza-danger);
  background: #fff5f3;
}

.koza-inline-state--neutral {
  color: var(--koza-text);
  background: var(--koza-tint);
}

.koza-result-list {
  display: grid;
  gap: 1px;
  margin-block: 24px;
  overflow: hidden;
  border: 1px solid var(--koza-border);
  border-radius: 16px;
  background: var(--koza-border);
  text-align: left;
}

.koza-result-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 12px 14px;
  background: var(--koza-white);
}

.koza-result-list dt {
  color: var(--koza-muted);
}

.koza-result-list dd {
  margin: 0;
  font-weight: 750;
}

.koza-document {
  background: var(--koza-light);
}

.koza-document__container {
  max-width: 850px;
  padding: 24px 20px;
  border: 1px solid var(--koza-border);
  border-radius: 24px;
  background: var(--koza-white);
}

.koza-document__header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--koza-border);
}

.koza-document__header h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.koza-document__lead {
  color: var(--koza-purple);
  font-size: 1.08rem;
  font-weight: 750;
}

.koza-working-notice {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--koza-orange);
  border-radius: 0 12px 12px 0;
  background: #fff8f2;
}

.koza-legal-pending {
  display: block;
  margin-top: 6px;
  color: var(--koza-muted);
}

.koza-legal-content {
  overflow-wrap: anywhere;
}

.koza-legal-content h2,
.koza-legal-content h3,
.koza-legal-content h4,
.koza-legal-content h5,
.koza-legal-content h6 {
  margin: 32px 0 14px;
}

.koza-legal-content h2 {
  font-size: clamp(1.55rem, 5vw, 2rem);
}

.koza-legal-content h3 {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
}

.koza-legal-content p,
.koza-legal-content li,
.koza-legal-content td,
.koza-legal-content th {
  font-size: 1.02rem;
}

.koza-legal-content li + li {
  margin-top: 8px;
}

.koza-legal-content table {
  display: block;
  max-width: 100%;
  margin-block: 24px;
  overflow-x: auto;
  border-collapse: collapse;
}

.koza-legal-content th,
.koza-legal-content td {
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid var(--koza-border);
  text-align: left;
  vertical-align: top;
}

.koza-legal-content th {
  color: var(--koza-purple);
  background: var(--koza-tint);
}

.koza-document section + section {
  margin-top: 36px;
}

.koza-document section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 5vw, 2rem);
}

.koza-document section p,
.koza-document section li {
  font-size: 1.02rem;
}

.koza-document section li + li {
  margin-top: 8px;
}

.koza-document blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 5px solid var(--koza-purple);
  color: var(--koza-purple);
  background: var(--koza-tint);
  font-size: 1.2rem;
  font-weight: 800;
}

.koza-document__actions {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--koza-border);
}

.koza-footer {
  color: var(--koza-white);
  background: var(--koza-dark);
}

.koza-footer__inner {
  display: grid;
  gap: 24px;
  padding-block: 30px;
}

.koza-footer p {
  margin: 4px 0 0;
  color: #c9c3d1;
  font-size: 0.84rem;
}

.koza-footer nav {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.koza-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--koza-white);
  font-size: 0.84rem;
}

.koza-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 600px) {
  .koza-container {
    width: min(100% - 56px, 1200px);
  }

  .koza-header__inner {
    min-height: 82px;
  }

  .koza-brand img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .koza-brand strong {
    font-size: 1rem;
  }

  .koza-hero__inner {
    padding-block: 64px 38px;
  }

  .koza-hero__visual {
    min-height: 390px;
  }

  .koza-section {
    padding-block: 72px;
  }

  .koza-form {
    padding: 32px;
  }

  .koza-choice-grid--frequency {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .koza-choice-grid--days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .koza-state-card {
    padding: 42px;
  }

  .koza-document__container {
    padding: 44px 48px;
  }

  .koza-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .koza-footer nav {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .koza-container {
    width: min(100% - 64px, 1200px);
  }

  .koza-hero__inner {
    min-height: 650px;
    grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
    align-items: center;
    gap: 32px;
    padding-block: 64px;
  }

  .koza-hero__visual {
    min-height: 520px;
  }

  .koza-form__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 32px;
  }

  .koza-plan-preview {
    position: sticky;
    top: 106px;
  }

  .koza-form__submit {
    margin-top: 32px;
  }
}

@media (max-width: 479px) {
  .koza-brand small {
    display: none;
  }

  .koza-header__nav a {
    max-width: 96px;
    font-size: 0.77rem;
    line-height: 1.25;
    text-align: right;
  }

  .koza-choice-grid--frequency .koza-choice:nth-child(4),
  .koza-choice-grid--frequency .koza-choice:nth-child(5) {
    grid-column: span 1;
  }

  .koza-day-choice small {
    display: none;
  }

  .koza-result-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
