/* ---------- Tokens (match the printed flyer) ---------- */
:root {
  --maroon: #7b1218;
  --maroon-deep: #560c11;
  --gold: #ffd9a8;
  --cream: #faf5ee;
  --cream-2: #f3ebe0;
  --paper: #fff;
  --ink: #231a1b;
  --ink-soft: #5e5254;
  --line: rgba(123, 18, 24, 0.16);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(35, 26, 27, 0.06), 0 16px 40px -16px rgba(35, 26, 27, 0.28);
  --gutter: clamp(18px, 5vw, 32px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(80px + var(--safe-bottom));
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.head { background: var(--paper); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); }
.head__inner {
  max-width: 640px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 56px; height: 56px; object-fit: cover; clip-path: circle(39.5% at 50% 50%); transform: scale(1.22); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.05; color: var(--maroon-deep); }
.brand__name span { display: block; font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.aaha { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.aaha img { width: 40px; height: auto; }
.aaha span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.25; }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(260px, 62vw, 360px); overflow: hidden; background: var(--maroon-deep); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(60, 8, 12, 0.95) 8%, rgba(60, 8, 12, 0.45) 55%, rgba(60, 8, 12, 0.05) 85%);
}
.hero__content {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 56px;
  max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); color: #fff;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--maroon); color: #fff; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 10px;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 217, 168, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 217, 168, 0); } }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 8.5vw, 2.8rem); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 6px; }
.hero__meta { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Form card ---------- */
.form-wrap { position: relative; z-index: 2; max-width: 640px; margin: -40px auto 0; padding: 0 12px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px 24px; border-top: 5px solid var(--maroon); }
.card h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 6.5vw, 2rem); line-height: 1.1; color: var(--maroon-deep); margin-bottom: 8px; }
.card__lede { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; }

.form { display: grid; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.8rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: 400 16px/1.4 var(--sans); /* 16px prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 15px; min-height: 52px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: #a39a9b; }
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(123, 18, 24, 0.12); }
.field.is-invalid input { border-color: #c0392b; background: #fdf3f1; }
.field__error { display: none; color: #b03a2e; font-size: 0.84rem; margin-top: 6px; }
.field.is-invalid .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream);
  font-size: 0.92rem; cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip input:checked + span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; font-size: 0.85em; }
.chip input:focus-visible + span { outline: 3px solid var(--maroon); outline-offset: 2px; }

.field__label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.file {
  position: relative; display: flex !important; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px; margin: 0 !important;
  border: 1.5px dashed rgba(123, 18, 24, 0.4); border-radius: var(--radius-sm);
  background: var(--cream); cursor: pointer; font-weight: 500 !important;
}
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(123, 18, 24, 0.12); }
.file__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #f6e3e4; display: grid; place-items: center; }
.file__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--maroon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file__text { font-size: 0.95rem; color: var(--maroon); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file.has-file { border-style: solid; border-color: var(--maroon); background: #fff; }
.file.has-file .file__text { color: var(--ink); }
.file__remove { margin-top: 6px; padding: 6px 0; background: none; border: 0; color: var(--ink-soft); font: 500 0.84rem var(--sans); text-decoration: underline; cursor: pointer; }
.field.is-invalid .file { border-color: #c0392b; background: #fdf3f1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 0 22px;
  font: 600 1rem/1 var(--sans); text-decoration: none;
  background: var(--maroon); color: #fff; border: 2px solid var(--maroon); border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 0 8px 20px -8px rgba(123, 18, 24, 0.7);
  transition: transform .15s ease, background-color .2s ease;
}
.btn:hover { background: var(--maroon-deep); }
.btn:active { transform: scale(0.98); }
.btn--large { min-height: 58px; font-size: 1.05rem; }
.btn--outline { background: transparent; color: var(--maroon); box-shadow: none; min-height: 48px; font-size: 0.95rem; }
.btn--outline:hover { background: var(--cream); }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__fine { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin-top: -6px; }

.success { text-align: center; padding: 10px 0 4px; animation: rise .5s ease both; }
.success:focus { outline: none; }
.success__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #f6e3e4; display: grid; place-items: center; }
.success__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--maroon); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--maroon-deep); margin-bottom: 8px; }
.success p { color: var(--ink-soft); margin-bottom: 20px; }
.success__actions { display: grid; gap: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Info sections ---------- */
.section { padding: 40px 0; }
.section--tint { background: var(--cream-2); }
.label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); margin-bottom: 14px; }

.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.why li { position: relative; padding-left: 30px; font-size: 0.97rem; line-height: 1.45; color: var(--ink-soft); }
.why strong { color: var(--ink); font-weight: 600; }
.why li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--maroon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.docs { display: grid; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--paper); border-radius: var(--radius-sm); padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); min-height: 64px;
}
.doc::after { content: "›"; margin-left: auto; font-size: 1.5rem; color: var(--maroon); line-height: 1; }
.doc img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.doc strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.doc span { font-size: 0.82rem; color: var(--ink-soft); }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--maroon); color: var(--maroon);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.links a::after { content: "↗"; margin-left: 6px; font-size: 0.8em; }

/* ---------- Footer ---------- */
.foot { background: var(--maroon); color: rgba(255, 255, 255, 0.88); padding: 32px 0 36px; font-size: 0.9rem; }
.foot__name { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.foot address { font-style: normal; line-height: 1.8; }
.foot a { color: #fff; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
  background: linear-gradient(0deg, rgba(250, 245, 238, 1) 55%, rgba(250, 245, 238, 0));
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sticky-cta .btn { max-width: 616px; margin: 0 auto; display: flex; }
.sticky-cta.is-visible { transform: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .card { padding: 34px 36px 30px; }
  .success__actions { grid-template-columns: 1fr 1fr; }
}

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