/* Coupon redeem — matches main site dark rack look */

:root {
  --bg: oklch(0.1 0 0);
  --surface: oklch(0.145 0 0);
  --ink: oklch(0.96 0.01 252);
  --muted: oklch(0.72 0.02 252);
  --primary: oklch(0.58 0.14 252);
  --accent: oklch(0.78 0.12 75);
  --line: oklch(1 0 0 / 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.25rem;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      50% 40% at 70% 15%,
      color-mix(in oklch, var(--primary) 28%, transparent),
      transparent 70%
    ),
    radial-gradient(35% 30% at 15% 85%, oklch(0.35 0.08 252 / 0.22), transparent 70%),
    linear-gradient(180deg, oklch(0.12 0 0), var(--bg) 45%);
}

.site-header,
.page {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgb(0 0 0 / 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: calc(0.55rem + 3px);
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  flex-shrink: 0;
  height: clamp(1.65rem, 3.4vw, 2.05rem);
  aspect-ratio: 279.875 / 317.501;
  background-color: #fff;
  -webkit-mask-image: url("../assets/images/WS_logo_white-full_icon-only.svg");
  mask-image: url("../assets/images/WS_logo_white-full_icon-only.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.brand-text {
  display: block;
  height: clamp(1.15rem, 2.4vw, 1.45rem);
  width: auto;
  transform: translateY(calc(0.12em + 1px));
}

.brand-tagline {
  font-family: var(--font-sans);
  font-weight: 100;
  font-size: clamp(0.67rem, 1.35vw, 0.8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  transform: translateY(-1px);
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 901px) {
  .page {
    align-content: start;
    place-items: start center;
    padding-top: 1.25rem;
    min-height: calc(100vh - var(--header-h));
  }
}

.panel {
  width: min(100%, 26rem);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
}

.icon-wrap {
  display: grid;
  place-items: center;
  margin: 0 auto 1.35rem;
  border: 0;
  background: none;
  color: var(--primary);
}

.icon-wrap .lucide {
  width: 7.5rem;
  height: 7.5rem;
  stroke-width: 1.15;
  display: block;
}

h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 100;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  width: 100%;
}

.lede {
  margin: 0 0 0.75rem;
  color: var(--muted);
  text-wrap: pretty;
  width: 100%;
}

form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
  width: 100%;
  text-align: left;
}

label {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: oklch(1 0 0 / 0.04);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: color-mix(in oklch, var(--primary) 70%, white);
  background: oklch(1 0 0 / 0.06);
}

button[type="submit"] {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  background: var(--primary);
  color: oklch(0.12 0 0);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

button[type="submit"] .lucide {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  outline: none;
}

#message {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

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