:root {
  --navy: #1B2740;
  --navy-mid: #2C3D5E;
  --navy-soft: #3A4D71;
  --gray: #8B8C86;
  --gray-light: #C9C8C0;
  --gold: #F2B33D;
  --gold-dim: #C4922C;
  --bg: #F5F4F0;
  --card: #FFFFFF;
  --ink: #1B2740;
  --ink-soft: #5B5F6A;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { box-shadow: 0 8px 20px rgba(242, 179, 61, 0.35); }

/* Hero section */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 100px 32px 130px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 60%;
  height: 160%;
  background: var(--navy-mid);
  transform: rotate(18deg);
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -32%;
  width: 34%;
  height: 160%;
  background: var(--navy-soft);
  transform: rotate(18deg);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero-chevron {
  width: 64px;
  height: 56px;
  margin: 0 auto 28px;
}

.hero-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 28px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  margin-bottom: 6px;
}

.hero .sub-brand {
  color: var(--gold);
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
}

.hero-divider {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 26px;
  border-radius: 2px;
}

.hero p.lede {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

.hero-ctas .btn { padding: 15px 28px; font-size: 15px; }

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
}
.hero-tags span { display: flex; align-items: center; gap: 8px; }
.hero-tags .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Section shared */
section { padding: 96px 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
}

/* How it works section */
.how {
  background: var(--card);
  border-top: 1px solid rgba(27,39,64,0.08);
  border-bottom: 1px solid rgba(27,39,64,0.08);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  padding-left: 4px;
}

.step-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 46px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gray-light);
  line-height: 1;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 10px;
  text-transform: none;
}

.step p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Conditions toggle */
.conditions-toggle {
  display: block;
  margin: 40px auto 0px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.conditions-toggle:hover {
  box-shadow: 0 8px 20px rgba(242, 179, 61, 0.35);
  transform: translateY(-1px);
}
.conditions-toggle.active {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dim);
}

/* conditions grid */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 64px;
  justify-content: center;
}

#conditionsGrid {
  padding-top: 10px;
  margin-top: 48px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#conditionsGrid.expanded {
  max-height: 2100px;
}

#conditionsVisible {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 48px;
}

.condition-card {
  background: var(--card);
  border: 1px solid rgba(27,39,64,0.08);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.condition-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(27,39,64,0.08);
}

.icon-badge {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(27,39,64,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  flex-shrink: 0;
}

.condition-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.condition-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Contact section */
.contact-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 100px 32px 130px;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 60%;
  height: 160%;
  background: var(--navy-mid);
  transform: rotate(18deg);
}

.contact-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -32%;
  width: 34%;
  height: 160%;
  background: var(--navy-soft);
  transform: rotate(18deg);
  opacity: 0.55;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.contact-inner h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 14px;
}

.contact-inner p {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.contact-form .btn {
  align-self: center;
  padding: 15px 40px;
  margin-top: 10px;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-message {
  display: none;
  font-size: 12px;
  color: #ffcccb;
  margin-top: 4px;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ffcccb !important;
  background: rgba(255, 204, 203, 0.1) !important;
}

.form-group.error .error-message {
  display: block;
}

/* Image protection */
img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

img::selection { background: transparent; }

/* Responsive */
@media (max-width: 1024px) {
  .condition-grid { grid-template-columns: repeat(3, 1fr); }
  #conditionsGrid.expanded { max-height: 2000px; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  #conditionsVisible { grid-template-columns: repeat(2, 1fr); }
  #conditionsGrid.expanded { max-height: 2800px; }
  .hero { padding: 60px 32px 80px; }
  .contact-hero { padding: 60px 32px 80px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .hero { padding: 60px 20px 80px; }
  .contact-hero { padding: 60px 20px 80px; }
  .section-head { margin: 0 auto 40px; }
  .condition-grid { grid-template-columns: 1fr; }
  #conditionsVisible { grid-template-columns: 1fr; }
  #conditionsGrid.expanded { max-height: 3000px; }
  .steps { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
