:root {
  color-scheme: dark;
  --void: #070a09;
  --base: #0b110e;
  --base-2: #0e1512;
  --raise: #121b16;
  --raise-2: #18241e;
  --line: rgba(244, 231, 197, 0.10);
  --line-2: rgba(244, 231, 197, 0.20);
  --hair: rgba(255, 255, 255, 0.06);
  --ink: #f3f0e4;
  --ink-soft: rgba(243, 240, 228, 0.74);
  --muted: #98a49a;
  --muted-2: #6f7c73;
  --green: #2f9c77;
  --green-bright: #46c191;
  --green-deep: #103a30;
  --green-line: rgba(47, 156, 119, 0.42);
  --gold: #d4ab59;
  --gold-soft: #f4e7c5;
  --error: #ec8b7d;
  --success: #57cb8e;
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(47, 156, 119, 0.32);
  color: #fff;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* ---------- Brand / hero panel ---------- */
.brand-panel {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--void);
  color: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: clamp(36px, 5vw, 78px);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.06) brightness(0.82);
}

.hero-scrim {
  background:
    radial-gradient(120% 90% at 12% 96%, rgba(47, 156, 119, 0.26), transparent 52%),
    radial-gradient(90% 70% at 90% 6%, rgba(212, 171, 89, 0.12), transparent 60%),
    linear-gradient(90deg, rgba(7, 10, 9, 0.35), rgba(7, 10, 9, 0.72)),
    linear-gradient(0deg, rgba(7, 10, 9, 0.95), rgba(7, 10, 9, 0.18) 62%);
}

.brand-copy {
  position: relative;
  max-width: 600px;
}

.brand-logo {
  width: min(180px, 48vw);
  height: auto;
  display: block;
  margin: 0 0 28px;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.6));
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
.lede {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 5.1vw, 5.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.4vw, 1.28rem);
  line-height: 1.5;
  max-width: 30ch;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-status span {
  border: 1px solid rgba(244, 231, 197, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(8, 12, 10, 0.5);
  backdrop-filter: blur(6px);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.delivery-summary div {
  border: 1px solid rgba(244, 231, 197, 0.16);
  border-radius: 12px;
  padding: 14px;
  background: rgba(8, 12, 10, 0.55);
  backdrop-filter: blur(8px);
}

.delivery-summary dt {
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.delivery-summary dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-note {
  margin: 20px 0 0;
  color: rgba(243, 240, 228, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Form panel ---------- */
.form-panel {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(47, 156, 119, 0.08), transparent 60%),
    linear-gradient(180deg, var(--base-2), var(--base));
  padding: clamp(30px, 4vw, 60px);
  overflow: visible;
}

.capture-form {
  width: min(100%, 740px);
  background: linear-gradient(180deg, var(--raise), var(--base-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 3vw, 44px);
  position: relative;
}

.capture-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(212, 171, 89, 0.5), transparent);
}

.form-heading {
  margin-bottom: 26px;
}

.form-brand {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.form-logo-frame,
.ops-logo-frame {
  border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 20%, #16221c, #070b09);
  border: 1px solid rgba(212, 171, 89, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.form-logo-frame {
  width: 76px;
  height: 76px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.form-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.form-intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.kicker {
  color: var(--green-bright);
  letter-spacing: 0.16em;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.info-block,
.rules-block,
.text-template {
  border-top: 1px solid var(--hair);
  padding-top: 20px;
  margin-top: 20px;
}

.section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: process;
  list-style: none;
}

.process-list li {
  min-width: 0;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, var(--raise-2), var(--raise));
  padding: 16px;
}

.process-list li > div {
  min-width: 0;
}

.process-list li::before {
  counter-increment: process;
  content: counter(process);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: #061009;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(47, 156, 119, 0.3);
}

.process-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.process-list span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.46;
}

.rules-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  gap: 18px;
  align-items: center;
}

.rules-block p,
.text-template p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

.rule-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rule-metrics span {
  min-height: 74px;
  border: 1px solid rgba(212, 171, 89, 0.32);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(212, 171, 89, 0.08), rgba(212, 171, 89, 0.02));
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule-metrics strong {
  display: block;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}

.text-template {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 22px;
}

.text-template p {
  border-left: 2px solid var(--gold);
  padding: 12px 14px;
  background: var(--void);
  border-radius: 0 10px 10px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ---------- Fields ---------- */
.field,
.upload-field {
  display: grid;
  gap: 8px;
}

.field span,
.upload-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Reserve two lines so every upload box starts at the same height */
.upload-label {
  display: block;
  min-height: 2.3rem;
}

.field small {
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.4;
  min-height: 2.3rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field-grid,
.upload-grid,
.sms-consent-card,
.checks {
  margin-top: 16px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--void);
  color: var(--ink);
  padding: 13px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: var(--muted-2);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 156, 119, 0.16);
  background: var(--base-2);
}

.upload-field input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-box {
  min-height: 108px;
  border: 1px dashed rgba(244, 231, 197, 0.26);
  border-radius: 12px;
  background: var(--void);
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.upload-field:focus-within .upload-box,
.upload-field:hover .upload-box {
  border-color: var(--green);
  background: var(--base-2);
  box-shadow: 0 0 0 4px rgba(47, 156, 119, 0.12);
}

.upload-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--green-line);
  color: var(--green-bright);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 600;
}

.upload-text {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.upload-field-wide {
  grid-column: auto;
}

.checks {
  display: grid;
  gap: 14px;
}

.sms-consent-card {
  border: 1px solid rgba(212, 171, 89, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(212, 171, 89, 0.08), rgba(212, 171, 89, 0.03)),
    var(--void);
  padding: 16px;
}

.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.check input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.sms-check {
  color: var(--ink-soft);
}

.sms-check strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.submit-button {
  width: 100%;
  min-height: 58px;
  margin-top: 26px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #04130d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(47, 156, 119, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: filter 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 38px rgba(47, 156, 119, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
  box-shadow: none;
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-status.error {
  color: var(--error);
}

.form-status.success {
  color: var(--success);
}

.legal-links {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.legal-links a,
.legal-page a {
  color: var(--green-bright);
  font-weight: 600;
  text-decoration: none;
}

.legal-links a:hover,
.legal-page a:hover {
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */
.legal-body {
  background: linear-gradient(180deg, var(--base-2), var(--base));
}

.legal-page {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) 0;
}

.legal-back {
  display: inline-block;
  margin-bottom: 30px;
  text-decoration: none;
  color: var(--green-bright);
  font-weight: 600;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}

.legal-page h2 {
  margin: 38px 0 12px;
  color: var(--gold);
  font-size: 1.2rem;
}

.legal-page p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-updated {
  margin-top: 14px !important;
  color: var(--muted-2) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .site-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .brand-panel {
    padding: clamp(32px, 4vw, 56px);
  }

  .delivery-summary {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(146px, 1fr));
  }
}

@media (max-width: 980px) {
  .site-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .brand-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: 62vh;
    padding: 40px 26px;
  }

  .form-panel {
    min-height: auto;
    padding: 24px;
    align-items: flex-start;
  }

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

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

  .brand-copy {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .brand-panel {
    min-height: auto;
    padding: 34px 22px;
  }

  .brand-logo {
    width: min(168px, 56vw);
    margin-bottom: 20px;
  }

  .form-brand {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
  }

  .form-logo-frame {
    width: 68px;
    height: 68px;
  }

  .form-logo {
    width: 62px;
    height: 62px;
  }

  .field-grid,
  .upload-grid,
  .delivery-summary,
  .process-list {
    grid-template-columns: 1fr;
  }

  .rules-block {
    grid-template-columns: 1fr;
  }

  .rule-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capture-form {
    padding: 22px;
  }

  h1 {
    font-size: 2.9rem;
  }
}
