/* =========================================================
   hero.css
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 2rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 13, 10, 0.78) 0%,
    rgba(16, 13, 10, 0.62) 40%,
    rgba(16, 13, 10, 0.85) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

/* ---- Header row (brand + nav) ---- */

.hero__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0 3rem;
}

.hero__header .brand {
  justify-self: start;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: center;
}

.hero__nav a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.hero__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--think);
  transition: width 0.25s ease, left 0.25s ease;
}

.hero__nav a:hover {
  color: var(--cream);
}

.hero__nav a:hover::after {
  width: 100%;
  left: 0;
}

.hero__header-spacer {
  /* Reserves the right column so the fixed Reserve pill doesn't overlap nav */
  justify-self: end;
  width: 0;
}

/* ---- Floating top-right CTA pill ---- */

.hero__float-cta {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 100px;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, background 0.2s ease;
}

.hero__float-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}

/* ---- Layout ---- */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.hero__copy {
  max-width: 640px;
}

/* ---- Traffic-light pill ---- */

.tl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  background: rgba(16, 13, 10, 0.55);
  border: 1px solid var(--cream-line);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.tl-pill__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tl-pill__item .dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.tl-pill__sep {
  color: var(--cream-dim);
  padding: 0 0.15rem;
}

/* ---- Headline & sub ---- */

.hero__headline {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.hero__headline em {
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 0 1.5rem;
}

/* ---- Form card ---- */

.form-card {
  background: rgba(16, 13, 10, 0.75);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  max-width: 460px;
  justify-self: end;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-card__head {
  margin-bottom: 1.5rem;
}

.form-card__title {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.form-card__sub {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ---- Price row ---- */

.price-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cream-line);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.price__old {
  color: var(--cream-dim);
  text-decoration: line-through;
  font-size: 1rem;
}

.price__new {
  font-size: 2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-row .tag {
  margin-left: auto;
}

.price-note {
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
}

/* ---- Required marker on labels ---- */

.field__lbl .req {
  color: var(--think);
  margin-left: 2px;
}

/* ---- Footer of form ---- */

.form-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
  text-align: center;
}

.form-card__foot .lock {
  width: 14px;
  height: 14px;
  color: var(--cream-dim);
  flex-shrink: 0;
}

/* ---- Success state ---- */

.reg-success {
  text-align: center;
  padding: 1rem 0;
}

.reg-success__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--go-bg);
  color: var(--go);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.reg-success h3 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.reg-success p {
  color: var(--cream-dim);
  margin: 0;
  font-size: 0.95rem;
}
