/* quickdial.ai/restaurant — page-specific additions on top of /styles.css (Ambient Glass tokens) */

/* ---------- hero: copy on the left, a looping "live call" card on the right ---------- */
#top.page { min-height: 0; display: flex; padding: calc(var(--nav-h) + 64px) 22px 40px; }  /* the root sheet zeroes #top for the film */
#top .wrap { width: min(1180px, 100%); }
.rs-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.rs-hero { display: grid; gap: 18px; max-width: 640px; }
.rs-hero h1 { font-size: clamp(40px, 5.2vw, 76px); }
.rs-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rs-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; font-size: 13px; color: var(--text-lo); }
.rs-strip span { display: inline-flex; align-items: baseline; gap: 8px; }
.rs-strip b { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--text-hi); }
.rs-strip b.accent { color: var(--orange); }

.call-wrap { position: relative; justify-self: end; width: min(440px, 100%); }
.call-wrap::before { /* a slow, soft glow behind the card */
  content: ""; position: absolute; inset: -12% -16%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(45% 45% at 50% 50%, rgba(240,115,61,.26), rgba(240,115,61,0) 70%);
  filter: blur(28px); animation: glow 7s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate3d(-4%, 2%, 0) scale(.95); opacity: .7; } to { transform: translate3d(4%, -3%, 0) scale(1.05); opacity: 1; } }
.call { padding: 20px 20px 18px; display: grid; gap: 14px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.call-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mid); }
.call-top b { color: var(--text-hi); font-weight: 600; }
.call-top .ldot { width: 8px; height: 8px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgba(95,208,138,.6); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,208,138,.6); } 70% { box-shadow: 0 0 0 9px rgba(95,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(95,208,138,0); } }
.call-top .clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-lo); font-size: 12.5px; }
.call-lines { display: grid; gap: 9px; min-height: 236px; align-content: end; }
.ln { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(10px); animation: lnin .45s cubic-bezier(.2,.8,.2,1) forwards; }
.ln.guest { justify-self: end; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-bottom-right-radius: 6px; color: var(--text-hi); }
.ln.host { justify-self: start; background: rgba(240,115,61,.14); border: 1px solid rgba(240,115,61,.34); border-bottom-left-radius: 6px; color: var(--text-hi); }
.ln.host::before { content: "Host"; display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 3px; font-weight: 600; }
.ln.typing { padding: 12px 16px; display: flex; gap: 5px; align-items: center; }
.ln.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: dot 1s ease-in-out infinite; }
.ln.typing i:nth-child(2) { animation-delay: .15s; } .ln.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ln.ticket { justify-self: center; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  color: #0b0908; background: linear-gradient(135deg, #ffd9a8, var(--gold)); border: 0; box-shadow: 0 10px 26px rgba(240,192,112,.3); }
.ln.ticket svg { width: 16px; height: 16px; }
@keyframes lnin { to { opacity: 1; transform: none; } }
.ln.out { animation: lnout .4s ease forwards; }
@keyframes lnout { to { opacity: 0; transform: translateY(-8px); } }
.call-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-lo); }
.eq { display: flex; align-items: center; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--orange); transition: height .3s; }
.call.speaking .eq i { animation: eq .9s ease-in-out infinite; }
.call.speaking .eq i:nth-child(1) { animation-delay: 0s; } .call.speaking .eq i:nth-child(2) { animation-delay: .12s; } .call.speaking .eq i:nth-child(3) { animation-delay: .24s; }
.call.speaking .eq i:nth-child(4) { animation-delay: .36s; } .call.speaking .eq i:nth-child(5) { animation-delay: .48s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.call.listening .eq i { height: 6px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.call-foot .mic { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--orange-light), var(--orange)); box-shadow: 0 8px 20px rgba(240,115,61,.4); }
.call-foot .mic svg { width: 16px; height: 16px; }
@media (max-width: 980px) { .rs-grid { grid-template-columns: 1fr; gap: 28px; } .call-wrap { justify-self: start; } .rs-hero { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .call, .call-wrap::before, .call-top .ldot, .eq i, .ln.typing i { animation: none !important; } .ln { opacity: 1; transform: none; } }

/* ---------- the demo film: full-width player, chapters as a strip beneath ---------- */
.film-wrap { display: grid; gap: 14px; margin-top: 34px; }
.vid { padding: 12px; }
.vid video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; display: block; outline: none; }
.vid-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 8px 2px; font-size: 12.5px; color: var(--text-lo); }
.vid-foot b { color: var(--text-mid); font-weight: 500; }
.chapters { padding: 18px 20px 20px; display: grid; gap: 12px; }
.ch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; }
.ch-head .ch-k { font-family: var(--ui); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.ch-head h3 { font-size: 20px; }
.ch-head .ch-note { margin: 0; font-size: 12.5px; color: var(--text-lo); }
.ch-bar { position: relative; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.ch-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--orange-light), var(--orange)); transition: width .25s linear; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 8px; }
.chapters button { display: grid; gap: 4px; align-content: start; width: 100%; height: 100%; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text-mid); cursor: pointer; font-size: 13px; line-height: 1.35; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.chapters button:hover { background: rgba(255,255,255,.08); color: var(--text-hi); transform: translateY(-1px); }
.chapters button.on { background: rgba(240,115,61,.12); border-color: rgba(240,115,61,.4); color: var(--text-hi); }
.chapters button .t { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--orange); font-weight: 600; letter-spacing: .3px; }
@media (max-width: 600px) { .vid { padding: 8px; } .vid video { border-radius: 12px; } .chapters { padding: 14px; } .chapters ol { grid-template-columns: 1fr 1fr; } }

/* ---------- live demo (embedded agent) ---------- */
.live { display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; margin-top: 34px; align-items: stretch; }
.live-card { padding: 28px; display: grid; gap: 14px; align-content: start; }
.live-card .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-lo); }
.live-card .tag i { width: 7px; height: 7px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 10px #5fd08a; }
.live-card p { margin: 0; color: var(--text-mid); font-size: 14.5px; }
.live-card .link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; font-size: 14px; word-break: break-all; }
.live-card ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-lo); }
.live-card ul li::before { content: "·"; color: var(--orange); margin-right: 8px; }
.live-card .qr { width: 150px; height: 150px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); margin-top: 6px; }
.live-card .qr img { width: 100%; height: 100%; }
.live-card .qr-k { font-size: 12px; color: var(--text-lo); margin-top: -6px; }
.live-frame { padding: 10px; display: grid; min-height: 640px; }
.live-frame .scr { position: relative; border-radius: 18px; overflow: hidden; background: #120c08; display: grid; min-height: 100%; }
.live-frame iframe { width: 100%; height: 100%; min-height: 620px; border: 0; display: block; background: #120c08; }
.live-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 28px;
  background: linear-gradient(180deg, rgba(18,12,8,.35), rgba(18,12,8,.82)), url("https://storage.googleapis.com/easydial-public/agentbox/restaurant/ember-oak/hero-oven.jpg") center / cover no-repeat; }
.live-cover .in { display: grid; gap: 14px; justify-items: center; max-width: 440px; }
.live-cover .k { font-family: var(--ui); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #f0a35a; font-weight: 600; }
.live-cover h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; }
.live-cover p { margin: 0; color: var(--text-mid); font-size: 14.5px; }
.live-cover small { font-size: 12px; color: var(--text-lo); }
.live-frame.on .live-cover { display: none; }
.live-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 8px 2px; font-size: 12.5px; color: var(--text-lo); }
.live-bar a { color: var(--orange); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.live-go { display: none; }
@media (max-width: 1000px) { .live { grid-template-columns: 1fr; } .live-frame { min-height: 560px; } .live-frame iframe { min-height: 540px; } }
@media (max-width: 640px) {
  /* phones: the agent wants the whole screen and the microphone; open it in its own tab */
  .live-frame { display: none; }
  .live-card .qr, .live-card .qr-k { display: none; }
  .live-go { display: inline-flex; justify-content: center; width: 100%; margin-top: 6px; }
}

/* ---------- what it does ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.feat { padding: 26px; display: grid; gap: 12px; align-content: start; }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--orange); background: rgba(240,115,61,.12); border: 1px solid rgba(240,115,61,.32); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 22px; }
.feat p { margin: 0; color: var(--text-mid); font-size: 14.5px; line-height: 1.55; }
.feat q { display: block; margin-top: 2px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 17px; color: var(--gold); quotes: "“" "”"; }
@media (max-width: 1000px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } .feat { padding: 22px; } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; counter-reset: step; }
.step { padding: 26px; display: grid; gap: 12px; align-content: start; }
.step .n { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--orange); }
.step h3 { font-size: 22px; }
.step p { margin: 0; color: var(--text-mid); font-size: 14.5px; line-height: 1.55; }
.step .pos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.step .pos span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-lo); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.step .pos span.soon { color: var(--gold); border-color: rgba(240,192,112,.3); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- responsive pass (phones, tablets, small laptops) ---------- */
#top { overflow-x: clip; }                                 /* the hero glow must never widen the page */
.call-wrap::before { inset: -8% -6%; }
@media (max-width: 1100px) {
  .rs-grid { grid-template-columns: 1fr; gap: 32px; }
  .rs-hero { max-width: 720px; }
  .call-wrap { justify-self: start; width: min(520px, 100%); }
}
@media (max-width: 860px) {
  .live-card .link, .live-bar a, .live-cover small a { display: inline-flex; align-items: center; min-height: 40px; }
  .vid-foot { padding-top: 10px; }
}
@media (max-width: 640px) {
  #top.page { padding-top: calc(var(--nav-h) + 40px); }
  .rs-ctas { display: grid; grid-template-columns: 1fr; }
  .rs-ctas .btn { justify-content: center; }
  .rs-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .rs-strip span { display: grid; gap: 0; line-height: 1.3; }
  .rs-strip b { font-size: 19px; }
  .call { padding: 16px; }
  .call-lines { min-height: 200px; }
  .ln { font-size: 13.5px; max-width: 92%; }
  .ch-head { display: grid; gap: 6px; }
  .ch-head > div { display: grid; gap: 2px; }
  .ch-head h3 { display: block !important; }
  .ch-head .ch-k { font-size: 10.5px; }
  .chapters ol { grid-template-columns: 1fr; gap: 6px; }
  .chapters button { grid-template-columns: 42px 1fr; gap: 10px; align-items: baseline; padding: 11px 12px; }
  .feat q { font-size: 16px; }
  .contact .facts { gap: 8px; }
  .fact b { font-size: 22px; }
  .contact .alt { display: grid; grid-template-columns: 1fr; } .contact .alt .btn { justify-content: center; }
  .book-btn { justify-self: stretch; justify-content: center; }
}
@media (max-width: 360px) {
  .rs-hero h1 { font-size: 36px; }
  .rs-strip b { font-size: 17px; }
  .vid { padding: 6px; }
}
