/* ==========================================================================
   Billora — marketing site
   Lime + forest. Lime is a FILL only: every label on lime is forest, never
   white. Body copy and links on light surfaces are forest, not lime.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --lime: #9fe870;
  --lime-pressed: #8ad95c;
  --forest: #163300;
  --forest-muted: #4c5c44;
  --forest-subtle: #63725a;
  --soft: #e3f7d3;
  --cream: #f7f7f4;
  --paper: #ffffff;
  --line: #dde5d9;
  --line-strong: #7c8a76;
  --danger: #b23a2f;

  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--forest);
  --muted: var(--forest-muted);
  --subtle: var(--forest-subtle);
  --accent: var(--forest);
  --border: var(--line);
  --border-strong: var(--line-strong);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(22, 51, 0, 0.06), 0 12px 32px rgba(22, 51, 0, 0.06);
  --max: 1120px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --soft: #24361c;
    --bg: #0e1110;
    --surface: #151a17;
    --text: #f2f5ef;
    --muted: #c3cdbc;
    --subtle: #a8b4a2;
    --accent: var(--lime);
    --border: #2a332c;
    --border-strong: #6b7c6c;
    --danger: #f08a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

@media (prefers-color-scheme: light) {
  .skip-link {
    background: var(--lime);
    color: var(--forest);
  }
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--forest);
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--text);
  background: var(--soft);
}

.nav a[aria-current='page'] {
  color: var(--accent);
  background: color-mix(in srgb, var(--soft) 70%, transparent);
}

.nav__cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: var(--header-h) 20px auto 20px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }

  .nav[data-open='true'] {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav__cta {
    margin: 6px 0 0;
  }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--lime);
  color: var(--forest);
}

.btn--primary:hover {
  background: var(--lime-pressed);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--soft);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  padding: 88px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero {
    padding: 56px 0 40px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 20px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--subtle);
}

/* Decorative invoice card ------------------------------------------------- */

.invoice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.invoice-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--lime);
}

.invoice-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.invoice-card__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.invoice-card__number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill--paid {
  background: #dff3ee;
  color: #0b6b57;
}

@media (prefers-color-scheme: dark) {
  .pill--paid {
    background: #13332b;
    color: #5fd3b2;
  }
}

.invoice-card__rows {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.invoice-card__rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--muted);
}

.invoice-card__rows strong {
  color: var(--text);
  font-weight: 600;
}

.invoice-card__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
}

.invoice-card__total span {
  color: var(--muted);
  font-size: 0.9rem;
}

.invoice-card__total strong {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

/* Sections ---------------------------------------------------------------- */

section {
  padding: 72px 0;
}

.section--soft {
  background: var(--soft);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section__head p {
  color: var(--muted);
  margin: 14px 0 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.section--soft .card,
.section--surface .card {
  border-color: color-mix(in srgb, var(--border-strong) 35%, transparent);
}

.card p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 0.97rem;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  margin-bottom: 18px;
}

.section--soft .card__icon {
  background: var(--surface);
}

/* Lists ------------------------------------------------------------------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23163300' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.checklist strong {
  color: var(--text);
}

/* Callout ----------------------------------------------------------------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.callout p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Page intro -------------------------------------------------------------- */

.page-head {
  padding: 72px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-head .lede {
  margin-top: 16px;
}

/* Prose (legal pages) ----------------------------------------------------- */

.prose {
  max-width: 76ch;
  padding: 56px 0 24px;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 44px;
}

.prose h3 {
  margin-top: 30px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 8px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--muted);
}

.prose th {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.86em;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--subtle);
  letter-spacing: 0.04em;
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h2 {
  font-size: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 0.86rem;
}
