/* CheckInHello landing — warm paper, forest ink.
   Type: Newsreader (serif display) + Atkinson Hyperlegible (body, chosen for readability). */

:root {
  --paper:      #F6F2EA;
  --paper-2:    #EFEAE0;
  --ink:        #24201B;
  --ink-soft:   #6E675C;
  --ink-faint:  #8A8378;
  --line:       #D8D1C4;
  --line-soft:  #DCD5C7;
  --green:      #2F6B4F;
  --green-dark: #245440;
  --green-wash: rgba(47, 107, 79, 0.08);

  --maxw: 1120px;
  --gutter: 24px;
  --radius: 6px;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 720px; }

.serif { font-family: var(--serif); letter-spacing: -0.012em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: var(--radius); border: 1.5px solid var(--ink);
  font-family: var(--sans); font-size: 17px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; background: var(--green); border-color: var(--green); color: #fff; }
.btn-small:hover { background: var(--green-dark); color: #fff; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a { color: var(--ink-soft); font-size: 16px; }
.header-nav a:hover { color: var(--ink); }
.header-nav .btn-small { color: #fff; }
.brand-name { white-space: nowrap; }
.header-nav .btn-small { white-space: nowrap; }
@media (max-width: 640px) {
  .header-nav a:not(.btn) { display: none; }
  .brand-name { font-size: 19px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > *, .how-grid > * { min-width: 0; }
.display, .section-title, .phone-status { overflow-wrap: break-word; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 18px;
}
.eyebrow.light { color: rgba(246,242,234,0.65); }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.02em;
}
.lede { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.55; max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--ink-faint); }

/* phone mock */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 340px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 50px -28px rgba(36,32,27,0.4), 0 2px 10px -4px rgba(36,32,27,0.15);
}
.phone-top { padding: 30px 24px 14px; }
.phone-date { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.phone-status { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin-top: 6px; }
.phone-sub { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.phone-sub .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.phone-map { display: block; width: 100%; background: var(--paper-2); }
.phone-rows { padding: 4px 24px 24px; }
.phone-row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.phone-row:last-child { border-bottom: 0; }
.phone-row-title { grid-column: 1; grid-row: 1; font-size: 16px; }
.phone-row-sub { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.pill { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; font-size: 13px; color: var(--green-dark); border: 1px solid var(--green); border-radius: 100px; padding: 3px 11px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .phone { max-width: 300px; }
}

/* ---------- section scaffolding ---------- */
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.prose { font-size: 19px; color: var(--ink-soft); line-height: 1.65; }
.prose + .prose { margin-top: 18px; }
.prose.center { text-align: center; max-width: 36em; margin-left: auto; margin-right: auto; }

/* worry */
.worry { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.worry .section-title { margin-bottom: 22px; }

/* how */
.how { padding: clamp(44px, 6vw, 84px) 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.how-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.how-card-title { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; }
.how-card p { color: var(--ink-soft); }
@media (max-width: 720px) { .how-grid { grid-template-columns: 1fr; } }

/* features */
.features { padding: clamp(48px, 6vw, 88px) 0; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--paper); padding: 30px 28px; }
.feature-icon { display: inline-flex; color: var(--green); margin-bottom: 16px; }
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.feature p { font-size: 16px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* dignity (dark band) */
.dignity { padding: clamp(52px, 7vw, 96px) 0; background: var(--ink); color: var(--paper); }
.dignity .section-title.on-ink { color: var(--paper); margin-bottom: 22px; }
.prose.on-ink { color: rgba(246, 242, 234, 0.82); }

/* who */
.who { padding: clamp(44px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.who .section-title { margin-bottom: 26px; }
.who-list p { font-size: 20px; color: var(--ink-soft); padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.who-list p strong { color: var(--ink); font-weight: 700; }
.fineprint { margin-top: 24px; font-size: 15px; color: var(--ink-faint); font-style: italic; }

/* signup */
.signup { padding: clamp(52px, 7vw, 96px) 0; background: var(--paper-2); }
.form { max-width: 520px; margin: 40px auto 0; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.field .optional { font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline-offset: 1px; }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select { border-color: #A6442E; }
.field-error { color: #A6442E; font-size: 14px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-block { margin-top: 8px; }
.form-fineprint { margin-top: 14px; font-size: 14px; color: var(--ink-faint); text-align: center; }

.form-success { max-width: 520px; margin: 40px auto 0; text-align: center; padding: 40px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.form-success h3 { font-size: 26px; margin: 16px 0 10px; }
.form-success p { color: var(--ink-soft); }

/* footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-tag { color: var(--ink-soft); max-width: 40em; }
.footer-legal { color: var(--ink-faint); font-size: 14px; }
