/* Sterivox — design tokens & layout */
:root {
  --radius: 0.625rem;
  --background: oklch(0.99 0.01 160);
  --foreground: oklch(0.25 0.05 160);
  --primary: oklch(0.45 0.08 160);
  --primary-foreground: oklch(0.98 0.01 160);
  --secondary: oklch(0.94 0.03 160);
  --secondary-foreground: oklch(0.25 0.05 160);
  --muted-foreground: oklch(0.45 0.04 160);
  --border: oklch(0.9 0.02 160);
  --input: oklch(0.9 0.02 160);
  --primary-muted: color-mix(in oklch, var(--primary) 10%, transparent);
  --primary-subtle: color-mix(in oklch, var(--primary) 5%, transparent);
  --secondary-muted: color-mix(in oklch, var(--secondary) 50%, transparent);
  --secondary-footer: color-mix(in oklch, var(--secondary) 30%, transparent);
  --header-bg: color-mix(in oklch, var(--background) 95%, transparent);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

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

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

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page--register {
  background: var(--secondary-muted);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo img {
  height: 5rem;
  width: auto;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Header actions + language switcher */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 0.25rem);
  overflow: hidden;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch__btn + .lang-switch__btn {
  border-left: 1px solid var(--border);
}

.lang-switch__btn:hover {
  color: var(--foreground);
}

.lang-switch__btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.btn--primary:hover {
  filter: brightness(1.08);
}

.btn--secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.btn--secondary:hover {
  filter: brightness(0.97);
}

.btn--outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  padding: 0.5rem 1rem;
}

.btn--outline:hover {
  background: var(--secondary);
}

.btn--lg {
  padding: 0.625rem 2rem;
  font-size: 1.125rem;
  min-height: 2.5rem;
}

.btn--block {
  width: 100%;
}

.btn--tall {
  min-height: 3rem;
  font-size: 1rem;
}

.link-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.link-back:hover {
  color: var(--foreground);
}

.link-back .icon {
  margin-right: 0.5rem;
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--xl {
  width: 2rem;
  height: 2rem;
}

.icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrap--sm {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.25rem;
}

.icon-wrap--success {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
}

/* Main */
main {
  flex: 1;
}

.section {
  padding-block: 4rem;
}

.section--hero {
  padding-block: 3rem;
}

.section--muted {
  background: var(--secondary-muted);
}

.section--cta-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }

  .section--hero {
    padding-block: 6rem;
  }
}

@media (min-width: 1024px) {
  .section--hero {
    padding-block: 8rem;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-title--center {
  text-align: center;
}

.section-title .accent {
  color: var(--primary);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0;
}

.section-lead--center {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.section-intro {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.section-intro .section-lead {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* Hero */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--foreground);
}

.hero__text {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 37.5rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.hero__media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  aspect-ratio: 4 / 3;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

  .hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem;
  }

  .hero__media {
    aspect-ratio: auto;
    height: 600px;
  }
}

/* Grids */
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
}

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

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .grid-2--reverse .grid-2__media {
    order: 1;
  }

  .grid-2--reverse .grid-2__content {
    order: 2;
  }
}

/* Cards */
.card {
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.card--flat {
  border: none;
}

.card--shadow-lg {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.card__body {
  padding: 1.5rem;
  padding-top: 1.5rem;
}

.card__body--spaced > * + * {
  margin-top: 1rem;
}

.card__header {
  padding: 1.5rem 1.5rem 0.5rem;
  text-align: center;
}

.card__footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--secondary) 10%, transparent);
  text-align: center;
}

.card__footer--plain {
  border-top: none;
  background: transparent;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.card__desc {
  color: var(--muted-foreground);
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 0.9375rem;
}

.feature-card p.note {
  font-size: 0.8em;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Why section */
.media-box {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  aspect-ratio: 1;
}

.media-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .media-box {
    aspect-ratio: 4 / 3;
  }
}

.benefit-list > * + * {
  margin-top: 1.5rem;
}

.benefit {
  display: flex;
  gap: 1rem;
}

.benefit h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.benefit p {
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* Pricing banner */
.pricing-banner {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1.5rem;
  padding: 2rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.pricing-banner__lead {
  opacity: 0.9;
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
}

.pricing-panel {
  background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.pricing-panel h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.check-list li:last-child {
  margin-bottom: 0;
}

.pricing-panel__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklch, var(--primary-foreground) 20%, transparent);
  font-size: 1.125rem;
}

.pricing-panel__price {
  font-weight: 700;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-banner {
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
  }

  .pricing-panel {
    padding: 2rem;
  }
}

/* CTA stats */
.cta-inner {
  max-width: 56rem;
  margin-inline: auto;
}

.cta-inner > * + * {
  margin-top: 3rem;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3rem;
  }
}

.stat-grid {
  display: grid;
  gap: 2rem;
  padding-block: 2rem;
  border-block: 1px solid var(--border);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-value {
    font-size: 3rem;
  }
}

.stat-label {
  font-weight: 500;
  margin: 0.25rem 0;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--secondary-footer);
  padding-block: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Register page */
.register-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.register-wrap {
  width: 100%;
  max-width: 28rem;
}

.register-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.register-intro h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.register-intro p {
  color: var(--muted-foreground);
  margin: 0;
}

.form-stack > * + * {
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field > * + * {
  margin-top: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
}

.field input {
  width: 100%;
  height: 2.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font: inherit;
  background: var(--background);
}

.field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form-footer-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.form-footer-text a {
  color: var(--primary);
  font-weight: 500;
}

.form-footer-text a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.field--honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: color-mix(in oklch, oklch(0.55 0.2 30) 10%, transparent);
  border: 1px solid color-mix(in oklch, oklch(0.55 0.2 30) 20%, transparent);
  color: oklch(0.4 0.18 30);
  font-size: 0.875rem;
  margin: 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.text-primary {
  color: var(--primary);
}

.link-primary {
  color: var(--primary);
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: underline;
}
