/* ==========================================================================
   AutoReply — marketing site
   No external fonts or libraries: everything here ships in one request.
   ========================================================================== */

:root {
  --bg: #0b1116;
  --bg-2: #0f171e;
  --panel: #131d26;
  --panel-2: #182430;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ecf2f6;
  --text-2: #a9b7c2;
  --muted: #7d8c98;
  --accent: #25c48a;
  --accent-2: #1d9e72;
  --accent-soft: rgba(37, 196, 138, 0.12);
  --blue: #4f9cf0;
  --bubble-in: #1c2933;
  --bubble-out: #155c43;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #05140e; padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #2fd497, var(--accent-2));
  color: #04130d;
  box-shadow: 0 10px 30px rgba(37, 196, 138, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(37, 196, 138, 0.45); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 22, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 17, 22, 0.85); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2fd497, var(--accent-2)); color: #04130d;
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 550; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 9px 18px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(37, 196, 138, 0.28), transparent 70%),
    radial-gradient(35% 45% at 20% 10%, rgba(79, 156, 240, 0.18), transparent 70%);
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.grad-text {
  background: linear-gradient(100deg, #46e3a8, #4f9cf0 60%, #46e3a8);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.lead { margin-top: 22px; font-size: 19px; color: var(--text-2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325c48a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; height: 600px; border-radius: 44px; padding: 14px;
  background: linear-gradient(160deg, #26333e, #111920);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #05080b; z-index: 2; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px;
  background: #16222b; border-radius: 32px 32px 0 0; border-bottom: 1px solid var(--border);
}
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { color: var(--accent); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, #f7a35c, #e5667a); color: #fff; }
.chat-body {
  height: calc(100% - 92px); padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  background: #0d151b radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0/16px 16px;
  border-radius: 0 0 32px 32px;
}

.bubble {
  max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.bubble.in { background: var(--bubble-in); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--bubble-out); align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble.wide { max-width: 90%; }
.chat-body .bubble { animation: pop 0.45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-buttons { align-self: flex-end; width: 90%; display: grid; gap: 6px; animation: pop 0.45s var(--ease) both; }
.chat-buttons span {
  text-align: center; padding: 8px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #7fe0b9;
  background: rgba(21, 92, 67, 0.55); border: 1px solid rgba(37, 196, 138, 0.25); transition: background 0.2s ease, transform 0.2s ease;
}
.chat-buttons span.is-tapped { background: rgba(37, 196, 138, 0.35); transform: scale(0.97); }

.float-card {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(19, 29, 38, 0.85); border: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.float-a { top: 18%; left: -2%; animation: float 6s ease-in-out infinite 0.5s; }
.float-b { bottom: 4%; right: -10%; animation: float 7.5s ease-in-out infinite 1.2s; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--accent); box-shadow: 0 0 0 4px rgba(37, 196, 138, 0.2); }
.dot-blue { background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 156, 240, 0.2); }

/* ---------- Facts ---------- */
.facts { border-block: 1px solid var(--border); background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 22px; display: flex; flex-direction: column; gap: 4px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.fact > span { color: var(--text-2); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2, .split-copy h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 780; }
.section-sub { margin-top: 16px; color: var(--text-2); font-size: 17.5px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.step:hover { transform: translateY(-6px); border-color: rgba(37, 196, 138, 0.35); }
.step-num { position: absolute; top: 22px; right: 24px; font-size: 54px; font-weight: 800; color: rgba(255, 255, 255, 0.05); line-height: 1; }
.step-icon, .feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(37, 196, 138, 0.2);
}
.step-icon svg, .feature-icon svg { width: 24px; height: 24px; }
.step h3, .feature h3, .safety h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p, .feature p, .safety p { color: var(--text-2); font-size: 15.5px; }

/* Feature grid with cursor-follow glow */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 196, 138, 0.14), transparent 70%);
}
.glow-card:hover::before { opacity: 1; }
.feature:hover { transform: translateY(-5px); border-color: rgba(37, 196, 138, 0.3); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-copy { order: 2; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325c48a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

.lang-demo, .menu-demo, .chart-card {
  position: relative; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.lang-demo .bubble, .menu-demo .bubble { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.is-visible .bubble, .is-visible .menu-buttons, .is-visible .tag { opacity: 1; transform: none; }
.is-visible .bubble:nth-child(2) { transition-delay: 0.35s; }
.is-visible .bubble:nth-child(3) { transition-delay: 0.7s; }
.is-visible .bubble:nth-child(4) { transition-delay: 1.05s; }
.lang-tags { display: flex; gap: 8px; margin-top: 8px; }
.tag {
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease) 1.3s, transform 0.5s var(--ease) 1.3s;
}
.tag-alt { background: rgba(79, 156, 240, 0.14); color: #8cbdf5; }

.menu-buttons { align-self: flex-end; width: 90%; display: grid; gap: 6px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease) 0.35s, transform 0.5s var(--ease) 0.35s; }
.menu-btn {
  text-align: center; padding: 9px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #7fe0b9;
  background: rgba(21, 92, 67, 0.55); border: 1px solid rgba(37, 196, 138, 0.25);
}
.menu-btn:first-child { animation: tap 3.2s ease-in-out infinite 2s; }
@keyframes tap { 0%, 70%, 100% { background: rgba(21, 92, 67, 0.55); transform: none; } 80% { background: rgba(37, 196, 138, 0.38); transform: scale(0.97); } }
.menu-demo .bubble.tap { transition-delay: 0.7s; }
.menu-demo .bubble:last-child { transition-delay: 1.05s; }

/* Chart card */
.chart-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; color: var(--text-2); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-1 { background: #3987e5; }
.sw-2 { background: #d95926; margin-left: 8px; }
.chart { width: 100%; height: auto; margin-top: 6px; }
.chart-grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart-line.l1 { stroke: #3987e5; }
.chart-line.l2 { stroke: #d95926; }
.is-visible .chart-line { animation: draw 1.6s var(--ease) forwards 0.2s; }
.is-visible .chart-line.l2 { animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hours { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 8px; }
.hours i { flex: 1; height: var(--h); background: #3987e5; border-radius: 4px 4px 0 0; transform: scaleY(0); transform-origin: bottom; }
.is-visible .hours i { animation: grow 0.9s var(--ease) forwards; }
.hours i:nth-child(n) { animation-delay: calc(0.6s + var(--i, 0) * 40ms); }
@keyframes grow { to { transform: scaleY(1); } }
.chart-note { color: var(--muted); font-size: 12px; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.safety {
  padding: 26px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border);
  border-top: 2px solid rgba(37, 196, 138, 0.5);
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); transition: border-color 0.25s ease; }
.faq[open] { border-color: rgba(37, 196, 138, 0.35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 650; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding: 0 22px 22px; color: var(--text-2); animation: fadeDown 0.35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* CTA */
.cta-section { padding-top: 40px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 28px;
  background: linear-gradient(160deg, #13261f, #0f1a22); border: 1px solid rgba(37, 196, 138, 0.25);
}
.cta-glow {
  position: absolute; inset: auto -20% -60%; height: 140%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 196, 138, 0.25), transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
}
.cta-card h2 { position: relative; font-size: clamp(28px, 4vw, 42px); font-weight: 800; max-width: 760px; margin: 0 auto; }
.cta-card p { position: relative; color: var(--text-2); font-size: 18px; margin-top: 14px; }
.cta-card .hero-ctas { position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-note { color: var(--text-2); font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text-2); font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }
.footer-legal p { color: var(--muted); font-size: 13px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .split-rev .split-copy { order: 0; }
  .feature-grid, .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 20px;
    background: rgba(11, 17, 22, 0.97); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; padding: 0 10px;
  }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease); }
  .nav.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .section { padding: 76px 0; }
  .steps, .feature-grid, .safety-grid { grid-template-columns: 1fr; }
  .phone { width: 290px; height: 540px; }
  .float-a { left: 0; top: 8%; }
  .float-b { right: 0; bottom: 8%; }
  .lead { font-size: 17px; }
}

@media (max-width: 420px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--border); }
  .float-card { display: none; }
}

/* ---------- Reduced motion: keep everything, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .lang-demo .bubble, .menu-demo .bubble, .menu-buttons, .tag { opacity: 1 !important; transform: none !important; }
  .chart-line { stroke-dashoffset: 0; }
  .hours i { transform: none; }
}

/* ---------- Image reply bubble (menu demo) ---------- */
.img-bubble { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.qr-art { width: 120px; height: 120px; border-radius: 6px; display: block; }
.menu-demo .bubble.img-bubble { transition-delay: 1.05s; }

/* ---------- Groups demo ---------- */
.groups-demo {
  position: relative; padding: 26px; border-radius: 24px; background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.gd-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.gd-count { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel-2); font-size: 13.5px; font-weight: 600; }
.gd-chip b { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11px; }
.gd-chip.on { border-color: var(--accent); background: var(--accent-soft); color: #7fe0b9; }
.gd-summary { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(37, 196, 138, 0.4); background: rgba(37, 196, 138, 0.08); }
.gd-summary strong { font-size: 14px; }
.gd-summary span { font-size: 13px; color: var(--text-2); }
.gd-template { display: flex; flex-direction: column; gap: 6px; }
.gd-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.gd-tpl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.gd-tpl i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--text-2); }
.groups-demo .gd-chip.on { animation: chipPulse 3.2s ease-in-out infinite 1.5s; }
@keyframes chipPulse { 0%, 75%, 100% { box-shadow: none; } 85% { box-shadow: 0 0 0 4px rgba(37, 196, 138, 0.25); } }

/* ---------- Free trial steps ---------- */
.trial-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trial-step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.trial-step h3 { font-size: 19px; margin: 12px 0 8px; }
.trial-step p { color: var(--text-2); font-size: 15.5px; }
.ts-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2fd497, var(--accent-2)); color: #04130d; font-weight: 800; }
@media (max-width: 980px) { .trial-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .groups-demo .gd-chip.on { animation: none; } }

/* ---------- Small-screen fixes ---------- */
.nav-toggle { flex-shrink: 0; }
.cta-short { display: none; }
/* Small phones (iPhone SE and similar): logo + button + menu must fit on one line. */
@media (max-width: 400px) {
  .nav-inner { gap: 10px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-cta { padding: 8px 12px; font-size: 13.5px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
/* Tablets: the hero stacks, so keep the floating badges inside the screen. */
@media (min-width: 761px) and (max-width: 980px) {
  .float-a { left: 6%; }
  .float-b { right: 6%; }
}
.gd-chip b { font-size: 12px; }
/* Phone menu: solid panel so the page behind doesn't show through the links. */
@media (max-width: 760px) {
  .nav-links { background: var(--bg) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
  .nav.menu-open { background: var(--bg); }
  .legend { flex-wrap: wrap; }
}

/* <figure> has a 40px browser margin by default — it squeezed the chart card on phones. */
.chart-card { margin: 0; }

/* ---------- Pricing ---------- */
.price-controls { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: -24px 0 32px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel); }
.toggle button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 650; font-size: 14.5px; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.toggle button.active { background: linear-gradient(135deg, #2fd497, var(--accent-2)); color: #04130d; }
.toggle-sm button { font-size: 13px; padding: 7px 14px; }
.save { margin-left: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(37, 196, 138, 0.18); color: #7fe0b9; }
.toggle button.active .save { background: rgba(4, 19, 13, 0.18); color: #04130d; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--border); }
.price-card.is-best { border-color: rgba(37, 196, 138, 0.6); box-shadow: 0 0 0 1px rgba(37, 196, 138, 0.25), var(--shadow); }
.price-flag { position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #2fd497, var(--accent-2)); color: #04130d; font-size: 12px; font-weight: 800; }
.price-card h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 0; }
.price .amt { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 15px; }
.price-alt { min-height: 20px; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.price-blurb { color: var(--text-2); font-size: 15px; }
.price-feats { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 9px; font-size: 14.5px; }
.price-feats li { position: relative; padding-left: 26px; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-feats li.off { color: var(--muted); }
.price-feats li.off::before { content: "–"; color: var(--muted); }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---------- Pricing layout fixes ---------- */
.price-alt:empty { display: none; }
.price-card { gap: 8px; }
.price { margin: 2px 0 4px; }
.price-dots { display: none; }

/* Tablets: three compact columns instead of one narrow column. */
@media (min-width: 761px) and (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .price-card { padding: 24px 18px; }
  .price .amt { font-size: 32px; }
  .price-blurb, .price-feats { font-size: 13.5px; }
  .price-flag { left: 18px; }
}

/* Phones: swipe between plans, with a peek of the next card. */
@media (max-width: 760px) {
  .price-controls { gap: 8px; margin: -36px 0 22px; flex-wrap: nowrap; }
  .toggle button { font-size: 13px; padding: 8px 12px; }
  .toggle-sm button { padding: 8px 10px; }
  .save { display: none; }
  .price-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    margin-inline: -20px; padding: 14px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .price-grid::-webkit-scrollbar { display: none; }
  .price-card { flex: 0 0 82%; scroll-snap-align: start; padding: 22px 18px; }
  .price .amt { font-size: 34px; }
  .price-blurb { font-size: 14px; }
  .price-feats { font-size: 14px; gap: 7px; margin: 2px 0 14px; }
  .price-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .price-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: width 0.2s ease, background 0.2s ease; }
  .price-dots span.active { width: 22px; border-radius: 999px; background: var(--accent); }
  .price-note { margin-top: 12px; }
}
@media (max-width: 360px) { .toggle button { padding: 8px 10px; font-size: 12.5px; } }

/* Tablets: use the ☰ menu — the full link row doesn't fit and wrapped onto several lines. */
@media (min-width: 761px) and (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 8px 32px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.menu-open { background: var(--bg); }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; padding: 0 10px;
  }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease); }
  .nav.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Top bar: the ☰ button must always be on screen ---------- */
/* iPhone Safari lets the page slide sideways when anything is wider than the
   screen, even with body overflow hidden — clip at the root as well. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

@media (max-width: 940px) {
  .nav-inner { gap: 10px; }
  /* Logo may shrink (text truncates); the button and ☰ never do. */
  .brand { min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .brand-mark { flex-shrink: 0; }
  .nav-cta { flex-shrink: 0; margin-left: auto; white-space: nowrap; }
  .nav-toggle {
    flex: 0 0 40px; width: 40px; height: 40px; padding: 0; margin: 0;
    -webkit-appearance: none; appearance: none; color: var(--text);
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; flex: 0 0 2px; background: currentColor; }
}
/* Short button label on most phones (and when the phone's text size is large). */
@media (max-width: 480px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-cta { padding: 8px 12px; font-size: 13.5px; }
}

/* One currency only: ₹ for India, $ elsewhere (html[data-cur] is set from the timezone). */
.cur-usd { display: none; }
html[data-cur="usd"] .cur-inr { display: none; }
html[data-cur="usd"] .cur-usd { display: block; }

/* ---------- Legal pages (privacy) ---------- */
.legal { padding: 48px 0 80px; }
.legal-wrap { max-width: 820px; }
.legal-back { margin-left: auto; padding: 8px 16px; font-size: 14px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.legal-meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal-toc { margin: 32px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.legal-toc strong { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-2); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.legal-toc li { margin: 4px 0; break-inside: avoid; }
.legal-toc a, .legal-body a { color: var(--accent); }
.legal-toc a:hover, .legal-body a:hover { text-decoration: underline; }
.legal-body { margin-top: 28px; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.legal-body h2 { margin: 40px 0 10px; color: var(--text); font-size: 22px; scroll-margin-top: 90px; }
.legal-body h3 { margin: 22px 0 6px; color: var(--text); font-size: 17px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 22px; }
.legal-body li { margin: 6px 0; }
.legal-body strong { color: var(--text); }
.legal-page .footer { padding: 24px 0; }
.legal-page .footer-legal { margin-top: 0; border-top: 0; padding-top: 0; }
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--text); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } .legal { padding-top: 28px; } }

/* ---------- New features: Flows + Custom Send ---------- */
.feature.is-new { position: relative; border-color: rgba(37, 196, 138, 0.45); }
.new-tag { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.flow-demo, .cs-demo {
  position: relative; padding: 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.fd-trigger { align-self: flex-start; padding: 8px 12px; border-radius: 10px; border-left: 3px solid var(--accent); background: var(--panel-2); font-size: 13.5px; color: var(--text-2); }
.fd-trigger b { color: var(--text); }
.fd-step { position: relative; display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel-2); }
.fd-step + .fd-step::before { content: ""; position: absolute; left: 27px; top: -13px; width: 2px; height: 12px; background: var(--border-strong); }
.fd-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(59, 130, 246, 0.16); flex-shrink: 0; }
.fd-if .fd-ic { background: rgba(168, 85, 247, 0.18); }
.fd-step > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.fd-step b { font-size: 14px; }
.fd-step span { font-size: 13.5px; color: var(--text-2); }
.fd-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-btns i { font-style: normal; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.fd-if { border-color: rgba(168, 85, 247, 0.4); }
.fd-branch { padding: 7px 10px; border-left: 3px solid #a855f7; border-radius: 8px; background: rgba(168, 85, 247, 0.06); font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.fd-branch em { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #c084fc; margin-right: 4px; }
.fd-branch span { color: var(--text); font-weight: 600; }
.fd-else { border-left-color: var(--muted); }
.fd-else em { color: var(--muted); }
.flow-demo .fd-btns i:first-child { animation: chipPulse 3.2s ease-in-out infinite 1.5s; }

.csd-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel-2); }
.csd-ic { font-size: 20px; line-height: 1.4; }
.csd-item > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.csd-item b { font-size: 14px; }
.csd-item span { font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.csd-item small { font-size: 12px; color: var(--accent); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .flow-demo .fd-btns i:first-child { animation: none; } }
@media (max-width: 640px) {
  .flow-demo, .cs-demo { padding: 16px; border-radius: 18px; }
  .new-tag { top: 10px; right: 10px; }
}
.plan-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(168, 85, 247, 0.16); color: #c084fc; font-size: 11px; font-weight: 700; vertical-align: 2px; }
