/* Shared styles for BLAZET landing + waitlist workflow. */
:root {
  --ivory: #f8f6f2;
  --charcoal: #1f1f1f;
  --charcoal-muted: #3a3a3a;
  --maroon: #6f1d2b;
  --navy: #0d1b2a;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(0, 0, 0, 0.04);
  --max-width: 1080px;
  --radius: 12px;
  --transition: 240ms ease;
  --fade-duration: 640ms;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, rgba(13, 27, 42, 0.03), rgba(111, 29, 43, 0)) var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .brand-small {
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
  color: var(--charcoal-muted);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.section {
  margin: 44px 0;
}

.hero {
  margin-top: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.hero__text {
  display: grid;
  gap: 8px;
}

.brand {
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.05;
}

.tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.subtext {
  font-size: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--maroon);
}

.waitlist-form {
  display: grid;
  gap: 10px;
}

.hero__cta-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  align-content: start;
}

.note {
  font-size: 13px;
  color: rgba(31, 31, 31, 0.62);
  margin: 0;
}

.micro-urgency {
  font-weight: 600;
  color: var(--charcoal);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 56px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: rgba(13, 27, 42, 0.34);
  box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.08);
}

button:focus-visible,
.cta-button:focus-visible,
.link-button:focus-visible {
  outline: 3px solid rgba(13, 27, 42, 0.18);
  outline-offset: 3px;
}

button {
  padding: 14px 18px;
  border: 1px solid var(--navy);
  background: linear-gradient(135deg, var(--navy), #111a24);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #111a24, var(--navy));
}

button:active {
  transform: translateY(0);
}

.success {
  opacity: 0;
  font-size: 14px;
  color: var(--maroon);
  transition: opacity var(--transition);
  min-height: 20px;
}

.success--visible {
  opacity: 1;
}

.form-shell {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.field-grid {
  display: grid;
  gap: 12px;
}

select {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  color: var(--charcoal-muted);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.success-panel {
  display: none;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.06), rgba(111, 29, 43, 0.03));
  box-shadow: var(--shadow-soft);
}

.success-panel h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.success-panel p {
  margin: 0 0 6px;
}

.success-panel.is-visible {
  display: grid;
}

.success-sub {
  color: var(--charcoal);
}

.success-line {
  font-weight: 600;
  color: var(--navy);
}

.form-shell--success .note,
.form-shell--success .waitlist-form {
  display: none;
}

.link-button {
  border: none;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  padding: 8px 0 0;
  width: fit-content;
  box-shadow: none;
  text-decoration: underline;
}

.link-button:hover {
  transform: none;
  box-shadow: none;
  color: var(--maroon);
}

.is-hidden {
  display: none !important;
}

.value-props .cards {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
  border-color: rgba(13, 27, 42, 0.15);
}

.trust-line {
  text-align: center;
  padding: 18px;
  border: 1px dashed rgba(13, 27, 42, 0.14);
  border-radius: var(--radius);
  background: rgba(13, 27, 42, 0.02);
  color: var(--charcoal);
  font-weight: 600;
}

.cta {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.06), rgba(111, 29, 43, 0.04));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.cta__content h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  background: linear-gradient(135deg, var(--navy), #111a24);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #111a24, var(--navy));
}

.full-width {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: grid;
  gap: 6px;
  color: var(--charcoal-muted);
  font-size: 14px;
}

.tally__inner {
  padding: 18px;
  border: 1px dashed rgba(13, 27, 42, 0.14);
  border-radius: var(--radius);
  background: rgba(13, 27, 42, 0.02);
  box-shadow: var(--shadow-soft);
}

.tally__embed {
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.tally__embed iframe {
  width: 100%;
  min-height: 540px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--fade-duration) ease-out, transform var(--fade-duration) ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: rgba(31, 31, 31, 0.62);
}

.waitlist-body {
  min-height: 100vh;
  background: #0c0e10;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 28px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bg-blur {
  position: fixed;
  inset: 0;
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.08);
  opacity: 0.5;
}

.waitlist-shell {
  position: relative;
  width: min(720px, 100%);
  background: rgba(248, 246, 242, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  padding: 22px 18px 20px;
  backdrop-filter: blur(6px);
  z-index: 1;
  display: grid;
  gap: 14px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.waitlist-header {
  display: grid;
  gap: 4px;
}

.brand-small {
  font-size: 32px;
  margin: 0;
}

.multi-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.progress {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
}

.step {
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 340ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1), max-height 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
  flex: 1;
  min-height: 0;
}

.step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
}

@media (prefers-reduced-motion: reduce) {
  .step {
    transition: none;
  }
}

.step-title {
  font-size: 22px;
  margin-bottom: 2px;
}

.tile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
  min-height: 210px;
}

.tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tile__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}

.tile--text {
  justify-content: center;
  text-align: center;
  min-height: 210px;
  align-content: center;
  justify-items: center;
}

.tile__label {
  font-weight: 700;
  color: var(--charcoal);
  align-self: end;
}

.tile:hover {
  border-color: rgba(111, 29, 43, 0.25);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.07);
}

.tile:focus-within {
  outline: 2px solid rgba(13, 27, 42, 0.14);
  outline-offset: 3px;
}

.tile__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(111, 29, 43, 0.12);
  color: var(--maroon);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.tile input:checked ~ .tile__image,
.tile input:checked ~ .tile__label {
  box-shadow: inset 0 0 0 2px rgba(111, 29, 43, 0.45);
}

.tile input:checked ~ .tile__label {
  color: var(--navy);
}

.tile:has(input:checked) {
  border-color: rgba(111, 29, 43, 0.4);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.12);
}

.tile input:checked ~ .tile__check {
  opacity: 1;
  transform: scale(1);
  background: rgba(111, 29, 43, 0.18);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.chip:hover {
  border-color: rgba(111, 29, 43, 0.25);
  transform: translateY(-2px);
}

.chip__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.chip__check {
  margin-left: auto;
  opacity: 0;
  color: var(--maroon);
  font-weight: 700;
}

.chip.is-selected {
  border-color: rgba(111, 29, 43, 0.4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(111, 29, 43, 0.06), rgba(13, 27, 42, 0.04));
}

.chip.is-selected .chip__check {
  opacity: 1;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
}

.pill {
  padding: 12px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.pill:hover {
  border-color: rgba(111, 29, 43, 0.28);
  transform: translateY(-1px);
}

.pill.is-selected {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.14), rgba(13, 27, 42, 0.04));
  color: var(--navy);
  border-color: rgba(13, 27, 42, 0.26);
  box-shadow: var(--shadow-soft);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: rgba(248, 246, 242, 0.96);
  padding-top: 12px;
  padding-bottom: 12px;
}

.controls button {
  width: 100%;
}

.controls [data-submit] {
  grid-column: span 2;
}

.ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(13, 27, 42, 0.18);
  box-shadow: var(--shadow-soft);
}

.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost:hover:not(:disabled) {
  background: #f2efea;
  border-color: rgba(13, 27, 42, 0.26);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.ghost:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.controls button.is-hidden {
  display: none;
}

.celebration {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.celebration.is-visible {
  display: flex;
}

.celebration__hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.celebration__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 16, 0.5);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.celebration__content {
  position: relative;
  z-index: 2;
  background: rgba(248, 246, 242, 0.95);
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  text-align: center;
  max-width: 520px;
  width: min(520px, 90vw);
  display: grid;
  gap: 10px;
}

.celebration__subtitle {
  color: var(--charcoal);
  margin: 0;
}

.celebration__line {
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.heart {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.35;
  animation: floatUpOnce 6.5s ease-out forwards;
  animation-iteration-count: 1;
}

.heart svg {
  width: 100%;
  height: 100%;
}

.heart path {
  stroke: rgba(111, 29, 43, 0.58);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.heart--ivory path {
  stroke: rgba(248, 246, 242, 0.55);
}

@keyframes floatUpOnce {
  0% {
    transform: translateY(24vh) scale(0.9);
    opacity: 0;
  }
  35% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-55vh) scale(1);
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  button,
  .cta-button {
    transition: none;
  }
  .heart {
    animation: none;
    opacity: 0.32;
    transform: translateY(-40vh);
  }
}

@media (max-width: 430px), (max-height: 430px) {
  .waitlist-body {
    align-items: flex-start;
    padding-top: 18px;
  }

  .waitlist-shell {
    margin-top: 0;
    max-height: 92vh;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }

  .input-row {
    grid-template-columns: 1fr auto;
  }

  button {
    width: auto;
  }

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

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

  .cta {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .waitlist-shell {
    padding: 26px 26px 24px;
  }

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

  .tile__image {
    height: 180px;
  }
}
