/* OrangeBills palette and the public homepage layout. Colours and fonts follow OrangeReturns. */
@font-face { font-family: "Cal Sans UI"; font-weight: 300; font-display: swap; src: url(/font/CalSans/CalSansUI-UILight.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans UI"; font-weight: 400; font-display: swap; src: url(/font/CalSans/CalSansUI-UIRegular.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans UI"; font-weight: 500; font-display: swap; src: url(/font/CalSans/CalSansUI-UIMedium.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans UI"; font-weight: 600; font-display: swap; src: url(/font/CalSans/CalSansUI-UISemiBold.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans UI"; font-weight: 700; font-display: swap; src: url(/font/CalSans/CalSansUI-UIBold.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans Geo"; font-weight: 300; font-display: swap; src: url(/font/CalSans/CalSansUI-GeoLight.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans Geo"; font-weight: 400; font-display: swap; src: url(/font/CalSans/CalSansUI-GeoRegular.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans Geo"; font-weight: 500; font-display: swap; src: url(/font/CalSans/CalSansUI-GeoMedium.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans Geo"; font-weight: 600; font-display: swap; src: url(/font/CalSans/CalSansUI-GeoSemiBold.ttf) format("truetype"); }
@font-face { font-family: "Cal Sans Geo"; font-weight: 700; font-display: swap; src: url(/font/CalSans/CalSansUI-GeoBold.ttf) format("truetype"); }

:root {
  --font-geist-sans: "Cal Sans UI";
  --font-heading: "Cal Sans Geo", "Cal Sans UI", system-ui, sans-serif;
  --background: #fff;
  --foreground: #1e293b;
  --muted: #e2e8f0;
  --muted-foreground: #64748b;
  --card: #f8fafc;
  --border: #e2e8f0;
  --surface: #292524;
  --surface-foreground: #fafaf9;
  --nav: rgb(248 250 252 / .9);
  --homepage-header-height: 4rem;
  --homepage-header-inset: .5rem;
  --accent: #ea580c;
  --accent-foreground: #fff;
  --accent-soft: #ffedd5;
  --accent-ink: #c2410c;
  --ring: #ea580c;
  --field-base: #f8fafc;
  --field-warm: #ffedd5;
  --field-mid: #fdba74;
  --field-deep: #fb923c;
  --glow-mid: #ea580c;
  scroll-behavior: smooth;
}

h1, h2, h3 { font-family: var(--font-heading); }

.bg-field-base {
  background:
    radial-gradient(ellipse at 77% 99%, var(--field-deep), transparent 51%),
    radial-gradient(ellipse at 18% 112%, var(--field-mid), transparent 61%),
    linear-gradient(to top, var(--field-warm), transparent 78%),
    var(--field-base);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% var(--field-ceiling), 100% var(--field-ceiling), 100% var(--field-ceiling), auto;
}

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

.rb-container {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.rb-section {
  padding-bottom: clamp(5rem, 9vw, 8rem);
  scroll-margin-top: 6rem;
}

.section-heading {
  max-width: 49rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.hero-description,
.flow-heading > p,
.section-heading > p,
.portfolio-band > div > p,
.get-started-cta p,
.rb-faq-grid > div > p,
.footer-funnel-copy p {
  max-width: 49rem;
}

.section-heading p, .rb-faq-grid > div > p {
  margin: 1.1rem auto 0;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-label {
  display: inline-flex;
  border-radius: 999px;
  padding: .45rem .8rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .8125rem;
  font-weight: 500;
}

.rb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0 1.125rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color .2s, color .2s, border-color .2s;
  text-align: center;
}

.rb-button svg {
  width: .9rem;
  height: .9rem;
  flex: none;
}

.rb-button--primary { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.rb-button--primary:hover { background: #c2410c; border-color: #c2410c; }
.rb-button--glass { background: var(--card); color: var(--foreground); }
.rb-button--glass:hover { border-color: #fdba74; color: #c2410c; }

.preview-row { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.preview-row strong { display: block; font-size: .875rem; font-weight: 550; }
.preview-row small { display: block; font-size: .75rem; color: var(--muted-foreground); }
.preview-row { padding: .65rem; border-radius: .85rem; background: var(--card); }
.row-value { margin-left: auto; color: var(--accent-ink); font-size: .75rem; font-weight: 550; text-align: right; }

.rb-icon {
  display: inline-grid;
  flex: none;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .625rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.rb-icon svg { width: 1rem; height: 1rem; }

#main-content {
  padding-top: calc(var(--homepage-header-inset) + var(--homepage-header-height) + 2px + .75rem);
}

.hero-section, .footer-panel {
  --orange-panel-ink: #24170e;
  width: 96%;
  margin-inline: auto;
}
.hero-section {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 6rem) clamp(.875rem, 2vw, 3rem) clamp(2.5rem, 5vw, 5rem);
  border-radius: clamp(28px, 3vw, 40px);
  background:
    radial-gradient(ellipse var(--hero-fade-width, 68%) 52% at 50% 20%, #fff9f2 17%, rgb(255 249 242 / .76) 48%, transparent 100%),
    url("/home/assets/hero-02.webp") center bottom / cover no-repeat,
    #fae7d7;
}
.hero-section.has-carousel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: var(--carousel-tint, #f8d9c5);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 97%, rgb(0 0 0 / .22), transparent);
  transition: background-color .55s ease;
  pointer-events: none;
  content: "";
}
.hero-panel { max-width: 1560px; margin-inline: auto; }
.hero-copy { margin-inline: auto; text-align: center; }
.hero-location {
  color: var(--accent-ink);
  font-size: .875rem;
  font-weight: 600;
}
.hero-copy h1 {
  max-width: 17em;
  margin: 1rem auto 0;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.hero-description {
  margin: 1.25rem auto 0;
  color: #475569;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
@media (max-width: 48rem) {
  .hero-section { --hero-fade-width: 115%; }
  .hero-copy h1 { font-size: clamp(2.625rem, 1.25rem + 6.75vw, 3.25rem); }
  .hero-actions .rb-button:not([hidden]) { width: 100%; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .625rem;
  margin-top: 1.75rem;
}
.hero-actions .rb-button { min-height: 2.875rem; }
.hero-actions .rb-button--primary:hover { background: #c2410c; border-color: #c2410c; }
.hero-section :focus-visible, .footer-panel :focus-visible { outline-color: var(--orange-panel-ink); }

.hero-charts {
  --lower-charge-ink: #16634c;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.62fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.75rem, 1.6vw, 1.5rem);
  margin-top: clamp(2.75rem, 5vw, 5rem);
}
.hero-chart {
  min-width: 0;
  padding: clamp(.875rem, 1.3vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--background);
  box-shadow: 0 20px 32px -24px rgb(30 41 59 / .32), 0 2px 5px rgb(30 41 59 / .04);
}
.hero-chart figcaption {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-chart--water { --chart-tilt: 19deg; --card-drop: 4rem; grid-column: 1; }
.hero-chart--charges { --chart-tilt: 10deg; --card-drop: 2rem; grid-column: 2; }
.hero-chart--payments { --chart-tilt: -10deg; --card-drop: 2rem; grid-column: 4; }
.hero-chart--rental { --chart-tilt: -19deg; --card-drop: 4rem; grid-column: 5; }
.hero-chart:not(.usage-chart) {
  display: flex;
  flex-direction: column;
  min-height: 13rem;
}
.hero-chart-value {
  margin-block: .5rem 1rem;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-chart-value small {
  display: block;
  margin-top: .25rem;
  color: var(--muted-foreground);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: normal;
}
.hero-chart-bars {
  display: flex;
  align-items: end;
  gap: .25rem;
  height: 6rem;
  margin-top: auto;
  border-bottom: 1px solid var(--border);
}
.hero-chart-bars span { flex: 1; border-radius: 999px; background: #a7bdcb; }
.hero-chart-bars span:last-child { background: #50758b; }
.hero-chart-bars .hero-chart-water-flag { background: var(--accent); }
.hero-chart-value:has(+ .hero-chart-insight) { margin-bottom: .625rem; }
.hero-chart-insight {
  margin-bottom: .75rem;
  color: var(--accent-ink);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.hero-chart-insight--positive { color: var(--lower-charge-ink); }
.hero-chart-sparkline { display: block; flex: none; width: 100%; height: 5rem; margin-top: auto; }
.hero-chart-charge-baseline {
  fill: none;
  stroke: var(--muted-foreground);
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
.hero-chart-charge-marker {
  fill: var(--accent);
  stroke: var(--background);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.hero-chart-charge-marker--lower { fill: var(--lower-charge-ink); }
.hero-chart-range { display: flex; justify-content: space-between; margin-top: .45rem; color: var(--muted-foreground); font-size: .6875rem; }
.hero-chart-payment-bar {
  display: flex;
  height: 1rem;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}
.hero-chart-payment-bar span { height: 100%; border-radius: inherit; background: #5a806e; }
.hero-chart-compare {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .45rem .65rem;
  margin-top: auto;
  color: var(--muted-foreground);
  font-size: .6875rem;
}
.hero-chart-compare-bar { display: block; height: .8rem; border-radius: 999px; background: var(--accent-soft); }
.hero-chart-compare-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* Every card plays its chart once on load; the card in the centre of the carousel keeps looping. */
@media (prefers-reduced-motion: no-preference) {
  .hero-chart .hero-chart-bars span {
    transform-origin: bottom;
    animation: hero-chart-rise-in .9s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--bar-delay)) both;
  }
  .hero-chart .hero-chart-payment-bar > span:first-child,
  .hero-chart .hero-chart-compare-bar > span {
    transform-origin: left;
    animation: hero-chart-fill-in 1s cubic-bezier(.2, .8, .2, 1) .3s both;
  }
  .hero-chart .hero-chart-compare-bar:last-child > span { animation-delay: .44s; }

  .hero-chart[data-centered] .hero-chart-bars span {
    animation: hero-chart-rise 4s ease-in-out var(--bar-delay) infinite both;
  }
  .hero-chart[data-centered] .hero-chart-payment-bar > span:first-child,
  .hero-chart[data-centered] .hero-chart-compare-bar > span {
    animation: hero-chart-fill 4s ease-in-out infinite both;
  }
  .hero-chart[data-centered] .hero-chart-compare-bar:last-child > span { animation-delay: .14s; }
}

@keyframes hero-chart-rise-in { from { transform: scaleY(0); } }
@keyframes hero-chart-fill-in { from { transform: scaleX(0); } }
@keyframes hero-chart-rise {
  0%, 100% { transform: scaleY(0); }
  14%, 90% { transform: scaleY(1); }
}
@keyframes hero-chart-fill {
  0%, 100% { transform: scaleX(0); }
  18%, 90% { transform: scaleX(1); }
}

.usage-chart {
  --usage-power: var(--accent);
  --usage-water: #334155;
  grid-column: 3;
  background: linear-gradient(to bottom, var(--background) 45%, rgb(255 248 242));
}
.usage-chart-caption {
  display: grid;
  gap: .2rem;
  line-height: 1.2;
}
.usage-chart-caption strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}
.usage-chart-caption span {
  color: var(--muted-foreground);
  font-size: .875rem;
}
.usage-chart-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1rem;
  margin-block: .625rem .5rem;
  padding-block: .55rem;
  border-block: 1px solid var(--border);
  line-height: 1.25;
}
.usage-chart-readout strong {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.usage-chart-readout [data-flagged="higher"] { color: var(--accent-ink); }
.usage-chart-readout [data-flagged="lower"] { color: var(--lower-charge-ink); }
.usage-chart-readout small {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--muted-foreground);
  font-size: .75rem;
}
.usage-chart-readout i {
  flex: none;
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
}
.usage-key--power { background: var(--usage-power); }
.usage-key--water { background: var(--usage-water); }

.usage-chart-plot {
  position: relative;
  height: clamp(6rem, 9vw, 8rem);
  cursor: ew-resize;
  touch-action: pan-y;
  outline: none;
}
.usage-chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.usage-chart-plot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.usage-area { fill: url(#usage-power-fill); }
.usage-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.usage-line--power { stroke: var(--usage-power); }
.usage-line--water { stroke: var(--usage-water); stroke-width: 2; }
.usage-line--ahead { stroke-dasharray: 1.5 4; }
.usage-baseline { stroke: var(--border); }
.usage-charge-marker { stroke: var(--accent-ink); stroke-dasharray: 3 3; }
.usage-charge-marker--lower { stroke: var(--lower-charge-ink); }

.usage-chart-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgb(41 37 36 / .5);
  pointer-events: none;
}
.usage-dot {
  position: absolute;
  left: 0;
  width: .8rem;
  height: .8rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgb(41 37 36 / .25);
}
.usage-dot--power { background: var(--usage-power); }
.usage-dot--water { background: var(--usage-water); }

.usage-chart-axis {
  position: relative;
  height: 1.6rem;
  border-top: 1px solid rgb(41 37 36 / .12);
  font-size: .75rem;
  color: var(--muted-foreground);
}
.usage-chart-axis li { position: absolute; top: .45rem; transform: translateX(-50%); }

.usage-chart-axis li:nth-child(even) { display: none; }

@media (min-width: 75rem) {
  .hero-chart { grid-row: 1; }
  .hero-chart:not(.usage-chart) {
    margin-top: var(--card-drop);
    transform: perspective(680px) rotateY(var(--chart-tilt));
  }
}
@media (max-width: 74.99rem) {
  .hero-charts { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 56rem; margin-inline: auto; }
  .usage-chart { grid-column: 2 / 4; }
  .hero-chart:not(.usage-chart) { grid-column: auto; grid-row: 2; }
}
@media (max-width: 44rem) {
  .hero-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 28rem; }
  .usage-chart { grid-column: 1 / -1; }
  .hero-chart:not(.usage-chart) { grid-row: auto; min-height: 11.5rem; }
  .usage-chart-readout small { font-size: .6875rem; }
  .usage-chart-readout i { width: .3125rem; height: .3125rem; }
}

.hero-charts.is-carousel {
  --carousel-card-width: min(calc(100% - 2.75rem), clamp(16rem, 20vw, 18rem));
  position: relative;
  display: block;
  max-width: none;
  height: 22.5rem;
  overflow: clip;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
@media (max-width: 47.99rem) {
  .hero-charts.is-carousel {
    --carousel-card-width: min(calc(100% - 1.25rem), 22rem);
  }
}
.hero-charts.is-dragging { cursor: grabbing; }
.hero-charts.is-carousel > .hero-chart {
  position: absolute;
  top: .375rem;
  left: 50%;
  width: var(--carousel-card-width);
  height: 19.75rem;
  margin: 0;
  transform: translateX(calc(-50% + var(--carousel-x))) translateY(var(--carousel-y))
    perspective(800px) rotateY(var(--carousel-angle)) scale(var(--carousel-scale));
}
.hero-charts.is-carousel > .usage-chart {
  display: flex;
  flex-direction: column;
}
.is-carousel .usage-chart-plot { flex: 1; min-height: 5rem; height: auto; }
.is-carousel .usage-chart-axis { flex: none; }
.hero-charts.is-carousel .usage-chart:not([data-centered]) .usage-chart-plot { pointer-events: none; }
.hero-carousel-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.hero-carousel-controls button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
}
.hero-carousel-controls button:hover { background: var(--accent-soft); }
.hero-carousel-controls svg {
  width: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-chart:not([data-centered]) { cursor: inherit; }
@media (min-width: 96rem) {
  .hero-charts.is-carousel {
    --carousel-card-width: min(18rem, calc((100% - 7rem) / 5));
  }
}
@media (max-width: 25rem) {
  .hero-charts.is-carousel { height: 23.5rem; }
  .hero-charts.is-carousel > .hero-chart { height: 20.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section.has-carousel::before { transition: none; }
}

#integrations { padding-bottom: 1.5rem; }
.flow-section {
  --peach-glow: rgb(234 88 12 / .14);
  --soft-orange-glow: rgb(253 186 116 / .22);
}
.usage-chart-plot::before {
  --grid-line-color: rgb(100 116 139 / .09);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to top, var(--grid-line-color) 1px, transparent 1px);
  background-size: var(--grid-cell-size) 100%, 100% var(--grid-cell-size);
  background-position: var(--grid-x) 0, left bottom;
  mask-image: linear-gradient(to bottom, transparent, #000 70%);
  content: "";
}

.flow-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 62%, var(--peach-glow), transparent 70%),
    radial-gradient(ellipse 30% 30% at 18% 70%, var(--soft-orange-glow), transparent 70%),
    radial-gradient(ellipse 30% 30% at 82% 70%, var(--soft-orange-glow), transparent 70%);
}
.flow-section::before {
  position: absolute;
  top: calc(300px + 30rem);
  left: 50%;
  width: 180%;
  aspect-ratio: 1;
  border: 1px solid rgb(234 88 12 / .14);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0, rgb(255 255 255 / .9), rgb(248 250 252 / .6) 30%, transparent 60%);
  transform: translateX(-50%);
  content: "";
}
.flow-section::after {
  position: absolute;
  inset: auto 0 0;
  height: 10rem;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none;
  content: "";
}
.flow-stage, .flow-steps { z-index: 1; }
.flow-stage { position: relative; text-align: center; }
.flow-tiles { position: relative; height: 300px; }
.flow-tile {
  --x: 8%;
  --y: 62px;
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .45rem;
  width: 7.25rem;
  height: 5.5rem;
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 14px 34px -16px rgb(15 23 42 / .25);
  font-size: .78rem;
  font-weight: 550;
  line-height: 1.2;
  transform: translateX(-50%);
  animation: flow-float 6s ease-in-out calc(var(--i) * -1.1s) infinite;
}
.flow-tile:nth-child(2) { --x: 29%; --y: 7px; }
.flow-tile:nth-child(3) { --x: 50%; --y: -18px; }
.flow-tile:nth-child(4) { --x: 71%; --y: 7px; }
.flow-tile:nth-child(5) { --x: 92%; --y: 62px; }
.flow-tile span { display: inline-grid; color: var(--accent); }
.flow-tile svg { width: 1.6rem; height: 1.6rem; }

.flow-lines { position: absolute; left: 0; width: 100%; pointer-events: none; }
.flow-lines--top { top: 0; height: 300px; }
.flow-lines--bottom { position: relative; display: block; height: 170px; }
.flow-lines path { fill: none; vector-effect: non-scaling-stroke; }
.flow-track path { stroke: rgb(234 88 12 / .35); stroke-width: 1.25; }
.flow-track path:nth-child(even) { stroke: rgb(100 116 139 / .35); }
.flow-pulse path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  animation: flow-pulse 3.2s linear infinite;
}
.flow-pulse path:nth-child(2) { animation-delay: -.7s; }
.flow-pulse path:nth-child(3) { animation-delay: -1.5s; }
.flow-pulse path:nth-child(4) { animation-delay: -2.2s; }
.flow-pulse path:nth-child(5) { animation-delay: -2.8s; }
.flow-lines--bottom .flow-pulse path { animation-duration: 2.4s; }

.flow-heading { position: relative; max-width: 49rem; margin: 0 auto; }
.flow-heading .hero-label { margin-bottom: 1.25rem; }
.flow-accent { color: var(--accent); }
.flow-heading p { margin: 1.25rem auto 0; color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.6; }

.flow-node { position: relative; display: grid; justify-items: center; gap: .3rem; }
.flow-node-icon {
  display: grid;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: .6rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 0 0 8px rgb(255 237 213 / .55), 0 24px 60px -12px rgb(234 88 12 / .45);
  animation: flow-glow 3.2s ease-in-out infinite;
}
.flow-node-icon img { width: 3rem; height: 3rem; }
.flow-node strong { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.flow-node small { color: var(--muted-foreground); font-size: .85rem; }

.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.flow-steps li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: #fff;
  text-align: left;
}
.flow-step-media {
  display: flex;
  height: 11rem;
  align-items: center;
  justify-content: center;
  padding-inline: 1.25rem;
}
.flow-step-media--slate {
  background: linear-gradient(to bottom right, #f1f5f9, rgb(226 232 240 / .7));
}
.flow-step-media--orange {
  background: linear-gradient(to bottom right, #fff7ed, #ffedd5);
}
.flow-step-media--sky {
  background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
}
.flow-step-preview {
  width: 100%;
  max-width: 13rem;
  padding: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 10px 30px rgb(15 23 42 / .08);
}
.flow-step-preview--orange {
  border-color: #ffedd5;
  box-shadow: 0 10px 30px rgb(234 88 12 / .12);
}
.flow-step-preview--sky {
  border-color: #e0f2fe;
  box-shadow: 0 10px 30px rgb(14 116 144 / .1);
}
.flow-step-preview-label {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: #64748b;
  font-size: .75rem;
  font-weight: 500;
}
.flow-step-preview-label svg {
  width: .8125rem;
  height: .8125rem;
  flex: none;
}
.flow-step-preview-title {
  margin-top: .5rem;
  color: #0f172a;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}
.flow-step-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .5rem;
  color: #0f172a;
  font-size: .875rem;
  font-weight: 600;
}
.flow-step-preview-check {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ea580c;
  color: #fff;
}
.flow-step-preview-check svg {
  width: .75rem;
  height: .75rem;
}
.flow-step-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .75rem;
  padding: .375rem .625rem;
  border-radius: .5rem;
  background: #0f172a;
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
}
.flow-step-preview-pill svg {
  width: .75rem;
  height: .75rem;
  flex: none;
}
.flow-step-preview-meta {
  margin-top: .75rem;
  color: #94a3b8;
  font-size: .75rem;
}
.flow-step-body {
  padding: 1rem;
}
.flow-step-label {
  color: #c2410c;
  font-size: .75rem;
  font-weight: 600;
}
.flow-step-body h3 {
  margin-top: .25rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.flow-step-body p:not(.flow-step-label) {
  margin-top: .25rem;
  color: #64748b;
  font-size: .875rem;
  line-height: 1.5;
}

@keyframes flow-float { 50% { translate: 0 -6px; } }
@keyframes flow-pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes flow-glow { 50% { box-shadow: 0 0 0 14px rgb(255 237 213 / .35), 0 28px 70px -10px rgb(234 88 12 / .55); } }

@media (max-width: 64rem) {
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .flow-tiles { height: 220px; }
  .flow-tile {
    --y: 44px;
    gap: .3rem;
    width: clamp(3.85rem, 18.5%, 6.5rem);
    height: 4.35rem;
    padding: .35rem .25rem;
    border-radius: .9rem;
    font-size: clamp(.6rem, 2.3vw, .74rem);
    letter-spacing: -.02em;
  }
  .flow-tile:nth-child(2), .flow-tile:nth-child(4) { --y: 4px; }
  .flow-tile:nth-child(3) { --y: -14px; }
  .flow-tile svg { width: 1.2rem; height: 1.2rem; }
  .flow-lines--top { height: 220px; }
  .flow-lines--bottom { height: 110px; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-tile, .flow-pulse path, .flow-node-icon { animation: none; }
  .flow-pulse { display: none; }
}

#features { padding-top: clamp(2.5rem, 6vw, 6rem); }
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.feature-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  align-content: start;
  grid-column: span 2;
  min-width: 0;
  padding: .5rem .5rem clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--card);
}
.feature-card:nth-child(-n+2) { grid-column: span 3; }
.feature-card h3 { margin: 1.25rem 1rem 0; font-size: 1.2rem; font-weight: 550; letter-spacing: -.025em; }
.feature-card p { margin-inline: 1rem; }

.widget {
  --hatch: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 7px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 12.5rem;
  padding: 1.25rem;
  border-radius: 1.6rem;
}
.feature-card:nth-child(-n+2) .widget { min-height: 18rem; }
.widget--light { background: #fff; box-shadow: 0 1px 2px rgb(41 37 36 / .06); }
.widget--dark { background: var(--surface); color: var(--surface-foreground); }
.widget--orange { background: var(--accent); color: #fff; }
.widget--peach { background: var(--accent-soft); color: #7c2d12; }
.widget strong { display: block; font-weight: 550; }
.widget small { display: block; font-size: .75rem; opacity: .68; }
.widget-head { display: flex; align-items: flex-start; gap: .75rem; }
.widget-head > div { min-width: 0; }
.widget-head > div > strong { font-size: 1.05rem; letter-spacing: -.02em; }
.widget-head > :last-child:not(div) { margin-left: auto; flex: none; }
.widget-amount { margin-top: .2rem; font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -.04em; line-height: 1.05; }
.widget-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .5rem .35rem .8rem;
  border: 1px solid currentColor;
  border-radius: 9999px;
  font-size: .75rem;
  opacity: .8;
}
.widget-pill svg { width: .85rem; height: .85rem; }
.widget-badge {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 9999px;
  background: #fff;
  color: var(--accent);
}
.widget-badge svg { width: 1rem; height: 1rem; }
.widget-chip { padding: .25rem .55rem; border-radius: .5rem; background: var(--accent-soft); color: var(--accent-ink); font-size: .7rem; font-weight: 600; }
.widget-chip--solid { background: #7c2d12; color: #fff; }

.widget-timeline { position: relative; display: grid; gap: .25rem; margin-top: .25rem; }
.widget-timeline::before { position: absolute; top: .9rem; bottom: .9rem; left: .45rem; width: 1px; background: var(--border); content: ""; }
.widget-timeline li { position: relative; display: flex; align-items: center; gap: .75rem; padding: .5rem 0 .5rem 1.75rem; }
.widget-timeline li::before {
  position: absolute;
  left: 0;
  width: .9rem;
  height: .9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
  content: "";
}
.widget-timeline li.is-current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.widget-timeline strong { font-size: .875rem; }
.widget-timeline small { color: var(--muted-foreground); opacity: 1; }
.widget-timeline .widget-chip { margin-left: auto; }
.widget-timeline li:not(.is-current) { opacity: .72; }

.widget-usage { display: flex; flex: 1; align-items: flex-end; gap: 1.25rem; }
.widget-figure { display: grid; flex: none; gap: .35rem; }
.widget-figure > small:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.widget-figure .widget-badge { width: 1.4rem; height: 1.4rem; background: var(--accent); color: #fff; }
.widget-figure .widget-badge svg { width: .8rem; height: .8rem; }
.widget-figure strong { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--font-heading); font-size: clamp(2.25rem, 4.2vw, 3.25rem); letter-spacing: -.045em; line-height: 1; }
.widget-bars { display: flex; flex: 1; justify-content: flex-end; gap: .5rem; align-self: stretch; min-height: 10rem; }
.widget-bars > div {
  position: relative;
  flex: 0 1 5.5rem;
  border-radius: 1rem;
  background: var(--hatch);
  color: rgb(250 250 249 / .16);
}
.widget-bars > div::after {
  position: absolute;
  inset: auto 0 0;
  height: var(--fill);
  border-radius: 1rem;
  background: #fed7aa;
  content: "";
}
.widget-bars > div.is-current::after { background: var(--accent); }
.widget-bars span { position: absolute; top: .6rem; left: .75rem; z-index: 1; font-size: .75rem; color: rgb(250 250 249 / .75); }

.widget-progress {
  position: relative;
  height: 1.6rem;
  margin-top: auto;
  border: 1.5px solid rgb(255 255 255 / .85);
  border-radius: 9999px;
}
.widget-progress-fill {
  position: absolute;
  inset: 3px;
  border-radius: 9999px;
  background: var(--hatch);
  color: rgb(255 255 255 / .75);
}
.widget-progress-dot {
  position: absolute;
  top: 50%;
  right: -.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--accent);
  border-radius: 9999px;
  background: #fff;
  transform: translateY(-50%);
}
.widget-steps { display: flex; justify-content: space-between; font-size: .75rem; color: rgb(255 255 255 / .8); }
.widget-steps li:last-child { font-weight: 600; color: #fff; }

.widget-steps-chart { position: relative; flex: 1; min-height: 4.5rem; margin: auto -1.25rem -1.25rem; overflow: hidden; border-radius: 0 0 1.6rem 1.6rem; }
.widget-steps-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.widget-steps-dot {
  position: absolute;
  top: 22%;
  right: 12%;
  width: .9rem;
  height: .9rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: var(--accent);
  transform: translate(50%, -50%);
}

.widget-avatar {
  display: inline-grid;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 9999px;
  background: var(--surface);
  color: #fdba74;
}
.widget-avatar svg { width: 1.15rem; height: 1.15rem; }
.widget-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 550;
  color: var(--accent-ink);
}
.widget-status::before { width: .45rem; height: .45rem; border-radius: 9999px; background: var(--accent); content: ""; }
.widget-key {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: auto;
  padding: .7rem .75rem;
  border-radius: 1rem;
  background: var(--muted);
  font-size: .8rem;
}
.widget-key > span { display: inline-grid; color: var(--accent-ink); }
.widget-key svg { width: 1rem; height: 1rem; }
.widget-key code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.widget-key i { margin-left: auto; color: var(--muted-foreground); }
.widget-note { color: var(--muted-foreground); opacity: 1 !important; }

/* Cards rise in once when controls.js marks them visible, then each widget loops on its own cycle.
   Animations sit paused on their first frame until the card is visible. */
.feature-grid[data-animate] .feature-card,
.feature-grid[data-animate] .feature-card *,
.feature-grid[data-animate] .feature-card *::before,
.feature-grid[data-animate] .feature-card *::after { animation-play-state: paused !important; animation-fill-mode: both !important; }
.feature-grid[data-animate] .feature-card.is-visible,
.feature-grid[data-animate] .feature-card.is-visible *,
.feature-grid[data-animate] .feature-card.is-visible *::before,
.feature-grid[data-animate] .feature-card.is-visible *::after { animation-play-state: running !important; }

.feature-card:nth-child(1) { --cycle: 6s; }
.feature-card:nth-child(2) { --cycle: 5s; }
.feature-card:nth-child(3) { --cycle: 5.5s; }
.feature-card:nth-child(4) { --cycle: 6.5s; }
.feature-card:nth-child(5) { --cycle: 7s; }

.feature-grid[data-animate] .feature-card { animation: widget-rise .7s cubic-bezier(.2, .8, .2, 1); }
.feature-grid[data-animate] .feature-card:nth-child(2) { animation-delay: .08s; }
.feature-grid[data-animate] .feature-card:nth-child(3) { animation-delay: .04s; }
.feature-grid[data-animate] .feature-card:nth-child(4) { animation-delay: .12s; }
.feature-grid[data-animate] .feature-card:nth-child(5) { animation-delay: .2s; }

.feature-grid[data-animate] .widget-timeline::before { transform-origin: top; animation: loop-grow-y var(--cycle) .25s ease-in-out infinite; }
.feature-grid[data-animate] .widget-timeline li { animation: loop-slide-in var(--cycle) ease-in-out infinite; }
.feature-grid[data-animate] .widget-timeline li:nth-child(1) { animation-delay: .3s; }
.feature-grid[data-animate] .widget-timeline li:nth-child(2) { animation-delay: .4s; }
.feature-grid[data-animate] .widget-timeline li:nth-child(3) { animation-delay: .5s; }
.feature-grid[data-animate] .widget-timeline li:nth-child(4) { animation-delay: .6s; }
.feature-grid[data-animate] .widget-timeline li.is-current::before { animation: widget-pulse 2.4s 1.2s ease-out infinite; }

.feature-grid[data-animate] .widget-bars > div::after { animation: loop-bar var(--cycle) ease-in-out infinite; }
.feature-grid[data-animate] .widget-bars > div:nth-child(1)::after { animation-delay: .3s; }
.feature-grid[data-animate] .widget-bars > div:nth-child(2)::after { animation-delay: .42s; }
.feature-grid[data-animate] .widget-bars > div:nth-child(3)::after { animation-delay: .54s; }

.feature-grid[data-animate] .widget-progress-fill { animation: loop-wipe var(--cycle) .35s ease-in-out infinite; }
.feature-grid[data-animate] .widget-progress-dot { animation: loop-pop var(--cycle) 1.35s ease-out infinite; }
.feature-grid[data-animate] .widget-steps li { animation: loop-fade var(--cycle) ease-out infinite; }
.feature-grid[data-animate] .widget-steps li:nth-child(1) { animation-delay: .45s; }
.feature-grid[data-animate] .widget-steps li:nth-child(2) { animation-delay: .85s; }
.feature-grid[data-animate] .widget-steps li:nth-child(3) { animation-delay: 1.3s; }

.feature-grid[data-animate] .widget-steps-chart svg { animation: loop-wipe var(--cycle) .35s ease-in-out infinite; }
.feature-grid[data-animate] .widget-steps-dot { animation: loop-pop var(--cycle) 1.55s ease-out infinite; }

.feature-grid[data-animate] .widget-avatar { animation: loop-pop var(--cycle) .3s ease-out infinite; }
.feature-grid[data-animate] .widget-key code { animation: loop-type var(--cycle) .55s infinite; }
.widget-status::before { animation: widget-pulse 2s ease-out infinite; }

/* Loops build in the first fifth of the cycle, hold, then clear in the last tenth before restarting. */
@keyframes widget-rise { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes loop-grow-y { 0% { transform: scaleY(0); } 15%, 86% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@keyframes loop-slide-in { 0% { opacity: 0; transform: translateX(-.75rem); } 9%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes loop-bar { 0% { height: 0; } 20%, 86% { height: var(--fill); } 100% { height: 0; } }
@keyframes loop-wipe { 0% { clip-path: inset(0 100% 0 0); } 22%, 86% { clip-path: inset(0); } 98%, 100% { clip-path: inset(0 0 0 100%); } }
@keyframes loop-pop {
  0% { opacity: 0; scale: 0; }
  6% { opacity: 1; scale: 1.25; }
  10%, 84% { opacity: 1; scale: 1; }
  92%, 100% { opacity: 0; scale: 0; }
}
@keyframes loop-fade { 0% { opacity: 0; } 7%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes loop-type {
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(19, end); }
  16%, 86% { clip-path: inset(0); animation-timing-function: ease-in; }
  96%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes widget-pulse {
  0% { box-shadow: 0 0 0 0 rgb(234 88 12 / .45); }
  70%, 100% { box-shadow: 0 0 0 .5rem rgb(234 88 12 / 0); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-grid[data-animate] *, .feature-grid[data-animate] *::before, .feature-grid[data-animate] *::after,
  .feature-grid[data-animate] .feature-card, .widget-status::before { animation: none !important; }
}

.feature-card p, .workflow-copy p { margin-top: .65rem; color: var(--muted-foreground); line-height: 1.6; }

.workflow-grid { display: grid; gap: 1rem; }
.workflow-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: .75rem;
  min-height: 20rem;
  border-radius: 2rem;
  padding: .75rem;
  background: var(--muted);
}
.workflow-copy { align-self: center; padding: clamp(.75rem, 4vw, 2.75rem); }
.workflow-copy h3 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 550; letter-spacing: -.03em; line-height: 1.13; text-wrap: balance; }
.workflow-copy .hero-label { margin-bottom: 1rem; }
.workflow-demo {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 14rem;
  padding: clamp(.75rem, 3vw, 2.5rem);
  border-radius: 1.4rem;
  background-color: var(--card);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--border) 42%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--border) 42%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}
.workflow-demo > div { width: min(100%, 23rem); padding: .75rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); box-shadow: 0 10px 36px rgb(41 37 36 / .08); }

.portfolio-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: 2.75rem;
  background: #ea580c;
  color: var(--surface-foreground);
}
.portfolio-band p { margin-top: 1rem; line-height: 1.6; }
.portfolio-band dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.portfolio-band dl > div { display: flex; flex-direction: column-reverse; justify-content: end; }
.portfolio-band dd { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 3rem); font-weight: 550; letter-spacing: -.035em; }
.portfolio-band dt { opacity: .78; font-size: .875rem; }

/* Entrance runs once when the band scrolls into view; controls.js sets data-animate unless motion is reduced. */
.portfolio-band[data-animate] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  transform: translateY(2.5rem) scale(.97);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.22, 1, .36, 1);
}
.portfolio-band[data-animate]::before {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(circle at 30% 40%, rgb(255 237 213 / .16), transparent 30%), radial-gradient(circle at 75% 70%, rgb(194 65 12 / .4), transparent 34%);
  animation: band-drift 14s ease-in-out infinite alternate paused;
  content: "";
}
.portfolio-band[data-animate] > div > *,
.portfolio-band[data-animate] dl > div {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms ease, transform 800ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(250ms + var(--i, 0) * 110ms);
}
.portfolio-band[data-animate] dd {
  clip-path: inset(0 0 100% 0);
  transform: translateY(.6em);
  transition: clip-path 750ms cubic-bezier(.22, 1, .36, 1), transform 750ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(380ms + var(--i, 0) * 110ms);
}
.portfolio-band[data-animate] > div > p { --i: 1; }
.portfolio-band[data-animate] dl > div:nth-child(1) { --i: 1; }
.portfolio-band[data-animate] dl > div:nth-child(2) { --i: 2; }
.portfolio-band[data-animate] dl > div:nth-child(3) { --i: 3; }
.portfolio-band[data-animate] dl > div:nth-child(4) { --i: 4; }
.portfolio-band[data-animate].is-visible,
.portfolio-band[data-animate].is-visible > div > *,
.portfolio-band[data-animate].is-visible dl > div,
.portfolio-band[data-animate].is-visible dd { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
.portfolio-band[data-animate].is-visible::before { animation-play-state: running; }
@keyframes band-drift {
  from { transform: translate(-6%, -4%) rotate(0deg); }
  to { transform: translate(8%, 6%) rotate(12deg); }
}

.pricing-section .section-heading {
  width: 100%;
  max-width: none;
  margin-left: 0;
  text-align: left;
}
.pricing-section .section-heading p { margin-left: 0; }
.rb-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 3.5vw, 3rem);
}
.pricing-plans { display: grid; align-self: start; gap: .75rem; }
.pricing-plan {
  --plan-inset: clamp(1rem, 2.3vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: 2.75rem;
  background: var(--card);
  overflow: hidden;
}
.pricing-plan[open] { border-color: var(--accent); background: var(--accent); color: var(--accent-foreground); }
.plan-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .4rem .75rem;
  padding: var(--plan-inset);
  border-radius: 2.75rem;
  cursor: pointer;
  list-style: none;
}
.plan-summary::-webkit-details-marker { display: none; }
.plan-summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.plan-title, .plan-price {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.plan-price, .plan-rate { text-align: right; }
.plan-price { white-space: nowrap; }
.plan-description, .plan-rate { color: var(--muted-foreground); line-height: 1.4; }
.plan-description { font-size: .95rem; }
.plan-rate { font-size: .8rem; }
.plan-indicator {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 1.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--foreground);
  background: var(--muted);
}
.plan-indicator::before, .plan-indicator::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 30%;
  width: 40%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.plan-indicator::after { rotate: 90deg; }
.pricing-plan[open] .plan-indicator { background: rgb(255 255 255 / .16); color: var(--accent-foreground); }
.pricing-plan[open] .plan-indicator::after { rotate: 0deg; }
.pricing-plan[open] :is(.plan-description, .plan-rate) { color: rgb(255 255 255 / .85); }
.plan-body { padding: 0 var(--plan-inset) var(--plan-inset); }
.plan-benefits {
  display: grid;
  gap: .7rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .22);
  color: rgb(255 255 255 / .85);
  padding: 1.1rem 0 0;
  list-style: none;
  font-size: .95rem;
  line-height: 1.45;
}
.plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.plan-benefits li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.2 6.7 11 12 5' stroke='%23ea580c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .75rem no-repeat,
    #fff;
}
.plan-body .rb-button { margin-top: 1.25rem; }
.pricing-plan[open] .rb-button--primary { background: #fff; color: var(--accent); border-color: #fff; }
.pricing-plan[open] .rb-button--primary:hover { background: #fff7ef; border-color: #fff7ef; color: var(--accent-ink); }
.pricing-preview {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.75rem;
  background: var(--card);
}
.pricing-preview > .orange-print {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.pricing-preview-multiple,
.rb-pricing:has(.pricing-plan--multiple[open]) .pricing-preview-single {
  opacity: 0;
  visibility: hidden;
}
.rb-pricing:has(.pricing-plan--multiple[open]) .pricing-preview-multiple {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 64rem) {
  .plan-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .pricing-plan { transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease; }
  .plan-indicator { transition: background-color 280ms ease, color 280ms ease; }
  .plan-indicator::after { transition: rotate 360ms cubic-bezier(.3, 1.6, .5, 1); }
  .rb-pricing:has(.pricing-plan--multiple[open]) .pricing-preview-single {
    opacity: 1;
    transition: visibility 0s 380ms;
  }
  .pricing-preview-multiple { transition: opacity 380ms ease, visibility 380ms; }
}

.rb-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, 5vw, 4rem); }
.rb-faq-grid > div > p { margin-left: 0; }
.get-started-panel {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 2.75rem;
  background: var(--card);
}
.get-started-image {
  --panel-pad: clamp(1.5rem, 5vw, 4rem);
  --image-inset: 0.75rem;
  display: block;
  max-width: none;
  width: calc(100% + 2 * (var(--panel-pad) - var(--image-inset)));
  height: clamp(11rem, 24vw, 20rem);
  margin: calc(var(--image-inset) - var(--panel-pad)) calc(var(--image-inset) - var(--panel-pad)) clamp(2rem, 4vw, 3rem);
  border-radius: calc(2.75rem - var(--image-inset));
  object-fit: cover;
  object-position: center bottom;
}
.get-started-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.get-started-cta p { margin-top: 1.1rem; color: var(--muted-foreground); font-size: 1.125rem; line-height: 1.55; }
.get-started-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.get-started-faq {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 6rem;
}
.get-started-faq .rb-faq:not([open]),
.get-started-actions .rb-button--glass { background: #fff; }
.rb-faq { margin-bottom: .5rem; border: 1px solid var(--border); border-radius: 2.75rem; background: var(--card); overflow: hidden; }
.rb-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .925rem 1rem .925rem 1.25rem; cursor: pointer; font-weight: 550; list-style: none; }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary span { display: grid; flex: none; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 50%; background: var(--muted); font-size: 1.2rem; line-height: 1; }
.rb-faq[open] { background: var(--accent); color: var(--accent-foreground); }
.rb-faq[open] p { color: rgb(255 255 255 / .85); }
.rb-faq[open] summary span { rotate: 45deg; background: rgb(255 255 255 / .16); color: var(--accent-foreground); }
.rb-faq p { padding: 0 1.25rem 1.25rem; color: var(--muted-foreground); line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  .rb-faq { transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease; }
  .rb-faq[open] { border-color: var(--accent); }
  .rb-faq summary span {
    transition: rotate 360ms cubic-bezier(.3, 1.6, .5, 1), background-color 280ms ease, color 280ms ease;
  }

  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    :is(.rb-faq, .pricing-plan)::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 380ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease, content-visibility 380ms allow-discrete;
    }
    :is(.rb-faq, .pricing-plan)[open]::details-content { block-size: auto; opacity: 1; }
    :is(.rb-faq p, .plan-body) {
      translate: 0 -.4rem;
      transition: translate 380ms cubic-bezier(.22, 1, .36, 1), color 280ms ease;
    }
    :is(.rb-faq[open] p, .pricing-plan[open] .plan-body) { translate: none; }
  }
}

.site-footer { padding-block: clamp(3rem, 6vw, 5rem) .75rem; }
.footer-panel {
  --orange-panel-ink: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--accent);
  color: var(--orange-panel-ink);
}
.footer-funnel {
  display: grid;
  justify-items: start;
  gap: clamp(2.25rem, 4vw, 3.25rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.footer-funnel-copy { width: 100%; }
.footer-funnel-copy h2 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.footer-funnel-copy p { margin-top: 1.1rem; line-height: 1.6; text-wrap: pretty; }
.funnel-steps {
  display: grid;
  width: min(100%, 34rem);
  gap: clamp(1.6rem, 3vw, 2.4rem);
  padding-left: 5.75rem;
}
.funnel-steps li { position: relative; opacity: .94; transition: opacity .6s ease; }
.funnel-steps li.is-active { opacity: 1; }
.funnel-steps li > div { display: flex; justify-content: space-between; gap: 1rem; }
.funnel-steps strong { font-size: 1.05rem; font-weight: 550; }
.funnel-steps b { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel-steps small { display: block; margin-top: .3rem; font-size: .875rem; font-variant-numeric: tabular-nums; }
.funnel-tick {
  position: absolute;
  top: .7rem;
  right: calc(100% + 1.25rem);
  width: 3.5rem;
  height: 1px;
  background: rgb(255 255 255 / .36);
  transition: background-color .6s ease, width .6s ease;
}
.funnel-steps li.is-active .funnel-tick { width: 4.5rem; background: var(--orange-panel-ink); }

.rb-footer { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.rb-footer .preview-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; }
.rb-footer .preview-brand img { width: 1.6rem; height: 1.6rem; padding: .15rem; border-radius: .4rem; background: var(--accent-soft); }
.rb-footer nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.rb-footer nav div { display: grid; align-content: start; gap: .55rem; font-size: .875rem; }
.rb-footer p { margin-top: .7rem; font-size: .875rem; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.footer-social a {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: 9999px;
  background: rgb(255 255 255 / .1);
  color: var(--orange-panel-ink);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover {
  border-color: rgb(255 255 255 / .55);
  background: rgb(255 255 255 / .22);
}
.footer-social svg { width: 1rem; height: 1rem; }
.rb-footer nav a:hover { text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .28); padding-top: 1rem; }

@media (max-width: 48rem) {
  .feature-grid, .workflow-card, .portfolio-band, .rb-faq-grid, .rb-footer { grid-template-columns: minmax(0, 1fr); }
  .rb-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .feature-card, .feature-card:nth-child(-n+2) { grid-column: auto; }
  .feature-card:nth-child(-n+2) .widget { min-height: 0; }
  .widget-bars { min-height: 8rem; }
}

@media (max-width: 48rem) {
  .rb-pricing { grid-template-columns: minmax(0, 1fr); }
  .pricing-preview { height: auto; aspect-ratio: 4 / 3; }
  .portfolio-band,
  .pricing-plan,
  .plan-summary,
  .pricing-preview,
  .get-started-panel {
    border-radius: 1.5rem;
  }
  .get-started-image {
    border-radius: calc(1.5rem - var(--image-inset));
  }
  .rb-faq {
    border-radius: 1.25rem;
  }
  .plan-body .rb-button:not([hidden]),
  .get-started-actions,
  .get-started-actions .rb-button {
    width: 100%;
  }
}

@media (max-width: 30rem) {
  .plan-summary { grid-template-columns: minmax(0, 1fr) auto 1.5rem; column-gap: .5rem; }
  .plan-indicator { grid-row: 1; width: 1.5rem; }
  .plan-description { grid-column: 1; grid-row: 2; }
  .plan-rate { grid-column: 2 / -1; grid-row: 2; max-width: 8.5rem; justify-self: end; }
}
