/* BetterBooks website styles */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #0E1E3A;
  --navy-deep: #08142A;
  --teal: #2EC4B6;
  --teal-dark: #0A7C74;
  --teal-darker: #075E58;
  --coral: #FF6B4A;
  --coral-dark: #C2410C;
  --yellow: #FFC845;
  --gold-dark: #9A6700;
  --blue: #2F4FD8;
  --ink: #1B2540;
  --muted: #4A5570;
  --on-dark: #C9D2E3;
  --line: #E4E9F2;
  --soft: #F5F7FB;
  --tint-teal: #E6F7F5;
  --tint-coral: #FFF0EB;
  --tint-yellow: #FFF7DF;
  --tint-blue: #E8EEFF;
  --radius: 22px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal-darker); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 12px; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2; padding: 16px 28px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--coral { background: var(--coral); color: var(--navy); }
.btn--coral:hover { background: #FF8466; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1A2F55; color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { color: #fff; border-color: #fff; }
.btn--small { font-size: 15px; padding: 12px 22px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand img { width: 42px; height: 42px; }
.brand span span { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #E4E9F2; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.nav .btn { color: var(--navy); padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.35); color: #fff; border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 30px rgba(0,0,0,.25); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--teal); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__shape { position: absolute; pointer-events: none; }
.hero__shape--1 { width: 520px; height: 520px; border-radius: 50%; background: var(--teal); opacity: .18; right: -140px; top: -260px; }
.hero__shape--2 { width: 260px; height: 260px; border-radius: 50%; background: var(--coral); opacity: .22; right: 380px; bottom: -120px; }
.hero__shape--3 { width: 120px; height: 120px; border-radius: 28px; background: var(--yellow); opacity: .9; right: 90px; bottom: 110px; transform: rotate(18deg); }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 104px; }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__visual { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #E4E9F2; margin-bottom: 20px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero__title { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hero__title .highlight { color: var(--yellow); display: block; }
h1.pill { line-height: 1.4; letter-spacing: 0; }
.hero__lead { margin-top: 28px; max-width: 560px; font-size: 19px; color: var(--on-dark); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 600px) { .hero__inner { padding-bottom: 72px; } .hero__shape--3 { display: none; } }

.checklist-card { width: 100%; max-width: 440px; background: #fff; color: var(--ink); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px rgba(4,12,30,.35); }
.checklist-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-caps { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status-pill { background: var(--tint-teal); color: var(--teal-darker); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.checklist-card__title { margin: 10px 0 20px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--soft); border-radius: 14px; font-weight: 600; }
.checklist li.is-pending { background: var(--tint-yellow); }
.checklist svg { flex: none; }
.checklist-card__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.checklist-card__foot strong { color: var(--ink); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }

/* Page hero for inner pages */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero__inner { position: relative; padding-top: 48px; padding-bottom: 88px; max-width: 820px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { margin-top: 20px; font-size: 19px; color: var(--on-dark); max-width: 640px; }
.page-hero .hero__shape--1 { top: -300px; }

/* Credentials */
.credentials { border-bottom: 1px solid var(--line); }
.credentials__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; padding-top: 28px; padding-bottom: 28px; }
.credential { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.credential small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }

/* Icon tiles */
.icon-tile { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-tile--teal { background: var(--tint-teal); color: var(--teal-darker); }
.icon-tile--coral { background: var(--tint-coral); color: var(--coral-dark); }
.icon-tile--yellow { background: var(--tint-yellow); color: var(--gold-dark); }
.icon-tile--blue { background: var(--tint-blue); color: var(--blue); }

/* Sections */
.section { padding: 104px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 72px 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } }
.section-head { max-width: 680px; }
.section-head--center { margin: 0 auto; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.section-title { margin-top: 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section-foot { margin-top: 40px; }

.card-row { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 340px; background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.card h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 700; }
.card p { color: var(--muted); }

/* Services detail */
.service-detail { display: flex; flex-wrap: wrap; gap: 32px 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail__head { flex: 1 1 340px; min-width: 0; }
.service-detail__head h2 { margin-top: 22px; font-size: 30px; font-weight: 800; }
.service-detail__head p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.service-detail__body { flex: 1 1 460px; min-width: 0; }

.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.tick-list li { flex: 1 1 220px; display: flex; align-items: flex-start; gap: 12px; font-weight: 500; line-height: 1.45; }
.tick-list svg { flex: none; margin-top: 1px; }
.tick-list--single li { flex-basis: 100%; }

/* Pricing band */
.pricing-band { background: var(--yellow); }
.pricing-band__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.pricing-band__copy { flex: 1 1 420px; min-width: 0; }
.pricing-band .eyebrow { color: var(--navy); }
.pricing-band .section-title { color: var(--navy); font-size: clamp(34px, 4vw, 52px); }
.pricing-band p.section-lead { color: #2A2A1F; max-width: 480px; }
.price { margin-top: 28px; font-size: 18px; font-weight: 600; color: var(--navy); }
.price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.price--fallback strong { font-size: 30px; line-height: 1.2; display: block; }
.pricing-band .btn { margin-top: 28px; }
.included-card { flex: 1 1 480px; min-width: 0; background: #fff; border-radius: 28px; padding: 40px; box-shadow: 0 20px 50px rgba(120,80,0,.18); }
.included-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
@media (max-width: 600px) { .included-card { padding: 28px; } }

/* Why */
.why-card { flex: 1 1 300px; border-radius: var(--radius); padding: 36px; }
.why-card .num { font-size: 44px; font-weight: 800; line-height: 1; }
.why-card h3 { margin: 20px 0 10px; font-size: 22px; font-weight: 700; }
.why-card--navy { background: var(--navy); color: #fff; }
.why-card--navy .num { color: var(--yellow); }
.why-card--navy p { color: var(--on-dark); }
.why-card--teal { background: var(--tint-teal); }
.why-card--teal .num { color: var(--teal-dark); }
.why-card--coral { background: var(--tint-coral); }
.why-card--coral .num { color: var(--coral-dark); }
.why-card--teal p, .why-card--coral p { color: #34405A; }

/* Team */
.team-grid { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.team-card { flex: 1 1 460px; max-width: 820px; min-width: 0; background: #fff; border-radius: 26px; padding: 28px; border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.team-card__photo { flex: 0 0 180px; height: 210px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 48px; font-weight: 800; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card:nth-child(4n+1) .team-card__photo { background: var(--teal); }
.team-card:nth-child(4n+2) .team-card__photo { background: var(--coral); }
.team-card:nth-child(4n+3) .team-card__photo { background: var(--yellow); }
.team-card:nth-child(4n+4) .team-card__photo { background: #A9B9FF; }
.team-card__body { flex: 1 1 220px; min-width: 0; }
.team-card h3 { font-size: 24px; font-weight: 800; }
.team-card__role { margin: 6px 0 14px; font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.team-card__bio p { color: var(--muted); }
.team-card__bio p + p { margin-top: 10px; }
.team-card__link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; }
@media (max-width: 520px) { .team-card__photo { flex-basis: 100%; height: 260px; } }

/* Steps */
.steps { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 40px; list-style: none; padding: 0; }
.steps li { flex: 1 1 280px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.steps li:nth-child(1) .step-num { background: var(--teal); }
.steps li:nth-child(2) .step-num { background: var(--coral); }
.steps li:nth-child(3) .step-num { background: var(--yellow); }
.steps h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 700; }
.steps p { color: var(--muted); }

/* FAQ */
.faq { margin-top: 48px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; font-size: 19px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 28px; font-weight: 500; color: var(--teal-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 17px; max-width: 760px; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.contact__shape { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--teal); opacity: .14; left: -160px; bottom: -180px; pointer-events: none; }
.contact__inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact__copy { flex: 1 1 400px; min-width: 0; }
.contact .eyebrow { color: var(--teal); }
.contact .section-title { font-size: clamp(34px, 4vw, 52px); }
.contact .section-lead { color: var(--on-dark); max-width: 460px; }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; min-width: 0; }
.contact-list a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--teal); text-decoration: underline; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex: none; }

.form-card { flex: 1 1 460px; min-width: 0; background: #fff; color: var(--ink); border-radius: 26px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { .form-card { padding: 24px; } }
.form-card--bordered { border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(14,30,58,.08); }
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row .field { flex: 1 1 200px; }
.field { flex: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; border: 1.5px solid #B8C3D6; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(46,196,182,.3); }
.form-note { font-size: 13px; color: var(--muted); }
.form-card .btn { align-self: flex-start; }

/* CTA band */
.cta-band { background: var(--tint-teal); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; max-width: 640px; }
.cta-band p { margin-top: 10px; color: var(--muted); font-size: 18px; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 40px 0 12px; }
.prose p, .prose li { color: #34405A; font-size: 17px; }
.prose a { overflow-wrap: anywhere; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-dark); font-size: 15px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-top: 64px; padding-bottom: 40px; }
.site-footer__brand { flex: 1 1 300px; max-width: 380px; }
.site-footer__brand p { margin-top: 16px; }
.site-footer__brand .brand { font-size: 20px; }
.site-footer__brand .brand img { width: 38px; height: 38px; }
.footer-col { flex: 0 1 200px; }
.footer-col h2 { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; padding-bottom: 32px; font-size: 13px; line-height: 1.7; color: #A9B4C8; }
.site-footer__legal a { color: #A9B4C8; }

/* Form messages */
.form-error { background: var(--tint-coral); color: #9A2C0B; border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px; }

/* Team bios: every card shows the same number of lines, with Show more for the rest */
.team-card__bio.is-clamped { position: relative; height: calc(1.6em * 4); overflow: hidden; }
.team-card__bio.is-clamped.is-open { height: auto; overflow: visible; }
.team-card__bio.has-more:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.8em; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.team-card__more { margin-top: 10px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--teal-dark); cursor: pointer; }
.team-card__more:hover { color: var(--teal-darker); text-decoration: underline; }
.team-card__more.is-unneeded { visibility: hidden; }

/* Service card titles link to the full service description */
.card__link { color: inherit; text-decoration: none; }
.card__link:hover { color: var(--teal-dark); text-decoration: underline; }

/* Where we work */
.areas { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.areas__copy { flex: 1 1 460px; min-width: 0; }
.areas__list { flex: 1 1 380px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas__list li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.areas__list svg { color: var(--teal-dark); }
