/* BooksGURU marketing site. Brand: teal #0EA58C, actions #0A7A69, ink #1C1714,
   cream page #FAF8F5. Poppins headings, Figtree body (self hosted). */
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url(/static/fonts/figtree-400.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url(/static/fonts/figtree-500.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url(/static/fonts/figtree-600.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url(/static/fonts/figtree-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(/static/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(/static/fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url(/static/fonts/poppins-800.woff2) format('woff2'); }

:root {
  --teal: #0EA58C; --teal-600: #0A7A69; --teal-700: #08604F; --teal-50: #E9F8F5; --teal-100: #CDEFE8; --teal-300: #5FD4BE;
  --ink: #1C1714; --copy: #4A423D; --muted: #7A706A; --line: #E8E3DD; --page: #FAF8F5; --white: #FFFFFF;
  --dark: #12201D; --paid: #2E9A63; --paid-bg: #DDF2E6; --due: #8A5A00; --due-bg: #FFF1CC;
  --shadow: 0 1px 2px rgba(28,23,20,.06), 0 12px 32px rgba(28,23,20,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 'Figtree', system-ui, sans-serif; color: var(--copy); background: var(--page); }
h1, h2, h3 { font-family: 'Poppins', 'Figtree', sans-serif; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
a { color: var(--teal-600); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px 'Figtree', sans-serif; padding: 13px 22px; border-radius: 12px;
  border: 0; cursor: pointer; text-decoration: none; background: var(--teal-600); color: #fff; transition: background .15s; }
.btn:hover { background: var(--teal-700); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--white); }
.btn.white { background: #fff; color: var(--teal-700); }
.btn.white:hover { background: var(--teal-50); }
.overline { font: 700 13px 'Figtree', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(250,248,245,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.nav .logo img { height: 34px; display: block; }
.nav .links { display: flex; gap: 24px; margin-left: 12px; }
.nav .links a { color: var(--copy); text-decoration: none; font-weight: 500; }
.nav .links a:hover { color: var(--ink); }
.nav .end { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav .end .signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 6px; }
.nav .btn { padding: 10px 18px; font-size: 15px; }

/* hero */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { font-size: 20px; margin: 22px 0 30px; max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; color: var(--muted); }
.trust span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 2px; }

/* hero visual: an invoice and a money summary, drawn in HTML */
.visual { position: relative; min-height: 600px; }
.card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.inv { position: absolute; left: 0; top: 0; width: 80%; padding: 26px 28px; }
.inv .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.inv .from { font: 700 18px 'Poppins', sans-serif; color: var(--ink); }
.inv .no { font-size: 14px; color: var(--muted); }
.pill { display: inline-block; font: 700 12px 'Figtree', sans-serif; padding: 4px 10px; border-radius: 999px; }
.pill.paid { background: var(--paid-bg); color: #16603C; }
.pill.due { background: var(--due-bg); color: var(--due); }
.inv table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.inv td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.inv td.n { text-align: right; font-variant-numeric: tabular-nums; }
.inv tr.tot td { border: 0; font-weight: 700; color: var(--ink); padding-top: 12px; font-size: 16px; }
.inv .pay { margin-top: 18px; display: flex; gap: 8px; }
.inv .pay span { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--teal-600); color: #fff; }
.inv .pay span.alt { background: var(--teal-50); color: var(--teal-700); }
.sum { position: absolute; right: 0; top: 330px; width: 54%; padding: 22px 24px; }
.sum h3 { font-size: 15px; margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-bottom: 14px; }
.bars div { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--teal); }
.bars i + i { background: var(--teal-100); }
.sum .row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.sum .row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.float { position: absolute; left: 0; top: 520px; background: var(--white); border-radius: 999px; padding: 9px 16px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--ink); }
.float::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--paid); margin-right: 8px; }

/* sections */
section { padding: 88px 0; }
.center { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.center h2, .split h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.center p { font-size: 19px; margin: 16px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 30px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; font: 800 18px 'Poppins', sans-serif; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; }

.features { background: var(--white); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 28px; border-radius: 20px; background: var(--page); }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 16px; }

.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { padding: 7px 0 7px 32px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2308604F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.panel { background: var(--teal-50); border-radius: 24px; padding: 32px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.types .card { padding: 20px; }
.types .card b { display: block; color: var(--ink); font-family: 'Poppins', sans-serif; font-size: 17px; margin-bottom: 4px; }
.types .card span { font-size: 14.5px; }

.dark { background: var(--dark); color: #C9D6D2; }
.dark h2 { color: #fff; }
.dark .overline { color: var(--teal-300); }
.dark .ticks li::before { background-color: rgba(95,212,190,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%235FD4BE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.vat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 26px; }
.vat .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.vat .row:last-child { border: 0; color: #fff; font-weight: 700; }
.vat .row b { color: #fff; font-variant-numeric: tabular-nums; }

.soon { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.soon span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; color: var(--ink); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 16px; margin-bottom: 12px; padding: 0 24px; box-shadow: 0 1px 2px rgba(28,23,20,.05); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 18px 'Figtree', sans-serif; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--teal-600); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 20px; }

.cta { background: var(--teal); border-radius: 32px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.cta p { color: #E8FBF7; font-size: 18px; }
.cta form { background: #fff; border-radius: 20px; padding: 26px; color: var(--copy); }
.cta label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin: 0 0 6px; }
.cta input, .cta select { width: 100%; font: 16px 'Figtree', sans-serif; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: #fff; color: var(--ink); }
.cta input:focus, .cta select:focus { outline: 3px solid var(--teal-100); border-color: var(--teal); }
.cta .btn { width: 100%; }
.cta .small { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.cta .hp { position: absolute; left: -9999px; }
.msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.msg.ok { background: var(--paid-bg); color: #16603C; }
.msg.err { background: #FBE1E2; color: #9E1A24; }

.foot { background: #1C1714; color: #CFC6BF; padding: 64px 0 36px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #3A322D; }
.foot-brand img { display: block; }
.foot-brand p { margin: 16px 0 18px; max-width: 24em; color: #E8E1DB; }
.foot .group { display: inline-flex; align-items: center; gap: 8px; color: #A79D96; text-decoration: none; font-size: 14px; }
.foot .group img { height: 20px; width: auto; }
.foot-col h4 { margin: 4px 0 16px; color: #fff; font: 700 14px 'Figtree', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.foot-col a { display: block; color: #E8E1DB; text-decoration: none; padding: 5px 0; font-size: 16px; }
.foot-col a:hover { color: var(--teal-300); }
.foot-fine { padding-top: 26px; color: #A79D96; font-size: 14px; }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 24px 88px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 6px 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 5px 0; }
.legal .box { background: var(--teal-50); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }

@media (max-width: 980px) {
  .nav .links { display: none; }
  .hero .wrap, .split .wrap, .cta { grid-template-columns: 1fr; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .visual { min-height: 600px; max-width: 560px; }
  .split .wrap > .panel, .split .wrap > .vat { order: 2; }
}
@media (max-width: 680px) {
  .nav .end .signin { display: none; }
  .grid, .steps, .types { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 36px 0 56px; }
  section { padding: 60px 0; }
  .visual { min-height: 620px; }
  .inv { width: 100%; } .sum { width: 86%; top: 350px; }
  .float { display: none; }
  .cta { padding: 28px; border-radius: 24px; }
}
