/* Stardog Bookkeeping public site. Self-contained: tokens, layout and components for the landing and
   sign-up pages only (the console and portal use app.css). */
@font-face { font-family: "Inter"; src: url("/static/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0b1020; --ink-2: #121a33; --ink-3: #1b2547;
  --paper: #ffffff; --paper-2: #f6f7fb; --line: #e6e8f0; --line-dark: rgba(255,255,255,.12);
  --text: #0f1426; --text-2: #4a5270; --text-3: #6b7390; --on-ink: #eef1ff; --on-ink-2: #b7bfe0;
  --brand: #5b6cff; --brand-2: #8a5cff; --brand-ink: #ffffff; --money: #16a36a; --money-soft: #e7f7ef;
  --warn: #b7791f; --radius: 14px; --radius-lg: 22px; --shadow: 0 24px 60px -24px rgba(12, 18, 50, .35);
  --max: 1120px; --gutter: 20px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(11, 16, 32, .82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line-dark); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 18px -6px rgba(91, 108, 255, .8); }
.brand-mark svg { width: 17px; height: 17px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--on-ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .nav-link { display: none; }
@media (min-width: 860px) { .nav .nav-link { display: inline; } }

/* ---------------------------------------------------------------- buttons */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: 650 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.cta-primary { color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 28px -10px rgba(91, 108, 255, .9); }
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(91, 108, 255, 1); }
.cta-ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.cta-ghost:hover { background: rgba(255,255,255,.14); }
.cta-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.cta-block { width: 100%; }
.cta svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, rgba(138, 92, 255, .35), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(91, 108, 255, .30), transparent 55%), var(--ink); color: var(--on-ink); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 88px; padding-bottom: 104px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 550; color: var(--on-ink-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.hero h1 { margin: 18px 0 16px; font-size: clamp(38px, 6.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #9fb0ff, #c7a8ff 55%, #7ef0c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--on-ink-2); max-width: 560px; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--on-ink-2); }
.assure span { display: inline-flex; align-items: center; gap: 6px; }
.assure svg { width: 16px; height: 16px; color: #3ddc97; flex: none; }
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; font-size: 13px; color: var(--on-ink-2); }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 600; font-size: 13px; background: rgba(255,255,255,.04); }

/* hero visual: phone + floating report */
.visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.phone { position: relative; width: 290px; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #2a355f, #111831); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); animation: float 7s ease-in-out infinite; }
.phone-screen { border-radius: 32px; background: #f4f5f9; overflow: hidden; }
.phone-top { padding: 14px 16px 10px; text-align: center; font-size: 12px; color: #6b7390; background: #fff; border-bottom: 1px solid #eceef4; }
.phone-top b { display: block; color: #0f1426; font-size: 13px; }
.thread { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 330px; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.4; }
.bubble.them { background: #fff; color: #0f1426; border: 1px solid #e7e9f1; border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble small { display: block; margin-top: 4px; opacity: .7; font-size: 11px; }
.report { position: absolute; right: -6px; bottom: 6px; width: 250px; padding: 16px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); animation: float 7s ease-in-out -3.5s infinite; }
.report .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.report .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--money); line-height: 1.1; }
.report .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 6px 0; border-top: 1px solid var(--line); }
.report .row:first-of-type { margin-top: 8px; }
.report .row b { color: var(--text); }
.example { position: absolute; top: 10px; right: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: #fff6e5; border-radius: 6px; padding: 2px 6px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .report { position: relative; right: auto; bottom: auto; margin: -40px auto 0; } .visual { min-height: 0; } }

/* ---------------------------------------------------------------- sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
h2.title { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.sub { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0 0 44px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }

.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.step-card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; margin-bottom: 16px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.step-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.step-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.step-card .time { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-3); }

.features { display: grid; gap: 16px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef0ff; color: var(--brand); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.feature.money .ic { background: var(--money-soft); color: var(--money); }

.trust { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .trust { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.checks li svg { width: 24px; height: 24px; color: var(--money); margin-top: 1px; }
.checks b { display: block; }
.checks span { color: var(--text-2); font-size: 15px; }
.panel { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 12px; font-size: 20px; color: #fff; }
.panel ol { margin: 0; padding-left: 20px; color: var(--on-ink-2); display: grid; gap: 8px; }

/* ---------------------------------------------------------------- pricing */
.price-card { max-width: 560px; margin: 0 auto; padding: 36px 32px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--brand-2), #3ddc97); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price .amt { font-size: 56px; font-weight: 800; letter-spacing: -.04em; }
.price .per { color: var(--text-3); font-size: 17px; }
.price-note { color: var(--text-2); font-size: 15px; margin: 0 0 22px; }
.includes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.includes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.includes svg { width: 20px; height: 20px; color: var(--money); margin-top: 2px; }
.guarantee { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--money-soft); color: #0e5c3d; font-size: 15px; margin-bottom: 22px; }
.guarantee svg { width: 22px; height: 22px; flex: none; }
.fine { font-size: 13px; color: var(--text-3); text-align: center; margin: 12px 0 0; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 650; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

/* ---------------------------------------------------------------- sign-up */
.signup { background: radial-gradient(900px 480px at 100% 0%, rgba(138, 92, 255, .28), transparent 60%), var(--ink); color: var(--on-ink); }
.signup .wrap { display: grid; gap: 40px; padding-top: 88px; padding-bottom: 96px; }
@media (min-width: 960px) { .signup .wrap { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.signup h2.title { color: #fff; }
.signup .sub { color: var(--on-ink-2); }
.form-card { padding: 28px; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.form-card h3 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.01em; }
.form-card .hint { margin: 0 0 20px; color: var(--text-3); font-size: 14.5px; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label, .fld .lbl { font-size: 14px; font-weight: 600; }
.fld .opt { font-weight: 400; color: var(--text-3); }
.fld input[type=text], .fld input[type=email], .fld input[type=tel] { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font: 400 16px var(--font); color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fld input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 108, 255, .15); }
.two { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 650; cursor: pointer; transition: border-color .15s, background .15s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--brand); background: #eef0ff; color: #2d3bcc; box-shadow: 0 0 0 1px var(--brand); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(91, 108, 255, .25); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--text-2); margin: -4px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.err { padding: 12px 14px; border-radius: 12px; background: #fdeceb; color: #a61d12; font-size: 14.5px; margin-bottom: 16px; font-weight: 550; }
.after { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.after li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--on-ink-2); }
.after .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 14px; }
.after b { color: #fff; display: block; }

/* ---------------------------------------------------------------- footer */
.site-foot { padding: 36px 0 44px; background: var(--ink); color: var(--on-ink-2); border-top: 1px solid var(--line-dark); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--on-ink-2); text-decoration: none; }
.site-foot a:hover { color: #fff; }

/* standalone start page */
.start-page { min-height: 100vh; background: var(--ink); }
.start-page .wrap { max-width: 560px; padding-top: 40px; padding-bottom: 60px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* phone header: one line, nothing off-screen */
.brand { white-space: nowrap; }
.narrow-only { display: none; }
@media (max-width: 520px) {
  .site-head .wrap { gap: 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; white-space: nowrap; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
}
@media (max-width: 350px) { .site-head .brand { font-size: 0; gap: 0; } }

/* Privacy policy / terms */
.legal { max-width: 760px; padding: 56px var(--gutter) 88px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; letter-spacing: -.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal .summary { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); }
.legal .summary p { margin: 0; color: var(--text); }
.legal a { color: var(--brand); }
