/* Controls pass. Loaded last. Only buttons, chips, labels, badges, form fields and floating controls.
   Layout, sections, headings and imagery are untouched.
   Register: Retell AI style controls (small, flat, sentence case, tight tracking, 6px corners) in Ventura green. */

:root {
  --c-ink: #0c2519;
  --c-ink-2: #1a3f2d;
  --c-surface: #f3f6f4;
  --c-surface-2: #e7ede9;
  --c-line: #dde5e0;
  --c-line-2: #c8d4cd;
  --c-accent: #1f7550;
  --c-muted: #53635a;
  --c-mint: #93e2b3;
  --c-amber-bg: #fbf1d3;
  --c-amber-ink: #5f4a0c;
  --c-ok-bg: #d9f1e2;
  --c-ok-ink: #115236;
  --c-ease: cubic-bezier(.16, 1, .3, 1);
  --c-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- One button system ---------- */
html body .button,
html body .demo-button,
html body .copy-button,
html body .case-tabs button {
  font-family: var(--c-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
html body .button,
html body .header .button.small,
html body .hero .actions > .button.secondary,
html body .offer-footer .button,
html body .contact-layout .button {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  gap: 8px;
  font-size: 13px;
  letter-spacing: -.01em;
  text-transform: none;
  border: 0;
  border-radius: 6px;
}
html body .button:hover { transform: none; }
html body .button:active,
html body .demo-button:active,
html body .copy-button:active,
html body .case-tabs button:active { transform: scale(.97); }

/* Arrow glyphs: small and inline, no boxed cell */
html body .button > span:last-child,
html body .header .button.small > span,
html body .hero .button > span:last-child,
html body .hero .actions > .button.secondary > span,
html body .contact-layout .button > span {
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1;
  overflow: visible;
  background: none;
  box-shadow: none;
  transition: transform .3s var(--c-ease);
}
html body .button:hover > span:last-child,
html body .hero .actions > .button.secondary:hover > span { transform: translateX(2px); }
html body .button:hover > span:last-child:is(:not(:empty)) { background: none; }

/* Primary on light surfaces: ink */
html body .button,
html body .offer-footer .button,
html body .contact-layout .button { background: var(--c-ink); color: #fff; }
html body .button:hover,
html body .offer-footer .button:hover,
html body .contact-layout .button:hover { background: var(--c-ink-2); }

/* Header sits on the dark hero: white primary, 32px, no arrow (Retell nav pattern) */
html body .header .button.small {
  min-height: 32px; height: 32px; padding: 0 12px;
  background: #fff; color: var(--c-ink);
}
html body .header .button.small:hover { background: #e4f2e9; }
html body .header .button.small > span { display: none; }

/* Hero: larger primary in white, secondary as a quiet glass button */
html body .hero .actions > .button:not(.secondary) {
  min-height: 44px; height: 44px; padding: 0 18px; font-size: 14px;
  background: #fff; color: var(--c-ink);
}
html body .hero .actions > .button:not(.secondary):hover { background: #e4f2e9; }
html body .hero .actions > .button.secondary {
  min-height: 44px; height: 44px; padding: 0 18px; font-size: 14px;
  background: rgb(255 255 255 / .1);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}
html body .hero .actions > .button.secondary:hover { background: rgb(255 255 255 / .17); }
html body .hero .actions { gap: 10px; }

/* Form submit: full width, centred label */
html body .contact-layout .button { min-height: 44px; height: 44px; font-size: 14px; justify-content: center; }

/* Demo "next step": primary */
html body .demo-button {
  min-height: 36px; height: 36px; padding: 0 14px; gap: 8px;
  background: var(--c-ink); color: #fff; border-radius: 6px;
}
html body .demo-button:hover { background: var(--c-ink-2); }

/* Copy enquiry: secondary */
html body .copy-button {
  min-height: 32px; height: 32px; padding: 0 12px;
  background: var(--c-surface); color: var(--c-ink); border-radius: 6px;
}
html body .copy-button:hover { background: var(--c-surface-2); }

/* Text link: hairline underline instead of arrow-only link */
html body .text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 0;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  opacity: .92;
  transition: opacity .15s;
}
html body .text-link:hover { opacity: 1; color: inherit; }

/* ---------- Task chips (demo tabs) ---------- */
html body .case-tabs { gap: 8px; }
html body .case-tabs button {
  min-height: 36px; height: 36px; padding: 0 14px;
  background: var(--c-surface); color: var(--c-ink);
  border: 0; border-radius: 6px;
}
html body .case-tabs button:hover { background: var(--c-surface-2); transform: none; }
html body .case-tabs button[aria-selected="true"] { background: var(--c-ink); color: #fff; font-weight: 500; }
html body .case-tabs button[aria-selected="true"]:hover { background: var(--c-ink-2); }

/* ---------- Small labels: sentence case, readable sizes ---------- */
html body .hero .eyebrow { font-size: 14px; letter-spacing: 0; color: rgb(242 247 243 / .78); }
html body .hero .micro { font-size: 13px; color: rgb(242 247 243 / .7); }
html body .header nav { font-size: 14px; }
html body .header nav a { color: rgb(242 247 243 / .78); transition: color .15s; }
html body .header nav a:hover { color: #fff; }
html body .demo-intro > p:first-child { font-size: 13px; font-weight: 500; color: var(--c-accent); }
html body .contact-section .eyebrow { font-size: 14px; letter-spacing: 0; color: rgb(242 247 243 / .78); }
html body .orb-status { font-size: 14px; color: var(--c-muted); }
html body .message-label { font-size: 13px; font-weight: 500; color: var(--c-accent); }

/* ---------- Tags and badges ---------- */
html body .example-label,
html body .window-tag,
html body .table-title > span,
html body .approval-top > span:last-child {
  font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1;
  color: var(--c-muted); background: #fff;
  padding: 5px 8px; border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--c-line);
}
html body .status {
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 6px 9px; border: 0; border-radius: 4px;
  background: var(--c-amber-bg); color: var(--c-amber-ink);
}
html body .status.complete { background: var(--c-ok-bg); color: var(--c-ok-ink); }
html body .table-state {
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 5px 8px; border-radius: 4px;
  background: var(--c-amber-bg); color: var(--c-amber-ink);
}
html body .table-state.ready-state { background: var(--c-ok-bg); color: var(--c-ok-ink); }
html body .pill {
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 7px 10px; border-radius: 100px;
  background: var(--c-mint); color: var(--c-ink);
}
html body .pill.quiet-pill {
  background: transparent; color: rgb(242 247 243 / .8);
  box-shadow: inset 0 0 0 1px rgb(242 247 243 / .3);
}
html body .initial-avatar { width: 26px; height: 26px; font-size: 10px; font-weight: 600; color: var(--c-ink); }

/* ---------- Demo microcopy: no text under 12px ---------- */
html body .detail-grid > div { font-size: 13px; grid-template-columns: 116px 1fr; }
html body .check-note { font-size: 13px; color: #2c4a31; background: #e2ecd7; border-radius: 6px; }
html body .demo-bottom p { font-size: 13px; }
html body .progress { font-size: 12px; }
html body .demo-disclaimer,
html body .immersive-features .sample-caption { font-size: 13px; color: var(--c-muted); }
html body .demo-top { font-size: 14px; }
html body .result-title { font-size: 13px; }
html body .mini-node { font-size: 12px; }
html body .window-top { font-size: 13px; }
html body .window-body dl > div,
html body .node-footer,
html body .reply-check,
html body .approval-top,
html body .approval-detail,
html body .approval-handoff,
html body .task-table > div,
html body .task-table .table-title { font-size: 12px; }
html body .reply-lines p,
html body .approval-sheet > p { font-size: 13px; }

/* ---------- Card shadows: tight, not "thin border + wide blur" ---------- */
html body .demo { box-shadow: 0 1px 2px rgb(12 37 25 / .05); }
html body .flow-window,
html body .reply-sheet,
html body .task-table { box-shadow: 0 1px 2px rgb(12 37 25 / .05), 0 8px 18px -12px rgb(12 37 25 / .18); }

/* ---------- Card surfaces: white instead of cream, tight shadow ---------- */
html body .primary-offer { background: #fff; border-color: transparent; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 16px 32px -20px rgb(0 0 0 / .45); }

/* ---------- Form ---------- */
html body #enquiry-form { background: #fff; border-color: transparent; border-radius: 16px; }
html body .contact-layout label {
  font-family: var(--c-sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: var(--c-accent);
}
html body .contact-layout input,
html body .contact-layout textarea {
  font-family: var(--c-sans); font-size: 16px; letter-spacing: -.01em; color: var(--c-ink);
  border: 1px solid var(--c-line-2); border-radius: 6px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
html body .contact-layout input:focus,
html body .contact-layout textarea:focus {
  outline: 0; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgb(31 117 80 / .16);
}
html body .contact-layout input::placeholder,
html body .contact-layout textarea::placeholder { color: #63726a; }
html body .form-note { font-size: 13px; }

/* ---------- FAQ toggle ---------- */
html body .faqs summary { font-size: 17px; letter-spacing: -.02em; }
/* The "+" glyph is hidden and redrawn as two lines, so only the vertical bar turns (plus becomes minus). */
html body .faqs summary > span {
  position: relative; flex: none;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--c-surface); font-size: 0; color: transparent;
  transform: none;
  transition: background-color .2s;
}
html body .faqs summary > span::before,
html body .faqs summary > span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px;
  background: var(--c-ink); border-radius: 1px;
  transition: transform .35s var(--c-ease), background-color .2s;
}
html body .faqs summary > span::after { transform: rotate(90deg); }
html body .faqs summary:hover > span { background: var(--c-surface-2); }
html body .faqs details[open] summary > span { transform: none; background: var(--c-ink); }
html body .faqs details[open] summary > span::before,
html body .faqs details[open] summary > span::after { background: #fff; }
html body .faqs details[open] summary > span::after { transform: rotate(0deg); }
html body .faqs details p { font-size: 15px; line-height: 1.65; color: var(--c-muted); }

/* ---------- Floating controls ---------- */
html body .floating-demo {
  gap: 20px; padding: 8px 8px 8px 16px; border: 0; border-radius: 12px;
  background: #fff; color: var(--c-ink); font-size: 13px; line-height: 1.3;
  box-shadow: 0 0 0 1px var(--c-line), 0 1px 2px rgb(12 37 25 / .06), 0 10px 24px -14px rgb(12 37 25 / .3);
}
html body .floating-demo strong { font-weight: 500; }
html body .floating-demo .liquid-orb { width: 44px; border-radius: 8px; }
html body .floating-demo:hover { transform: translateY(-2px); }
html body .immersive-pause {
  height: 32px; padding: 0 12px; border: 0; border-radius: 6px;
  background: #fff; color: var(--c-muted);
  font-family: var(--c-sans); font-size: 12px; font-weight: 500;
  box-shadow: 0 0 0 1px var(--c-line);
  transition: color .15s, background-color .15s;
}
html body .immersive-pause:hover { color: var(--c-ink); background: var(--c-surface); }

/* ---------- Orb: greener, off the teal "AI glow" hue ---------- */
html body .orb-mist {
  background:
    radial-gradient(ellipse at 26% 27%, #f3f6c6 0%, rgb(190 222 164 / .32) 27%, transparent 48%),
    radial-gradient(ellipse at 80% 75%, #86cf92, transparent 44%),
    conic-gradient(from 75deg, #0a4a33, #57a874, #c3d9a0, #0f5a3e, #5eab7e, #0a4a33);
}
html body .liquid-orb { background: #1c6a48; }

/* ---------- Focus ---------- */
html body .button:focus-visible,
html body .demo-button:focus-visible,
html body .copy-button:focus-visible,
html body .case-tabs button:focus-visible,
html body .floating-demo:focus-visible,
html body .immersive-pause:focus-visible,
html body summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

@media (max-width: 760px) {
  html body .hero .actions > .button { font-size: 13px; padding: 0 16px; }
  html body .case-tabs button { font-size: 13px; padding: 0 12px; min-height: 36px; }
}

/* ---------- Footer links and small print ---------- */
html body .footer p,
html body .footer > a:not(.brand) { font-size: 13px; }
html body .footer .copyright { font-size: 13px; color: var(--c-muted); }
html body .offer-card .pill.quiet-pill,
html body .support-offer .pill.quiet-pill { font-size: 12px; padding: 7px 10px; }
