/* alexpoplawski.com - one page, one accent, no tricks. */
:root {
  --paper: #f6f3ec;
  --paper-2: #ece8dd;
  --ink: #15181c;
  --ink-2: #4b515a;
  --ink-3: #7a8089;
  --line: #d3cdbf;
  --blue: #123c8c;
  --blue-ink: #0d2d69;
  --focus: rgba(18, 60, 140, 0.22);
  --danger: #a12b1f;
  --max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
em { font-style: normal; }

/* Layout */
header.top, main > section, footer .cols { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Header */
header.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-top: 26px; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.top-right { display: flex; gap: 18px; align-items: baseline; font-size: 14px; }
.tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.top-phone { text-decoration: none; font-weight: 500; white-space: nowrap; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 44px; }
.hero.thanks { padding-bottom: 8px; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
h1 { font-size: clamp(36px, 6.2vw, 64px); letter-spacing: -0.028em; line-height: 1.02; max-width: 15ch; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 58ch; margin: 22px 0 28px; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; padding: 16px 26px; font-size: 17px; }
.btn-primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }

/* Proof strip */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.proof > div { padding: 22px 16px 20px 0; border-right: 1px solid var(--line); margin-right: 16px; }
.proof > div:last-child { border-right: 0; margin-right: 0; }
.proof b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.proof span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* What you get */
.how { padding-top: 64px; padding-bottom: 24px; }
.how h2, .form-wrap h2 { font-size: 28px; }
.how dl { margin: 8px 0 0; }
.how dt { font-weight: 600; font-size: 19px; margin-top: 28px; letter-spacing: -0.01em; }
.how dd { margin: 8px 0 0; color: var(--ink-2); max-width: 62ch; }
.steps { margin: 18px 0 30px; padding-left: 22px; color: var(--ink-2); max-width: 62ch; }
.steps li { margin-bottom: 10px; padding-left: 6px; }
.steps li::marker { font-family: "IBM Plex Mono", monospace; color: var(--blue); font-size: 14px; }

/* Form */
.form-wrap { padding-top: 56px; padding-bottom: 96px; }
.form-wrap .sub { color: var(--ink-2); margin: 8px 0 12px; }
fieldset { border: 0; padding: 0; margin: 40px 0 0; min-width: 0; }
legend {
  display: block; width: 100%; padding: 0 0 10px; margin: 0 0 22px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  border-bottom: 1px solid var(--line);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { display: block; margin-bottom: 18px; }
.lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.lbl em { color: var(--blue); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2315181c' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #a3a8b0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--focus); }

/* Pills (radio/checkbox) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pills span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 15px; line-height: 1.2; cursor: pointer; user-select: none;
}
.pills span:hover { border-color: var(--ink-3); }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pills input:focus-visible + span { box-shadow: 0 0 0 4px var(--focus); border-color: var(--blue); }

/* Honeypot: off-screen, never hidden with display:none (bots skip that) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.submit { margin-top: 36px; }
.fine { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; max-width: 52ch; }
.status { font-size: 15px; color: var(--danger); margin: 12px 0 0; min-height: 1em; }
.status:empty { display: none; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 15px; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer .name { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
footer .legal { font-size: 12.5px; line-height: 1.6; }
footer p { margin-bottom: 10px; max-width: 46ch; }

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  header.top { padding-top: 20px; padding-bottom: 16px; }
  .tag { display: none; }
  .hero { padding-top: 48px; padding-bottom: 36px; }
  .lede { font-size: 17px; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div { padding: 18px 12px 16px 0; }
  .proof > div:nth-child(2) { border-right: 0; margin-right: 0; }
  .proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proof b { font-size: 28px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .how { padding-top: 48px; }
  .form-wrap { padding-top: 40px; padding-bottom: 72px; }
  .btn-primary { width: 100%; text-align: center; }
  footer .cols { grid-template-columns: 1fr; gap: 12px; }
}
