/* Public site design system — landing / register / login.
   Shares the app's palette (emerald + slate + Cairo) but tuned for a premium,
   conversion-focused marketing surface. Tailwind CDN handles utilities; this file
   owns tokens, component classes, and motion. */

:root {
  --brand: #059669;
  --brand-600: #047857;
  --hero-from: #06231b;
  --hero-to: #0f5137;
  --brand-050: #ecfdf5;
  --brand-050: color-mix(in srgb, var(--brand) 10%, #fff);
  --ink: #0f172a;
  --ink-600: #334155;
  --ink-400: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .1);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(2, 44, 34, .35);
  --maxw: 1120px;
}

* { font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.eyebrow { color: var(--brand-600); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.h1 { font-size: clamp(30px, 6vw, 54px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.h2 { font-size: clamp(24px, 4.2vw, 38px); font-weight: 800; line-height: 1.2; }
.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-600); }
.muted { color: var(--ink-400); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; border-radius: 12px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .6); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 12px 26px -8px rgba(5, 150, 105, .7); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-soft { background: var(--bg-soft); border-color: transparent; box-shadow: none; }

/* inputs */
.field { display: block; margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-600); }
.input { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #a7f3d0; }
.input.err { border-color: #dc2626; box-shadow: 0 0 0 3px #fecaca; }
.hint { font-size: 12px; color: var(--ink-400); margin-top: 5px; }
.hint.err { color: #dc2626; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-600); }
.nav-links a:hover { color: var(--ink); }
.site-lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px !important; }
.site-lang-switch:hover { border-color: #cbd5e1; }
.brandmark { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; }
.brandmark .dot { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-600)); display: grid; place-items: center; color: #fff; font-size: 15px; overflow: hidden; }
.brandmark .dot img { width: 100%; height: 100%; object-fit: contain; }
.brandmark.has-logo .dot { background: none; }

.menu-btn { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: block; position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow-md); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--bg-soft); }
}

/* hero */
.hero { background:
    radial-gradient(1100px 500px at 80% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 55%),
    linear-gradient(180deg, var(--hero-from) 0%, color-mix(in srgb, var(--hero-from), var(--hero-to)) 45%, var(--hero-to) 100%);
  color: #eafff6; overflow: hidden; }
.hero .h1 { color: #fff; }
.hero .lead { color: #c4f3e0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(60px, 10vw, 120px); }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* phone / chat mock */
.phone { width: min(360px, 82vw); margin-inline: auto; background: #0b141a; border-radius: 34px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06); }
.phone-screen { background: #0b141a; border-radius: 24px; overflow: hidden; }
.wa-top { background: #075e54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.wa-top .av { width: 30px; height: 30px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
.wa-body { background: #0b141a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff08'/%3E%3C/svg%3E");
  padding: 16px 12px; min-height: 340px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-line;
  opacity: 0; transform: translateY(8px); }
.bub.in { background: #1f2c33; color: #e9edef; align-self: flex-start; border-start-start-radius: 3px; }
.bub.out { background: #005c4b; color: #e9fff6; align-self: flex-end; border-start-end-radius: 3px; }
.bub.show { animation: bubIn .38s ease forwards; }
@keyframes bubIn { to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; background: #1f2c33; border-radius: 12px; padding: 10px 14px; display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8aa; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* floating lead card */
.lead-card { position: absolute; inset-inline-end: -8px; inset-block-start: 18%; width: 220px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (max-width: 940px) { .lead-card { position: static; width: min(360px, 82vw); margin: 14px auto 0; } }
.lead-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--bg-soft); }
.lead-row:last-child { border: 0; }
.lead-row b { font-weight: 700; }
.temp { font-weight: 800; }
.temp.warm { color: #d97706; } .temp.hot { color: #dc2626; } .temp.cold { color: #2563eb; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; display: inline-block; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* generic grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.benefit { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.benefit .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-050); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.benefit h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.benefit p { margin: 0; font-size: 14px; color: var(--ink-600); }

.step { text-align: center; padding: 20px; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; margin: 0 auto 12px; }

.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.flow .node { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; }
.flow .node.ai { background: var(--brand-050); border-color: #a7f3d0; color: var(--brand-600); }
.flow .node.human { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.flow .arr { color: var(--ink-400); }

.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 13px; color: var(--ink-400); }
.cmp .yes { color: var(--brand-600); font-weight: 700; }
.cmp .no { color: #94a3b8; }

.usecases { display: flex; gap: 8px; flex-wrap: wrap; }
.uc { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .15s; }
.uc.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.cta-band { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; border-radius: 24px; padding: clamp(28px, 6vw, 56px); text-align: center; }
.cta-band .h2 { color: #fff; }

/* pricing — mobile-first: single column, compact cards, expandable feature
   lists, and a comparison table that becomes stacked mini-cards on phones. */
.pr-controls { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-bottom: 22px; }
.pr-country { border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 13.5px; background: #fff; width: 100%; max-width: 300px; }
.pr-toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.pr-toggle button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-600); white-space: nowrap; }
.pr-toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pr-save { display: inline-block; font-size: 10px; font-weight: 800; color: var(--brand-600); background: var(--brand-050); padding: 1px 7px; border-radius: 999px; margin-inline-start: 6px; }
@media (min-width: 560px) { .pr-controls { flex-direction: row; justify-content: center; } .pr-country { width: auto; } }

.pr-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; max-width: 420px; margin-inline: auto; }
@media (min-width: 760px) { .pr-grid { grid-template-columns: repeat(3, 1fr); max-width: none; } }

.pr-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; position: relative; display: flex; flex-direction: column; }
.pr-card.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow-md); }
@media (min-width: 760px) { .pr-card.pop { transform: translateY(-6px); } }
.pr-tag, .pr-current { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.pr-tag { background: var(--brand); color: #fff; }
.pr-current { background: var(--ink); color: #fff; }
.pr-name { font-weight: 800; font-size: 18px; }
.pr-desc { color: var(--ink-600); font-size: 13px; margin-top: 4px; }
.pr-price { margin: 14px 0 2px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pr-amount { font-size: 28px; font-weight: 800; line-height: 1.15; }
.pr-per { color: var(--ink-400); font-size: 13px; }
.pr-sub { font-size: 12px; color: var(--ink-400); margin-top: 3px; flex-basis: 100%; }
.pr-trial { font-size: 12px; color: var(--brand-600); font-weight: 700; margin: 6px 0 14px; min-height: 16px; }
.pr-lines { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.pr-lines li { font-size: 13.5px; color: var(--ink-600); padding-inline-start: 22px; position: relative; }
.pr-lines li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; color: var(--brand-600); font-weight: 800; }
.pr-more { margin-top: 8px; }
.pr-more-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.pr-card.open .pr-more-body { max-height: none; overflow: visible; }
.pr-more-toggle { border: 0; background: none; color: var(--brand-600); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 8px 0 2px; display: inline-flex; align-items: center; gap: 5px; }
.pr-more-toggle .arw { transition: transform .2s ease; display: inline-block; }
.pr-card.open .pr-more-toggle .arw { transform: rotate(180deg); }

.pr-ent { margin: 22px auto 0; max-width: 720px; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--bg-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; text-align: start; }
.pr-ent-name { font-weight: 800; font-size: 15.5px; }
.pr-ent-desc { color: var(--ink-600); font-size: 13px; margin-top: 2px; }

.pr-compare { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pr-compare summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 14px; text-align: center; list-style: none; }
.pr-compare summary::-webkit-details-marker { display: none; }
.pr-tablewrap { padding: 0 8px 12px; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pr-table th, .pr-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--bg-soft); }
.pr-table thead th { font-weight: 800; }
.pr-table tbody th { text-align: start; font-weight: 600; color: var(--ink-600); }
.pr-table .pr-grouphdr td { background: var(--bg-soft); font-weight: 800; text-align: start; }
.pr-yes { color: var(--brand-600); font-weight: 800; }
.pr-no { color: #cbd5e1; }
/* under ~680px the wide comparison table becomes stacked per-feature mini-cards */
@media (max-width: 680px) {
  .pr-tablewrap { overflow-x: visible; padding: 0 10px 12px; }
  .pr-table thead { display: none; }
  .pr-table, .pr-table tbody, .pr-table tr, .pr-table td { display: block; width: 100%; }
  .pr-table tr:not(.pr-grouphdr) { border: 1px solid var(--bg-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
  .pr-table tbody th { display: block; padding: 0 0 8px; font-weight: 800; color: var(--ink); text-align: start; }
  .pr-table td { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; padding: 5px 0; }
  .pr-table td::before { content: attr(data-plan); font-size: 12px; color: var(--ink-400); font-weight: 600; }
  .pr-table .pr-grouphdr { border: 0; margin: 4px 0; padding: 0; }
  .pr-table .pr-grouphdr td { display: block; border-radius: 8px; }
}
.pr-skel-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 420px; margin-inline: auto; }
@media (min-width: 760px) { .pr-skel-grid { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.pr-skel { height: 340px; border-radius: 18px; background: var(--bg-soft); }

footer.site { border-top: 1px solid var(--line); padding-block: 40px; color: var(--ink-400); font-size: 14px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.seen { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bub { opacity: 1 !important; transform: none !important; animation: none !important; }
  .typing, .pulse-dot { animation: none !important; }
  .pr-more-body { transition: none !important; }
  .pr-card.pop { transform: none !important; }
}

/* Keep translated copy inside mobile cards and controls. */
.pr-card, .pr-ent > div, .hero-grid > div { min-inline-size: 0; }
.pr-card, .pr-ent, .pr-tag, .pr-current { overflow-wrap: anywhere; }
.pr-toggle { max-inline-size: 100%; }
.pr-toggle button { white-space: normal; min-inline-size: 0; }
.pr-save { white-space: normal; }
.pr-amount, .pr-per { unicode-bidi: isolate; }

/* Custom Pricing Link — public /offer/:token page (see offerCards.js). */
.pr-offer { max-inline-size: 900px; margin-inline: auto; padding-inline: 4px; }
.pr-offer-title { font-size: clamp(20px, 4vw, 28px); font-weight: 800; text-align: center; margin: 0 0 4px; }
.pr-offer-client { text-align: center; color: var(--ink-600); font-size: 14px; margin: 0 0 20px; }
.pr-offer-cta { max-inline-size: 420px; margin: 24px auto 0; }
.pr-offer-empty { text-align: center; color: var(--ink-600); padding: 60px 16px; font-size: 15px; }
.nav-inner { gap: 12px; }
@media (max-width: 430px) {
  .pr-toggle button { padding-inline: 10px; }
  .brandmark { min-inline-size: 0; overflow-wrap: anywhere; }
  .menu-btn { flex-shrink: 0; }
}

.how-steps { display: grid; gap: 18px; grid-template-columns: repeat(var(--step-count, 4), minmax(0, 1fr)); }
@media (max-width: 860px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .how-steps { grid-template-columns: minmax(0, 1fr); } }
