/* ==========================================================================
   Billmints — pages.css (Ultra-High-End Visual Refresh)
   Page-level compositions: hero, trust bar, feature blocks, region selector,
   pricing, comparison table, testimonials, CTA band, auth, legal, blog
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(64px, 10vw, 120px)) 0 clamp(64px, 9vw, 110px);
  background: var(--grad-hero);
  color: var(--text-invert-soft);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 25%, transparent 80%);
  z-index: -1;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}
.hero__orb--a {
  width: 480px;
  height: 480px;
  background: rgba(16, 224, 146, 0.35);
  top: -140px;
  left: -100px;
}
.hero__orb--b {
  width: 420px;
  height: 420px;
  background: rgba(20, 170, 120, 0.35);
  bottom: -160px;
  right: -80px;
}

.hero__inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--text-invert);
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #ffffff 20%, #58f0bb 60%, #10e092 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-invert-soft);
  max-width: 650px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero .btn-row {
  justify-content: center;
  margin-bottom: 20px;
}
.hero__micro {
  font-size: 0.88rem;
  color: rgba(240, 246, 244, 0.65);
}

/* Modest, centered demo video placeholder */
.demo-frame {
  position: relative;
  width: min(580px, 100%);
  margin: clamp(38px, 6vw, 60px) auto 0;
}
.demo-frame::after {
  content: "";
  position: absolute;
  inset: 12% 4% -8%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(16, 224, 146, 0.45), transparent 75%);
  filter: blur(44px);
  z-index: -1;
}
.demo-frame__media {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-700);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.demo-frame__media:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 224, 146, 0.5);
  box-shadow: 0 0 0 1px rgba(16, 224, 146, 0.4), 0 30px 80px -20px rgba(16, 224, 146, 0.5);
}
.demo-frame__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.94;
}
.demo-frame__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(3, 6, 13, 0.2), rgba(3, 6, 13, 0.65));
}
.demo-frame__play span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-900);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75);
  transition: transform 0.32s var(--ease), background-color 0.32s var(--ease);
}
.demo-frame__media:hover .demo-frame__play span {
  transform: scale(1.12);
  background: #ffffff;
}
.demo-frame__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}
.demo-frame__caption {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(240, 246, 244, 0.65);
}

/* Floating mini invoice card */
.hero__float {
  position: absolute;
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  color: var(--text-strong);
  font-size: 0.88rem;
  line-height: 1.4;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}
.hero__float:hover {
  transform: translateY(-4px);
}
.hero__float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.hero__float--left {
  left: 4%;
  bottom: 22%;
}
.hero__float--right {
  right: 4%;
  bottom: 34%;
}
@media (min-width: 1180px) {
  .hero__float {
    display: block;
  }
}

/* Page hero */
.page-hero {
  padding: calc(var(--nav-h) + clamp(52px, 7vw, 90px)) 0 clamp(44px, 6vw, 76px);
  background: var(--grad-hero);
  color: var(--text-invert-soft);
}
.page-hero h1 {
  color: var(--text-invert);
  max-width: 920px;
}
.page-hero p {
  max-width: 680px;
  font-size: 1.1rem;
}
.page-hero--center {
  text-align: center;
}
.page-hero--center h1,
.page-hero--center p {
  margin-left: auto;
  margin-right: auto;
}
.breadcrumbs {
  font-size: 0.86rem;
  color: rgba(240, 246, 244, 0.65);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: rgba(240, 246, 244, 0.85);
}
.breadcrumbs a:hover {
  color: var(--mint-400);
}

/* --------------------------------------------------------------------------
   2. Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--ink-700);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 22px 0;
}
.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-invert-soft);
}
.trust-bar svg {
  width: 18px;
  height: 18px;
  color: var(--mint-400);
}

/* --------------------------------------------------------------------------
   3. Alternating feature blocks
   -------------------------------------------------------------------------- */
.feature-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(52px, 8vw, 100px);
}
.feature-block:last-child {
  margin-bottom: 0;
}
.feature-block--flip .feature-block__media {
  order: 2;
}
.feature-block__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.feature-block__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.feature-block:hover .feature-block__media img {
  transform: scale(1.08);
}
.feature-block h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}
@media (max-width: 860px) {
  .feature-block {
    grid-template-columns: 1fr;
  }
  .feature-block--flip .feature-block__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   4. Counters
   -------------------------------------------------------------------------- */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
.counter-grid .counter-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--mint-400);
  line-height: 1;
  display: block;
  letter-spacing: -0.04em;
}
.counter-grid p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   5. Region / currency selector
   -------------------------------------------------------------------------- */
.region-picker {
  position: relative;
  max-width: 460px;
}
.region-picker__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.region-picker__button:hover {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px var(--mint-soft);
}
.region-picker__button .region-flag {
  font-size: 1.25rem;
}
.region-picker__button .caret {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg) translateY(-2px);
}
.region-picker__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 14px;
  display: none;
}
.region-picker.is-open .region-picker__panel {
  display: block;
}
.region-picker__search {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}
.region-picker__search:focus {
  outline: none;
  border-color: var(--mint-500);
}
.region-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}
.region-picker__list li {
  margin: 0;
}
.region-picker__list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-strong);
  text-align: left;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.region-picker__list button:hover {
  background: var(--paper-tint);
}
.region-picker__list .region-code {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 700;
}
.region-picker__empty {
  padding: 14px 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   6. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.price-card--featured {
  background: var(--ink-800);
  border-color: rgba(16, 224, 146, 0.45);
  color: var(--text-invert-soft);
  box-shadow: var(--shadow-glow);
}
.price-card--featured h3,
.price-card--featured .price-amount {
  color: var(--text-invert);
}
.price-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.price-card h3 {
  margin: 0;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  margin: 16px 0 6px;
  letter-spacing: -0.03em;
}
.price-amount small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}
.price-card--featured .price-amount small {
  color: var(--text-invert-soft);
}
.price-card p.price-note {
  font-size: 0.92rem;
  color: var(--text-soft);
  min-height: 48px;
}
.price-card--featured p.price-note {
  color: var(--text-invert-soft);
}
.price-card .check-list {
  flex: 1 1 auto;
  font-size: 0.95rem;
}
.price-card--featured .check-list li::before {
  border-color: var(--mint-400);
}
@media (max-width: 940px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* Comparison table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: left;
  padding: 18px 22px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.86rem;
}
.compare-table .cmp-cap-t { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--text-strong); letter-spacing: -0.01em; }
.compare-table .cmp-cap-l { display: inline-flex; align-items: center; gap: 8px; }
.compare-table .cmp-cap-l i { font-style: normal; margin-left: 10px; }
.compare-table tbody th small { display: block; margin-top: 3px; font-weight: 400; font-size: 0.82rem; line-height: 1.4; color: var(--text-soft); }
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--ink-800);
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: 0.94rem;
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--text-strong);
}
.compare-table td {
  text-align: center;
  width: 130px;
  color: var(--text-soft);
}
.compare-table tbody tr:hover {
  background: var(--paper-soft);
}
.compare-table .row-group th {
  background: var(--paper-tint);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 800;
}
.yes {
  color: var(--mint-600);
  font-weight: 800;
}
.no {
  color: #b0b9c0;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Testimonials carousel
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__slide {
  flex: 0 0 min(440px, 88%);
  scroll-snap-align: center;
  background: var(--ink-700);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-invert-soft);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
}
.carousel__slide blockquote {
  margin: 0 0 20px;
  font-size: 1.08rem;
  color: var(--text-invert);
  line-height: 1.6;
}
.carousel__who {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
}
.carousel__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 224, 146, 0.16);
  color: var(--mint-400);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(16, 224, 146, 0.3);
}
.carousel__nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.carousel__nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-invert);
  font-size: 1.15rem;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
.review-card {
  background: var(--ink-700);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--text-invert-soft);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.review-card .stars {
  color: #f5b400;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-card .stars .star-off {
  color: rgba(255, 255, 255, 0.18);
}
.review-card blockquote {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text-invert);
  line-height: 1.6;
  flex: 1;
}
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.reviews-summary .reviews-avg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--mint-400);
  line-height: 1;
}
.carousel__nav button:hover {
  background: var(--mint-500);
  color: #063b2b;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   8. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--grad-band);
  color: var(--text-invert-soft);
  text-align: center;
  padding: clamp(56px, 9vw, 104px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: var(--text-invert);
  max-width: 720px;
  margin: 0 auto 16px;
}
.cta-band p {
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   9. Auth pages
   -------------------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--paper);
}
.auth-side {
  background: var(--grad-hero);
  color: var(--text-invert-soft);
  padding: clamp(36px, 5.5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.auth-side h2 {
  color: var(--text-invert);
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 5.5vw, 64px) 24px;
}
.auth-card {
  width: min(520px, 100%);
}
.auth-card h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
}
.auth-alt {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.91rem;
}
.auth-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.91rem;
  font-weight: 700;
}
/* Base (desktop) state: the mobile-only brand is hidden here, and only
   shown by the max-width:940px override below, where .auth-side (the
   full branded panel) is hidden instead. This MUST come before both
   media queries below - a later unconditional rule of equal
   specificity always wins over an earlier media-query rule, so
   putting "display:none" after the "display:block" override (as it
   was before) made the mobile brand permanently invisible at every
   screen width, on every auth page. */
.auth-mobile-brand {
  display: none;
}
@media (max-width: 940px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-main {
    padding-top: 44px;
  }
  .auth-mobile-brand {
    display: block;
    margin-bottom: 28px;
  }
}

/* --------------------------------------------------------------------------
   10. Legal + article content
   -------------------------------------------------------------------------- */
.prose {
  max-width: 800px;
}
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-top: 2em;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose ul {
  padding-left: 1.25em;
}
.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--amber-500);
  background: #fff8eb;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  color: var(--text-strong);
}
.toc {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.toc h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--text-soft);
  font-weight: 800;
}
.toc ul {
  margin: 0;
  padding-left: 1.1em;
  columns: 2;
}
@media (max-width: 620px) {
  .toc ul {
    columns: 1;
  }
}

/* FAQ accordion */
.faq-item {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.28s var(--ease);
}
.faq-item:hover {
  border-color: rgba(16, 224, 146, 0.4);
}
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--mint-600);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-soft);
}
.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* Blog / guides / help cards */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 224, 146, 0.4);
}
.post-card h3 {
  margin: 0;
  font-size: 1.18rem;
}
.post-meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 800;
}

/* Invoice sample visual */
.invoice-sample {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  font-size: 0.94rem;
  color: var(--text);
}
.invoice-sample__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.invoice-sample__head h3 {
  margin: 0;
  font-size: 1.55rem;
}
.invoice-sample table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.invoice-sample th {
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.invoice-sample td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.invoice-sample td:last-child,
.invoice-sample th:last-child {
  text-align: right;
}
.invoice-sample__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-strong);
  padding-top: 14px;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* Sidebar Parent Viewport Fix - desktop only. This used to apply at
   every width with "display:flex !important", which silently beat
   the max-width:940px "display:none" that is supposed to hide this
   whole branded panel on mobile (an !important rule always wins over
   a plain one, regardless of which comes first or which media query
   matches) - so on a phone the full-height side panel showed ABOVE
   the login form as well as the mobile-only brand, duplicating
   everything. Scoping it to min-width:941px (just above the
   max-width:940px breakpoint that hides .auth-side) keeps this fix
   for desktop, where it was actually needed, without fighting the
   mobile layout. */
@media (min-width: 941px) {
  .auth-side {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 2.5rem 2rem !important;
    box-sizing: border-box !important;
  }
}

.auth-side-header {
  margin-bottom: 0.5rem;
}

.auth-side-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Check List & SVG Size Overrides */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* Strictly limit SVG size to stop checkmark blowing up */
.check-list svg,
.check-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  color: #10b981;
  flex-shrink: 0 !important;
}

/* Image Preview Styling */
.auth-invoice-preview {
  margin-top: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.auth-invoice-preview img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

.auth-side-footer {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1rem;
}
/* Dual Scrollbar Fix - Forces Single Main Page Scrollbar */
html, body {
  overflow-y: auto !important;
  height: auto !important;
}

/* Remove internal scrollbars from sidebar and layout containers */
.auth-layout,
.auth-side,
.auth-main,
.auth-side-body {
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Ensure left sidebar stays positioned naturally alongside main content */
.auth-side {
  position: relative !important;
  min-height: 100% !important;
}
/* --------------------------------------------------------------------------
   Ask BillMints (Premium AI assistant) — marketing mock + helpers
   -------------------------------------------------------------------------- */
.ask-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.ask-split h2 { margin: 14px 0 14px; }
.ask-split .check-list { margin: 18px 0 26px; }
.ask-badge-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill--premium {
  background: linear-gradient(135deg, rgba(88,240,187,.22), rgba(16,224,146,.12));
  color: var(--mint-400);
  box-shadow: inset 0 0 0 1px rgba(16,224,146,.35);
}
.section:not(.section--dark) .pill--premium { color: var(--mint-700); }
.lock-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 700; color: var(--text-soft);
  background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap;
}
.lock-chip svg { width: 12px; height: 12px; }
.compare-table td .lock-chip { font-size: .7rem; padding: 2px 8px; }

.ask-mock {
  background: var(--ink-700);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-invert-soft);
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.5;
  text-align: left;
}
.ask-mock * { box-sizing: border-box; }
.ask-mock__bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 18px; background: var(--ink-800); border-bottom: 1px solid var(--line-dark);
}
.ask-mock__logo {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad-mint); color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.ask-mock__logo svg { width: 15px; height: 15px; }
.ask-mock__bar strong { font-family: var(--font-display); color: #fff; font-size: .95rem; }
.ask-mock__tag {
  margin-left: auto; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: rgba(240,246,244,.55);
}
.ask-mock__body { padding: 18px; display: grid; gap: 12px; }
.ask-bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--mint-600); color: #063b2b; font-weight: 600; justify-self: end;
}
.ask-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: rgba(240,246,244,.6); }
.ask-steps span::before { content: "\2713"; color: var(--mint-400); font-weight: 800; margin-right: 6px; }
.ask-reply {
  background: var(--ink-600); border: 1px solid var(--line-dark);
  border-radius: 16px 16px 16px 4px; padding: 14px; display: grid; gap: 12px;
}
.ask-reply p { margin: 0; color: #fff; }
.ask-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ask-tile { background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 12px; }
.ask-tile small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(240,246,244,.55); font-weight: 700; }
.ask-tile b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin: 2px 0; }
.ask-tile span { font-size: .76rem; color: var(--mint-400); }
.ask-tile--warn span { color: var(--amber-500); }
.ask-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ask-table th, .ask-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line-dark); }
.ask-table th { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(240,246,244,.5); }
.ask-table td:last-child, .ask-table th:last-child { text-align: right; }
.ask-source { font-size: .72rem; color: rgba(240,246,244,.5); }
.ask-plan { background: var(--ink-800); border: 1px solid rgba(16,224,146,.35); border-radius: 14px; padding: 12px 14px; }
.ask-plan__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #fff; font-weight: 700; margin-bottom: 8px; }
.ask-plan__head small { color: rgba(240,246,244,.55); font-weight: 600; }
.ask-plan ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.ask-plan li small { color: var(--amber-500); font-weight: 600; margin-left: 4px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-btn {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; background: var(--mint-500); color: #063b2b; border: 0;
}
.ask-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.ask-chip { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-pill); font-size: .76rem; font-weight: 700; color: var(--mint-400); background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgba(16,224,146,.3); }
.ask-note { text-align: center; font-size: .74rem; color: rgba(240,246,244,.45); padding: 0 18px 14px; }
.ask-mock--light { background: var(--paper); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-md); }
.ask-mock--light .ask-mock__bar { background: var(--paper-soft); border-bottom-color: var(--line); }
.ask-mock--light .ask-mock__bar strong { color: var(--text-strong); }
.ask-mock--light .ask-mock__tag, .ask-mock--light .ask-note { color: var(--text-soft); }
.ask-mock--light .ask-reply { background: var(--paper-soft); border-color: var(--line); }
.ask-mock--light .ask-reply p { color: var(--text-strong); }
.ask-mock--light .ask-chip { color: var(--mint-700); }
.ask-mock--light .ask-source { color: var(--text-soft); }
.ask-client-msg { justify-self: start; max-width: 90%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); color: var(--text-strong); font-weight: 600; }
.ask-client-msg small, .ask-reply small.who { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 700; margin-bottom: 2px; }
.ask-ai-badge { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .08em; padding: 1px 6px; border-radius: 6px; background: var(--mint-soft); color: var(--mint-700); margin-left: 6px; vertical-align: middle; }

.ask-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ask-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); }
.ask-panel h3 { margin: 0 0 12px; }
.ask-panel .check-list { margin: 0; }
.ask-panel--no .check-list li::before { content: "\00d7"; border: 0; transform: none; width: auto; height: auto; top: -0.05em; left: 2px; font-size: 1.25rem; line-height: 1.2; font-weight: 800; color: var(--rose-500); }
.credit-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 6px; }
.credit-step { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.credit-step b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text-strong); }
.credit-step span { font-size: .85rem; color: var(--text-soft); }
.hero__ask {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 16px;
  border-radius: var(--radius-pill); font-size: .86rem; font-weight: 700; color: var(--mint-400);
  background: rgba(16,224,146,.1); box-shadow: inset 0 0 0 1px rgba(16,224,146,.32); text-decoration: none;
}
.hero__ask:hover { background: rgba(16,224,146,.18); }
.hero__ask svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .ask-split { grid-template-columns: 1fr; gap: 32px; }
  .ask-two { grid-template-columns: 1fr; }
  .credit-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ask-mock__body { padding: 14px; }
  .ask-bubble { max-width: 96%; }
  .ask-panel { padding: 22px; }
  .ask-table th:nth-child(3), .ask-table td:nth-child(3) { display: none; }
}
.pill--premium { white-space: nowrap; }
.pill--premium svg { width: 16px; height: 16px; flex: none; }
.pill svg { width: 16px; height: 16px; flex: none; }
.section:not(.section--dark) .ask-mock .pill--premium { color: var(--mint-400); }
.section:not(.section--dark) .ask-mock--light .pill--premium { color: var(--mint-700); }

/* ==========================================================================
   V2 additions: plan badges, AI toolkit cards, features page mock-ups
   ========================================================================== */
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-top .icon-badge { margin-bottom: 18px; }
.plan-badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--paper-soft); color: var(--text-soft); border: 1px solid var(--line);
}
.plan-badge--standard { background: rgba(77,156,255,.12); color: #1f5fbf; border-color: rgba(77,156,255,.35); }
.plan-badge--premium { background: linear-gradient(135deg, rgba(88,240,187,.28), rgba(16,224,146,.14)); color: var(--mint-700); border-color: rgba(16,224,146,.45); }
.card .link-arrow { display: inline-flex; margin-top: 14px; }
.ask-one { max-width: 760px; margin: 0 auto; }
.ask-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ask-progress span { display: block; height: 100%; border-radius: 999px; background: var(--grad-mint); }

/* Features page */
.feat-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat-top .card { padding: 26px; display: flex; flex-direction: column; }
.feat-top .card h3 { margin-bottom: 8px; }
.feat-top__links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; font-weight: 700; }
.feat-top__links a { color: var(--mint-700); }
.feat-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 22px; font-size: .9rem; color: var(--text-soft); }
.feat-legend span { display: inline-flex; align-items: center; gap: 8px; }
.part-head { max-width: 760px; margin-bottom: 14px; }
.part-head h2 { margin: 6px 0 10px; }
.part-label { display: inline-flex; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-700); }
.section--dark .part-label { color: var(--mint-400); }
.feat-group { margin-top: clamp(34px, 4.5vw, 54px); }
.feat-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.feat-group__head h3 { margin: 0; }
.feat-group__head p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.section--dark .feat-group__head { border-bottom-color: var(--line-dark); }
.section--dark .feat-group__head p { color: var(--text-invert-soft); }
.feat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.feat-grid > .feat { grid-column: span 2; }
.feat-grid--4 > .feat, .feat-grid--2 > .feat { grid-column: span 3; }
.feat-grid--5 > .feat:nth-child(n+4) { grid-column: span 3; }
.feat { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--nav-h) + 16px); }
.feat__mock { padding: 14px; background: var(--paper-soft); border-bottom: 1px solid var(--line); }
.feat__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feat__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.feat__title h4 { margin: 0; font-size: 1.05rem; }
.feat__body p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.feat__body p b { color: var(--text-strong); font-weight: 700; }
.section--dark .feat { background: var(--ink-700); border-color: var(--line-dark); }
.section--dark .feat__mock { background: var(--ink-800); border-bottom-color: var(--line-dark); }
.section--dark .feat__title h4 { color: #fff; }
.section--dark .feat__body p { color: var(--text-invert-soft); }
.section--dark .feat__body p b { color: #fff; }
.section--dark .plan-badge { background: rgba(255,255,255,.06); color: var(--text-invert-soft); border-color: var(--line-dark); }
.section--dark .plan-badge--standard { color: #8fbfff; background: rgba(77,156,255,.14); border-color: rgba(77,156,255,.4); }
.section--dark .plan-badge--premium { color: var(--mint-400); }
.feat-note { text-align: center; margin-top: 30px; font-size: .84rem; color: var(--text-soft); }
.section--dark .feat-note { color: rgba(240,246,244,.55); }
.feat-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* mock-up building blocks */
.fm { display: grid; gap: 7px; align-content: center; min-height: 168px; font-size: .8rem; line-height: 1.4; color: var(--text); min-width: 0; }
.fm * { min-width: 0; box-sizing: border-box; }
.fm--dark { color: rgba(240,246,244,.88); }
.fm-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 800; font-family: var(--font-display); font-size: .82rem; color: var(--text-strong); }
.fm--dark .fm-title { color: #fff; }
.fm-sub { font-size: .72rem; color: var(--text-soft); }
.fm--dark .fm-sub { color: rgba(240,246,244,.55); }
.fm-bub { justify-self: end; max-width: 92%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--grad-mint); color: #0c3326; font-weight: 700; }
.fm-reply { padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--text-strong); }
.fm--dark .fm-reply { background: var(--ink-600); border-color: var(--line-dark); color: #fff; }
.fm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fm-row:last-child { border-bottom: 0; }
.fm--dark .fm-row { border-bottom-color: var(--line-dark); }
.fm-row > span { overflow-wrap: anywhere; }
.fm-row b { font-family: var(--font-display); white-space: nowrap; }
.fm-row--total { font-weight: 800; }
.fm-tag { display: inline-flex; font-style: normal; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--mint-soft); color: var(--mint-700); }
.fm--dark .fm-tag { color: var(--mint-400); }
.fm-tag--warn { background: rgba(255,179,56,.18); color: #9a6200; }
.fm--dark .fm-tag--warn { color: var(--amber-500); }
.fm-tag--risk { background: rgba(240,78,70,.14); color: #c0322b; }
.fm--dark .fm-tag--risk { color: #ff8b85; }
.fm-tag--info { background: rgba(77,156,255,.14); color: #1f5fbf; }
.fm--dark .fm-tag--info { color: #8fbfff; }
.fm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.fm-tile { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.fm--dark .fm-tile { background: var(--ink-600); border-color: var(--line-dark); }
.fm-tile small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--text-soft); }
.fm--dark .fm-tile small { color: rgba(240,246,244,.55); }
.fm-tile b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--text-strong); }
.fm--dark .fm-tile b { color: #fff; }
.fm-tile span { font-size: .7rem; color: var(--mint-700); }
.fm--dark .fm-tile span { color: var(--mint-400); }
.fm-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding-top: 4px; }
.fm-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: .66rem; color: var(--text-soft); }
.fm--dark .fm-bars div { color: rgba(240,246,244,.6); }
.fm-bars i { display: block; width: 100%; max-width: 46px; border-radius: 6px 6px 2px 2px; background: var(--grad-mint); }
.fm-bars i.alt { background: rgba(77,156,255,.7); }
.fm-bars i.neg { background: rgba(240,78,70,.75); }
.fm-meter { height: 8px; border-radius: 999px; background: rgba(120,140,135,.25); overflow: hidden; }
.fm-meter span { display: block; height: 100%; background: var(--grad-mint); border-radius: 999px; }
.fm-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-btn { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--grad-mint); color: #0c3326; }
.fm-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px rgba(120,140,135,.45); }
.fm-skel { height: 7px; border-radius: 4px; background: rgba(120,140,135,.28); }
.fm-skel--s { width: 55%; }
.fm-check { display: flex; gap: 8px; align-items: flex-start; }
.fm-check::before { content: "\2713"; color: var(--mint-600); font-weight: 900; }
.fm-check--todo::before { content: "\25CB"; color: var(--text-soft); }
.fm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fm-swatch { border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 8px 6px; text-align: center; font-size: .7rem; font-weight: 700; color: var(--text-strong); }
.fm-swatch i { display: block; height: 5px; border-radius: 3px; margin-bottom: 6px; background: var(--mint-500); }
.fm-swatch--b i { background: var(--ink-600); }
.fm-swatch--c i { background: var(--sky-500); }
.fm-avatars { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-av { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .72rem; color: var(--text-strong); }
.fm-av::before { content: attr(data-i); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--mint-soft); color: var(--mint-700); font-size: .66rem; }
.fm-check-box { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--mint-600); margin-right: 8px; vertical-align: -2px; position: relative; }
.fm-check-box.on { background: var(--mint-500); }

@media (max-width: 980px) {
  .feat-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid > .feat, .feat-grid--4 > .feat, .feat-grid--2 > .feat, .feat-grid--5 > .feat:nth-child(n+4) { grid-column: auto; }
}
@media (max-width: 620px) {
  .feat-top, .feat-grid { grid-template-columns: 1fr; }
  .feat-top .card { padding: 22px; }
}

/* ==========================================================================
   v4: billing toggle, four-plan grid, Enterprise (coming soon), Pay now demo
   ========================================================================== */
.billing-toggle-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 34px; }
.billing-toggle {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-pill);
  background: var(--paper-tint); box-shadow: inset 0 0 0 1px var(--line);
}
.billing-toggle[hidden] { display: none; }
.billing-toggle button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 700 0.95rem/1 var(--font-body); color: var(--text-soft);
  padding: 12px 22px; border-radius: var(--radius-pill); min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.billing-toggle button:hover { color: var(--text-strong); }
.billing-toggle button:focus-visible { outline: 3px solid var(--mint-600); outline-offset: 2px; }
.billing-toggle button[aria-pressed="true"] {
  background: var(--ink-800); color: #fff; box-shadow: 0 6px 16px -6px rgba(3,6,13,.5);
}
.billing-toggle .save-chip {
  font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--mint-soft); color: var(--mint-700); letter-spacing: .02em; white-space: nowrap;
}
.billing-toggle button[aria-pressed="true"] .save-chip { background: var(--mint-500); color: #063b2b; }
.billing-note { margin: 0; font-size: .88rem; color: var(--text-soft); text-align: center; }

.price-card p.price-sub { margin: 0 0 8px; font-size: .86rem; font-weight: 600; color: var(--mint-700); min-height: 1.3em; }
.price-card--featured p.price-sub { color: var(--mint-400); }
.price-card .price-sub--none { visibility: hidden; }

.price-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.price-grid--4 .price-card { padding: 30px 24px; }
.price-grid--4 .price-amount { font-size: 2.5rem; }
@media (max-width: 1139px) { .price-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .price-grid--4 { grid-template-columns: 1fr; } }

.price-card--soon {
  background: repeating-linear-gradient(135deg, var(--paper-soft) 0 12px, var(--paper) 12px 24px);
  border-style: dashed; border-color: #b8c7c1; box-shadow: none;
}
.price-card--soon:hover { transform: none; box-shadow: none; }
.price-card--soon .price-amount { font-size: 1.4rem; letter-spacing: -.02em; color: var(--text-soft); margin-top: 22px; }
.pill--soon { background: var(--ink-800); color: #fff; letter-spacing: .02em; }
.price-card--soon .soon-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed #b8c7c1;
  font-size: .86rem; color: var(--text-soft);
}

.compare-table.has-soon { min-width: 780px; }
.compare-table th.col-soon { background: var(--ink-600); }
.compare-table th.col-soon small { display: block; font-weight: 600; font-size: .72rem; color: var(--mint-400); margin-top: 3px; }
.compare-table td.cell-soon {
  background: repeating-linear-gradient(135deg, var(--paper-soft) 0 10px, var(--paper) 10px 20px);
  border-left: 1px dashed #b8c7c1; color: var(--text-soft); font-size: .88rem; font-weight: 600;
  vertical-align: top; line-height: 1.5; padding: 22px 16px; text-align: center; width: 150px;
}
.compare-table tbody tr:hover td.cell-soon { background: repeating-linear-gradient(135deg, var(--paper-soft) 0 10px, var(--paper) 10px 20px); }
.compare-table td.cell-soon span { display: inline-block; max-width: 11em; }
.compare-table.has-soon td { width: 140px; }

/* Pay now button (marketing demo of the real client-facing button) */
.paynow {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 13px 30px; border-radius: 12px; background: var(--ink-800); color: #fff;
  text-decoration: none; font-family: var(--font-body); text-align: center; line-height: 1.2;
  box-shadow: 0 10px 24px -10px rgba(3,6,13,.6); cursor: default; max-width: 100%;
}
.paynow b { font-size: 1rem; font-weight: 800; }
.paynow span { font-size: .78rem; font-weight: 600; color: var(--mint-400); }
.paynow-cap { margin: 8px 0 0; font-size: .76rem; color: var(--text-soft); }
.invoice-sample__pay { margin-top: 18px; text-align: center; }
.callout-plain {
  margin-top: 26px; padding: 18px 22px; border-radius: var(--radius-md);
  background: var(--paper); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.callout-plain h3 { margin: 0 0 6px; font-size: 1.05rem; }
.callout-plain p { margin: 0; color: var(--text-soft); }
@media (max-width: 480px) { .billing-toggle button { padding: 11px 14px; font-size: .88rem; } .billing-toggle { max-width: 100%; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price-grid--4 .price-card__top { min-height: 40px; flex-wrap: nowrap; }
.price-grid--4 .price-card__top .pill { white-space: nowrap; font-size: .72rem; padding: 5px 10px; flex: none; }
.price-grid--4 .price-card h3 { font-size: 1.35rem; }
.price-card p.price-sub { white-space: nowrap; }
@media (max-width: 1139px) { .price-card p.price-sub { white-space: normal; } }
/* v4: quiet Enterprise note under the plan cards */
.plan-note { margin: 26px 0 0; text-align: center; }
.plan-note span {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--text-soft); font-size: .86rem; font-weight: 600; background: transparent;
}
.billing-toggle .save-chip { text-transform: none; }
/* v4: quiet Enterprise note under the plan cards */
.plan-note { margin: 26px 0 0; text-align: center; }
.plan-note span {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--text-soft); font-size: .86rem; font-weight: 600; background: transparent;
}
.plan-note { margin-top: 38px; }
.plan-note span { border-radius: 14px; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Legal documents (Terms, Privacy, Refund): tabs, side contents, numbered sections
   -------------------------------------------------------------------------- */
.legal-hero .lead { color: var(--text-invert-soft); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-meta span {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-invert); font-size: 0.82rem; font-weight: 600;
}
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.legal-tabs a {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  color: var(--text); font-weight: 700; font-size: 0.92rem; text-decoration: none; background: var(--paper);
  transition: border-color .2s, background .2s, color .2s;
}
.legal-tabs a:hover { border-color: var(--mint-500); color: var(--mint-700); }
.legal-tabs a[aria-current="page"] { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; }
.legal-toc h2 { font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); font-weight: 800; margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 0.88rem; color: var(--text-soft); text-decoration: none; line-height: 1.35;
}
.legal-toc a:hover { color: var(--text-strong); }
.legal-toc a.is-on { color: var(--mint-700); border-left-color: var(--mint-500); font-weight: 700; }
.legal-body { max-width: 760px; min-width: 0; }
.legal-body h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text); line-height: 1.75; }
.legal-body ul { padding-left: 1.25em; }
.legal-body li { margin-bottom: .4em; }
.legal-summary {
  background: var(--paper-soft); border: 1px solid var(--line); border-left: 4px solid var(--mint-500);
  border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 38px;
}
.legal-summary h2 { font-size: 1.05rem; margin: 0 0 10px !important; }
.legal-summary ul { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 14px 0 6px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); background: var(--paper-soft); }
.legal-contact {
  margin-top: 44px; padding: 24px 28px; border-radius: var(--radius-md); background: var(--ink-800); color: var(--text-invert-soft);
}
.legal-body .legal-contact p, .legal-body .legal-contact li { color: #dfe6ea; }
.legal-contact h2 { color: #fff; margin: 0 0 8px !important; font-size: 1.15rem; }
.legal-contact a { color: var(--mint-400); }
.legal-note-sm { font-size: .85rem; padding: 10px 14px; margin-bottom: 26px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; max-height: none; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; }
  .legal-toc ol { columns: 2; border-left: 0; }
  .legal-toc a { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
@media print { .legal-toc, .legal-tabs, .site-header, .site-footer, .cookie-banner { display: none !important; } .legal-layout { display: block; } }
.legal-hero + .section { padding-top: clamp(28px, 4vw, 48px); }
.legal-body .legal-fine { margin-top: 2rem; font-size: .85rem; }

.demo-frame__media video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink-700); }
.demo-frame__media video[hidden] { display: none; }
button.demo-frame__play { border: 0; padding: 0; cursor: pointer; width: 100%; }
button.demo-frame__play[hidden] { display: none; }
.demo-frame__media.is-playing .demo-frame__play, .demo-frame__media.is-playing img { display: none; }
