/* ============================================================
   Quillbill — marketing site styles
   ============================================================ */

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

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

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14.5px;
}

.site-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-nav a.btn-primary {
  color: #fff;
}

.site-nav a.btn-primary:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .site-nav .nav-link {
    display: none;
  }
}

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

.hero {
  padding: 84px 0 60px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 16px;
}

@media (max-width: 940px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    justify-self: center;
  }
}

/* ---------- Hero invoice mock ---------- */

.hero-visual {
  position: relative;
}

.invoice-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px 36px;
  max-width: 440px;
  transform: rotate(1.2deg);
  font-size: 13px;
}

.invoice-mock .im-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}

.invoice-mock .im-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.invoice-mock .im-no {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.invoice-mock .im-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.invoice-mock .im-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.invoice-mock table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.invoice-mock th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1.5px solid var(--ink);
  padding: 6px 0;
}

.invoice-mock td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.invoice-mock .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.invoice-mock .im-total {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  font-weight: 800;
  font-size: 16px;
}

.invoice-mock .im-total .amount {
  color: var(--brand);
}

.hero-chip {
  position: absolute;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.hero-chip.chip-1 {
  top: -12px;
  left: -14px;
  transform: rotate(-3deg);
}

.hero-chip.chip-2 {
  bottom: -14px;
  right: -6px;
  transform: rotate(2deg);
  background: var(--brand);
}

/* ---------- Stats strip ---------- */

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.strip .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.strip-item strong {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.strip-item span {
  color: var(--muted);
  font-size: 14px;
}

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

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

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

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 26px 26px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.step h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Privacy callout ---------- */

.privacy {
  background: var(--ink);
  color: #eef2ef;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.privacy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.privacy p {
  color: #b9c4be;
  font-size: 16.5px;
}

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

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #dde5e0;
}

.privacy-list svg {
  flex: none;
  margin-top: 3px;
  color: #59c2a2;
}

@media (max-width: 860px) {
  .privacy {
    grid-template-columns: 1fr;
    padding: 44px 30px;
  }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 {
  font-size: 17px;
  margin-bottom: 2px;
}

.plan .plan-for {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.plan .price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .price-note {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 20px;
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.plan li.off {
  color: var(--muted);
}

.plan li.off svg {
  color: var(--border-strong);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

.pricing-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 28px;
}

/* ---------- Comparison ---------- */

.compare {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-scroll {
  overflow-x: auto;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14.5px;
}

.compare th,
.compare td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper);
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare .yes {
  color: var(--brand);
  font-weight: 700;
}

.compare .no {
  color: var(--danger);
}

.compare .col-cb {
  background: var(--brand-tint);
}

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

.faq {
  max-width: 760px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 18px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 90px 0 100px;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.final-cta p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 30px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 36px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--muted);
}
