/*
 * Marketing site.
 *
 * The audience is a shop owner on a phone who has thirty seconds and has been sold
 * software before. So: show the product working before asking for anything, keep the
 * claims small enough to be true, and never let a decorative flourish push the one
 * screenshot that explains everything below the fold.
 */

:root {
    --ink: #0d1117;
    --ink-2: #55606e;
    --ink-3: #7c8794;
    --line: #e6e9ef;
    --line-soft: #f0f2f7;
    --bg: #fff;
    --bg-2: #f7f8fc;
    --bg-tint: #f4f3ff;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: #eef2ff;
    --accent: #0ea5e9;
    --ok: #16a34a;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(13, 17, 23, .05), 0 1px 3px rgba(13, 17, 23, .04);
    --shadow: 0 4px 12px rgba(13, 17, 23, .06), 0 12px 32px rgba(13, 17, 23, .06);
    --shadow-lg: 0 12px 28px rgba(13, 17, 23, .1), 0 32px 64px rgba(13, 17, 23, .08);
}

* { box-sizing: border-box; }

/* The nav is sticky, so anything jumped to would otherwise land underneath it. */
html { scroll-padding-top: 76px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }

p { margin: 0 0 16px; }

.wrap-lg { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.tiny { font-size: 13px; color: var(--ink-3); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.lead-sm { font-size: 17px; color: var(--ink-2); max-width: 640px; margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700;
    color: var(--primary); background: var(--primary-soft);
    padding: 6px 12px; border-radius: 100px; margin: 0 0 22px;
}

.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
/* A band whose only content is the heading should not leave a hole beneath it. */
.section-head:last-child { margin-bottom: 0; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ---------------------------------------------------------------- Nav */
.nav {
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
}
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
/* A mark built from CSS — no image request, and it cannot arrive broken. */
.logo-mark {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 2px 6px rgba(79, 70, 229, .35);
}
.nav nav { display: flex; align-items: center; gap: 8px; }
.nav nav a { color: var(--ink-2); font-size: 15px; padding: 7px 10px; border-radius: 8px; }
.nav nav a:hover { text-decoration: none; color: var(--ink); background: var(--bg-2); }
.nav nav a.btn { color: #fff; }
.nav nav a.btn:hover { background: var(--primary-dark); }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; background: var(--bg-2); transform: translateY(-1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, .28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .34); }
.btn-lg { padding: 14px 28px; font-size: 16.5px; border-radius: 11px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 20px; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    padding: 76px 0 84px;
    background:
        radial-gradient(900px 420px at 78% -8%, #eef2ff 0%, rgba(238,242,255,0) 62%),
        radial-gradient(700px 380px at 4% 8%, #f0fbff 0%, rgba(240,251,255,0) 58%);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 600px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }

.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-points li { font-size: 14.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
.hero-points li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2L9 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ------------------------------------------------- The chat, as the product shot
 * Built in markup rather than dropped in as a picture: it stays sharp on any screen,
 * costs no extra request, and the copy inside it can be corrected when the product
 * changes instead of going quietly out of date in an image nobody re-exports.
 */
.chat-demo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
}
.chat-top {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: #fff;
}
.chat-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, #f472b6, #c026d3);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}
.chat-title { font-weight: 700; font-size: 14.5px; }
.chat-sub { font-size: 12px; color: var(--ink-3); }
.chat-live { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.chat-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.chat-body { padding: 16px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.bub-them { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.bub-us { background: var(--primary); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.bub-meta { font-size: 11.5px; color: var(--ink-3); align-self: flex-start; padding-left: 4px; }

.chat-cards { display: flex; gap: 8px; overflow: hidden; padding-top: 2px; }
.chat-card { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-card-img { height: 56px; background: linear-gradient(135deg, #e0e7ff, #cffafe); }
.chat-card-img.b { background: linear-gradient(135deg, #fce7f3, #ede9fe); }
.chat-card-body { padding: 7px 8px 9px; }
.chat-card-title { font-size: 11px; font-weight: 700; line-height: 1.3; }
.chat-card-price { font-size: 11px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.chat-card-btn { margin-top: 6px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 10px; font-weight: 700; text-align: center; padding: 4px; }

/* ---------------------------------------------------------------- Sections */
.section { padding: 76px 0; }
.band { background: var(--bg-2); padding: 76px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding: 60px 0 8px; }

.cta-band {
    background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #0f766e);
    color: #fff; padding: 76px 0; margin-top: 0;
}
.cta-band h2 { margin-top: 0; color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.step { position: relative; }
.step .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 800; font-size: 15px;
    margin-bottom: 14px; box-shadow: 0 3px 10px rgba(79,70,229,.3);
}
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.feat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .14s ease;
}
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feat p { color: var(--ink-2); font-size: 15px; margin: 0; }
.feat-icon {
    width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700;
}

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 0 0 20px; align-items: start; }
.plan-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    background: #fff; position: relative; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.plan-popular { border-color: var(--primary); box-shadow: 0 10px 34px rgba(79,70,229,.14); }
.tag-pop {
    position: absolute; top: -11px; left: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .05em;
}
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 10px; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .blurb { color: var(--ink-2); font-size: 14px; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; flex: 1; }
.plan li { font-size: 14px; padding: 7px 0 7px 24px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq h3 { margin-bottom: 6px; }
.faq p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* Legal */
.legal { padding-bottom: 48px; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; }
.legal ul, .legal ol { color: var(--ink-2); padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal p { color: var(--ink-2); }
.legal code { background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

.notice { border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.notice-ok { background: #dcfce7; border: 1px solid #86efac; }
.notice-ok h2 { margin-top: 0; color: #14532d; }
.notice-ok p { color: #166534; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 46px 0 30px; background: var(--bg-2); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px 26px; display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.foot-inner .tiny { max-width: 340px; margin: 8px 0 0; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--ink-2); font-size: 14px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .chat-demo { margin: 0 auto; }
    .hero h1, .hero .lead { max-width: none; }
}

@media (max-width: 640px) {
    .hero { padding: 52px 0 56px; }
    .section, .band, .cta-band { padding: 56px 0; }
    .foot-inner { flex-direction: column; }
    .nav nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .feat { transition: none; }
    .btn:hover, .feat:hover { transform: none; }
}
