/*
  billzloop layer, loaded after /styles.css on /billzloop/ and
  its legal pages (<html class="accent-billzloop">).

  The layout is the one approved on 2026-10-26/31 and is kept as it was:
  two-column hero with the phone running off its bottom edge, three steps,
  alternating text/phone feature rows, the "More features" carousel, the
  dark "Private by design" band, two plans, the FAQ, the blue closing
  banner. Sizes and breakpoints below are carried over from the old
  billzloop.css. What changes is everything the rest of onezloop.com now
  shares: tokens (colour, type, space, radius, shadow), the header, buttons,
  cards, section heads and the footer. Tokens only: no raw colours here.
*/

/* ---------- Base differences ----------
   billzloop's copy relies on paragraph and heading spacing that the shared
   base resets to zero. */
.accent-billzloop main p {
  margin: 0 0 1em;
}
.accent-billzloop main :is(h1, h2, h3) {
  margin: 0 0 0.5em;
}
.accent-billzloop body {
  overflow-wrap: break-word;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-3);
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header: the shared header, billzloop's links ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-h);
}
.site-header .brand {
  margin-right: 0;
}
.site-header .nav {
  margin-left: var(--space-5);
}
.site-header .nav > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .nav > a:hover {
  background: var(--surface-2);
  color: var(--text);
}
/* The home page's six links fit with their icons from 1100px; just above the
   phone layout they drop the icons so none of them wraps. Pages with five keep theirs. */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-header .nav:has(> a:nth-child(6)) {
    margin-left: var(--space-2);
  }
  .site-header .nav:has(> a:nth-child(6)) > a {
    padding-inline: var(--space-2);
  }
  .site-header .nav:has(> a:nth-child(6)) > a .icon {
    display: none;
  }
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-header .btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}
@media (min-width: 900px) {
  .home-icon {
    display: none;
  }
}
/* "Install" where "Get the app" won't fit beside Home and the theme button. */
.label-short {
  display: none;
}
@media (max-width: 420px) {
  .site-header .wrap {
    gap: var(--space-2);
  }
  .site-header .btn {
    padding-inline: var(--space-4);
  }
  .label-long {
    display: none;
  }
  .label-short {
    display: inline;
  }
}
/* The narrowest phones have no room for the theme button; the theme then
   follows the phone's setting. */
@media (max-width: 359px) {
  .site-header .theme-toggle {
    display: none;
  }
}

/* ---------- Hero: the shared hero (light, accent glow), billzloop's grid ---------- */

.accent-billzloop .hero {
  padding-block: 0;
}
.hero .wrap {
  display: grid;
  gap: var(--space-10);
  padding-top: var(--space-12);
}
.hero h1 {
  font-size: min(var(--text-display), 11vw);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.035em;
  margin: 0 0 0.35em;
}
/* The eyebrow sits inside the <h1> so the heading says "GST billing app"
   (SEO-PLAN.md); these two keep it looking as it did above the heading. */
.hero h1 > .eyebrow {
  font-family: var(--font-sans);
  line-height: var(--leading-body);
}
.hero .lead {
  max-width: 32ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: var(--text-lg);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-6) 0 var(--space-6);
}
/* Google asks for clear space of a quarter of the badge's height around it. */
.play-badge {
  display: inline-block;
  margin: 14px 0;
  border-radius: var(--radius-sm);
}
.play-badge img {
  height: 56px;
  width: auto;
}
.accent-billzloop .price-note {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 550;
}
.chips .icon {
  width: 0.9em;
  height: 0.9em;
  color: var(--success);
}
/* The phone runs off the bottom edge of the hero, like the Play screenshots. */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
}
.hero-visual .phone {
  width: 260px;
  position: absolute;
  top: 0;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-top: var(--space-16);
    gap: var(--space-6);
  }
  .hero-copy {
    padding-bottom: var(--space-16);
  }
  .hero-visual {
    height: 560px;
    align-self: end;
  }
  .hero-visual .phone {
    width: 280px;
    top: var(--space-6);
    right: var(--space-2);
  }
}

/* ---------- Device frames ---------- */

.phone {
  aspect-ratio: 600 / 1333;
  background: var(--device);
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 30px 60px var(--device-shadow), inset 0 0 0 2px var(--device-edge);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 31px;
}
.tablet {
  border: 14px solid var(--device);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--device-edge);
}
.tablet img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- Sections: shared rhythm, billzloop's left-aligned heads ---------- */

.accent-billzloop .section-head {
  max-width: 640px;
  margin: 0 0 var(--space-10);
  text-align: left;
}
.accent-billzloop .section-head.center {
  margin-inline: auto;
  text-align: center;
}
.accent-billzloop .section-head p {
  margin: 0;
}
.accent-billzloop .section h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
}
.section-alt {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

/* How it works */
.steps {
  display: grid;
  gap: var(--space-4);
  /* An <ol>: the circles are the numbers, so the browser's own go. */
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  font-weight: 800;
}
.step h3 {
  font-size: var(--text-lg);
}
.accent-billzloop .step p {
  margin: 0;
  color: var(--text-muted);
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* How it works: two step-by-step guides (set up, make a bill). Each is a row of
   step cards with a ringed screenshot, then a silent video with a step list that
   follows it. script.js makes the guides tabs; without it both show. */
.howto {
  margin-top: var(--space-12);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.howto-tabs {
  display: flex;
  gap: var(--space-1);
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-6);
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.howto-tabs[hidden] {
  display: none;
}
.howto-tab {
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.howto-tab:hover {
  color: var(--text);
}
.howto-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 519px) {
  .howto-tabs {
    width: 100%;
  }
  .howto-tab {
    flex: 1;
    padding: 0 var(--space-2);
    font-size: var(--text-sm);
    white-space: nowrap;
  }
}
.howto-panel[hidden] {
  display: none;
}
.howto-panel + .howto-panel {
  margin-top: var(--space-16);
}
.howto.is-tabbed .howto-panel + .howto-panel {
  margin-top: 0;
}
.howto-head h3 {
  font-size: var(--text-xl);
}
.accent-billzloop .howto-head p {
  color: var(--text-muted);
}
.howto-track {
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--space-2) var(--gutter) var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.howto-track::-webkit-scrollbar {
  display: none;
}
.howto-track:focus-visible {
  outline-offset: -3px;
}
.howto-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 280px);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.howto-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-4) var(--space-4) var(--space-5);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--highlight), var(--elev-2);
}
.howto-shot {
  align-self: center;
  width: 100%;
  max-width: 220px;
  margin: 0 0 var(--space-4);
  padding: 6px;
  background: var(--device);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px var(--device-edge);
}
.howto-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.howto-num {
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
}
.accent-billzloop .howto-step h4 {
  margin: var(--space-1) 0 var(--space-2);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}
.accent-billzloop .howto-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.howto-controls {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}
.howto-controls[hidden] {
  display: none;
}
.howto-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.howto-watch {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.howto-video {
  justify-self: center;
  width: min(100%, 260px);
  padding: 8px;
  background: var(--device);
  border-radius: 38px;
  box-shadow: 0 24px 48px -16px var(--device-shadow), inset 0 0 0 1px var(--device-edge);
}
.howto-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1200;
  border-radius: 30px;
  background: var(--bg-subtle);
}
/* While script.js downloads the video before playing it (about 1 MB). */
.howto-video {
  position: relative;
}
.howto-video.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  margin: auto;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: howto-spin 0.8s linear infinite;
}
@keyframes howto-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .howto-video.is-loading::after {
    animation: none;
  }
}
.howto-chapters h4 {
  font-size: var(--text-xl);
}
.accent-billzloop .howto-chapters > p {
  color: var(--text-muted);
}
.howto-chapters ol {
  display: grid;
  gap: var(--space-1);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.howto-chapters button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.howto-chapters button:hover {
  background: var(--surface);
}
.howto-chapters button.is-current {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.howto-chapters .n {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  font-size: var(--text-sm);
  font-weight: 700;
}
.howto-chapters .is-current .n {
  background: var(--accent);
  color: var(--on-accent);
}
@media (min-width: 640px) {
  .howto-steps {
    grid-auto-columns: calc((100% - var(--space-4)) / 2.15);
  }
}
@media (min-width: 900px) {
  .howto-track {
    margin: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .howto-steps {
    grid-auto-columns: calc((100% - 3 * var(--space-4)) / 4);
  }
  .howto-watch {
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    padding: var(--space-10) var(--space-12);
  }
  .howto-video {
    width: 280px;
  }
}

/* Links to the guides from the feature rows and the carousel. */
.feature-more,
.slide-more {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-weight: 600;
}
.accent-billzloop .feature-more {
  margin: var(--space-5) 0 0;
}
.accent-billzloop .slide .slide-more {
  margin-top: var(--space-2);
}
.feature-more a::after,
.slide-more a::after {
  content: " →";
}

/* Feature rows */
.feature {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border);
}
.feature:first-child {
  border-top: 0;
  padding-top: 0;
}
.feature-copy h3 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
}
.feature-copy p {
  color: var(--text-muted);
}
.ticks {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}
.ticks li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}
.ticks .icon {
  flex: none;
  width: 1em;
  height: 1em;
  color: var(--accent);
  transform: translateY(0.15em);
}
/* The callout under Remind ("Nothing is sent automatically."). */
.aside-note {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  margin: var(--space-5) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.aside-note .icon {
  flex: none;
  color: var(--accent);
  transform: translateY(0.15em);
}
.aside-note strong {
  color: var(--text);
}
/* Each screen runs off the bottom edge of a barely tinted panel. */
.shot {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 440px;
  padding: 36px var(--space-4) 0;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.shot .phone {
  width: 250px;
  flex: none;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .feature:nth-child(even) .shot {
    order: -1;
  }
  .shot {
    height: 500px;
  }
  .shot .phone {
    width: 280px;
  }
}

/* ---------- More features carousel (behaviour unchanged) ---------- */

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--space-4);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--space-2) var(--gutter) 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track:focus-visible {
  outline-offset: -3px;
}
.slide {
  min-width: 0;
  scroll-snap-align: start;
}
.slide-copy {
  margin-top: var(--space-5);
}
.slide h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-1);
}
.accent-billzloop .slide p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.carousel-controls[hidden] {
  display: none;
}
.carousel-play {
  margin-right: var(--space-2);
}
.carousel-play .icon-play,
.carousel-play.is-paused .icon-pause {
  display: none;
}
.carousel-play.is-paused .icon-play {
  display: inline-block;
}
.carousel-dots {
  display: flex;
}
.carousel-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-idle);
  transition: background-color var(--dur-base);
}
.carousel-dot.is-current::before {
  width: 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
@media (max-width: 419px) {
  .carousel-controls {
    gap: 6px;
  }
  .carousel-play {
    margin-right: var(--space-1);
  }
  .carousel-dot {
    width: 16px;
  }
  .carousel-dot.is-current {
    width: 24px;
  }
}
@media (min-width: 640px) {
  .carousel-track {
    gap: var(--space-6);
    grid-auto-columns: calc((100% - var(--space-6)) / 2);
  }
}
@media (min-width: 900px) {
  .carousel {
    position: relative;
  }
  .carousel-controls {
    position: absolute;
    left: 0;
    bottom: 28px;
    width: calc(50% - 36px);
    justify-content: flex-start;
    z-index: 2;
  }
  .carousel-track {
    grid-auto-columns: 100%;
  }
  .slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }
  .slide-copy {
    order: -1;
    margin-top: 0;
  }
  .slide .tablet {
    width: 100%;
    max-width: 340px;
    justify-self: center;
  }
  .slide h3 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.5em;
  }
  .accent-billzloop .slide p {
    font-size: var(--text-lg);
  }
}
.carousel.is-fade .carousel-track {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: 100%;
  gap: 0;
  margin: 0;
  padding: var(--space-2) 0 28px;
  overflow: visible;
  scroll-snap-type: none;
  touch-action: pan-y;
}
.carousel.is-fade .slide {
  grid-area: 1 / 1;
}
.carousel.is-fade .slide.is-active {
  z-index: 1;
}
.carousel.is-fade .slide:not(.is-active) {
  visibility: hidden;
}
.carousel.is-fade .slide:not(.is-active) .tablet {
  box-shadow: none;
}
.carousel.is-fade .slide:not(.is-active) .tablet img,
.carousel.is-fade .slide:not(.is-active) .slide-copy {
  opacity: 0;
}
@media (max-width: 899px) {
  .carousel.is-fade .tablet {
    max-width: 340px;
    margin: 0 auto;
  }
  .carousel.is-fade .slide-copy {
    text-align: center;
  }
}
.carousel.is-animated .slide {
  transition: visibility 0s linear 0.6s;
}
.carousel.is-animated .tablet img {
  transition: opacity 0s linear 0.6s;
}
.carousel.is-animated .slide-copy {
  transition: opacity 0.25s ease;
}
.carousel.is-animated .slide.is-active {
  transition: none;
}
.carousel.is-animated .slide.is-active .tablet img {
  transition: opacity 0.6s ease;
}
.carousel.is-animated .slide.is-active .slide-copy {
  transition: opacity 0.4s ease 0.2s;
}

/* ---------- Private by design: a dark band in both themes ---------- */

.band {
  background: var(--band-bg);
  color: var(--band-text);
}
.band .eyebrow {
  color: var(--band-eyebrow);
}
.band h2,
.band h3 {
  color: var(--band-heading);
}
.accent-billzloop .band .section-head p {
  color: var(--band-muted);
}
.cards {
  display: grid;
  gap: var(--space-4);
}
.band .card {
  padding: var(--space-6);
  background: var(--band-card);
  border-color: var(--band-card-edge);
  border-radius: var(--radius-lg);
}
.band .card .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--band-icon-bg);
  color: var(--band-icon);
}
.band .card .ic .icon {
  width: 22px;
  height: 22px;
}
.band .card h3 {
  font-size: var(--text-lg);
}
.accent-billzloop .band .card p {
  margin: 0;
  color: var(--band-muted);
  font-size: 1rem;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.plans {
  display: grid;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: var(--space-8) 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.accent-billzloop .plan-name {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
}
.tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.accent-billzloop .plan-price {
  margin: 14px 0 var(--space-1);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.accent-billzloop .plan-sub {
  margin-bottom: var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.plan .ticks {
  margin: 0 0 var(--space-6);
}
.accent-billzloop .plan-foot {
  margin: auto 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- FAQ (<details>, opens without JavaScript) ---------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
  interpolate-size: allow-keywords;
}
.faq details {
  padding: 0 var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease-out);
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) 0;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  flex: none;
  color: var(--text-subtle);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary .icon {
  transform: rotate(180deg);
}
.faq .answer {
  padding: 0 0 var(--space-5);
  color: var(--text-muted);
}
.accent-billzloop .faq .answer p:last-child {
  margin: 0;
}
.faq details::details-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease, content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content {
  height: auto;
  opacity: 1;
}

/* ---------- Closing call to action: the brand's blue ---------- */

.cta {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--brand-top), var(--brand-bottom));
  color: var(--on-brand);
  text-align: center;
}
.accent-billzloop .cta h2 {
  margin: 0;
  color: var(--on-brand);
}
.accent-billzloop .cta p {
  margin: 0;
  color: var(--on-brand-muted);
}

/* ---------- Footer: the shared footer, billzloop's columns ---------- */

.footer-grid {
  display: grid;
  gap: var(--space-8);
}
.footer-about .brand {
  margin-bottom: var(--space-3);
}
.footer-about p {
  max-width: 30ch;
  color: var(--text-subtle);
}
.site-footer h2 {
  margin: 0 0 var(--space-4);
  color: var(--text);
  font-size: var(--text-sm);
  letter-spacing: 0;
}
.site-footer ul {
  display: grid;
  gap: var(--space-1);
}
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer li a:hover {
  color: var(--accent);
}
.accent-billzloop .footer-bottom a {
  color: var(--text-subtle);
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: var(--space-8) 0 72px;
}
.legal .wrap {
  max-width: calc(800px + 2 * var(--gutter));
}
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-8);
}
.doc-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
}
.doc-tabs a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.doc-tabs a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.legal article h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.legal article h2 {
  margin: 2.2em 0 0.6em;
  font-size: var(--text-xl);
}
.legal article h3 {
  margin: 1.6em 0 0.5em;
  font-size: var(--text-lg);
}
.legal article ul {
  margin: 0 0 1em;
  padding-left: 1.4rem;
  list-style: disc;
}
.legal article li {
  margin-bottom: 0.5em;
}
.legal article li::marker {
  color: var(--text-subtle);
}
.accent-billzloop .legal .legal-meta {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.legal hr {
  margin: 2.4rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.legal code {
  padding: 0.05em 0.35em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
.legal article a {
  overflow-wrap: anywhere;
}
.legal-table-wrap {
  margin-bottom: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.legal th,
.legal td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal tr:last-child td {
  border-bottom: 0;
}
.legal th {
  background: var(--bg-subtle);
}
.section-alt .shot {
  background: var(--surface);
}
