/* Landing page only. Shared tokens and components live in site.css. */

.i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fade-up on scroll (only once site.js has marked the page as .js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.section {
  padding-block: clamp(72px, 10vw, 120px);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-head p {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--ink-600);
  font-size: 18px;
  text-wrap: pretty;
}
.hl {
  position: relative;
  color: var(--brand-500);
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  height: 0.28em;
  border-radius: 999px;
  background: var(--brand-100);
  z-index: -1;
}

/* ================================================================== Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  /* faint dotted paper */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(122 110 100 / 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 {
  top: -120px;
  right: -60px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, var(--brand-200), transparent);
}
.blob-2 {
  bottom: -160px;
  left: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, #ffe2c7, transparent);
  animation-delay: -6s;
}
.blob-3 {
  top: 30%;
  left: 40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, rgb(10 124 255 / 0.12), transparent);
  animation-delay: -12s;
}
@keyframes drift {
  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(44px, 7.4vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero h1 .line {
  display: block;
}
.hero-lede {
  margin: 24px 0 0;
  max-width: 540px;
  color: var(--ink-600);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 600;
}
.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-notes .i {
  width: 16px;
  height: 16px;
  color: var(--emerald-500);
  stroke-width: 2.6;
}

.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* --- The stage: a chat being scanned into an invoice */

.stage {
  position: relative;
  min-height: 600px;
  animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chat {
  position: absolute;
  top: 0;
  left: 0;
  width: min(310px, 56%);
  overflow: hidden;
  border: 1px solid var(--ink-150);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-float);
  transform: rotate(-3deg);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink-100);
  background: #f5f5f7;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.chat-top strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.chat-top small {
  color: var(--ink-400);
  font-size: 12px;
}
.chat-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.chat-time {
  margin-bottom: 4px;
  color: var(--ink-400);
  font-size: 11px;
  text-align: center;
}
.bubble {
  max-width: 82%;
  padding: 9px 14px;
  border-radius: 20px;
  background: #f0f0f0;
  font-size: 14.5px;
  line-height: 1.35;
}
.bubble.me {
  align-self: flex-end;
  background: var(--messenger);
  color: #fff;
}
.bubble.order {
  position: relative;
  font-weight: 500;
}
.bubble mark {
  border-radius: 6px;
  background: transparent;
  color: inherit;
  animation: mark-in 0.5s both;
}
.bubble mark:nth-of-type(1) {
  animation-delay: 1.2s;
}
.bubble mark:nth-of-type(2) {
  animation-delay: 1.45s;
}
.bubble mark:nth-of-type(3) {
  animation-delay: 1.7s;
}
@keyframes mark-in {
  to {
    background: rgb(222 111 46 / 0.2);
    box-shadow: 0 0 0 2px rgb(222 111 46 / 0.2);
  }
}
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brand-400);
  box-shadow: 0 0 24px 6px rgb(231 141 83 / 0.55);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%,
  100% {
    top: 0%;
  }
  50% {
    top: calc(100% - 3px);
  }
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--brand-500);
}
.corner.tl {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 10px;
}
.corner.tr {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 10px;
}
.corner.bl {
  bottom: 8px;
  left: 8px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 10px;
}
.corner.br {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 10px;
}

.invoice {
  position: absolute;
  right: 0;
  top: 150px;
  width: min(300px, 54%);
  padding: 22px 22px 0;
  border: 1px solid var(--ink-150);
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: var(--shadow-float);
  transform: rotate(2deg);
  animation: slide-in 0.9s 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.invoice::after {
  /* torn receipt edge */
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -11px;
  height: 12px;
  background:
    linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 16px 12px repeat-x,
    linear-gradient(225deg, #fff 50%, transparent 50%) 0 0 / 16px 12px repeat-x;
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translate(24px, 32px) rotate(6deg);
  }
}
.inv-head {
  text-align: center;
}
.inv-head strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.inv-head small {
  color: var(--ink-400);
  font-size: 12px;
}
.inv-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-200);
  color: var(--ink-500);
  font-size: 12px;
}
.inv-meta b {
  color: var(--ink-900);
}
.inv-lines {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.inv-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  animation: line-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.inv-lines li:nth-child(1) {
  animation-delay: 1.5s;
}
.inv-lines li:nth-child(2) {
  animation-delay: 1.75s;
}
.inv-lines li:nth-child(3) {
  animation-delay: 2s;
}
.inv-lines small {
  display: block;
  color: var(--ink-400);
  font-size: 11.5px;
}
@keyframes line-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}
.inv-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ink-900);
  color: #fff;
  animation: pop 0.5s 2.35s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.inv-total span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.inv-total strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
.inv-foot {
  padding-bottom: 14px;
  color: var(--ink-500);
  font-size: 12px;
  text-align: center;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ink-150);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lift);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  animation:
    pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both,
    bob 5s ease-in-out infinite;
}
.float-chip .dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
}
.float-chip .dot .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}
.chip-matched {
  top: 74%;
  left: 2%;
  animation-delay: 2.6s, 3s;
}
.chip-matched .dot {
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.chip-learn {
  top: 4%;
  right: 0;
  animation-delay: 2.9s, 3.3s;
}
.chip-learn .dot {
  background: var(--brand-50);
  color: var(--brand-600);
}
.chip-learn em {
  color: var(--ink-400);
  font-style: normal;
  font-weight: 600;
}
@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-lede {
    margin-inline: auto;
  }
  .hero-ctas,
  .hero-notes {
    justify-content: center;
  }
  .stage {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}
@media (max-width: 520px) {
  /* Stack the two cards; the highlighted words already show the matching */
  .stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 12px;
  }
  .chat {
    position: relative;
    width: 88%;
  }
  .invoice {
    position: relative;
    top: auto;
    width: 86%;
    margin: -36px 0 0 auto;
  }
  .float-chip {
    display: none;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
}

/* ================================================================== Marquee */

.marquee {
  border-block: 1px solid var(--ink-150);
  background: #fff;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
}
.marquee-label {
  flex-shrink: 0;
  padding-left: var(--gutter);
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-list {
  display: flex;
  width: max-content;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 38s linear infinite;
}
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink-50);
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.marquee:hover .marquee-list {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 6px));
  }
}

/* ================================================================== Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.step-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  background: linear-gradient(180deg, var(--ink-50), #fff);
  border-bottom: 1px solid var(--ink-100);
}
.step-body {
  padding: 24px 26px 28px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.step h3 {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.step p {
  margin: 8px 0 0;
  color: var(--ink-600);
}

/* mini illustrations */
.mini-sources {
  display: flex;
  gap: 12px;
}
.mini-src {
  display: grid;
  place-items: center;
  width: 64px;
  height: 84px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ink-150);
  box-shadow: var(--shadow-card);
  color: var(--ink-600);
}
.mini-src:nth-child(1) {
  transform: rotate(-8deg) translateY(6px);
  color: var(--messenger);
}
.mini-src:nth-child(2) {
  transform: translateY(-6px);
  background: #fbf6e4;
  color: #1f3a8a;
}
.mini-src:nth-child(3) {
  transform: rotate(8deg) translateY(6px);
}
.mini-src .i {
  width: 26px;
  height: 26px;
}

.mini-review {
  display: grid;
  gap: 8px;
  width: 230px;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ink-150);
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.mini-row.check {
  border-color: #fcd9a8;
  box-shadow: 0 0 0 4px #fff6e9;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-ok {
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.badge-check {
  background: var(--amber-100);
  color: var(--amber-800);
}
.badge-due {
  background: var(--rose-50);
  color: var(--rose-600);
}
.badge-part {
  background: var(--sky-50);
  color: var(--sky-700);
}

.mini-send {
  display: grid;
  grid-template-columns: repeat(2, 96px);
  gap: 8px;
}
.mini-send span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.mini-send span:first-child {
  grid-column: 1 / -1;
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.mini-send .i {
  width: 15px;
  height: 15px;
}

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

/* ================================================================== Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.tile h3 {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tile p {
  margin: 8px 0 0;
  color: var(--ink-600);
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.span-2 {
  grid-column: span 2;
}

.tile-dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.tile-dark p {
  color: var(--ink-300);
}
.tile-dark .tile-icon {
  background: rgb(255 255 255 / 0.08);
  color: var(--brand-300);
}
.tile-brand {
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  border-color: var(--brand-600);
  color: #fff;
}
.tile-brand p {
  color: var(--brand-100);
}
.tile-brand .tile-icon {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

/* Taglish parsing demo */
.parse {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.parse-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.parse-in {
  padding: 10px 14px;
  border-radius: 16px;
  background: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
}
.parse-arrow {
  color: var(--brand-400);
}
.parse-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ink-150);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.parse-out small {
  color: var(--ink-400);
  font-weight: 600;
}
.parse-row.fix .parse-out {
  border-color: var(--brand-200);
  background: var(--brand-50);
}

/* nickname cloud */
.nicks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.nick {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 700;
}
.nick.to {
  background: var(--ink-900);
  color: #fff;
}

/* to-collect list */
.collect {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.collect-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.06);
  font-size: 14px;
}
.collect-row .who {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}
.collect-row .who small {
  display: block;
  color: var(--ink-400);
  font-weight: 500;
}
.collect-row strong {
  font-size: 15px;
}
.collect-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  padding: 0 4px;
  color: var(--ink-300);
  font-size: 14px;
}
.collect-total strong {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* QR tile */
.qr {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  width: 116px;
  margin-top: 24px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}
.qr i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--ink-900);
}
.qr i.o {
  background: transparent;
}
.pay-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.pay-pills span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  font-size: 12px;
  font-weight: 700;
}

/* batch prep list */
.prep {
  margin-top: 24px;
  border: 1px solid var(--ink-150);
  border-radius: 18px;
  overflow: hidden;
}
.prep-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--ink-50);
  font-size: 14px;
  font-weight: 800;
}
.prep-head small {
  color: var(--ink-500);
  font-weight: 600;
}
.prep ul {
  margin: 0;
  padding: 4px 16px 8px;
  list-style: none;
}
.prep li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ink-150);
  font-size: 14px;
}
.prep li:last-child {
  border-bottom: 0;
}
.prep li b {
  font-variant-numeric: tabular-nums;
}

/* closing bars */
.bars {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.bar {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand-500);
  transform-origin: left;
  transform: scaleX(var(--w));
  transition: transform 1.2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .tile:not(.is-visible) .bar-fill {
  transform: scaleX(0);
}
.bar span:last-child {
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.mini-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
}
.mini-list .i {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--emerald-500);
  stroke-width: 2.6;
}
.tile-dark .mini-list .i {
  color: var(--brand-300);
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 1;
  }
  .bento .wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento .tile {
    grid-column: auto;
  }
  .parse-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .parse-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ================================================================== Before / after */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
}
.compare-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.compare-card ol {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: c;
}
.compare-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  counter-increment: c;
  font-size: 16px;
}
.compare-card li::before {
  content: counter(c);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}
.before {
  border: 1px dashed var(--ink-300);
  background: var(--ink-100);
  color: var(--ink-600);
}
.before li::before {
  background: var(--ink-200);
  color: var(--ink-600);
}
.before li {
  text-decoration: line-through;
  text-decoration-color: rgb(122 110 100 / 0.35);
}
.after {
  border: 1px solid var(--brand-200);
  background: #fff;
  box-shadow: 0 0 0 6px var(--brand-50), var(--shadow-lift);
}
.after li::before {
  background: var(--brand-500);
  color: #fff;
}
.after h3 .i {
  color: var(--brand-500);
}
@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* ================================================================== Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  gap: 20px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--ink-150);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.plan-featured {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 6px var(--brand-50), var(--shadow-lift);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.plan-price {
  margin: 20px 0 0;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price small {
  color: var(--ink-500);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.plan > p {
  margin: 12px 0 0;
  color: var(--ink-600);
}
.plan .mini-list {
  flex: 1;
  margin-bottom: 28px;
}
.plan-soon {
  background: linear-gradient(160deg, #fff, var(--ink-50));
}
.plan-soon .plan-price {
  color: var(--ink-400);
  font-size: 40px;
}
.plan-soon .mini-list .i {
  color: var(--ink-400);
}
.btn[aria-disabled='true'] {
  cursor: default;
  opacity: 0.7;
  box-shadow: none;
}
@media (max-width: 1080px) {
  .plans {
    grid-template-columns: minmax(0, 480px);
  }
}
.plans-note {
  margin: 20px auto 0;
  max-width: 640px;
  color: var(--ink-500);
  font-size: 14px;
  text-align: center;
}

/* ================================================================== FAQ */

.faq {
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--ink-150);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  color: var(--ink-400);
  transition: transform 0.25s;
}
.faq details[open] summary .i {
  transform: rotate(45deg);
  color: var(--brand-500);
}
.faq details p {
  margin: -6px 0 22px;
  padding: 0 4px;
  max-width: 700px;
  color: var(--ink-600);
}
.faq details a {
  color: var(--brand-600);
  font-weight: 600;
}

/* ================================================================== Final CTA */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) clamp(24px, 6vw, 72px);
  border-radius: 40px;
  background: var(--ink-900);
  color: #fff;
  text-align: center;
}
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
}
.cta::before {
  top: -160px;
  left: -80px;
  width: 460px;
  height: 460px;
  background: rgb(222 111 46 / 0.55);
}
.cta::after {
  right: -120px;
  bottom: -200px;
  width: 520px;
  height: 520px;
  background: rgb(231 141 83 / 0.3);
}
.cta h2 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}
.cta p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--ink-300);
  font-size: 18px;
}
.cta .hero-ctas {
  justify-content: center;
}
.cta .btn-ghost {
  color: #fff;
}
.cta .btn-ghost:hover {
  background: rgb(255 255 255 / 0.1);
}
