/* 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;
  --blue: #2d6bff;
  --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 { opacity: 0.55; cursor: not-allowed; }
.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: #e5484d; color: #fff; }
.btn-block { width: 100%; }

/* forms */
.field { display: grid; gap: 6px; }
.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: #eeebe3; color: var(--muted); white-space: nowrap; }
.chip-go { background: var(--go-soft); color: var(--go-2); }
.chip-hot { background: var(--hot-soft); color: var(--ember); }
.chip-blue { background: #e8efff; color: var(--blue); }
.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: 70px 22px 28px; display: none; flex-direction: column; gap: 16px; overflow-y: auto; }
.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-title { font: 800 30px/1.05 var(--display); }
.ps-sms { background: #fff; color: var(--ink); border-radius: 20px; padding: 14px 16px; font-size: 15px; line-height: 1.45; position: relative; }
.ps-sms b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.ps-actions { display: grid; gap: 10px; margin-top: auto; }
.phone-caps::-webkit-scrollbar { display: none; }
