/* databookpro.com — home page styles. No framework; system fonts. */

:root {
    --brand: #1b7fb3;
    --brand-strong: #13668f;
    --brand-soft: #e8f3fa;
    --link: #1b7fb3;
    --link-hover: #13668f;
    --ink: #10222e;
    --ink-2: #3d5260;
    --ink-3: #6a7d89;
    --line: #dbe5ec;
    --bg: #ffffff;
    --bg-tint: #f4f8fb;
    --surface: #ffffff;
    --header-bg: rgba(255, 255, 255, .92);
    --hero-glow: rgba(27, 127, 179, .12);
    --hero-top: #f7fbfd;
    --chrome: #f1f5f8;
    --chrome-dot: #cfdbe3;
    --input-border: #c6d4de;
    --callout-bg: #10222e;
    --callout-text: #c9d8e2;
    --callout-head: #ffffff;
    --ok: #1e7e34;
    --err: #c0392b;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 34, 46, .06), 0 12px 32px rgba(16, 34, 46, .10);
    --container: 1160px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--brand-strong); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid rgba(27, 127, 179, .45); outline-offset: 2px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5em; padding: .8em 1.4em; border-radius: 8px;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--link); color: var(--link-hover); }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 168px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--link); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin-right: -10px;
        background: none; border: 0; cursor: pointer;
    }
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
        display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
        transition: transform .2s, background-color .2s;
    }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -7px; }
    .nav-toggle-bar::after { top: 7px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(16, 34, 46, .08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(1000px 420px at 85% -10%, var(--hero-glow), transparent 70%),
        linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 100%);
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: .9em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-shot { margin: 0; }
.hero-shot .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; width: 118%; }

@media (max-width: 960px) {
    .hero { padding: 48px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-shot .window { transform: none; width: 100%; }
}

/* App window frame around screenshots */
.window {
    margin: 0; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.window-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--chrome-dot); }

/* Outcomes strip */
.outcomes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.outcome { padding: 32px 28px; }
.outcome + .outcome { border-left: 1px solid var(--line); }
.outcome p { margin: 0; color: var(--ink-3); font-size: .98rem; }
.outcome .outcome-big { color: var(--ink); font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .2em; }

@media (max-width: 760px) {
    .outcomes-grid { grid-template-columns: 1fr; }
    .outcome { padding: 22px 0; }
    .outcome + .outcome { border-left: 0; border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin-bottom: 48px; }
@media (max-width: 760px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step p { margin: 0; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-soft); color: var(--link-hover); font-weight: 700; margin-bottom: 16px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature p { margin: 0; font-size: .98rem; }
.feature-icon { width: 40px; height: 40px; padding: 8px; border-radius: 8px; background: var(--brand-soft); fill: var(--link); margin-bottom: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature-new { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; padding: 24px 28px; border-radius: var(--radius); background: var(--callout-bg); color: var(--callout-text); }
.feature-new h3 { color: var(--callout-head); }
.feature-new p { margin: 0; }
.badge { flex: none; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: var(--brand); color: #fff; }

/* Product tour */
.tour-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.tour-row + .tour-row { margin-top: 80px; }
.tour-row-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.tour-row-flip .tour-copy { order: 2; }
.tour-copy h3 { font-size: 1.35rem; }
.tour-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface); cursor: zoom-in; }
.tour-video:fullscreen { cursor: auto; }
@media (max-width: 860px) {
    .tour-row { grid-template-columns: 1fr; gap: 24px; }
    .tour-row + .tour-row { margin-top: 56px; }
    .tour-row-flip .tour-copy { order: 0; }
}

/* Existing customers */
.customers { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.customers > div:first-child { max-width: 640px; }
.customers p:last-child { margin-bottom: 0; }
.customers-actions { flex: none; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .customers { flex-direction: column; align-items: flex-start; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-direct { color: var(--ink-3); }
.contact-form { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; padding: .7em .85em; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--input-border); border-radius: 8px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 127, 179, .18); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
@media (max-width: 860px) {
    .contact { grid-template-columns: 1fr; gap: 32px; }
    .contact-form { padding: 24px 20px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner img { width: 140px; height: auto; margin-bottom: 8px; }
.footer-legal { margin: 0; font-size: .88rem; color: var(--ink-3); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--link); }

/* Trial pages */
.trial-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.trial h1, .trial-done h1 { margin-top: 0; }
.trial-steps { margin: 32px 0 0; padding-left: 1.4em; }
.trial-steps li { margin-bottom: 14px; padding-left: 4px; }
.trial-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trial-card h2 { margin: 0 0 4px; }
.trial-price { color: var(--ink-2); margin: 0 0 20px; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.trial-fine { font-size: .875rem; color: var(--ink-3); margin: 16px 0 0; }
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 48px; }
.faq h3 { margin-bottom: 6px; }
.trial-done { max-width: 720px; }
.trial-done h2 { font-size: 1.3rem; margin: 40px 0 10px; }
@media (max-width: 860px) { .trial-inner, .faq { grid-template-columns: 1fr; gap: 32px; } }
.terms h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.terms-draft { padding: 12px 16px; border: 1px dashed var(--err); border-radius: var(--radius); color: var(--err); }

/* Legal pages (privacy policy, EULA) */
.legal { max-width: 780px; }
.legal h1 { margin-top: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal h3 { font-size: 1.08rem; margin: 28px 0 8px; }
.legal h4 { font-size: 1rem; margin: 20px 0 6px; color: var(--ink-2); }
.legal p { margin: 0 0 14px; }

/* Screenshot placeholders (replace with real screenshots before going live) */
.shot-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 24px; text-align: center;
    background: repeating-linear-gradient(45deg, var(--bg-tint), var(--bg-tint) 12px, var(--surface) 12px, var(--surface) 24px);
    border-top: 1px dashed var(--line); color: var(--ink-3); font-size: .95rem;
}
.shot-placeholder strong { color: var(--ink-2); }
.reports-shot { max-width: 760px; margin: 48px auto 0; }

/* Report style gallery */
.style-gallery { margin-top: 72px; }
.style-gallery-head { max-width: 680px; margin-bottom: 28px; }
.style-gallery-head h3 { font-size: 1.5rem; margin: 0 0 .4em; }
.style-gallery-head p { margin: 0; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.style-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.style-card img { width: 100%; height: auto; display: block; }
.style-card figcaption { padding: 14px 18px 16px; font-size: .95rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.style-card figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.style-more { margin: 24px 0 0; color: var(--ink-3); font-size: .95rem; }
@media (max-width: 960px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .style-grid { grid-template-columns: 1fr; } .style-gallery { margin-top: 48px; } }
