/* ---------- Design tokens (verbatim from easybits-design-guide.md §1) ---------- */
:root {
  /* Brand / accent */
  --orange:        #d14925;
  --orange-h:      #b83d20;
  --orange-soft:   rgba(210,73,39,0.07);
  --orange-border: rgba(210,73,39,0.16);

  /* Text */
  --black: #1a1a1a;
  --dark:  #1c1c1c;
  --mid:   #4a4a4a;
  --muted: #888;

  /* Surfaces & lines */
  --rule:    #ebebeb;
  --bg:      #ffffff;
  --bg-soft: #FFF5F3;
  --bg-card: #FFE8E4;

  /* Success */
  --green:      #15803d;
  --green-soft: rgba(21,128,61,0.09);

  /* Error */
  --red:        #b91c1c;
  --red-soft:   rgba(185,28,28,0.08);

  /* Type */
  --font-en: 'Plus Jakarta Sans', sans-serif;

  /* Radius */
  --r:  12px;
  --rl: 20px;

  /* Shadows — orange-tinted */
  --sh:  0 2px 10px rgba(209,73,37,0.04);
  --shm: 0 8px 32px rgba(209,73,37,0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 68px; padding: 0 6%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand img { height: 32px; width: auto; }
.nav-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 6% 60px;
  background: var(--bg);
}
.hero-inner {
  max-width: 800px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12.5px; font-weight: 700; color: var(--orange);
  margin-bottom: 22px;
}
.bdot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.25); }
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--black);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #D24927 0%, #e8633e 60%, #D24927 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--mid);
  max-width: 640px;
  margin: 0;
}

/* ---------- Sections ---------- */
.part {
  padding: 60px 6%;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.part-alt { background: var(--bg-soft); }
.part-inner {
  max-width: 900px;
  margin: 0 auto;
}
.part-head { margin-bottom: 28px; }
.lbl {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.ttl {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--black);
}
.dsc {
  font-size: 16px;
  color: var(--mid);
  max-width: 580px;
  margin: 0;
  line-height: 1.7;
}

/* ---------- Callout (Part 2) ---------- */
.callout {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-style: italic;
  color: var(--orange);
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ---------- Form card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rl);
  padding: 32px 28px;
  box-shadow: var(--sh);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:focus-within {
  box-shadow: var(--shm);
  border-color: var(--orange-border);
}

/* ---------- Field ---------- */
.field { margin-bottom: 22px; display: flex; flex-direction: column; }
.field:last-child { margin-bottom: 0; }
.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}
.req { color: var(--orange); font-weight: 800; }
.hint {
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* Inputs */
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--dark);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231c1c1c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b5b5b5;
}

/* Invalid */
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--red);
  background: #fffafa;
}
.field.invalid label { color: var(--red); }
.field.invalid label .req { color: var(--red); }
.field-error {
  font-size: 12.5px;
  color: var(--red);
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- 2-column grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
  align-items: start;
}
.grid-2 .field { margin-bottom: 0; }
.grid-2:last-child { margin-bottom: 0; }

/* ---------- Submit row ---------- */
.submit-section {
  padding: 48px 6% 80px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.submit-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-p:hover:not(:disabled) {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(210,73,39,.28);
}
.btn-p:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--orange-soft), 0 10px 28px rgba(210,73,39,.28);
}
.btn-p:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-g {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; color: var(--dark);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  border: 1.5px solid #b0b0b0;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.btn-g:hover { border-color: var(--orange); color: var(--orange); }

/* Status pill */
.status {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 560px;
}
.status.is-error {
  display: block;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(185,28,28,0.18);
}
.status.is-busy {
  display: block;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid var(--orange-border);
}

/* ---------- Success screen ---------- */
.success {
  padding: 100px 6% 80px;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.success-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #e05a4a 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(209,73,37,0.25);
  margin-bottom: 22px;
}
.success .ttl { margin-bottom: 14px; }
.success .dsc { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer {
  padding: 28px 6%;
  background: linear-gradient(135deg, #D14925 0%, #7A271A 50%, #101828 100%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-right {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Reveal-on-scroll ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.rv.on {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .bdot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  nav { height: 60px; padding: 0 5%; }
  .nav-eyebrow { display: none; }
  .hero { padding: 110px 5% 50px; }
  .part { padding: 50px 5%; }
  .card { padding: 24px 20px; }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .grid-2 .field { margin-bottom: 22px; }
  .grid-2 .field:last-child { margin-bottom: 0; }

  .submit-section { padding: 40px 5% 60px; }
  footer { flex-direction: column; align-items: flex-start; padding: 24px 5%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(24px, 6.5vw, 34px); letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
}
