/* Booked: shared tokens + components for the landing page and the owner app. */
:root {
  /* Brand tokens: see /brand/ for the full guide */
  --ink: #0e1310;          /* Night */
  --ink-2: #1a211d;
  --ink-3: #26302a;
  --forest: #07361e;       /* Forest: headlines, text on green */
  --paper: #f5f7f2;        /* Cloud */
  --card: #ffffff;
  --line: #e1e5de;
  --line-2: #cdd3c9;
  --text: #0e1310;
  --muted: #5b645e;        /* Slate */
  --faint: #8a918b;        /* Pebble */
  --go: #1fc46e;           /* Booked Green */
  --go-hover: #29d27a;
  --go-2: #0a7f42;         /* Fern: green text on white */
  --go-soft: #e3f8ec;      /* Mint */
  --go-ink: #07361e;
  --hot: #ff6420;
  --hot-soft: #fff0e8;
  --ember: #c2410c;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(7, 54, 30, 0.06), 0 8px 24px rgba(7, 54, 30, 0.08);
  --shadow-lg: 0 2px 6px rgba(7, 54, 30, 0.08), 0 24px 60px rgba(7, 54, 30, 0.2);
  --shadow-green: 0 10px 24px rgba(31, 196, 110, 0.35);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 7px; font: 800 25px/1 var(--display); letter-spacing: -0.035em; text-decoration: none; color: var(--forest); }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:focus-visible { outline: 3px solid rgba(31, 196, 110, 0.45); outline-offset: 2px; }
.btn-go { background: var(--go); color: var(--forest); box-shadow: var(--shadow-green); }
.btn-go:hover { background: var(--go-hover); }
.btn-ink { background: var(--forest); color: #fff; }
.btn-ink:hover { background: #0b4a2a; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(14, 19, 16, 0.04); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-danger { background: #c9302c; color: #fff; }
.btn-danger:hover { background: #b02a26; }
.btn-danger-ghost { background: #fff; border-color: #f1c4c2; color: #b02a26; }
.btn-danger-ghost:hover { background: #fdf1f0; }
.btn-block { width: 100%; }
@media (pointer: coarse), (max-width: 760px) { .btn-sm { height: 44px; } }
.link44 { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 -4px; font-weight: 600; color: var(--go-2); text-decoration: none; font-size: 14.5px; }
.link44:hover { text-decoration: underline; }

/* forms */
.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-size: 13px; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--go-2); box-shadow: 0 0 0 4px rgba(31, 196, 110, 0.16); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b645e' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--paper); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip-go { background: var(--go-soft); border-color: transparent; color: var(--go-2); }
.chip-hot { background: var(--hot-soft); border-color: transparent; color: var(--ember); }
/* messages: Mint with Forest text (no blue anywhere in the product) */
.chip-msg, .chip-blue { background: var(--go-soft); border-color: transparent; color: var(--forest); }
.chip-test { background: #fff; border: 1px dashed var(--line-2); color: var(--muted); }
.chip-demo { background: #fff; border-color: var(--line-2); color: var(--muted); }
.chip svg { width: 13px; height: 13px; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 550; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 200; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Call screen (shared by the landing demo and owner test calls)
   ============================================================ */
.call-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(8, 11, 9, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; padding: 16px; }
.call-overlay.open { opacity: 1; }
.phone { position: relative; width: min(390px, 100%); height: min(780px, calc(100dvh - 32px)); border-radius: 44px; background: linear-gradient(180deg, #121a15 0%, #0b100d 100%); color: #fff; box-shadow: 0 0 0 10px #1b221e, 0 0 0 11px #2c3530, var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; transform: translateY(24px) scale(0.98); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.call-overlay.open .phone { transform: none; }
@media (max-width: 520px) {
  .call-overlay { padding: 0; background: #0b100d; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}
.phone-top { padding: 54px 24px 12px; text-align: center; }
.phone-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font: 800 28px/1 var(--display); background: linear-gradient(135deg, #2b3a31, #1b241f); border: 1px solid rgba(255, 255, 255, 0.08); position: relative; }
.phone-avatar::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--go); opacity: 0; transform: scale(0.9); }
.phone[data-state="speaking"] .phone-avatar::after { animation: ring 1.2s ease-out infinite; }
.phone[data-state="listening"] .phone-avatar::after { opacity: 0.25; transform: none; border-color: rgba(255, 255, 255, 0.5); }
@keyframes ring { 0% { opacity: 0.8; transform: scale(0.92); } 100% { opacity: 0; transform: scale(1.25); } }
.phone-name { font: 700 24px/1.15 var(--display); }
.phone-status { margin-top: 6px; color: rgba(255, 255, 255, 0.6); font-size: 15px; font-variant-numeric: tabular-nums; min-height: 22px; }
.phone-caps { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 100%); }
.cap { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; animation: capIn 0.25s ease-out; }
.cap-agent { align-self: flex-start; background: rgba(255, 255, 255, 0.09); border-bottom-left-radius: 6px; }
.cap-caller { align-self: flex-end; background: var(--go); color: var(--go-ink); border-bottom-right-radius: 6px; font-weight: 550; }
.cap-note { align-self: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); background: none; padding: 2px; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }
.phone-meter { height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 6px; }
.phone-meter i { width: 4px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: height 0.08s, background 0.2s; }
.phone[data-state="listening"] .phone-meter i { background: #fff; }
.phone-hint { text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.5); min-height: 20px; padding: 0 20px; }
.phone-type { display: none; gap: 8px; padding: 10px 16px 0; }
.phone.typing .phone-type { display: flex; }
.phone-type input { flex: 1; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #fff; padding: 0 18px; outline: none; }
.phone-type input:focus { border-color: var(--go); }
.phone-type button { height: 46px; width: 46px; border-radius: 50%; border: 0; background: var(--go); color: var(--go-ink); cursor: pointer; display: grid; place-items: center; }
.phone-actions { display: flex; justify-content: center; align-items: flex-start; gap: 34px; padding: 18px 24px 38px; }
.pa { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); background: none; border: 0; cursor: pointer; }
.pa span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); transition: background 0.15s, transform 0.12s; }
.pa:hover span { background: rgba(255, 255, 255, 0.2); }
.pa:active span { transform: scale(0.95); }
.pa.on span { background: #fff; color: var(--ink); }
.pa-end span { background: #ff3b30; }
.pa-end:hover span { background: #ff5147; }
.pa svg { width: 26px; height: 26px; }

/* the push notification that drops in when a job is booked */
.lock-note { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 5; background: rgba(245, 247, 245, 0.96); color: var(--ink); border-radius: 22px; padding: 12px 14px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transform: translateY(-140%); transition: transform 0.55s cubic-bezier(0.2, 1.1, 0.3, 1); }
.lock-note.show { transform: none; }
.lock-note .logo-mark { width: 38px; height: 38px; }
.ln-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ln-title { font-weight: 750; font-size: 15px; margin-top: 1px; }
.ln-body { font-size: 14px; line-height: 1.35; margin-top: 1px; }

/* end-of-call summary */
.phone-summary { position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, #121a15, #0b100d); padding: 64px 22px calc(24px + env(safe-area-inset-bottom)); display: none; flex-direction: column; gap: 14px; overflow-y: auto; outline: none; }
.phone.done .phone-summary { display: flex; animation: capIn 0.3s ease-out; }
.ps-kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--go); font-weight: 700; }
.ps-kicker.hot { color: var(--hot); }
.ps-title { font: 800 30px/1.05 var(--display); letter-spacing: -0.02em; }
.ps-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-bottom: -6px; }
.ps-note { background: rgba(245, 247, 245, 0.97); color: var(--ink); border-radius: 20px; padding: 12px 14px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.ps-note .logo-mark { width: 36px; height: 36px; }
.ps-note.hot .ln-title, .lock-note.hot .ln-title { color: var(--ember); }
.ps-empty { color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.ps-recap { display: grid; gap: 2px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 6px 14px; }
.ps-row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ps-row:first-child { border-top: 0; }
.ps-row svg { width: 18px; height: 18px; color: var(--go); margin-top: 2px; }
.ps-row span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.ps-row b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ps-tx { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; }
.ps-tx summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.ps-tx summary::-webkit-details-marker { display: none; }
.ps-tx summary small { color: rgba(255, 255, 255, 0.55); font-weight: 500; font-size: 13px; }
.ps-tx summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; flex: none; }
.ps-tx[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.ps-tx summary small { margin-left: auto; }
.ps-tx > div { padding: 0 16px 14px; display: grid; gap: 10px; }
.ps-tx p { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.ps-tx p b { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.ps-tx p.caller b { color: var(--go); }
.ps-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; }
.ps-close { border-color: transparent !important; background: transparent !important; }
.phone-caps::-webkit-scrollbar { display: none; }

/* receptionist "typing" bubble while it thinks */
.cap-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; width: auto; }
.cap-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); animation: dots 1.1s ease-in-out infinite; }
.cap-typing i:nth-child(2) { animation-delay: 0.15s; }
.cap-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* typing mode */
.phone-notice { align-self: center; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.86); font-size: 13.5px; font-weight: 550; line-height: 1.3; padding: 8px 14px; border-radius: 999px; margin: 4px 0; animation: capIn 0.25s ease-out; text-align: left; }
.phone-notice svg { width: 17px; height: 17px; flex: none; color: var(--go); }
.phone.typing .phone-meter, .phone.typing .pa-mute, .phone.forced .pa-keys { display: none; }
.phone.typing .phone-hint { color: rgba(255, 255, 255, 0.72); }
.phone-type input.pulse { animation: inputPulse 1.4s ease-out 1; }
@keyframes inputPulse { 0% { box-shadow: 0 0 0 0 rgba(31, 196, 110, 0.7); border-color: var(--go); } 100% { box-shadow: 0 0 0 14px rgba(31, 196, 110, 0); } }
.pa:focus-visible span { outline: 3px solid rgba(31, 196, 110, 0.6); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .cap, .cap-typing i, .phone-type input.pulse, .phone.done .phone-summary { animation: none !important; }
  .phone, .lock-note, .call-overlay { transition: none !important; }
  html { scroll-behavior: auto; }
}
