/* Launch-page refinements and invoice template showcase. */
h1 {
  letter-spacing: -0.025em;
}

h2 {
  letter-spacing: -0.02em;
}

h3 {
  letter-spacing: -0.005em;
}

.templates-section {
  background: var(--paper);
}

.templates-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 50px;
}

.templates-heading > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.template-showcase {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  transition: transform .2s, box-shadow .2s;
}

.template-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18, 28, 44, .08);
}

.template-paper {
  height: 270px;
  padding: 22px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 25px rgba(18, 28, 44, .09);
}

.template-paper-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: .12em;
}

.template-paper-top b {
  color: var(--text-primary);
  font-size: 10px;
  letter-spacing: 0;
}

.template-accent {
  height: 5px;
  margin: 18px 0;
  border-radius: 4px;
  background: var(--brand);
}

.template-lines span {
  display: block;
  width: 68%;
  height: 5px;
  margin: 13px 0;
  border-radius: 4px;
  background: var(--line);
}

.template-lines span.wide {
  width: 88%;
}

.template-lines span.short {
  width: 42%;
}

.template-total {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
}

.template-total b {
  color: var(--text-primary);
  font-size: 14px;
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px 2px;
}

.template-meta h3 {
  margin: 0 0 4px;
}

.template-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.template-meta > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 10px;
  font-weight: 800;
}

.template-minimal .template-accent {
  height: 2px;
  background: var(--surface-dark);
}

.template-editorial .template-paper {
  border-left: 4px solid var(--brand);
}

.template-editorial .template-accent {
  height: 45px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-on-dark));
}

.templates-cta {
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 900px) {
  .templates-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }

  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: 300 !important;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

h1 { letter-spacing: -0.01em; }
h2 { letter-spacing: -0.005em; }
h3 { letter-spacing: 0; }

.brand { letter-spacing: -0.02em; }
.nav-cta,
.button { border-radius: 12px !important; }
.nav-cta { background: var(--brand) !important; }
.button { font-size: 16px; font-weight: 500; }
.button-primary { background: var(--brand); box-shadow: 0 12px 24px rgba(var(--brand-rgb), .22); }
.button-secondary { border-color: rgba(18, 18, 18, .12); }
.final-cta { background: var(--brand); }
.final-cta .eyebrow { color: var(--brand-on-dark); }
.final-cta p:not(.eyebrow) { color: var(--brand-soft); }
.glow-one { background: rgba(var(--brand-rgb), .12); }
.glow-two { background: rgba(var(--brand-rgb), .10); }

.feature-icon.blue,
.feature-icon.green,
.feature-icon.orange,
.feature-icon.purple,
.feature-icon.pink,
.feature-icon.teal {
  color: var(--brand);
  background: var(--brand-soft);
}

.note-icon,
.note-icon.purple {
  color: var(--brand);
  background: var(--brand-soft);
}

.template-accent,
.template-minimal .template-accent,
.template-editorial .template-accent {
  background: var(--brand);
}

.template-editorial .template-paper { border-left-color: var(--brand); }

.steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(18, 28, 44, .06);
}

.step h3 { margin: 20px 0 8px; }
.step p { font-size: 14px; }

.step-visual {
  height: 220px;
  min-height: 220px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text-secondary);
}

.step-window-top,
.step-login-row,
.account-row,
.step-invoice-total {
  display: flex;
  align-items: center;
}

.step-window-top {
  gap: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 11px;
}

.step-window-top .material-symbols-rounded { font-size: 18px; color: var(--blue); }
.step-login-row { gap: 8px; margin-top: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: 11px; }
.step-login-row .material-symbols-rounded:first-child { font-size: 18px; color: var(--blue); }
.step-login-row i { margin-left: auto; color: var(--success); font-style: normal; }
.step-select-row,
.service-row,
.tax-row,
.service-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.step-select-row { gap: 8px; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.step-select-row small,
.service-row small,
.tax-row small { display: block; margin-bottom: 3px; color: var(--text-muted); font-size: 9px; }
.step-select-row b,
.service-row b,
.tax-row b { display: block; color: var(--text-primary); font-size: 10px; }
.step-select-row > .material-symbols-rounded { color: var(--blue); font-size: 18px; }
.service-row,
.tax-row { gap: 8px; margin-top: 10px; padding: 8px 9px; border-radius: 9px; background: var(--paper); font-size: 10px; }
.service-row strong,
.tax-row strong { color: var(--text-primary); font-size: 10px; white-space: nowrap; }
.service-total { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 10px; }
.service-total b { color: var(--blue); font-size: 13px; }
.step-add { margin-left: auto; color: var(--blue); font-size: 18px !important; }
.account-row { gap: 8px; margin-top: 8px; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; background: var(--paper); font-size: 10px; }
.account-row > .material-symbols-rounded { color: var(--text-muted); font-size: 18px; }
.account-row.selected { border-color: var(--brand-line); background: var(--brand-surface); }
.account-row.selected > .material-symbols-rounded { color: var(--blue); }
.account-row b, .account-row small { display: block; }
.account-row small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.account-row i { margin-left: auto; color: var(--blue); font-style: normal; font-size: 17px; }
.step-chevron { margin-left: auto; color: var(--text-muted) !important; }
.step-status { margin-left: auto; padding: 3px 6px; border-radius: 999px; color: var(--success); background: var(--success-soft); font-size: 9px; font-weight: 700; }
.step-invoice-head { display: flex; justify-content: space-between; margin: 18px 1px 14px; color: var(--text-secondary); font-size: 11px; }
.step-invoice-head b { color: var(--text-primary); font-size: 15px; }
.step-invoice-line { width: 72%; height: 6px; margin: 10px 0; border-radius: 99px; background: var(--line); }
.step-invoice-line.wide { width: 92%; }
.step-invoice-total { justify-content: space-between; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 10px; }
.step-invoice-total strong { color: var(--blue); font-size: 20px; font-weight: 300; }

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

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

/* Keep all marketing accents within BillBookly's blue brand palette. */
.text-link {
  align-items: center;
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
}
.gst-section .text-link,
.gst-section .eyebrow,
.gst-section .tax-card b { color: var(--brand-on-dark); }

.text-link:hover { color: var(--brand-hover); }
.eyebrow-dot { background: var(--brand); box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .12); }
.step-login-row i,
.step-status { color: var(--brand); }
.step-status { background: var(--brand-soft); }

/* Make the GST section benefit-led and easy to scan. */
.gst-section .eyebrow { color: var(--brand-on-dark); }
.gst-section .section-lead { max-width: 560px; }
.gst-section .tax-card { min-height: 214px; }
.gst-section .tax-card-icon {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0 0 14px;
  color: var(--brand-on-dark);
  font-size: 25px;
}
.gst-section .tax-card strong { max-width: 270px; }
.gst-section .tax-card span:not(.tax-card-icon) {
  min-height: 0;
  margin-top: 8px;
  line-height: 1.55;
}
.gst-section .tax-card b {
  margin-top: 18px;
  color: var(--brand-on-dark);
  font-size: 18px;
  letter-spacing: 0;
}
.gst-section .tax-card-wide { min-height: 0; }

/* Keep the dashboard visual compact while surfacing the three numbers users care about. */
.metric-row-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.metric-row-three > div { width: auto; min-width: 0; }
.metric-row-three strong { font-size: clamp(22px, 2.5vw, 29px); }

/* Small moments of motion make the page feel responsive without becoming distracting. */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .tax-card,
  .template-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .feature-card:hover,
  .tax-card:hover,
  .template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(18, 28, 44, .10);
  }
  .product-card { animation: product-float 6s ease-in-out infinite; }
  .bars span {
    transform-origin: bottom;
    animation: chart-rise .9s cubic-bezier(.2, .8, .2, 1) both;
  }
  .bars span:nth-child(2) { animation-delay: .08s; }
  .bars span:nth-child(3) { animation-delay: .16s; }
  .bars span:nth-child(4) { animation-delay: .24s; }
  .bars span:nth-child(5) { animation-delay: .32s; }
  .bars span:nth-child(6) { animation-delay: .40s; }
  .bars span:nth-child(7) { animation-delay: .48s; }
  @keyframes product-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  @keyframes chart-rise {
    from { opacity: .25; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
  }
}

@media (max-width: 700px) {
  .metric-row-three { grid-template-columns: 1fr; gap: 14px; }
  .metric-row-three > div { width: 100%; }
}
