/* Marketing site — home, pricing, sign-up. Brand palette mirrors app.css. */
:root {
    --bg: #ffffff;
    --ink: #1c2430;
    --muted: #6b7684;
    --line: #e3e7ec;
    --brand: #c0392b;
    --brand-dark: #97281c;
    --soft: #f7f4f2;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.lg { padding: 0.9rem 1.7rem; font-size: 1.05rem; }

/* ---- Top navigation ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.logo span { color: var(--brand); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a.active { color: var(--brand); }
.nav-links .btn { color: #fff; }

/* ---- Hero ---- */
.hero {
    background: radial-gradient(1200px 500px at 70% -10%, #fbeae7 0%, rgba(255,255,255,0) 60%), var(--bg);
    padding: 4.5rem 0 3.5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
    background: #fbeae7;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.hero h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.75rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* Phone / QR mock on hero */
.hero-art { display: flex; justify-content: center; }
.phone {
    width: 260px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(28, 36, 48, 0.15);
    padding: 1.25rem;
    text-align: center;
}
.phone .qr {
    width: 150px; height: 150px; margin: 0.5rem auto 1rem;
    background:
        linear-gradient(45deg, #1c2430 25%, transparent 25%) -10px 0,
        linear-gradient(-45deg, #1c2430 25%, transparent 25%) -10px 0,
        linear-gradient(45deg, transparent 75%, #1c2430 75%),
        linear-gradient(-45deg, transparent 75%, #1c2430 75%);
    background-size: 20px 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 8px solid #fff;
    outline: 1px solid var(--line);
}
.phone .m-item { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); font-size: 0.85rem; text-align: left; }
.phone .m-item .p { font-weight: 700; }

/* ---- Sections ---- */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.alt { background: var(--soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.feature .ico {
    width: 46px; height: 46px; border-radius: 12px;
    background: #fbeae7; color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 0.9rem;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { text-align: center; padding: 1rem; }
.step .num {
    width: 44px; height: 44px; margin: 0 auto 0.8rem;
    border-radius: 999px; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step h3 { margin: 0 0 0.3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Pricing ---- */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.billing-toggle span { font-weight: 600; color: var(--muted); }
.billing-toggle span.on { color: var(--ink); }
.badge-save { background: #e4f4ea; color: #1e874b; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; }
.switch { position: relative; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--brand); border-radius: 999px; cursor: pointer; transition: 0.2s; }
.slider::before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider::before { transform: translateX(24px); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.plan {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 20px 40px rgba(192, 57, 43, 0.12); position: relative; }
.plan .tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.8rem; border-radius: 999px;
}
.plan h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.plan .desc { color: var(--muted); margin: 0 0 1rem; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.25rem; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); }
.price-sub { color: var(--muted); font-size: 0.85rem; min-height: 1.2em; margin-bottom: 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan li { padding: 0.4rem 0 0.4rem 1.7rem; position: relative; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #1e874b; font-weight: 800; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "–"; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0.6rem 0 0; }

/* ---- CTA band ---- */
.cta {
    background: var(--ink);
    color: #fff;
    text-align: center;
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
}
.cta h2 { font-size: 1.9rem; margin: 0 0 0.6rem; }
.cta p { color: #cfd6de; margin: 0 0 1.5rem; }
.cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta .btn.ghost:hover { background: rgba(255,255,255,0.08); }

/* ---- Auth (sign-up) ---- */
.auth { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; background: var(--soft); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 20px 50px rgba(28,36,48,0.08); }
.auth-card h1 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.auth-card .sub { color: var(--muted); margin: 0 0 1.25rem; }
.auth-card label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0.9rem 0 0.3rem; }
.auth-card input {
    width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--line);
    border-radius: 8px; font: inherit; background: #fff;
}
.auth-card input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #fbeae7; }
.auth-card .hint { font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0 0; }
.auth-foot { text-align: center; color: var(--muted); margin: 1rem 0 0; }
.plan-pill { display: inline-block; background: #fbeae7; color: var(--brand); font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; }
.error {
    background: #fbe3e0; color: var(--brand-dark); border: 1px solid #f0c2bc;
    padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem;
}

/* ---- Footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.9rem; }
.site-foot .foot-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .hero h1 { font-size: 2.3rem; }
    .features, .steps, .plans { grid-template-columns: 1fr; }
    .nav-links { gap: 1rem; }
    .nav-links a.hide-sm { display: none; }
}
