/* DHM Instagram Audit — On-brand rebuild
   Brand tokens verified from dronehomemedia.com:
   - Font: Poppins for everything (weight 400 default, 500/600/700 for emphasis, 400 italic for editorial moments)
   - Palette: #ffffff bg, #f5f5f5 tint, #000000 ink, #bf9b30 gold accent, #c7c7c7 hairline
   - Buttons: fully-rounded pill (border-radius: 999px), gold fill / black text
   - Dividers: thin 1px #c7c7c7 hairlines, not boxes or shadows
*/

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --tint: #f5f5f5;
  --ink: #000000;
  --ink-70: rgba(0, 0, 0, 0.7);
  --ink-55: rgba(0, 0, 0, 0.55);
  --ink-35: rgba(0, 0, 0, 0.35);
  --gold: #bf9b30;
  --gold-dark: #96771f;
  --gold-tint: #f7efd6;
  --hairline: #c7c7c7;
  --hairline-soft: #e6e6e6;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --text-3xl: 52px;

  --sp-1: 6px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  --container: 1120px;
  --container-narrow: 780px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-weight: 400; font-size: clamp(34px, 6.5vw, var(--text-3xl)); line-height: 1.1; overflow-wrap: break-word; }
h2 { font-weight: 400; font-size: clamp(28px, 5vw, var(--text-2xl)); line-height: 1.15; overflow-wrap: break-word; }
h3 { font-weight: 500; font-size: var(--text-xl); line-height: 1.25; }
h4 { font-weight: 600; font-size: var(--text-md); line-height: 1.3; }

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

.italic { font-style: italic; }
.gold { color: var(--gold); }
.eyebrow {
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-3);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-4); }
.section { padding: var(--sp-7) 0; }
.section-tint { background: var(--tint); }
.section-black { background: var(--ink); color: var(--white); }
.section-black h1, .section-black h2, .section-black h3 { color: var(--white); }
.section-black a { color: var(--white); }
.section-black a:hover { color: var(--gold); }

@media (min-width: 720px) {
  .section { padding: var(--sp-8) 0; }
}

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline-soft);
}
.hdr-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
}
.hdr-brand { display: flex; align-items: center; text-decoration: none; }
.hdr-brand:hover { color: inherit; }
.hdr-brand .logo { display: block; height: 44px; width: auto; }
@media (min-width: 720px) {
  .hdr-brand .logo { height: 52px; }
}
.btn.hdr-cta { display: none; }
@media (min-width: 720px) {
  .btn.hdr-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 18px 36px; font-size: var(--text-md); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink-70);
  padding: 12px 20px;
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: var(--tint); color: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-7) 0 var(--sp-7);
  background: var(--white);
  overflow: hidden;
}
@media (min-width: 720px) {
  .hero { padding: var(--sp-8) 0; }
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-7); }
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .em { font-style: italic; color: var(--gold); }
.hero-lede {
  font-size: var(--text-md);
  color: var(--ink-70);
  max-width: 560px;
  margin-bottom: var(--sp-5);
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero-cta .meta { color: var(--ink-55); font-size: var(--text-sm); }

/* Score card — the visual anchor on the right */
.score-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: var(--sp-5);
  max-width: 400px;
  justify-self: start;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12);
}
@media (min-width: 960px) {
  .score-card { justify-self: end; }
}

/* Quick-start hero form */
.quick-start {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: var(--sp-5);
  max-width: 440px;
  width: 100%;
  justify-self: start;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--gold);
}
@media (min-width: 960px) {
  .quick-start { justify-self: end; }
}
.quick-eyebrow {
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-2);
}
.quick-title {
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.2;
  margin: 0 0 var(--sp-2);
  font-weight: 500;
}
.quick-sub {
  color: var(--ink-70);
  font-size: var(--text-sm);
  margin: 0 0 var(--sp-4);
  line-height: 1.5;
}
.quick-form { display: grid; gap: var(--sp-3); }
.quick-field { display: grid; gap: 6px; }
.quick-field label {
  font-size: var(--text-sm);
  color: var(--ink-70);
  font-weight: 500;
}
.quick-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--text-base);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}
.quick-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 48, 0.15);
}
.quick-field.has-error input { border-color: #b3261e; }
.btn.btn-full { display: flex; justify-content: center; width: 100%; margin-top: var(--sp-2); }
.quick-meta {
  color: var(--ink-55);
  font-size: var(--text-xs);
  text-align: center;
  margin: var(--sp-2) 0 0;
}

/* Trust strip */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-4) 0;
}
.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: center;
}
@media (min-width: 720px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
}
.trust-item { text-align: left; }
@media (min-width: 720px) {
  .trust-item { text-align: center; }
  .trust-item + .trust-item { border-left: 1px solid var(--hairline-soft); padding-left: var(--sp-4); }
}
.trust-k {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.trust-v {
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.4;
  font-weight: 500;
}

/* Mid-page CTA strip */
.mid-cta {
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-6) 0;
}
.mid-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 860px) {
  .mid-cta-inner { grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--sp-6); }
}
.mid-cta-text .eyebrow { color: var(--gold); margin-bottom: var(--sp-2); }
.mid-cta-text h2 {
  color: var(--white);
  margin-bottom: var(--sp-2);
  font-size: clamp(24px, 3.5vw, 32px);
}
.mid-cta-text p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 560px;
  font-size: var(--text-md);
}
.mid-cta-btn {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  justify-self: start;
}
.mid-cta-btn:hover {
  background: #d4ad3a;
  border-color: #d4ad3a;
  color: var(--ink);
}
@media (min-width: 860px) {
  .mid-cta-btn { justify-self: end; }
}
.score-card .label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: var(--sp-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.score-card .label .tag { color: var(--gold); font-style: italic; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); flex-shrink: 0; }
.score-card .big {
  font-family: var(--font);
  font-weight: 400;
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--gold);
  margin: 4px 0 var(--sp-2);
}
.score-card .big small { font-size: 28px; color: var(--ink-55); font-style: normal; }
.score-card .grade { font-weight: 600; font-size: var(--text-md); margin-bottom: var(--sp-4); }
.score-card .breakdown { display: grid; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--hairline-soft); }
.score-card .row { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.score-card .row .k { color: var(--ink-70); }
.score-card .row .v { font-weight: 600; }

/* ---------- Why-this-matters (single explanation section) ---------- */
.why {
  background: var(--tint);
}
.why-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-6); }
}
@media (min-width: 1080px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5) var(--sp-4); }
}
.why-item {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
}
.why-item .n {
  font-family: var(--font);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}
.why-item h3 { margin-bottom: var(--sp-2); font-size: var(--text-lg); font-weight: 600; }
.why-item p { color: var(--ink-70); font-size: var(--text-base); margin: 0; }

.why-lede {
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}
.why-lede .eyebrow { text-align: center; }
.why-lede h2 { margin-bottom: var(--sp-3); }
.why-lede p { font-size: var(--text-md); color: var(--ink-70); }

.why-guarantee {
  max-width: 780px;
  margin: var(--sp-6) auto 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--gold);
  background: var(--white);
}
.why-guarantee p {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.6;
}
.why-guarantee strong { color: var(--ink); font-weight: 600; }

/* ---------- Form section ---------- */
.form-section { background: var(--white); border-top: 1px solid var(--hairline-soft); }
.form-lede { text-align: center; max-width: 700px; margin: 0 auto var(--sp-6); }
.form-lede h2 { margin-bottom: var(--sp-3); }
.form-lede p { color: var(--ink-70); font-size: var(--text-md); }
.form-fineprint {
  text-align: center;
  color: var(--ink-55);
  font-size: var(--text-sm);
  margin: var(--sp-4) auto 0;
  max-width: 560px;
}
.form-fineprint .lock { color: var(--gold); font-weight: 600; }

.form-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: var(--sp-5);
}
@media (min-width: 720px) { .form-shell { padding: var(--sp-6); } }

/* Progress */
.progress-wrap { margin-bottom: var(--sp-5); }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: var(--sp-2);
}
.progress-bar {
  height: 4px;
  background: var(--hairline-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 320ms ease;
}

/* Steps */
.step { display: none; }
.step.active { display: block; }
.step h3 {
  font-weight: 500;
  font-size: var(--text-xl);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--hairline-soft);
}
.step h3 .step-lede {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-55);
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
}

/* Fields */
.field { margin-bottom: var(--sp-4); }
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .req { color: var(--gold); margin-left: 2px; }
.field .hint { color: var(--ink-55); font-size: var(--text-xs); margin-top: 4px; }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: var(--text-base);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 155, 48, 0.18);
}
.textarea { min-height: 100px; resize: vertical; }
.select { 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 1L6 6L11 1' stroke='%23000' 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: 40px; }

/* Chip / checkbox group */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all 160ms ease;
  background: var(--white);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink); }
.chip.checked { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.disabled { opacity: 0.4; cursor: not-allowed; }
.chip.disabled:hover { border-color: var(--hairline); }

/* Consent */
.consent { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-4); }
.consent input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.consent label { font-size: var(--text-sm); color: var(--ink-70); margin: 0; font-weight: 400; }

/* Step nav */
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline-soft);
}
.step-nav .filler { flex: 1; }
.error { color: #b21f1f; font-size: var(--text-sm); margin-top: 6px; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: #b21f1f; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--hairline-soft);
  padding: var(--sp-6) 0;
  text-align: center;
}
.footer .logo-footer {
  height: 56px;
  width: auto;
  margin: 0 auto var(--sp-3);
  opacity: 0.9;
}
.footer p {
  color: var(--ink-55);
  font-size: var(--text-sm);
  margin: 0;
}
.footer .links {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}
.footer .links a { text-decoration: none; color: var(--ink-70); font-size: var(--text-sm); }
.footer .links a:hover { color: var(--gold); }

/* ---------- Thank-you page ---------- */
.ty-hero {
  padding: var(--sp-7) 0 var(--sp-5);
  text-align: center;
  background: var(--white);
}
.ty-hero .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 28px;
}
.ty-hero h1 { margin-bottom: var(--sp-3); }
.ty-hero p { color: var(--ink-70); font-size: var(--text-md); max-width: 620px; margin: 0 auto; }
.ty-next {
  background: var(--tint);
  padding: var(--sp-6) 0;
}
.ty-next h2 { text-align: center; margin-bottom: var(--sp-3); }
.ty-next .sub { text-align: center; color: var(--ink-70); margin-bottom: var(--sp-5); }
.calendly-inline-widget {
  max-width: 100%;
  min-height: 700px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
.ty-expect {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--hairline-soft);
}
.ty-expect h2 { text-align: center; margin-bottom: var(--sp-5); }
.ty-expect .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 720px) { .ty-expect .grid { grid-template-columns: repeat(3, 1fr); } }
.ty-expect .item { padding-top: var(--sp-4); border-top: 1px solid var(--hairline); }
.ty-expect .n { font-style: italic; color: var(--gold); font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.ty-expect h3 { font-size: var(--text-md); margin-bottom: var(--sp-2); }
.ty-expect p { color: var(--ink-70); font-size: var(--text-sm); margin: 0; }
