/* accu.io — design system (locked 2026-08-04)
   Quadrant mark · Fraunces (letter/headlines) · Instrument Sans (wordmark/body)
   Petrol on fog. Zero dependencies; fonts self-hosted (OFL). */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans.woff2') format('woff2');
}

:root {
  --paper: #edefeb;
  --panel: #f5f6f3;
  --field: #dae4e2;
  --ink: #1c2b2e;
  --mut: #5f7276;
  --faint: #8fa0a2;
  --line: #d7ddd8;
  --acc: #0e6d7e;
  --acc-deep: #0c5d6b;
  --seed: #123b44;
  --glass: rgba(245, 246, 243, 0.87);
  --disp: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px 56px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--acc); outline-offset: 2px;
}

/* ---- topbar ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 8px; }
.brand-left { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-left span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
@media (min-width: 900px) {
  .brand-left { gap: 10px; }
  .brand-left svg { width: 27px; height: 27px; }
  .brand-left span { font-size: 20px; }
}
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav .navlink { font-size: 13.5px; font-weight: 500; color: var(--mut); text-decoration: none; }
.topnav .navlink:hover { color: var(--acc); }
.cta {
  display: inline-block; font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: #fff; background: var(--acc); border: 1px solid var(--acc);
  padding: 9px 15px; border-radius: 6px; text-decoration: none;
}
.cta:hover { background: var(--acc-deep); }

/* ---- hero ---- */
.hero { display: grid; gap: clamp(22px, 4vw, 34px); padding-top: clamp(28px, 6vw, 64px); }
.hero > * { min-width: 0; }
.hero h1 {
  font-family: var(--disp); font-weight: 600; letter-spacing: -0.012em;
  font-size: clamp(31px, 6.4vw, 58px); line-height: 1.06; max-width: 17ch;
  text-wrap: balance;
}
.fieldbox {
  position: relative; background: var(--field); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.fieldbox canvas {
  display: block; width: 100%; height: clamp(300px, 42vh, 420px);
  cursor: pointer; touch-action: manipulation;
}
.fieldbox canvas:focus-visible { outline: 3px solid var(--acc); outline-offset: -3px; }

/* ---- funnel (scripted — nothing leaves the browser here) ----
   The conversation lives inside the field: glass bar and bubbles float
   over the flock, so the whole exchange is one surface. */
.veil {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: stretch; gap: 8px;
  padding: clamp(10px, 2.5vw, 16px); pointer-events: none;
}
.veil > * { pointer-events: auto; }
.ask {
  display: flex; align-items: center; gap: 8px; background: var(--glass);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px;
  box-shadow: 0 6px 22px rgba(18, 59, 68, 0.10);
}
.ask:focus-within { border-color: var(--acc); }
.ask input {
  flex: 1; min-width: 0; border: 0; background: none; font-family: var(--sans);
  font-size: 16.5px; color: var(--ink); outline: none; padding: 8px 0;
}
.ask input::placeholder { color: var(--mut); opacity: 1; }
.send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--acc); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.send:hover { background: var(--acc-deep); }
.thread {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  margin-top: auto; max-height: calc(100% - 76px); overflow-y: auto;
  overscroll-behavior: contain; pointer-events: none;
  scrollbar-width: thin; scrollbar-color: var(--faint) transparent;
  /* Bubbles scrolling out the top dissolve instead of hard-clipping.
     The padding-top keeps short (unscrolled) threads out of the fade zone. */
  padding-top: 28px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2px, #000 28px);
  mask-image: linear-gradient(to bottom, transparent 2px, #000 28px);
}
.thread.active { pointer-events: auto; }
.msg {
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  padding: 9px 14px; font-size: 14.5px; color: var(--ink); line-height: 1.5;
  overflow-wrap: break-word;
}
.msg.you { align-self: flex-end; border-radius: 16px 16px 4px 16px; max-width: 85%; font-size: 15px; }
.msg.bot { align-self: flex-start; border-radius: 16px 16px 16px 4px; max-width: min(92%, 480px); }
.msg.confirm {
  align-self: flex-start; background: none; border: 0; padding: 0 4px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mut);
  text-shadow: 0 1px 0 var(--field);
}
.typing {
  align-self: flex-start; display: flex; gap: 5px; align-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 13px 15px;
}
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mut);
  animation: tdot 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none; }
}
.ask input:disabled { color: var(--mut); }
.send:disabled { opacity: 0.55; cursor: default; }

/* ---- homepage strips (services + about, folded onto the one page) ---- */
.strip { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; scroll-margin-top: 24px; }
.strip .rows { display: grid; gap: 10px; max-width: 70ch; }
.strip .rows > p { font-size: 15px; color: var(--mut); line-height: 1.6; }
.strip .rows > p strong { color: var(--ink); font-weight: 600; }
.strip .rows a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.strip .rows a:hover { color: var(--acc); border-bottom-color: var(--acc); }

/* ---- legal prose (privacy) ---- */
.datebadge { font-size: 12.5px; color: var(--faint); }
.prose { display: grid; gap: 26px; max-width: 70ch; }
.prose section { border-top: 1px solid var(--line); padding-top: 22px; }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-family: var(--disp); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.prose p { font-size: 14.5px; color: var(--mut); line-height: 1.7; margin-bottom: 10px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 4px 0 12px; padding-left: 20px; color: var(--mut); font-size: 14.5px; line-height: 1.7; }
.prose li { margin: 3px 0; }
.prose a { color: var(--acc); text-decoration: none; border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--acc); }
.callout { border-left: 2px solid var(--acc); padding-left: 16px; margin: 4px 0 2px; }
.callout p { color: var(--ink); }

/* ---- Tal SMS join page ----
   The call to action and its carrier disclosures share one panel, so the
   required language can never drift away from the number it belongs to. */
.joinpanel {
  background: var(--field); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(20px, 4vw, 30px); display: grid; gap: 14px; justify-items: start;
}
.bignum {
  font-family: var(--disp); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(23px, 4.4vw, 34px); line-height: 1.15;
}
.bignum em { font-style: normal; color: var(--acc); }
a.btn-primary { display: inline-block; text-align: center; text-decoration: none; }
.finetext { font-size: 12.5px; color: var(--mut); line-height: 1.6; max-width: 64ch; }
.finetext a { color: var(--mut); text-decoration: none; border-bottom: 1px solid var(--faint); }
.finetext a:hover { color: var(--acc); border-bottom-color: var(--acc); }
/* sample texts reuse the homepage bubbles, minus the glass they float on there */
.texts { display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.texts .msg { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- inner pages (about, contact) ---- */
.page { display: grid; gap: clamp(20px, 3.5vw, 30px); padding-top: clamp(24px, 5vw, 48px); }
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mut);
}
.page h1 {
  font-family: var(--disp); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; max-width: 20ch; text-wrap: balance;
}
.lead { font-size: 16.5px; color: var(--mut); max-width: 58ch; }

.smallprint { font-size: 12px; color: var(--faint); max-width: 68ch; line-height: 1.55; }

/* contact — the form sits in the same recessed panel as the hero field */
.formpanel {
  background: var(--field); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
}
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.metaline { font-size: 14px; color: var(--mut); }
.metaline a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.metaline a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--panel); border: 1.5px solid var(--line); border-radius: 8px;
  padding: 11px 14px; color: var(--ink); font-family: var(--sans); font-size: 16px;
  outline: none; -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--faint); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--acc); }
.form-group textarea { resize: vertical; min-height: 128px; }
.btn-primary {
  width: auto; min-width: 200px; font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--acc); border: 1px solid var(--acc);
  padding: 13px 24px; border-radius: 8px; cursor: pointer;
}
.btn-primary:hover { background: var(--acc-deep); }
.btn-primary:disabled { opacity: 0.7; cursor: default; }
.form-success {
  display: none; text-align: center; padding: 40px 26px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.form-success.visible { display: block; }
.success-title { font-family: var(--disp); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.success-sub { font-size: 14px; color: var(--mut); }

/* ---- footer ---- */
.footer {
  margin-top: clamp(44px, 8vw, 72px); border-top: 1px solid var(--line); padding-top: 18px;
  display: grid; gap: 12px; font-size: 12px; color: var(--faint);
}
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
}
.footer .smallprint { max-width: none; font-size: 11.5px; }
.footer a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer a:hover { color: var(--acc); border-bottom-color: var(--acc); }

.hp { display: none; }

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .btn-primary { width: 100%; }
  .topnav { gap: 14px; }
}
