:root {
  --cream: #fcf8ef;
  --cream-2: #f6eedd;
  --ink: #1c1412;
  --ink-soft: #5a4b45;
  --flame: #f3521c;
  --flame-dark: #d8410f;
  --amber: #f7922a;
  --white: #ffffff;
  --radius: 16px;
  --heading: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--flame-dark); }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--flame);
  color: var(--white);
  font: 700 1.05rem/1 var(--body);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 18px 36px;
  cursor: pointer;
}
.btn:hover { background: var(--flame-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--small { padding: 10px 18px; font-size: .9rem; }
.btn--full { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(252, 248, 239, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee3cf;
}
.topbar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 1rem var(--heading); }
.topbar__logo { height: 36px; width: auto; }

/* Hero */
.hero {
  max-width: 1000px; margin: 0 auto; padding: 40px 20px 48px;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 24px; text-align: center;
}
.hero__logo { width: 110px; height: auto; }
.hero__headline { font-size: clamp(2.2rem, 9vw, 3.6rem); margin-bottom: 16px; }
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); margin: 0 auto 28px; max-width: 36ch; }
.hero__why { font-size: .95rem; color: var(--ink-soft); margin: -12px auto 20px; max-width: 40ch; }
.hero__micro { font-size: .85rem; color: var(--ink-soft); margin: 14px 0 0; }

/* How it works */
.how { padding: 24px 20px 48px; max-width: 1000px; margin: 0 auto; }
.how h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); text-align: center; margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 18px 20px; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); }
.step__num {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--flame); color: var(--white); font: 1rem var(--heading);
}

/* Closing band */
.faq { padding: 0 20px 48px; max-width: 1000px; margin: 0 auto; }
.faq h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); text-align: center; margin-bottom: 24px; }
.faq__list { margin: 0; display: grid; gap: 12px; }
.faq__item { background: var(--white); border-radius: var(--radius); padding: 16px 20px; }
.faq__item dt { font-weight: 700; margin-bottom: 4px; }
.faq__item dd { margin: 0; color: var(--ink-soft); }
.closer { background: var(--ink); color: var(--cream); text-align: center; padding: 48px 20px; }
.closer h2 { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 10px; }
.closer__sub { margin: 0 auto 20px; max-width: 480px; opacity: .85; }

/* Footer */
.footer { background: var(--cream-2); text-align: center; padding: 28px 20px 32px; font-size: .85rem; color: var(--ink-soft); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 14px; }
.footer__links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__sms { max-width: 520px; margin: 0 auto 8px; font-size: .8rem; }
.footer__copy { margin: 0; font-size: .8rem; }

/* Modal */
.modal {
  width: min(480px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border: 0; border-radius: var(--radius);
  padding: 28px 20px 24px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal::backdrop { background: rgba(28, 20, 18, .6); }
.modal__close {
  position: absolute; top: 8px; right: 10px;
  width: 40px; height: 40px; border: 0; background: none;
  font-size: 1.8rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.modal h2 { font-size: 1.6rem; text-align: center; }

/* Form */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.field input {
  width: 100%;
  font: 16px var(--body); /* 16px stops iOS zoom on focus */
  padding: 12px;
  border: 2px solid #e4d9c6; border-radius: 10px;
  background: var(--cream); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--flame); background: var(--white); }
.field input.invalid { border-color: #c4271b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin: 10px 0; line-height: 1.4; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--flame); }
.check.invalid span { color: #c4271b; }
.form-error { background: #fde8e4; color: #9e1f14; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }

/* Thank you */
.thanks { text-align: center; outline: none; }
.thanks p { color: var(--ink-soft); }
.thanks__check { background: #fff4e5; border: 1px solid #f7c98a; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
.upsell { background: var(--cream); border-radius: 12px; padding: 18px; margin-top: 20px; }
.upsell__img { display: block; margin: -6px -6px 14px; }
.upsell__img img { display: block; width: 100%; height: auto; border-radius: 8px; }
.upsell h3 { font-size: 1.1rem; }
.upsell p { margin: 0 0 14px; }

@media (min-width: 720px) {
  .hero { flex-direction: row; justify-content: space-between; text-align: left; padding: 72px 24px 64px; gap: 48px; }
  .hero__sub, .hero__why { margin-left: 0; }
  .hero__logo { width: 240px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how { padding: 64px 24px; }
  .faq { padding: 0 24px 64px; }
  .faq__list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .modal { padding: 36px 32px 28px; }
}

/* Policy pages */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 56px; }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.doc h2 { font-size: 1.2rem; margin-top: 2em; }
.doc__meta { color: var(--ink-soft); font-size: .9rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.upsell[hidden] { display: none; }
