/* TakeMyKeys.com — funnel styles
   Light/white professional theme. Mobile-first.
   Deep green = trust/money, gold = the key mark. */

:root {
  --page: #f4f6f8;
  --card: #ffffff;
  --line: #e2e8ee;
  --line-strong: #cfd9e2;
  --ink: #16232c;
  --ink-2: #5c7180;
  --ink-3: #8497a4;
  --brand: #0b6b52;
  --brand-dark: #075541;
  --brand-soft: #eaf5f1;
  --gold: #c8912a;
  --good: #0b8f5f;
  --bad: #c0392b;
  --radius: 16px;
  --wrap: 660px;
  --shadow: 0 1px 2px rgba(22, 35, 44, .05), 0 8px 28px rgba(22, 35, 44, .07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
}

a { color: var(--brand); }

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: center;
}

.brand { display: inline-block; text-decoration: none; }
.brand img { display: block; height: 44px; width: auto; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 18px 0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5.6vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 800;
}

.hero h1 span { color: var(--brand); }

.hero-sub {
  margin: 0 auto;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 16px;
}

.hero-sub strong { color: var(--ink); }

/* ---------- Funnel ---------- */

.funnel {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 18px 0;
}

.progress-shell { margin-bottom: 14px; }

.progress-track {
  height: 20px;
  border-radius: 99px;
  background: #e7ecf1;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(22, 35, 44, .06);
}

.progress-fill {
  height: 100%;
  width: 11%;
  min-width: 44px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 280ms ease;
}

.progress-label {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.progress-label b { color: var(--ink); }

#lead-form {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand);
  padding: 30px 26px 26px;
}

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

.step { display: none; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.step.is-active { display: block; animation: rise 240ms ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-active { animation: none; }
  .progress-fill { transition: none; }
}

.q {
  display: block;
  padding: 0;
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(20px, 4.4vw, 26px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.022em;
}

.q-help {
  margin: 0 0 18px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}

.q + .choices, .q + .field, .q + .field-row, .q + .value-display { margin-top: 20px; }

/* ---------- Tap-to-advance choices ---------- */

.choices { display: grid; gap: 10px; }

.choice {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  padding: 15px 44px 15px 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 140ms, background 140ms, box-shadow 140ms, transform 80ms;
}

.choice::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-50%) rotate(-45deg);
  transition: border-color 140ms;
}

.choice:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 2px 10px rgba(11, 107, 82, .10);
}

.choice:hover::after { border-color: var(--brand); }
.choice:active { transform: scale(0.99); }

.choice.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.choice:focus-visible,
.next:focus-visible,
.back:focus-visible,
.submit:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Text fields ---------- */

.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-sm { max-width: 112px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 14px;
}

.field input::placeholder { color: #a4b3bd; }

.field input:focus, .field select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 107, 82, .12);
}

.field input.invalid, .field select.invalid { border-color: var(--bad); }

/* ---------- Value slider ---------- */

.value-display {
  text-align: center;
  font-size: clamp(23px, 5.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin-bottom: 20px;
}

#value-slider {
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: #e2e8ee;
  outline: none;
}

#value-slider::-webkit-slider-thumb {
  appearance: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(22, 35, 44, .28);
  cursor: pointer;
}

#value-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(22, 35, 44, .28);
  cursor: pointer;
}

.slider-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 8px;
}

/* ---------- Nav / submit ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.back {
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 10px 2px;
  cursor: pointer;
}

.back:hover { color: var(--ink); }

.next, .submit {
  appearance: none;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 11px;
  padding: 14px 30px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(11, 107, 82, .24);
  transition: background 140ms, transform 80ms;
}

.next:hover, .submit:hover { background: var(--brand-dark); }
.next:active, .submit:active { transform: scale(0.99); }

.submit {
  width: 100%;
  margin-top: 6px;
  font-size: 17px;
  padding: 17px 20px;
}

.submit[disabled] { opacity: 0.65; cursor: progress; }

.errors {
  background: #fdf0ee;
  border: 1px solid #f3c9c2;
  color: #9c2f22;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

.errors ul { margin: 0; padding-left: 18px; }

.tcpa {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8497a4;
}

.tcpa a { color: var(--ink-2); }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.secure-note svg { color: var(--brand); flex: none; }

/* ---------- Trust badge strip ---------- */

.trust-strip {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 18px 0;
}

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

@media (min-width: 620px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.trust-item svg {
  color: var(--brand);
  margin-bottom: 7px;
}

.trust-item b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.trust-item span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ---------- How it works ---------- */

.how, .reasons, .faq {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 18px 0;
}

.how h2, .reasons h2, .faq h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 4.6vw, 27px);
  letter-spacing: -0.022em;
  text-align: center;
}

.steps-3 { display: grid; gap: 12px; }

@media (min-width: 620px) {
  .steps-3 { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  text-align: center;
}

.step-num {
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.step-card h3 { margin: 0 0 6px; font-size: 16px; }
.step-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Reasons ---------- */

.reason-grid { display: grid; gap: 12px; }

@media (min-width: 560px) {
  .reason-grid { grid-template-columns: 1fr 1fr; }
}

.reason {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.reason h3 {
  margin: 0 0 7px;
  font-size: 16px;
  color: var(--brand);
}

.reason p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 26px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -3px;
  font-size: 21px;
  font-weight: 400;
  color: var(--brand);
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p { margin: 9px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 52px;
  padding: 28px 18px 40px;
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 16px;
}

.site-footer nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }

/* `margin-inline: auto` is load-bearing on every direct footer child: these
   rules come after `.site-footer > *`, so a bare `margin: 0` would cancel the
   auto centering it sets and silently shove the block to the left. */
.disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 auto 12px;
}

.footer-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 12px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-marks img { display: block; opacity: .65; }

.copyright { font-size: 12px; color: var(--ink-3); margin: 0 auto; }

/* ---------- Standalone content pages ---------- */

.page {
  max-width: var(--wrap);
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.page h1 { font-size: clamp(24px, 5.4vw, 31px); letter-spacing: -0.025em; margin: 0 0 6px; }
.page .updated { color: var(--ink-3); font-size: 13px; margin: 0 0 26px; }
.page h2 { font-size: 18px; margin: 28px 0 8px; color: var(--brand); }
.page p, .page li { color: #3d5260; font-size: 15px; }
.page ul { padding-left: 20px; }
.page code { background: var(--page); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ---------- Thank you ---------- */

.ty {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 18px 0;
  text-align: center;
}

.ty-check {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.ty h1 { font-size: clamp(25px, 5.6vw, 33px); letter-spacing: -0.025em; margin: 0 0 10px; }
.ty > p { color: var(--ink-2); max-width: 32em; margin: 0 auto 16px; }

.ty-next {
  text-align: left;
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid var(--brand);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin: 26px 0 0;
}

.ty-next h2 { margin: 0 0 14px; font-size: 17px; }
.ty-next ol { margin: 0; padding-left: 20px; }
.ty-next li { color: var(--ink-2); margin-bottom: 10px; font-size: 15px; }
.ty-next li strong { color: var(--ink); }

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  .hero { padding: 22px 18px 0; }
  .hero h1 { font-size: 25px; margin-bottom: 8px; }
  .hero-sub { font-size: 14.5px; }
  #lead-form { padding: 24px 18px 22px; }
  .page { padding: 26px 20px; border-radius: 12px; }
}

@media (max-width: 400px) {
  .hero-sub { display: none; }
}
