/* Codicly. Light, calm and plain on purpose: must never look like a county, court or tax notice.
   Light-only by design (soft sage and sand). Large type and AA contrast: many readers are older and on phones. */

:root {
  color-scheme: light;
  --paper: #f7f9f6;
  --card: #ffffff;
  --ink: #22302a;
  --muted: #56655e;
  --line: #dde5df;
  --green: #3b6f60;
  --green-ink: #ffffff;
  --clay: #9c6436;
  --soft: #eaf1ec;
  --sand: #f6efe3;
  --sky: #e9f1f4;
  --error-bg: #fbece6;
  --error-ink: #8a3414;
  --focus: #d08a3c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(34, 48, 42, .04), 0 8px 24px rgba(34, 48, 42, .06);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 19px/1.6 var(--sans);
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Header / footer */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.brand svg { width: 34px; height: 34px; flex: none; }
.foot { margin-top: 72px; padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 15px 28px; font: 600 1.05rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; background: var(--green); color: var(--green-ink); }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }

/* Home */
.hero { padding: 48px 0 64px;
  background: radial-gradient(1100px 480px at 85% 0%, var(--sky), transparent 70%),
              radial-gradient(900px 420px at 0% 100%, var(--sand), transparent 70%); }
.hero h1 { max-width: 15em; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; list-style: none; color: var(--muted); font-size: .95rem; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.8 12 13 6.5' fill='none' stroke='%233b6f60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.note { background: var(--sand); border-radius: var(--radius); padding: 32px; }
.note p:last-child { margin: 0; }
.promises { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, 1fr); } }
.promises div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.promises h3 { color: var(--green); }
.promises p { margin: 0; color: var(--muted); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.code-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.code-card form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.code-card input { flex: 1 1 160px; text-transform: uppercase; letter-spacing: .12em; }
.steps { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--soft); color: var(--clay); font: 600 1rem var(--sans); margin-bottom: 12px; }
.section { padding: 44px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.firms { background: var(--sky); border-radius: var(--radius); padding: 28px; }

/* Forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .panel, .code-card, .firms, .note { padding: 20px; } }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; }
.field .hint { font-size: .88rem; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--soft);
  border-radius: 10px; padding: 16px; margin: 8px 0 22px; font-size: .92rem; line-height: 1.55; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--green); }
.error { background: var(--error-bg); color: var(--error-ink); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.optout { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Long text pages */
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
