/*
 * Public pages, sign-up and sign-in. Loaded after Bootstrap, which supplies
 * the grid and form reset. See DESIGN.md for the decisions behind this file.
 */
:root {
    --ink: #16202e;
    --muted: #5b6675;
    --line: #dde1e7;
    --surface: #ffffff;
    --wash: #f5f6f8;
    --primary: #173f8f;
    --primary-dark: #11306e;
    --primary-tint: #eaf0fb;
    --ok: #1a7f4b;
    --warn: #9a5b06;
    --bad: #b42318;
    --radius: 6px;
    --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--surface);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius);
    --bs-border-radius-lg: var(--radius);
    --bs-border-radius-sm: var(--radius);
}

body.site {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--surface);
}

.site h1, .site h2, .site h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.site h1 { font-size: 36px; }
.site h2 { font-size: 28px; }
.site h3 { font-size: 18px; }
.site p { max-width: 68ch; }
.site a:not(.btn) { color: var(--primary); text-underline-offset: 3px; }
.site a:not(.btn):hover { color: var(--primary-dark); }
.site :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--muted); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: 8px; }
.section-intro { color: var(--muted); margin-bottom: 32px; }

/* Buttons */
.site .btn {
    border-radius: var(--radius);
    font-weight: 500;
    padding: 10px 18px;
    font-size: 16px;
    box-shadow: none;
}
.site .btn-lg { padding: 12px 22px; font-size: 16px; }
.site .btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}
.site .btn-secondary,
.site .btn-outline-primary,
.site .btn-outline-dark,
.site .btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: #b9c0cb;
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--wash);
    --bs-btn-hover-border-color: #8f98a6;
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--wash);
    --bs-btn-active-border-color: #8f98a6;
}
.site .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; box-shadow: none; }

/* Forms */
.site .form-label { font-weight: 500; margin-bottom: 6px; }
.site .form-control,
.site .form-select {
    border: 1px solid #b9c0cb;
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 16px;
    color: var(--ink);
}
.site .form-control:focus,
.site .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.site .form-text { color: var(--muted); }

/* Notices (also restyles Bootstrap alerts) */
.site .alert {
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    padding: 12px 16px;
}
.site .alert-success { border-left-color: var(--ok); }
.site .alert-danger { border-left-color: var(--bad); }
.site .alert-warning { border-left-color: var(--warn); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.site a.brand, .site a.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site .site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--radius); }
.site .site-nav a:not(.btn):hover { background: var(--wash); color: var(--ink); }
.site .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .btn { margin-left: 8px; }
.site a.brand, .site a.brand:hover { color: var(--ink); }
.site .site-footer a:not(.btn) { color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid #b9c0cb; border-radius: var(--radius); padding: 8px 12px; font: inherit; color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.shot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); overflow: hidden; margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.shot-phone { max-width: 320px; margin-left: auto; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

.step-art { display: block; width: 64px; height: 48px; color: var(--primary); margin-bottom: 12px; }

/* Pictures */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.gallery .shot { background: var(--surface); }
.photo-band .shot img { max-height: 520px; object-fit: cover; }

/* Feature list: two columns of title + description, no cards */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.features > div { padding: 20px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 600; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--muted); }

/* Tables */
.site table.plain { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plain th, .plain td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain thead th { background: var(--wash); font-weight: 600; font-size: 14px; }
.plain tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 500; padding: 1px 8px; border-radius: 3px; background: var(--primary-tint); color: var(--primary); margin-left: 6px; }
.table-scroll { overflow-x: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); display: flex; flex-direction: column; }
.plan h3 { margin-bottom: 4px; }
.plan-price { font-size: 28px; font-weight: 600; margin: 8px 0 2px; }
.plan-price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); background: var(--surface); max-width: none; }

/* Questions */
.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style-position: outside; }
.faq details p { color: var(--muted); padding: 0 0 16px; margin: 0; }

/* Closing band */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { margin: 0 0 6px; }
.closing p { margin: 0; color: var(--muted); }

/* Inner pages */
.page-head { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 18px; margin: 0; }
.page-body { padding: 40px 0 64px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list span { display: block; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site .site-footer a { color: var(--muted); }

/* Sign-in and sign-up */
body.site-auth { background: var(--wash); }
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 40px 20px 64px; }
.auth-wrap-wide { max-width: 980px; }
.auth-brand { margin-bottom: 24px; }
.auth-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-panel h1 { font-size: 22px; margin-bottom: 6px; }
.auth-panel .lead-text { color: var(--muted); margin-bottom: 20px; }
.auth-foot { margin-top: 16px; font-size: 14px; color: var(--muted); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.next-steps { list-style: none; counter-reset: next; padding: 0; margin: 16px 0 0; }
.next-steps li { counter-increment: next; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); position: relative; }
.next-steps li::before { content: counter(next) "."; position: absolute; left: 0; font-weight: 600; color: var(--muted); }

/* Older fallback pages still use these names */
.public-hero, .public-section, .public-page-header { max-width: 1080px; margin: 0 auto; padding: 40px 20px; }
.public-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.public-eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.public-title { font-size: 36px; }
.public-lead { font-size: 18px; color: var(--muted); }
.public-image-frame { display: none; }

@media (max-width: 860px) {
    .site h1 { font-size: 28px; }
    .site h2 { font-size: 22px; }
    .hero { padding: 32px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero-grid, .two-col, .signup-grid { grid-template-columns: 1fr; gap: 32px; }
    .shot-phone { margin: 0; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .gallery { grid-template-columns: 1fr; max-width: 320px; }
    .features { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .site-header .wrap { gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
    .site-nav { width: 100%; margin: 0; gap: 0 4px; }
    .site-nav a { padding: 8px 8px 8px 0; }
    .site-nav .btn { margin: 4px 0 0 auto; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* A field for bots only: off-screen, out of the tab order. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin-bottom: 14px; min-height: 78px; }
