/* ===========================================================================
   RestoCast Assistant — landing page.
   Builds on style.css: same teal, slate ink, type scale and dark mode.

   Layout rule this file follows throughout: nothing is absolutely positioned
   over anything containing text, and no box that holds text has a fixed height.
   Both of those hide words the moment a font, a language or a screen changes.
   =========================================================================== */

/* ---------- hero ---------- */

.a-hero { position: relative; overflow: hidden; }

.a-hero-glow {
  position: absolute; inset: -30% -10% auto 35%; height: 120%;
  background: radial-gradient(50% 50% at 60% 40%, var(--glow), transparent 70%);
  pointer-events: none;
}

.a-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px; align-items: center; position: relative;
}
@media (max-width: 980px) {
  .a-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.a-hero-copy { min-width: 0; }
.a-hero-note { margin: 26px 0 0; font-size: .74rem; letter-spacing: .06em; color: var(--ink-soft); }

/* ---------- the demo ---------- */

/* Two panels side by side. They were stacked before, which put the owner's
   phone on top of the conversation and covered it. */
.a-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px; align-items: end; min-width: 0;
}
@media (max-width: 420px) {
  .a-stage { grid-template-columns: 1fr; }
}

.a-phone {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 22px; box-shadow: var(--shadow-lift); overflow: hidden;
  display: flex; flex-direction: column;
  height: 420px; min-width: 0;
}

.a-phone-top {
  background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; flex: none;
}
.a-av {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 1rem; flex: none;
}
.a-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.a-who b { font-size: .88rem; font-weight: 600; }
.a-who i { font-size: .66rem; opacity: .85; font-style: normal; }

/* Scrolls rather than clips. It was overflow:hidden, so once the conversation
   ran past the box the newest messages simply vanished. */
.a-chat {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 13px 11px; display: flex; flex-direction: column; gap: 6px;
  background: #ece5dd;
  background-image: radial-gradient(rgba(0,0,0,.035) .5px, transparent .5px);
  background-size: 18px 18px;
  scrollbar-width: none;
}
.a-chat::-webkit-scrollbar { display: none; }

:root[data-theme="dark"] .a-chat { background-color: #0b141a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .a-chat { background-color: #0b141a; }
}

.a-bub {
  max-width: 86%; padding: 7px 10px; border-radius: 9px;
  font-size: .82rem; line-height: 1.4; color: #111b21;
  box-shadow: 0 1px .5px rgba(0,0,0,.13);
  overflow-wrap: anywhere; flex: none;
  animation: aPop .28s cubic-bezier(.2,.7,.2,1);
}
.a-bub.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.a-bub.out { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 2px; }
:root[data-theme="dark"] .a-bub.in { background: #202c33; color: #e9edef; }
:root[data-theme="dark"] .a-bub.out { background: #005c4b; color: #e9edef; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .a-bub.in { background: #202c33; color: #e9edef; }
  :root:not([data-theme="light"]) .a-bub.out { background: #005c4b; color: #e9edef; }
}
@keyframes aPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.a-typing {
  align-self: flex-start; background: #fff; border-radius: 9px; padding: 9px 11px;
  display: inline-flex; gap: 4px; box-shadow: 0 1px .5px rgba(0,0,0,.13); flex: none;
}
:root[data-theme="dark"] .a-typing { background: #202c33; }
.a-typing i { width: 6px; height: 6px; border-radius: 50%; background: #667781; opacity: .5; animation: aBlink 1s infinite; }
.a-typing i:nth-child(2) { animation-delay: .15s; }
.a-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aBlink { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: .9; } }

/* The owner's phone: its own column, so it can never cover the conversation. */
.a-owner { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.a-owner-cap { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.a-lock {
  background: linear-gradient(160deg, #1e242b, #333e4a);
  border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  padding: 16px 11px 20px; text-align: center;
}
.a-lock.is-buzzing { animation: aBuzz .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes aBuzz {
  10%, 30% { transform: translateX(-2px); }
  20%, 40% { transform: translateX(2px); }
  50% { transform: translateX(-1px); }
  100% { transform: none; }
}
.a-lock-time { color: #fff; font-size: 1.5rem; font-weight: 300; opacity: .9; margin-bottom: 12px; }
.a-notif {
  background: rgba(255,255,255,.95); border-radius: 11px; padding: 8px 9px;
  text-align: left; display: flex; flex-direction: column; gap: 1px;
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  opacity: 0; transform: translateY(-8px); transition: all .45s cubic-bezier(.2,.7,.2,1);
}
.a-notif.is-in { opacity: 1; transform: none; }
.a-notif-app {
  font-size: .52rem; text-transform: uppercase; letter-spacing: .08em;
  color: #5b6470; display: flex; align-items: center; gap: 4px; font-weight: 700;
}
.a-notif-mark { width: 9px; height: 9px; border-radius: 3px; background: var(--saffron); flex: none; }
.a-notif b { font-size: .74rem; color: #111b21; }
.a-notif > span:last-child { font-size: .66rem; color: #3c4652; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- the cost ---------- */

.a-problem { padding: 88px 0; }
.a-problem-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .a-problem-grid { grid-template-columns: 1fr; gap: 32px; } }
.a-problem h2 { font-size: var(--step-2); margin: 16px 0 0; }
.a-problem p { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.55; margin-top: 14px; max-width: 46ch; }

.a-counter {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 16px;
  padding: 24px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
/* Grid, not a fixed-width column — "Rs 12,600" outgrew its box and collided
   with the label beside it. */
.a-counter-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline; }
.a-counter-n {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.a-counter-l { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.35; }
.a-counter-row.is-loss { border-top: 1px solid var(--hair); padding-top: 16px; }
.a-counter-row.is-loss .a-counter-n { color: #c0492b; font-size: 1.9rem; }
.a-counter-row.is-loss .a-counter-l { color: var(--ink); font-weight: 600; }

/* ---------- features ---------- */

.a-features { padding: 88px 0; }
.center-narrow.head { margin-left: auto; margin-right: auto; text-align: center; }
.center-narrow.head .eyebrow { justify-content: center; }

.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .a-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .a-grid { grid-template-columns: 1fr; } }

.a-feat {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 18px;
  padding: 0 0 24px; overflow: hidden; box-shadow: var(--shadow); min-width: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.a-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.a-feat h3 { font-size: var(--step-0); margin: 0 24px 8px; letter-spacing: -.01em; }
.a-feat p { margin: 0 24px; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

/* min-height, never height: the art must be free to grow rather than clip. */
.a-feat-art {
  min-height: 130px; margin-bottom: 20px; display: grid; place-items: center;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--hair); padding: 20px 18px;
}

/* 1 — clock */
.a-clock-face { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.a-clock-time { font-size: 2.1rem; font-weight: 300; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.a-clock-time i { font-size: .9rem; font-style: normal; margin-left: 3px; color: var(--ink-soft); }
.a-pill { font-size: .64rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.a-pill.is-open { background: color-mix(in srgb, var(--leaf) 16%, transparent); color: var(--leaf); }

/* 2 — menu */
.a-menu { width: 100%; max-width: 210px; display: flex; flex-direction: column; gap: 6px; }
.a-menu-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: .76rem; color: var(--ink); padding-bottom: 5px; border-bottom: 1px dashed var(--hair);
}
.a-menu-row span { min-width: 0; overflow-wrap: anywhere; }
.a-menu-row b { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); flex: none; }
.a-menu-row.is-off { opacity: .45; }
.a-menu-row.is-off span { text-decoration: line-through; }
.a-menu-row.is-off b { color: #b06a1e; font-size: .64rem; }

/* 3 — covers */
.a-covers { width: 100%; max-width: 215px; display: flex; flex-direction: column; gap: 11px; }
.a-covers-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .68rem; color: var(--ink-soft); }
.a-bar { height: 7px; border-radius: 20px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--hair); }
.a-bar i { display: block; height: 100%; background: var(--saffron); border-radius: 20px; }
.a-covers-row.is-full .a-bar i { background: #c0492b; }

/* 4 — the chase */
.a-chase { width: 100%; max-width: 205px; display: flex; flex-direction: column; gap: 6px; }
.a-chase-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 10px;
  padding: 7px 10px; font-size: .68rem; color: var(--ink); box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.a-chase-card.is-2 { margin-left: 12px; opacity: .8; color: #b06a1e; }
.a-chase-card.is-3 { margin-left: 24px; opacity: .55; color: #b06a1e; }

/* 5 — the tracker */
.a-track { display: flex; flex-direction: column; width: 100%; max-width: 180px; }
.a-track-step { display: flex; align-items: center; gap: 11px; font-size: .74rem; color: var(--ink-soft); position: relative; padding: 5px 0; }
.a-track-step i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--hair); flex: none; z-index: 1; }
.a-track-step:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 20px; width: 1px; height: 12px; background: var(--hair); }
.a-track-step.is-done i { background: var(--leaf); border-color: var(--leaf); }
.a-track-step.is-done { color: var(--ink); }
.a-track-step.is-live i { background: var(--saffron); border-color: var(--saffron); animation: aRing 1.8s infinite; }
.a-track-step.is-live { color: var(--ink); font-weight: 600; }
@keyframes aRing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--saffron) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* 6 — language */
.a-lang { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 200px; }
.a-lang-bub {
  align-self: flex-start; background: var(--surface); border: 1px solid var(--hair);
  border-radius: 11px; border-top-left-radius: 3px; padding: 6px 10px;
  font-size: .74rem; color: var(--ink); overflow-wrap: anywhere;
}
.a-lang-bub.is-reply {
  align-self: flex-end; border-top-left-radius: 11px; border-top-right-radius: 3px;
  background: color-mix(in srgb, var(--saffron) 12%, var(--surface)); border-color: transparent;
}

/* ---------- pricing ---------- */

.a-pricing { padding: 88px 0; }
.a-price-card {
  max-width: 520px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--hair); border-radius: 22px; padding: 40px 36px;
  box-shadow: var(--shadow-lift); text-align: center; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.a-price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--leaf-soft));
}
.a-price-n { display: block; margin-top: 18px; font-size: clamp(2.6rem, 2rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.a-price-n i { font-size: 1rem; font-weight: 500; font-style: normal; color: var(--ink-soft); margin-left: 4px; }
.a-price-sub { display: block; margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.a-price-list {
  list-style: none; padding: 0; margin: 28px 0; text-align: left; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
}
@media (max-width: 560px) { .a-price-list { grid-template-columns: 1fr; } .a-price-card { padding: 32px 22px; } }
.a-price-list li { font-size: var(--step--1); color: var(--ink-soft); display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; min-width: 0; }
.a-price-list li::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%; flex: none; margin-top: 2px;
  background-color: color-mix(in srgb, var(--leaf) 18%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f9e78' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  background-size: 10px 10px; background-repeat: no-repeat; background-position: center;
}
.a-price-note { font-size: .78rem; color: var(--ink-soft); margin: 16px 0 0; line-height: 1.5; max-width: 40ch; }

/* ---------- objections ---------- */

.a-faq { padding: 88px 0; }
.a-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }
@media (max-width: 700px) { .a-faq-grid { grid-template-columns: 1fr; } }
.a-faq-item { min-width: 0; }
.a-faq-item h3 { font-size: var(--step-0); margin: 0 0 8px; letter-spacing: -.01em; }
.a-faq-item p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.62; margin: 0; }

/* ---------- closing ---------- */

.a-cta { padding: 88px 0 100px; text-align: center; }
.a-cta h2 { font-size: var(--step-2); margin: 0; }
.a-cta p { color: var(--ink-soft); font-size: var(--step-0); margin: 14px auto 30px; }

@media (prefers-reduced-motion: reduce) {
  .a-bub, .a-notif, .a-lock, .a-track-step.is-live i { animation: none !important; transition: none !important; }
}
