/* ============================================================
   REEF Valley — sales landing page
   Design system carried over from the investor deck.
   ============================================================ */

:root {
  --teal:       #0A3B4A;
  --teal-mid:   #16536A;
  --teal-line:  #1F5A6B;
  --coral:      #E8593D;
  --coral-dark: #D14A30;
  --sand:       #F5F1EA;
  --charcoal:   #1A1A1A;
  --muted:      #6B7378;
  --muted-teal: #7FA3AC;
  --pale-teal:  #B8CBD1;
  --rule:       #D9D2C4;
  --white:      #FFFFFF;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- type ---------- */

.kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--coral { color: var(--coral); }

.h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--teal);
}
.h2 em { font-style: italic; color: var(--coral); }
.h2--light { color: var(--sand); }

.lede {
  max-width: 640px;
  margin: 0 0 48px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.lede--light { color: var(--pale-teal); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--coral-dark); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: 11px 20px; font-size: 12px; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal);
  border-bottom: 1px solid var(--teal-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--coral); }
.brand__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--sand);
}
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--pale-teal);
  text-decoration: none;
}
.nav__links a:hover { color: var(--sand); }

/* ---------- hero ---------- */

.hero {
  background: var(--teal);
  border-top: 6px solid var(--coral);
}
.hero__inner { padding: 110px 32px 90px; }

.hero__title {
  margin: 0 0 28px;
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--sand);
}
.hero__title em { font-style: italic; color: var(--coral); }

.hero__lede {
  max-width: 640px;
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--pale-teal);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--sand); }
.hero__note {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted-teal);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 72px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--teal-line);
  list-style: none;
}
.stats__num {
  display: block;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--coral);
}
.stats__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-teal);
}

.hero__strip {
  padding: 20px 0;
  background: var(--coral);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- sections ---------- */

.section { padding: 110px 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal); }

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

/* ---------- problems ---------- */

.problems { background: var(--rule); border: 1px solid var(--rule); }
.prob { padding: 40px 34px; background: var(--sand); }
.prob__n {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--coral);
}
.prob h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  color: var(--teal);
}
.prob p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- loop ---------- */

.loop {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
  margin-top: 24px;
}
.loop__step { padding-right: 8px; }
.loop__n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--sand);
}
.loop__step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--pale-teal); }
.loop__arrow {
  padding-top: 12px;
  text-align: center;
  font-size: 26px;
  color: var(--coral);
}

.promise {
  margin: 72px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--teal-line);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--sand);
}

/* ---------- platform cards ---------- */

.cards { background: var(--rule); border: 1px solid var(--rule); }
.card { position: relative; padding: 40px 34px; background: var(--white); }
.card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--teal);
}
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card--teal { background: var(--teal); }
.card--teal h3 { color: var(--sand); }
.card--teal p { color: var(--pale-teal); }
.badge {
  position: absolute;
  top: 34px;
  right: 30px;
  padding: 5px 12px;
  background: var(--coral);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- pricing ---------- */

.pricing { gap: 24px; }
.price {
  padding: 44px 34px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.price h3 {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.price__tag {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--teal);
}
.price p:last-child { margin: 0; font-size: 16px; color: var(--muted); }
.price--coral { background: var(--coral); border-color: var(--coral); }
.price--coral h3,
.price--coral .price__tag { color: var(--white); }
.price--coral p:last-child { color: rgba(255,255,255,.88); }

/* ---------- who ---------- */

.who {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.who__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.who__list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
  color: var(--teal);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__meta {
  margin: 0;
  padding-top: 8px;
}
.contact__meta > div {
  padding: 24px 0;
  border-top: 1px solid var(--teal-line);
}
.contact__meta dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-teal);
}
.contact__meta dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--sand);
}

.formcard {
  padding: 44px 40px;
  background: var(--sand);
}

.field { margin-bottom: 24px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--charcoal);
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field input::placeholder,
.field textarea::placeholder { color: #A9A49B; }

.field__error {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--coral);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--coral); }
.field.is-invalid .field__error { display: block; }

/* ---------- thanks ---------- */

.thanks { text-align: center; padding: 20px 0 8px; }
.thanks__mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 30px;
  line-height: 62px;
}
.thanks h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  color: var(--teal);
}
.thanks p {
  max-width: 380px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--muted);
}
.thanks .btn--ghost { color: var(--teal); }
.thanks .btn--ghost:hover { background: rgba(10,59,74,.06); }

/* ---------- footer ---------- */

.footer {
  padding: 34px 0;
  background: var(--charcoal);
  color: var(--muted-teal);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__tag { color: var(--sand); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .loop__arrow { display: none; }
  .who, .contact { grid-template-columns: 1fr; gap: 48px; }
  .nav__links { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .section { padding: 72px 0; }
  .hero__inner { padding: 72px 22px 64px; }
  .grid--3 { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 52px; }
  .stats__num { font-size: 42px; }
  .formcard { padding: 32px 24px; }
  .footer__inner { flex-direction: column; }
  .hero__cta .btn { flex: 1 1 100%; text-align: center; }
}
