/* Oren Matalon law office: lead-gen pages (questionnaire, landing pages, referral) */
@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700&family=Heebo:wght@300;400;500;700&display=swap");

:root {
  --bg: #0b0b0c;
  --surface: #16161a;
  --surface-2: #1c1c21;
  --line: #2a2622;
  --text: #ece6da;
  --muted: #a49d90;
  --accent: #c9a45c;
  --accent-ink: #0b0b0c;
  --ok: #4fb286;
  --danger: #e06c6c;
  --wa: #25d366;
  --radius: 0px;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.65;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 0; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); font: 500 16px var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-wa { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 15px; }

.hero { padding: 56px 0 32px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .02em; font-size: 15px; margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(24px, 4.5vw, 32px); }
h3 { font-size: 21px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

section { padding: 28px 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 56px 16px 16px; position: relative; }
.steps li::before { content: counter(s); position: absolute; right: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* forms */
.form-card { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 0;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 18px var(--sans);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form-msg { margin-top: 12px; font-weight: 600; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.small { font-size: 14px; color: var(--muted); }

.disclaimer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 90px; font-size: 14px; color: var(--muted); }

/* floating WhatsApp */
.wa-float {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.wa-float svg { width: 32px; height: 32px; }

/* quiz */
.quiz { max-width: 640px; margin: 0 auto; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 22px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.options { display: grid; gap: 10px; }
.opt {
  text-align: right; width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 400 18px var(--sans); cursor: pointer;
}
.opt:hover, .opt:focus-visible { border-color: var(--accent); }
.opt[aria-pressed=true] { border-color: var(--accent); background: var(--surface-2); }
.q-nav { display: flex; justify-content: space-between; margin-top: 18px; gap: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); font: 16px var(--sans); cursor: pointer; padding: 8px 0; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding: 36px 0 20px; }
  .top-actions .btn:not(.btn-primary) { display: none; }
}
