/* Gate page — sits atop the main stylesheet. Uses the same khaki / night /
   copper palette and serif display so the branding is consistent. */

.gate-body {
  background: linear-gradient(to bottom, var(--khaki-lightest), var(--khaki-light));
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.gate-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}
.gate-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(176, 122, 58, .09), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(21, 30, 50, .08), transparent 60%);
  pointer-events: none;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--khaki-lightest);
  border: 1px solid var(--khaki);
  padding: 48px 48px 40px;
  box-shadow: var(--shadow-md);
}
.gate-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 96px; height: 4px;
  background: var(--copper);
}
@media (max-width: 560px) {
  .gate-card { padding: 36px 28px 32px; }
}

.gate-brand {
  display: inline-block;
  margin-bottom: 36px;
}
.gate-brand svg { width: 160px; height: auto; }
.gate-brand .brand-text { fill: var(--night); transition: fill .25s ease; }
.gate-brand .brand-c path { fill: var(--copper-dark); transition: fill .25s ease; }
.gate-brand:hover .brand-text,
.gate-brand:hover .brand-c path { fill: var(--copper-light); }

.gate-eyebrow { margin: 0 0 10px; }
.gate-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0;
  color: var(--night-dark);
}
.gate-card .rule {
  width: 36px;
  height: 2px;
  background: var(--copper);
  margin: 18px 0 20px;
}
.gate-lede {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--night);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 50ch;
}

/* form ------------------------------------------------------------ */

.gate-form {
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper-dark);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--night-dark);
  background: var(--khaki-lightest);
  border: 1px solid var(--khaki-darker);
  border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--copper);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176, 122, 58, .18);
}
.field input[aria-invalid="true"] {
  border-color: #a6532c;
  background: #fdf3ec;
}

.field-error {
  margin: 6px 0 0;
  color: #a6532c;
  font-size: .82rem;
  min-height: 1em;
}
.field-error:empty { display: none; }

.field-check {
  margin-top: 6px;
  padding: 16px;
  background: var(--khaki-light);
  border: 1px solid var(--khaki);
  border-radius: var(--radius);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--night-dark);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--copper);
  border-radius: 3px;
  background: var(--khaki-lightest);
  cursor: pointer;
  position: relative;
  transition: background .12s ease;
}
.check-row input[type="checkbox"]:checked {
  background: var(--copper);
}
.check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--khaki-lightest);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(176, 122, 58, .25);
}
.check-row span { flex: 1; }

.gate-submit {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

.gate-form-error {
  color: #a6532c;
  font-size: .88rem;
  min-height: 1em;
  margin: 10px 0 0;
  text-align: center;
}
.gate-form-error.is-success { color: #316a52; }
.gate-form-error:empty { display: none; }

/* disclosure ------------------------------------------------------ */

.gate-disclosure {
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--khaki);
}
.gate-disclosure summary {
  list-style: none;
  cursor: pointer;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper-dark);
  padding-right: 26px;
  position: relative;
}
.gate-disclosure summary::-webkit-details-marker { display: none; }
.gate-disclosure summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--copper);
  border-bottom: 1.5px solid var(--copper);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.gate-disclosure[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.gate-disclosure p {
  font-size: .78rem;
  color: var(--night-lighter);
  margin: 12px 0 0;
  line-height: 1.6;
}

.gate-meta {
  margin: 24px 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--khaki-darker);
}
.gate-meta a { color: var(--copper-dark); }
.gate-meta a:hover { color: var(--copper-light); }

/* chooser ---------------------------------------------------------- */

.chooser-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  background: var(--khaki-lightest);
  border: 1px solid var(--khaki);
  padding: 48px 48px 40px;
  box-shadow: var(--shadow-md);
}
.chooser-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 96px; height: 4px;
  background: var(--copper);
}
@media (max-width: 600px) {
  .chooser-card { padding: 36px 28px 32px; }
}

.chooser-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .chooser-tiles { grid-template-columns: 1fr; }
}

.chooser-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 22px;
  background: var(--khaki-lightest);
  border: 1px solid var(--khaki-darker);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--night-dark);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
  position: relative;
}
.chooser-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--copper);
  transition: width .25s ease;
}
.chooser-tile:hover {
  border-color: var(--copper);
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.chooser-tile:hover::before { width: 56px; }

.chooser-tile-eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper-dark);
}
.chooser-tile-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--night-dark);
}
.chooser-tile-body {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--night);
  flex: 1;
}
.chooser-tile-cta {
  margin-top: 12px;
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--copper-dark);
}
.chooser-tile:hover .chooser-tile-cta { color: var(--copper-light); }
