/* Design system shared with the SnapGrab / Fiverr services site:
   paper + forest ink + lime, tight sans headlines with Georgia italic accents,
   spaced uppercase eyebrows, numbered rules, monospace labels. */
:root {
  --paper: #f5f4ed;
  --ink: #163e35;
  --muted: #52685d;
  --line: #d3d9ce;
  --lime: #d9f373;
  --white: #fffef8;
  --panel: #e6eadb;
  --panel-2: #d5ddca;
  --btn-bg: #163e35;
  --btn-hover: #285b4c;
  --btn-ink: #fffef8;
  --danger: #b3261e;
  --focus: #a44a22;
  --tabs-h: 64px;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10302a;
    --ink: #eef0e6;
    --muted: #a9b9ad;
    --line: #2b4b41;
    --white: #163a32;
    --panel: #1b4238;
    --panel-2: #24503f;
    --btn-bg: #d9f373;
    --btn-hover: #e6f99c;
    --btn-ink: #163e35;
    --danger: #ff6b5e;
    --focus: #f0a37c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
::selection { background: var(--lime); color: #163e35; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 23px; font-weight: 780; letter-spacing: -1px; }
.brand img { border-radius: 7px; transform: rotate(-8deg); }
.net { margin-left: auto; font: 11px var(--mono); color: var(--muted); }
.icon-btn { color: var(--ink); text-decoration: none; font-size: 20px; padding: 4px 6px; background: none; border: 0; cursor: pointer; }

main { max-width: 760px; margin: 0 auto; padding: 8px 20px 32px; outline: none; }

/* ---------- type ---------- */
h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.05; letter-spacing: -2px; font-weight: 650; margin: 14px 0; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -1px; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -1px; font-weight: 650; margin: 36px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.intro { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 22px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 0;
  text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 750;
}
.dot { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; flex-shrink: 0; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.footnote { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- home ---------- */
.hero { padding: 18px 0 30px; }
.hero .slogan { font-size: clamp(44px, 12vw, 72px); letter-spacing: -3px; margin: 20px 0 18px; }
.hero .slogan em { display: block; letter-spacing: -2px; }
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 18px;
  margin: 0 -20px; padding: 16px 20px; list-style: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 650;
}
.strip li { display: flex; align-items: center; gap: 8px; }
.strip li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}
.section { padding-top: 6px; }
details.category { padding: 0; }
details.category > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none; padding: 20px 0; min-height: 56px;
}
details.category > summary::-webkit-details-marker { display: none; }
details.category > summary .eyebrow { margin: 0; font-size: 12px; }
details.category > summary .count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted);
}
details.category > summary .count::after { content: "+"; display: inline-block; width: 1.2em; margin-left: 10px; font-size: 20px; line-height: 1; color: var(--ink); text-align: center; }
details.category[open] > summary .count::after { content: "−"; }
details.category > .steps { margin: 0 0 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px 28px; margin-top: 14px; }
.step {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--ink); padding: 14px 0 18px;
  text-decoration: none; color: inherit;
}
.step strong { font-size: 18px; letter-spacing: -.4px; line-height: 1.3; }
.step span:last-child { font-size: 14px; color: var(--muted); }
.step:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.num { font: 12px var(--mono); color: var(--muted); }
.doc-card { border-top-style: dashed; }

/* ---------- surfaces ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 10px 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--ink); }
.guide-link strong { display: block; font-size: 17px; letter-spacing: -.3px; }
.state-note { background: var(--panel); }
.banner { background: var(--lime); color: #163e35; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin: 12px 0; }
.banner a { color: #163e35; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 6px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--panel); }
.btn.primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.btn.big { width: 100%; min-height: 60px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.row > .btn { flex: 1 1 150px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 3px #ff4d3d33; flex-shrink: 0; }
.btn.danger .rec-dot { background: #fff; box-shadow: none; animation: blink 1s steps(2) infinite; }

/* ---------- guide content ---------- */
.say {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: italic 21px/1.35 var(--serif); letter-spacing: -.3px; color: var(--ink);
  padding: 16px 18px; margin: 8px 0;
  border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 8px;
  background: var(--white);
}
.say:hover { border-color: var(--ink); }
.say-full {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 32px;
  background: #163e35; color: #fffef8;
  font: italic 400 clamp(32px, 8vw, 64px)/1.15 var(--serif); letter-spacing: -1px; text-align: center;
}
ul.points { padding-left: 18px; margin: 4px 0; }
ul.points li { margin: 10px 0; }
ul.points li::marker { color: var(--muted); }
.cite { display: block; margin-top: 3px; font: 11.5px/1.5 var(--mono); color: var(--muted); }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 650; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 100px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-size: 15px; font-weight: 650; cursor: pointer; }

/* ---------- recording ---------- */
.rec-live { position: relative; background: #0b1f1a; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 50vh; width: 100%; margin-top: 12px; }
.rec-live video { width: 100%; height: 100%; object-fit: cover; }
.rec-badge { position: absolute; top: 12px; left: 12px; background: var(--danger); color: #fff; padding: 4px 12px; border-radius: 30px; font: 600 13px var(--mono); }
.rec-badge::before { content: "● "; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.audio-only { display: grid; place-items: center; color: #fffef8; font-size: 18px; height: 100%; }
video.playback, audio.playback { width: 100%; border-radius: 10px; background: #0b1f1a; margin: 8px 0; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.msg { padding: 12px 16px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.user { align-self: flex-end; background: var(--btn-bg); color: var(--btn-ink); max-width: 85%; }
.msg.assistant { background: var(--white); border: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; margin-top: 14px; }
.chat-form textarea { min-height: 52px; flex: 1; }
.attach { font-weight: 700; opacity: .9; }
.banner .btn { min-height: 34px; margin-left: 6px; padding: 6px 12px; border-color: #163e35; color: #163e35; }

/* ---------- documents ---------- */
.file-btn { cursor: pointer; margin: 0; }
.doc-view { margin: 14px 0; }
.doc-view img, .doc-view .pdf-page { display: block; width: 100%; height: auto; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.doc-full { position: fixed; inset: 0; z-index: 50; overflow: auto; background: #fff; padding: calc(64px + env(safe-area-inset-top, 0px)) 8px 16px; }
.doc-full .doc-close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 51; background: #163e35; color: #fffef8; border-color: #163e35; }

/* ---------- lock ---------- */
.lock-screen { max-width: 420px; margin: 32px auto; text-align: center; }
.lock-screen h1 { font-size: 40px; }
.lock-screen input { font: 600 28px var(--mono); letter-spacing: .4em; text-align: center; margin-bottom: 12px; }
.lock-screen details { margin-top: 24px; text-align: left; }
.lock-msg { min-height: 1.5em; color: var(--danger); font-weight: 650; }

/* ---------- chrome ---------- */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper); border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 650;
  border-top: 3px solid transparent; margin-top: -1px;
}
.tabs a.active { color: var(--ink); border-top-color: var(--ink); }
.tabs .rec-dot { width: 8px; height: 8px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom, 0px));
  background: #163e35; color: #fffef8; padding: 10px 16px; border-radius: 6px;
  font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 18px 25px #163e3525;
}
.modal { position: fixed; inset: 0; z-index: 40; background: #0b1f1acc; display: grid; place-items: center; padding: 16px; }
.modal .card { max-width: 520px; max-height: 90vh; overflow: auto; padding: 24px; }
.modal .slogan { margin: 0; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 750; }

@media (min-width: 700px) {
  main { padding-left: 32px; padding-right: 32px; }
  .strip { margin: 0 -32px; padding: 16px 32px; }
  .btn.big { width: auto; min-width: 280px; }
  .row > .btn.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rec-badge::before, .btn.danger .rec-dot { animation: none; }
}

/* Honeypot field for bots on the request form; hidden from people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.request-card { margin-top: 28px; }

/* ---------- situation picker ---------- */
.label { font-size: 13px; font-weight: 650; margin: 16px 0 6px; }
details.picker { border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 0; }
details.picker > summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; font-weight: 600;
}
details.picker > summary::-webkit-details-marker { display: none; }
details.picker > summary::after { content: "▾"; color: var(--muted); }
details.picker[open] > summary { border-bottom: 1px solid var(--line); }
details.picker[open] > summary::after { content: "▴"; }
.picker-list { max-height: 55vh; overflow-y: auto; }
.picker-group {
  margin: 0; padding: 9px 14px; background: var(--ink); color: var(--lime);
  text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 750;
  position: sticky; top: 0;
}
.picker-opt {
  display: block; width: 100%; text-align: left; padding: 12px 14px 12px 22px;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit;
}
.picker-opt:first-child { padding-left: 14px; }
.picker-opt[aria-pressed="true"] { background: var(--lime); font-weight: 650; }
.picker-opt[aria-pressed="true"]::before { content: "✓ "; }
@media (prefers-color-scheme: dark) {
  .picker-group { background: var(--lime); color: #163e35; }
  .picker-opt[aria-pressed="true"] { background: var(--panel-2); }
}

/* ---------- lists: press and hold to delete ---------- */
.hold-item { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.hold-item > a { display: block; text-decoration: none; color: inherit; }
.hold-item .hold-confirm { margin-top: 12px; }

/* "Hold to delete": a fill sweeps across while the button is held. */
.hold-btn { position: relative; overflow: hidden; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold-btn::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .22);
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.hold-btn.holding::after { transform: scaleX(1); transition: transform 2s linear; }

.hold-overlay {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 30, 25, .55); pointer-events: none;
}
.hold-card {
  width: min(100%, 360px); background: var(--paper); border-radius: 10px; padding: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3); text-align: center;
}
.hold-card .eyebrow { justify-content: center; margin: 0 0 12px; color: var(--danger); }
.hold-card .eyebrow .dot { background: var(--danger); }
.hold-card strong { display: block; font-size: 22px; letter-spacing: -.5px; line-height: 1.25; }
.hold-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 18px 0 10px; }
.hold-bar span { display: block; height: 100%; background: var(--danger); transform: scaleX(0); transform-origin: left; animation: hold-fill 2s linear forwards; }
@keyframes hold-fill { to { transform: scaleX(1); } }

/* ---------- search ---------- */
.search { margin: 22px 0 6px; }
.search input { font-size: 16px; padding: 14px 16px; }
#search-results .steps { margin-bottom: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- lawyer directory ---------- */
.lawyer { position: relative; }
.lawyer .ad-label {
  position: absolute; top: 12px; right: 14px; margin: 0;
  font-size: 10px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.lawyer-name { display: block; font-size: 19px; letter-spacing: -.4px; padding-right: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--panel); }
.checks { display: grid; gap: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; margin: 8px 0; }
.check input { width: auto; margin-top: 3px; }
