/* Auto-attendant vs AI receptionist. Scoped to .aav-page.
   Thesis: the same caller, twice. A keypad menu on one side, a conversation on the other. */

.aav-page {
  --aav-paper: #f5f0e5;
  --aav-paper-2: #ebe4d3;
  --aav-ink: #1c1a17;
  --aav-muted: #5b564b;
  --aav-rule: #d0c8b3;
  --aav-tree: #e5dfcd;
  --aav-tree-line: #bdb59f;
  --aav-agent: #1b2b2c;
  --aav-agent-2: #243839;
  --aav-agent-line: #3a5456;
  --aav-agent-text: #e6efe9;
  --aav-agent-muted: #a9c0bb;
  --aav-mint: #86d6b7;
  --aav-brass: #b8924a;
  --aav-teal: #1f6a5e;
  --aav-pen: #a5402b;
  --aav-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--aav-ink);
  background: var(--aav-paper);
  font-family: "DM Sans Variable", "DM Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}
.aav-page *,
.aav-page *::before,
.aav-page *::after { box-sizing: border-box; }
.aav-page ::selection { color: #fff; background: var(--aav-teal); }
.aav-page a { text-underline-offset: 0.25em; }
.aav-page a:focus-visible,
.aav-page summary:focus-visible,
.aav-page button:focus-visible,
.aav-page .aav-pick:focus-visible + label { outline: 2px solid var(--aav-teal); outline-offset: 3px; }
.aav-page [id] { scroll-margin-top: 112px; }
:where(.aav-page) :is(h1, h2, h3, p, figure, ol, ul, dl, dd) { margin: 0; }
.aav-page h1,
.aav-page h2,
.aav-page h3 { font-family: "Cormorant Garamond Variable", Georgia, serif; font-weight: 500; text-wrap: balance; }
.aav-wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }

.aav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.aav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--aav-ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s var(--aav-ease);
}
.aav-btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--aav-ease); }
.aav-btn:hover { background: var(--aav-teal); }
.aav-btn:hover svg { transform: translateX(3px); }
.aav-quiet { display: inline-flex; align-items: center; gap: 8px; color: var(--aav-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--aav-brass); text-decoration-thickness: 2px; background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.aav-quiet svg { width: 18px; height: 18px; }
.aav-quiet:hover { color: var(--aav-teal); }

.aav-head { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 44px); }
.aav-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.015em; }
.aav-head p { margin-top: 16px; color: var(--aav-muted); }

/* Hero */
.aav-hero { padding: 112px 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--aav-rule); }
.aav-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.aav-hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; }
.aav-lede { margin-top: 20px; max-width: 58ch; font-size: 1.125rem; color: #38342c; }
.aav-priceline { margin-top: 20px; max-width: 58ch; padding: 14px 0; border-top: 1px solid var(--aav-rule); border-bottom: 1px solid var(--aav-rule); font-weight: 600; }
.aav-hero .ns-trustline { margin-top: 16px; }

/* The two calls */
.aav-demo { border: 1px solid var(--aav-tree-line); border-radius: 12px; background: #fcfaf4; overflow: hidden; }
.aav-picks { padding: 14px 14px 12px; border-bottom: 1px solid var(--aav-rule); }
.aav-picks-label { margin-bottom: 8px !important; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aav-muted); }
.aav-picks [role="radiogroup"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aav-pick { position: absolute; opacity: 0; pointer-events: none; }
.aav-picks label { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 1px solid var(--aav-rule); border-radius: 8px; background: #fff; cursor: pointer; line-height: 1.3; transition: border-color 0.2s, background 0.2s; }
.aav-picks label b { font-size: 0.9375rem; }
.aav-picks label small { font-size: 0.8125rem; color: var(--aav-muted); }
.aav-picks label:hover { border-color: var(--aav-teal); }
.aav-pick:checked + label { border-color: var(--aav-ink); background: var(--aav-ink); color: #fff; }
.aav-pick:checked + label small { color: #cfd3cc; }

.aav-case { display: none; grid-template-columns: 1fr 1fr; }
.aav-case:first-of-type { display: grid; }
.aav-demo:has(#aav-c-ceiling:checked) .aav-case { display: none; }
.aav-demo:has(#aav-c-quote:checked) .aav-case { display: none; }
.aav-demo:has(#aav-c-invoice:checked) .aav-case { display: none; }
.aav-demo:has(#aav-c-ceiling:checked) .aav-case[data-case="ceiling"],
.aav-demo:has(#aav-c-quote:checked) .aav-case[data-case="quote"],
.aav-demo:has(#aav-c-invoice:checked) .aav-case[data-case="invoice"] { display: grid; animation: aav-in 0.5s var(--aav-ease) both; }
@keyframes aav-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.aav-side { padding: 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.aav-side-menu { background: var(--aav-tree); }
.aav-side-agent { background: var(--aav-agent); color: var(--aav-agent-text); }
.aav-side-name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.aav-side-menu .aav-side-name { color: #575242; }
.aav-side-agent .aav-side-name { color: var(--aav-mint); }
.aav-side ol { list-style: none; padding: 0; display: grid; gap: 8px; }
.aav-side li { padding: 9px 11px; border-radius: 8px; font-size: 0.9375rem; line-height: 1.4; }
.aav-side-menu li.is-menu { background: #f3eedf; border: 1px solid var(--aav-tree-line); }
.aav-side-menu li.is-caller { background: transparent; color: #575242; font-style: italic; padding-block: 2px; }
.aav-side-agent li.is-agent { background: var(--aav-agent-2); }
.aav-side-agent li.is-caller { background: transparent; border: 1px dashed var(--aav-agent-line); color: var(--aav-agent-muted); }
.aav-result { padding-top: 10px; border-top: 1px solid var(--aav-tree-line); font-weight: 700; line-height: 1.4; }
.aav-side-menu .aav-result { color: var(--aav-pen); }
.aav-side-agent .aav-result { border-top-color: var(--aav-agent-line); color: var(--aav-mint); }
.aav-verdict { grid-column: 1 / -1; padding: 14px 18px; background: #fcfaf4; font-weight: 600; border-top: 1px solid var(--aav-rule); }
.aav-verdict span { display: block; margin-top: 2px; font-weight: 400; font-size: 0.875rem; color: var(--aav-muted); }

/* Difference table */
.aav-diff { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--aav-rule); }
.aav-table { border-top: 2px solid var(--aav-ink); }
.aav-row { display: grid; grid-template-columns: 0.8fr 1fr 1.2fr; gap: clamp(16px, 3vw, 40px); padding: 16px 0; border-bottom: 1px solid var(--aav-rule); }
.aav-row b { font-weight: 700; }
.aav-row span:nth-child(2) { color: var(--aav-muted); }
.aav-row span:nth-child(3) { font-weight: 500; color: var(--aav-teal); }
.aav-row-head { padding: 12px 0; border-bottom: 1px solid var(--aav-ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--aav-muted); }
.aav-row-head span { color: var(--aav-muted) !important; font-weight: 700 !important; }

/* Four questions */
.aav-keep { padding: clamp(56px, 8vw, 104px) 0; background: var(--aav-paper-2); border-bottom: 1px solid var(--aav-rule); }
.aav-qs { list-style: none; padding: 0; border-top: 2px solid var(--aav-ink); }
.aav-qs li { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(16px, 3vw, 40px); padding: 22px 0; border-bottom: 1px solid var(--aav-tree-line); }
.aav-q { font-family: "Cormorant Garamond Variable", Georgia, serif; font-size: 1.6rem; line-height: 1.12; }
.aav-yes b { color: var(--aav-teal); }
.aav-no b { color: var(--aav-pen); }
.aav-yes, .aav-no { color: #38342c; }

/* Install */
.aav-install { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--aav-rule); }
.aav-install-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.aav-install .aav-head { margin-bottom: 0; position: sticky; top: 112px; }
.aav-map { list-style: none; padding: 0; counter-reset: m; border-top: 1px solid var(--aav-ink); }
.aav-map li { counter-increment: m; position: relative; padding: 18px 0 18px 3rem; border-bottom: 1px solid var(--aav-rule); }
.aav-map li::before { content: counter(m); position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--aav-ink); color: #fff; font-size: 0.875rem; font-weight: 700; }
.aav-map h3 { font-size: 1.6rem; line-height: 1.1; }
.aav-map p { margin-top: 2px; color: var(--aav-muted); }

/* Cost (dark band) */
.aav-cost { padding: clamp(56px, 8vw, 104px) 0; background: var(--aav-agent); color: var(--aav-agent-text); }
.aav-cost .aav-head p { color: var(--aav-agent-muted); }
.aav-plans { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--aav-agent-line); }
.aav-plan { padding: 26px clamp(18px, 3vw, 40px) 26px 0; }
.aav-plan + .aav-plan { padding-left: clamp(18px, 3vw, 40px); border-left: 1px solid var(--aav-agent-line); }
.aav-plan h3 { font-size: 2rem; color: #fff; }
.aav-plan-price { margin-top: 4px !important; font-family: "Cormorant Garamond Variable", Georgia, serif; font-size: 3.2rem; line-height: 1; color: var(--aav-mint); font-variant-numeric: lining-nums tabular-nums; }
.aav-plan-price span { font-family: "DM Sans Variable", Arial, sans-serif; font-size: 1rem; color: var(--aav-agent-muted); margin-left: 4px; }
.aav-plan-fit { margin-top: 10px !important; color: var(--aav-agent-muted); }
.aav-plan ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 0; }
.aav-plan li { padding: 9px 0; border-top: 1px solid var(--aav-agent-line); font-size: 0.9375rem; }
.aav-terms { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--aav-agent-line); display: grid; gap: 8px; max-width: 70ch; }
.aav-terms b { color: #fff; }
.aav-fine { font-size: 0.8125rem; color: var(--aav-agent-muted); }
.aav-terms .aav-btn { justify-self: start; margin-top: 12px; background: var(--aav-mint); color: var(--aav-ink); }
.aav-terms .aav-btn:hover { background: #fff; }
.aav-cost a:focus-visible { outline-color: var(--aav-mint); }

/* FAQ */
.aav-faq { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--aav-rule); }
.aav-faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.aav-faq h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.05; position: sticky; top: 112px; }
.aav-faq details { border-bottom: 1px solid var(--aav-tree-line); }
.aav-faq details:first-child { border-top: 1px solid var(--aav-tree-line); }
.aav-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; }
.aav-faq summary::-webkit-details-marker { display: none; }
.aav-faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--aav-teal); transition: transform 0.25s var(--aav-ease); }
.aav-faq details[open] summary::after { transform: rotate(45deg); }
.aav-faq details p { padding: 0 0 22px; max-width: 64ch; color: #38342c; }

/* Related */
.aav-related { padding: clamp(40px, 5vw, 64px) 0; background: var(--aav-paper-2); }
.aav-related-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.aav-related h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; }
.aav-related ul { list-style: none; padding: 0; border-top: 1px solid var(--aav-tree-line); }
.aav-related li { padding: 14px 0; border-bottom: 1px solid var(--aav-tree-line); }
.aav-related a { font-weight: 700; color: var(--aav-ink); }
.aav-related a:hover { color: var(--aav-teal); }

/* Close */
.aav-close { padding: clamp(56px, 8vw, 96px) 0; background: var(--aav-ink); color: #f1ede2; }
.aav-close-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.aav-close h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.04; }
.aav-close p { margin-top: 16px; max-width: 56ch; color: #cfc9ba; }
.aav-line { font-family: "Cormorant Garamond Variable", Georgia, serif; font-size: 2rem; }
.aav-line a { color: #fff; text-decoration-color: var(--aav-brass); }
.aav-close .aav-actions { margin-top: 0; }
.aav-close .aav-btn { background: var(--aav-mint); color: var(--aav-ink); }
.aav-close .aav-btn:hover { background: #fff; }
.aav-close .aav-quiet { color: #f1ede2; }
.aav-close a:focus-visible { outline-color: var(--aav-mint); }
.aav-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-block: 22px 34px; font-size: 0.9rem; color: var(--aav-muted); }
.aav-crumbs a { color: var(--aav-teal); }

@media (max-width: 1000px) {
  .aav-hero-grid,
  .aav-install-grid,
  .aav-faq-grid,
  .aav-related-grid,
  .aav-close-grid { grid-template-columns: 1fr; }
  .aav-install .aav-head,
  .aav-faq h2 { position: static; }
  .aav-install .aav-head { margin-bottom: 26px; }
}
@media (max-width: 720px) {
  .aav-hero { padding-top: 96px; }
  .aav-hero h1 { font-size: 2.05rem; }
  .aav-lede { margin-top: 14px; font-size: 1rem; line-height: 1.55; }
  .aav-priceline { margin-top: 14px; padding: 10px 0; font-size: 0.9375rem; line-height: 1.5; }
  .aav-hero .ns-trustline { margin-top: 12px; }
  .aav-actions { margin-top: 18px; }
  .aav-picks [role="radiogroup"] { grid-template-columns: 1fr; }
  .aav-case { grid-template-columns: 1fr; }
  .aav-row { grid-template-columns: 1fr; gap: 2px; }
  .aav-row-head { display: none; }
  .aav-row span::before { content: attr(data-label) ": "; font-weight: 700; color: var(--aav-muted); }
  .aav-qs li { grid-template-columns: 1fr; gap: 6px; }
  .aav-plans { grid-template-columns: 1fr; }
  .aav-plan { padding-right: 0; }
  .aav-plan + .aav-plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--aav-agent-line); }
}
@media (prefers-reduced-motion: reduce) {
  .aav-case { animation: none !important; }
  .aav-page * { transition-duration: 0.01ms !important; }
}
