/* Centralized frontend styles for public pages:
   / (home), /pricing, /faq, /contact, /web-install-app
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

.public-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 45%, #ecfdf5 100%);
    min-height: 100vh;
    color: #1e293b;
    padding: 40px 20px 56px;
}

.install-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 45%, #ecfdf5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    color: #1e293b;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
}

/* Public navigation */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 16px;
}
.topbar-brand:hover { color: #008060; text-decoration: underline; }
.topbar-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.topbar-links {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.topbar-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
}
.topbar-links a:hover { color: #008060; background: rgba(0,128,96,0.08); }
.topbar-links a.active { color: #008060; background: rgba(0,128,96,0.12); }
.topbar-install {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #008060;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 128, 96, 0.22);
    transition: background 0.2s, box-shadow 0.2s;
}
.topbar-install:hover { background: #006e52; box-shadow: 0 4px 14px rgba(0, 128, 96, 0.28); }

/* Shared sections */
.hero { text-align: center; margin-bottom: 40px; }
.hero--tight { margin-bottom: 24px; }
.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #0f172a;
}
.hero p { color: #64748b; line-height: 1.6; font-size: 1.05rem; }

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}
.success-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Home */
.content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    line-height: 1.65;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0f172a;
}
.content p { margin-bottom: 16px; color: #475569; }
.content p:last-child { margin-bottom: 0; }
.content strong { color: #334155; }
.tagline { color: #64748b; font-size: 1.125rem; line-height: 1.55; }
.cta { text-align: center; }
.ctaRow {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.cta a {
    display: inline-block;
    padding: 14px 32px;
    background: #008060;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 128, 96, 0.25);
}
.cta a:hover { background: #006e52; box-shadow: 0 4px 12px rgba(0, 128, 96, 0.3); }
.cta .cta-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.cta .cta-secondary:hover { background: #f8fafc; border-color: #94a3b8; }

/* Pricing */
.hero-secondary {
    text-align: center;
    margin: -14px auto 28px;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}
.hero-secondary a { color: #008060; text-decoration: none; font-weight: 900; }
.hero-secondary a:hover { text-decoration: underline; }

.grid {
    display: grid;
    gap: 20px;
}
.grid.pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) { .grid.pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.pricing { grid-template-columns: 1fr; } }

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.card.featured {
    border-color: #008060;
    box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.12), 0 4px 14px rgba(0, 128, 96, 0.1);
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 700;
}
.name { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.priceRow { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.price { font-size: 2rem; font-weight: 900; color: #0f172a; }
.per { color: #64748b; font-weight: 600; }
.meta { color: #475569; line-height: 1.6; margin-bottom: 0; font-size: 0.95rem; }
.meta strong { color: #1e293b; }
.footnote { margin-top: 24px; color: #64748b; font-size: 14px; line-height: 1.6; text-align: center; }
.empty {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    color: #475569;
    text-align: center;
    line-height: 1.7;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
code { color: #0f766e; background: #f0fdfa; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* FAQ */
.panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.item { border-top: 1px solid #e2e8f0; }
.item:first-child { border-top: 0; }
.q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 18px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
}
.q:focus { outline: 3px solid rgba(0, 128, 96, 0.15); outline-offset: 2px; }
.chev {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    color: #008060;
    flex: 0 0 auto;
}
.a {
    padding: 0 18px 18px 18px;
    color: #475569;
    line-height: 1.7;
    display: none;
    white-space: pre-wrap;
}
.item.open .a { display: block; }
.item.open .chev { background: #ecfdf5; border-color: #a7f3d0; }
.footerNote { margin-top: 18px; text-align: center; color: #64748b; font-size: 14px; line-height: 1.6; }
.footerNote a { color: #008060; font-weight: 700; text-decoration: none; }
.footerNote a:hover { text-decoration: underline; }

/* Contact */
.panel .grid.contact { grid-template-columns: 1fr 1fr; }
.grid.contact { grid-template-columns: 1fr 1fr; display: grid; gap: 18px; }
@media (max-width: 860px) { .grid.contact { grid-template-columns: 1fr; } }

.section-title { font-weight: 900; color: #0f172a; margin-bottom: 10px; }
.item-line { margin-bottom: 10px; color: #334155; line-height: 1.5; }
.item-line span { color: #64748b; font-weight: 800; }
.item-line a { color: #008060; font-weight: 900; text-decoration: none; }
.item-line a:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #008060;
    box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.12);
}

.btn {
    width: 100%;
    background: #008060;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 128, 96, 0.22);
}
.btn:hover { background: #006e52; box-shadow: 0 4px 14px rgba(0, 128, 96, 0.28); }

.footerHint { margin-top: 14px; color: #64748b; font-size: 13px; line-height: 1.5; }
.footerHint a { color: #008060; font-weight: 900; text-decoration: none; }
.footerHint a:hover { text-decoration: underline; }

/* Install page card */
.install-page .container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}
.install-page .header { text-align: center; margin-bottom: 28px; }
.install-page .header h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.install-page .header p { color: #64748b; font-size: 15px; line-height: 1.5; }
.install-page .help-text { margin-top: 20px; text-align: center; color: #64748b; font-size: 13px; }
.install-page .help-text strong { color: #334155; }
.install-page .back-link { display: block; text-align: center; margin-top: 24px; font-size: 14px; }
.install-page .back-link a { color: #008060; font-weight: 600; text-decoration: none; }
.install-page .back-link a:hover { text-decoration: underline; }

