/* Relayo landing (app/routes/_index and demo/landing.ts on nova-ai.novasoft.ge).
   Same structure as the Snipwell landing; NovaSoft blue instead of green. */
:root {
  --ink: #0f172a;
  --ink-2: #3f4a5e;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f7fb;
  --card: #ffffff;
  --blue: #1770ff;
  --blue-dark: #135fdc;
  --blue-soft: #e8f0ff;
  --hero: #0a1432;
  --hero-2: #14285f;
  --ok: #15803d;
  --ok-soft: #dcfce7;
}

* { box-sizing: border-box; }
/* Sections land below the sticky header when scrolled to. */
[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--card);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; color: #fff; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 9px 14px; font-size: 14px; }
/* .nav a sets a grey text color; the primary button must stay white. */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav .btn { white-space: nowrap; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }
/* Phone width: the hub link keeps its icon, its label would wrap the header. */
@media (max-width: 480px) { .nav { gap: 10px; } .nav .btn { padding: 9px 12px; } .btn-apps-text { display: none; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--hero) 0%, var(--hero-2) 100%); color: #fff; padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #a5c4ff; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ed9e8; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 16px; }
.hero h1 em { font-style: normal; color: #8be9f3; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.8); margin: 0 0 28px; max-width: 520px; }
/* Rule 2.3.1: this is not an install form. Its label says "Already installed?" */
.shopform { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.shopform label { flex: 1 0 100%; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.shopform input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px; outline: none;
}
.shopform input::placeholder { color: rgba(255,255,255,.5); }
.shopform input:focus { border-color: #8be9f3; background: rgba(255,255,255,.12); }
.hint { font-size: 13px; color: rgba(255,255,255,.6); margin: 10px 0 0; }
.hint.err { color: #fca5a5; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.78); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: "✓"; color: #8be9f3; font-weight: 700; }

/* Chat mock: one frame that shows the disclosure, the handoff chip with its
   reason, the context card and a product card copied from the catalog. */
.mock { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chat-head .faces { display: flex; }
.chat-head .faces span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; }
.chat-head .faces span:first-child { margin-left: 0; }
.ai-mark { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-dark); vertical-align: middle; }
.chat-body { padding: 16px 18px 18px; display: grid; gap: 10px; font-size: 14px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.msg .bubble { background: var(--bg); border-radius: 12px 12px 12px 4px; padding: 9px 12px; line-height: 1.45; }
.msg.buyer { justify-content: flex-end; }
.msg.buyer .bubble { background: var(--ink); color: #fff; border-radius: 12px 12px 4px 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .stay { font-weight: 500; color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px; }
.known { font-size: 12px; color: var(--ink-2); background: var(--blue-soft); border-radius: 10px; padding: 8px 12px; margin-left: 38px; }
.known strong { color: var(--blue-dark); }
.pcard { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-left: 38px; }
.pcard .thumb { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #dbeafe, #93c5fd); flex: none; }
.pcard .t { font-weight: 600; font-size: 14px; }
.pcard .m { font-size: 12px; color: var(--muted); }
.pcard .grow { flex: 1; }
.src { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.mock-foot { margin: 0 18px; padding: 14px 0 16px; border-top: 1px dashed var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); }

/* Sections */
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg); }
.sec h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 0 0 10px; }
.sec .sub { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 640px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 17px; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-weight: 800; }

/* The team: five cards, Atlas marked as the admin-side advisor */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }
.agent { display: flex; flex-direction: column; }
.agent .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; }
.agent h3 { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; font-size: 17px; }
.agent .role { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.agent .never { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.agent .never strong { color: var(--ink); }
.agent .where { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.agent.owner { border-style: dashed; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15,23,42,.12); background: #fff; }
.shot a { display: block; transition: transform .15s; cursor: zoom-in; }
.shot a:hover { transform: translateY(-2px); }
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.shot figcaption strong { color: var(--ink); }

/* Lightbox gallery */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 32, .88); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 0; animation: lb-in .15s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; justify-self: center; max-width: min(1400px, 100%); }
.lb-figure img { display: block; max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.5); background: #fff; }
.lb-figure figcaption { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 14px; text-align: center; }
.lb-figure figcaption strong { color: #fff; }
.lb-count { display: block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.55); }
.lb-close, .lb-arrow { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,.22); }
.lb-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lb-arrow { width: 48px; height: 48px; font-size: 34px; line-height: 1; justify-self: center; padding-bottom: 4px; }
@media (max-width: 700px) { .lb { grid-template-columns: 1fr; padding: 60px 12px 16px; } .lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* "All apps" link: a secondary button next to the primary one */
.btn-apps { background: var(--blue-soft); color: var(--blue-dark) !important; border-color: transparent; }
.btn-apps:hover { background: #d6e4ff; }

/* Pricing */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--blue); box-shadow: 0 10px 30px rgba(23,112,255,.14); }
.plan .tag { position: absolute; top: -12px; left: 18px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .name { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .tagline { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { font-size: 14px; padding-left: 22px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* Limits table: rendered from PLAN_LIMITS so it cannot drift from the code */
.limits-wrap { margin-top: 32px; overflow-x: auto; }
.limits { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.limits th, .limits td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.limits th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); }
.limits th:not(:first-child), .limits td:not(:first-child) { text-align: center; }
.limits tr:last-child td { border-bottom: 0; }
.limits td:first-child { color: var(--ink-2); }
.limits .no { color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

/* CTA + footer */
.cta { background: var(--hero); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -.02em; }
.cta p { color: rgba(255,255,255,.75); margin: 0 0 24px; }
.ftr { padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ftr .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.ftr a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.ftr a:hover { color: var(--ink); }

/* nova-ai.novasoft.ge (demo/landing.ts): Nova-form figures instead of
   letter circles, the launch-list form, the 4 + 7 team and four steps. */
.nv-fig { display: block; height: auto; }
.agent .nv-fig { margin: 0 auto 4px; }
.msg .av-fig { flex: none; width: 26px; }
.msg .av-fig .nv-fig { width: 26px; height: auto; }
.mock-figs { display: flex; gap: 4px; }
.mock-figs .nv-fig { width: 21px; height: auto; }
.team.team4 { grid-template-columns: repeat(4, 1fr); }
.team.team-owner { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .team.team4, .team.team-owner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team.team4, .team.team-owner { grid-template-columns: 1fr; } }
.sec h2.h2-2 { margin-top: 56px; }
.person-card { margin-top: 20px; display: grid; gap: 12px; justify-items: start; }
.person-card h3 { margin: 0; }
.steps.steps4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps.steps4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps.steps4 { grid-template-columns: 1fr; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.notify { display: grid; gap: 10px; max-width: 520px; padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.notify label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.88); }
.notify-row { display: flex; gap: 10px; }
.notify-row input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px; outline: none;
}
.notify-row input::placeholder { color: rgba(255,255,255,.5); }
.notify-row input:focus { border-color: #8be9f3; background: rgba(255,255,255,.12); }
.notify .notify-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.72); }
.notify-consent input { margin-top: 3px; accent-color: var(--blue); }
.notify-consent a { color: #8be9f3; }
.notify .hint { margin: 0; min-height: 1em; }
.notify .hint:empty { display: none; }
@media (max-width: 480px) { .notify-row { flex-direction: column; } }
.sec .support-more { margin: 28px 0 0; font-size: 15px; }
.sec .sub a { color: var(--blue-dark); }
