/* Teo — hand-written layer on top of the compiled Tailwind build (style.css).
 *
 * Holds the parts rebuilt from the Figma file ("Landing page" / 1920w light):
 *   nav     look and behaviour from concept teo-lp-1 (full-width bar, clear at the
 *           top, frosted once scrolled, follows the band under it); content,
 *           mega menus and the mobile sheet stay the Tailwind markup of this build
 *   hero    copy, source tiles and the photo stage with the Transfers app
 *   sources the marquee strip from teo-lp-1
 *   problem, how it works, features (documents app, graph, counterparty, close), ask, bills
 *
 * Values are Figma's, 1:1; fractional ones are rounded to whole pixels. The stage is
 * drawn in the app's own design units (Figma value ÷ 0.784: 14 px text, 48 px rows)
 * and scaled as one piece, so at 1200 px it matches the Figma frame.
 */

:focus-visible {
  outline-color: #3385ff;
}

:root {
  /* the compiled theme inlines the display stack instead of emitting the variable */
  --font-display: "Google Sans Flex Variable", "Google Sans Flex", "Geist Variable", system-ui, sans-serif;
  --nav-h: 68px;
  --hero-bg: #f5f4f1;
  --amber-hover: #f6b04f;
  --amber-press: #e0922e;
  /* one elevation for every floating source tile and chip */
  --tile-shadow: 0 0 0 1px rgb(28 25 23 / 0.06), 0 12px 24px -8px rgb(28 25 23 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.9);
}

/* ═════════════ Nav ═════════════ */

.site-nav {
  --nav-bg: var(--canvas);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--fg);
  transition: color 300ms var(--ease-out);
}
/* dark bands: the bar and its links flip, the mega menus stay light panels */
.site-nav[data-theme="dark"] {
  --nav-bg: #0c0a09;
  --fg: #fafaf9;
  --fg-2: #a8a29e;
  --fg-3: #78716c;
  --line: rgb(255 255 255 / 0.08);
}
.site-nav[data-theme="dark"] [id^="menu-"] {
  --fg: #0c0a09;
  --fg-2: #57534e;
  --fg-3: #8a837c;
  --line: rgb(12 10 9 / 0.08);
}
/* the frosted bar only exists once the page has scrolled */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--nav-bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), background-color 300ms var(--ease-out);
}
.site-nav[data-scrolled="true"]::before {
  opacity: 1;
}

.nav-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  max-width: 1264px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.nav-logo {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  color: var(--fg);
}
.nav-logo svg {
  height: 26px;
  width: auto;
}
.nav-links {
  grid-column: 2;
}
.nav-links > li > a,
.nav-links > li > button {
  font-family: var(--font-display);
  letter-spacing: 0;
}
/* hover and the open menu put a pill behind the item; the bar itself stays clear */
.nav-links > li > a:hover,
.nav-links > li > button:hover {
  background: rgb(12 10 9 / 0.05);
}
.site-nav[data-theme="dark"] .nav-links > li > a:hover,
.site-nav[data-theme="dark"] .nav-links > li > button:hover,
.site-nav[data-theme="dark"] .nav-links > li > button[aria-expanded="true"] {
  background: rgb(255 255 255 / 0.07);
}
.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-signin {
  height: 36px;
  align-items: center;
  padding-inline: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--fg);
  opacity: 0.86;
  transition: opacity 160ms var(--ease-out);
}
.nav-signin:hover {
  opacity: 1;
}
.nav-cta {
  display: none;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  border-radius: 12px;
  background: var(--teo-accent);
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.07px;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.nav-cta:hover {
  background: var(--amber-hover);
}
.nav-cta:active {
  background: var(--amber-press);
  transform: translateY(1px) scale(0.99);
}
@media (min-width: 64rem) {
  .nav-cta {
    display: inline-flex;
  }
}
.site-nav [data-mobile-toggle] {
  color: var(--fg);
}

/* ═════════════ Hero ═════════════ */

.hero {
  position: relative;
  overflow: clip;
  background: var(--hero-bg);
}

.hero-copy {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1168px;
  margin-inline: auto;
  padding: 180px 32px 0;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 28px;
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.8)) padding-box,
    linear-gradient(90deg, #3385ff, #f59921) border-box;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #1c1917;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  font-variation-settings: "GRAD" 58, "ROND" 35;
  white-space: nowrap;
}
.hero-pill img {
  width: 16px;
  height: 16px;
  padding: 4px;
  transition: transform 240ms var(--ease-out);
}
.hero-pill:hover img {
  transform: translate(1px, -1px);
}
.hero-title {
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 6rem);
  font-weight: 500;
  line-height: 1.0834;
  letter-spacing: -0.0104em;
  font-variation-settings: "GRAD" 58, "ROND" 35;
  text-wrap: balance;
}
.hero-lead {
  max-width: 683px;
  margin-top: 26px;
  color: #57534e;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  font-variation-settings: "GRAD" 0, "ROND" 0;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.08px;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.hero-btn:active {
  transform: translateY(1px) scale(0.99);
}
.hero-btn-primary {
  background: #0c0a09;
  color: #fafaf9;
}
.hero-btn-primary:hover {
  background: #1e1915;
}
.hero-btn-secondary {
  padding-inline: 24px;
  background: rgb(12 10 9 / 0.05);
  color: #0c0a09;
}
.hero-btn-secondary:hover {
  background: rgb(12 10 9 / 0.09);
}

/* Source tiles. The layout is the 1920 × 1000 Figma frame, placed in the gutter beside
   the copy rather than across the viewport, so no tile reaches the text at any width:
   --f is the distance from the outer edge as a share of that gutter, --y the px offset
   from the top of the hero. The copy is as wide as the heading (725 px at 96 px type)
   or the lead, whichever is wider. The two payment cards hang over the stage edges.
   Past 1920 px the frame stops growing and stays centred. Phones use --xs / --ys.
   Visible: phones and small tablets 4 · from 896 px 6 · from 1440 px all 10.
   The tiles rest still; only the scroll story moves them. */
.hero-tiles {
  --copy: max(calc(clamp(2.5rem, 1.1rem + 5.2vw, 6rem) * 7.55), min(683px, 100% - 40px));
  --gutter: max(0px, (100% - var(--copy)) / 2);
  --stage-edge: max(32px, (100% - 1200px) / 2);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: 1920px;
  height: 1000px;
  margin-inline: auto;
  z-index: 20;
  pointer-events: none;
}
.htile {
  position: absolute;
  left: var(--xs);
  top: var(--ys);
  z-index: var(--z, 25);
  transform: translate(-50%, -50%);
}
.htile-move {
  will-change: transform;
}
.htile-card,
.htile-extra,
.htile-wide {
  display: none;
}
.htile-face {
  transform: rotate(var(--r, 0deg)) scale(var(--ts, 0.625));
}
/* below 56rem the gutter is too narrow: tablets keep the phone layout */
@media (min-width: 56rem) {
  .htile {
    left: calc(var(--gutter) * var(--f));
    top: var(--y);
  }
  .htile.is-right {
    left: calc(100% - var(--gutter) * var(--f));
  }
  .htile-extra {
    display: block;
  }
  .htile-face {
    --ts: 0.75;
  }
}
@media (min-width: 64rem) {
  .htile-face {
    --ts: 0.875;
  }
}
@media (min-width: 90rem) {
  .htile-card,
  .htile-wide {
    display: block;
  }
  /* Figma: the cards overlap the stage by ~60 px; kept at least 8 px inside the viewport */
  .htile-card {
    left: max(113px, var(--stage-edge) - 46px);
  }
  .htile-card.is-right {
    left: calc(100% - max(111px, var(--stage-edge) - 38px));
  }
  .htile-face {
    --ts: 1;
  }
}

.gtile {
  --s: 64px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  overflow: hidden;
  border-radius: var(--rad, 16px);
  background: #fff;
  box-shadow: var(--tile-shadow);
}
/* the soft top sheen every Figma tile carries */
.gtile::before {
  content: "";
  position: absolute;
  inset: 4% 8% 50% 8%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(25 25 25 / 0.9), transparent);
  opacity: 0.1;
}
.gtile img {
  position: relative;
  display: block;
  width: 44%;
  height: 44%;
}
.gtile img.is-wide {
  height: auto;
}

/* the two transfer chips: a hairline only, and the same top sheen as the tiles (Figma
   runs it at half strength on the chips) */
.pchip {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 210px;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(28 25 23 / 0.06);
  font-family: var(--font-sans);
  text-align: left;
}
.pchip::before {
  content: "";
  position: absolute;
  inset: 3px 4px 19px 3px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(25 25 25 / 0.9), transparent);
  opacity: 0.05;
}
.pchip-logo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.pchip-logo img {
  width: 15px;
  height: 15px;
}
.pchip-t {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.pchip-t em {
  color: #78716c;
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
  white-space: nowrap;
}
.pchip-t b {
  color: #0c0a09;
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: -0.28px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pchip-dir {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.pchip-dir img {
  width: 12px;
  height: 12px;
}

/* ═════════════ Stage: the Transfers app on the canyon photo ═════════════
   .hero-canvas is drawn at the app's design size (the 1200 × 638 Figma frame ÷ 0.784)
   and scaled to the stage by JS (--k). The stage crops the bottom of the app, like
   the Figma frame does. */

.hero-stage-wrap {
  position: relative;
  z-index: 10;
  max-width: 1264px;
  margin: 120px auto 0;
  padding: 0 32px 6px;
}
/* The stage clips twice: overflow for layout, and clip-path, which also cuts composited
   layers (the app's backdrop blur) while the stage scales. Without it some engines let
   the app run past the rounded bottom edge mid-animation. clip-path also makes the stage
   the backdrop root, so the blur only ever reads the photo. */
.hero-stage {
  --stage-r: 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1200 / 638;
  border-radius: var(--stage-r);
  clip-path: inset(0 round var(--stage-r));
  background: #3a2418;
  transform-origin: 50% 0;
}
.hero-canvas {
  --k: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 1530px;
  height: 814px;
  transform: scale(var(--k));
  transform-origin: 0 0;
}
.hero-stage-photo {
  position: absolute;
  left: -92px;
  top: -48px;
  width: 1714px;
  height: 912px;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.app {
  position: absolute;
  left: 94px;
  top: 61px;
  display: flex;
  width: 1349px;
  /* runs well past the stage's bottom edge; the stage crops it */
  height: 1000px;
  overflow: hidden;
  border-radius: 20px;
  background: rgb(241 240 238 / 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}
.app svg {
  display: block;
  flex-shrink: 0;
}

/* sidebar */
.app-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52px;
  flex-shrink: 0;
}
.app-logo {
  display: grid;
  place-items: center;
  height: 64px;
}
.app-menu {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-ib {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.app-ib.is-active {
  background: rgb(0 0 0 / 0.05);
}
.app-sep {
  width: 32px;
  height: 1px;
  background: rgb(26 26 24 / 0.1);
}
.app-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
}
.app-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #cecbf6;
  font-size: 14px;
  font-weight: 600;
}

/* page */
.app-page {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 6px 6px 6px 0;
}
.app-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  flex-shrink: 0;
  padding-inline: 16px;
  border-bottom: 1px solid #e7e5e4;
}
.app-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 8px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-weight: 500;
  white-space: nowrap;
}
.app-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 20px;
}
.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-tools {
  display: flex;
  gap: 16px;
}
.app-filters {
  display: flex;
  gap: 8px;
}
.app-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 140px;
  height: 32px;
  padding-inline: 8px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  color: #78716c;
  white-space: nowrap;
}
.app-deco {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* table */
.app-tr {
  position: relative;
  display: grid;
  grid-template-columns: 39px 32px 265px 131px 120px 156px 124px 179px 154px 51px;
  height: 48px;
  border-bottom: 1px solid #e7e5e4;
}
.app-th {
  height: 36px;
  font-weight: 500;
}
/* the stage crops just below the last row; without its rule the white page simply runs on */
.app-table > .app-tr:last-child {
  border-bottom: 0;
}
.app-th .c {
  gap: 6px;
}
.c {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-inline: 12px;
  white-space: nowrap;
}
.app-tr:not(.app-th) .c:not(.c-check):not(.c-more) {
  border-right: 1px solid #f5f5f4;
}
.c-check {
  padding-inline: 8px;
}
.c-dir {
  padding: 0 8px 0 4px;
}
.c-amt {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  font-variant-numeric: tabular-nums;
}
.app-th .c-amt {
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}
.c-amt small {
  color: #78716c;
  font-size: 12px;
  line-height: 18px;
}
.c-more {
  justify-content: center;
  padding-inline: 8px;
}
.app-check {
  width: 14px;
  height: 14px;
  margin: 1px;
  border: 1px solid #d6d3d1;
  border-radius: 4px;
  background: #fff;
}
/* direction badge: a circle (Figma draws it 20 × 22; it reads as a pill at this size) */
.app-dir {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
}
.app-dir.is-out {
  background: #ffe2e2;
}
.app-dir.is-in {
  background: #dcfce7;
}
.app-av {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
}
.app-av-i {
  display: grid;
  place-items: center;
  background: #e7e5e4;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
}
.app-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-name.is-unread {
  font-weight: 500;
}
.app-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #3b82f6;
}
.app-badge,
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding-inline: 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.app-badge {
  border: 1px solid #e7e5e4;
  background: rgb(255 255 255 / 0.1);
  color: #1c1917;
}
.app-chip {
  background: var(--bg);
  color: var(--fg);
}
.app-trunc {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* skeleton layer the scroll story fades out, row by row */
.app-skel {
  position: absolute;
  inset: 0;
  border: 0;
  background: #fff;
  pointer-events: none;
}
.app-skel .c {
  border-color: transparent !important;
}
.sk {
  display: block;
  height: 8px;
  max-width: 100%;
  border-radius: 999px;
  background: rgb(28 25 23 / 0.07);
}
.sk-pill {
  height: 23px;
}
.sk-sq {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
}
.sk-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.sk-dot {
  flex-shrink: 0;
  width: 20px;
  max-width: none;
  height: 20px;
}

.app-toast {
  position: absolute;
  right: 124px;
  bottom: 40px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding-inline: 16px;
  border-radius: 12px;
  background: #1c1917;
  box-shadow: 0 12px 32px -8px rgb(0 0 0 / 0.45);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}
.app-toast-ok {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #22c55e;
  color: #1c1917;
}

/* phones: a narrower canvas with the first columns only */
@media (max-width: 47.99rem) {
  .hero-copy {
    padding-top: 128px;
    padding-inline: 20px;
  }
  .hero-pill {
    margin-bottom: 20px;
    font-size: 13px;
  }
  .hero-title br {
    display: none;
  }
  .hero-stage-wrap {
    margin-top: 56px;
    padding-inline: 12px;
  }
  .hero-stage {
    --stage-r: 24px;
    aspect-ratio: 640 / 560;
  }
  .hero-canvas {
    width: 640px;
    height: 560px;
  }
  .hero-stage-photo {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-position: 38% 50%;
  }
  .app {
    left: 12px;
    top: 20px;
    width: 616px;
  }
  .app-tr {
    grid-template-columns: 39px 32px 1fr 120px 140px;
  }
  .c-date,
  .c-type,
  .c-ref,
  .c-ent,
  .c-more,
  .app-btn.is-wide {
    display: none;
  }
  .app-tr:not(.app-th) .c-amt {
    border-right: 0;
  }
  .app-toast {
    display: none;
  }
}

/* ═════════════ The problem (Figma "Section - The problem") ═════════════
   Copy from teo-lp-1, the scroll-lit words and popping tiles from this build's
   manifesto. The tiles are the hero's .gtile, sized in em so they follow the type. */

.problem {
  position: relative;
  background: #fff;
}
.problem-inner {
  max-width: 1264px;
  margin-inline: auto;
  padding: 200px 32px;
}
.problem-text {
  max-width: 1200px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 500;
  /* 72 px lines 4 px apart at 56 px */
  line-height: 1.357;
  font-variation-settings: "GRAD" 58, "ROND" 35;
}
/* Figma: 40 px below the block, set on a 64 px line */
.problem-end {
  display: block;
  margin-top: 0.5em;
  line-height: 1.143;
}
.gtile-inline {
  --s: 1.08em;
  --rad: 0.3em;
  --tile-shadow: inset 0 0 0 1px rgb(12 10 9 / 0.08);
  display: inline-grid;
  vertical-align: middle;
  position: relative;
  top: -0.06em;
}
.gtile-inline img {
  width: 58%;
  height: 58%;
}
.gtile-inline img.is-wide {
  height: auto;
}
@media (max-width: 47.99rem) {
  .problem-inner {
    padding: 120px 20px;
  }
}

/* ═════════════ How it works (Figma "Section - How it works") ═════════════
   Same concept as this build: steps on the left, one sticky stage on the right. Copy,
   type and the stage are Figma's. The stage fits 600 px of drawer space into its
   column (0.945 at 1440+), so the .rc sizes below are the app's own. */

.hiw {
  background: #fff;
  padding-block: 112px;
}
@media (min-width: 64rem) {
  .hiw {
    padding-block: 0;
  }
  .hiw [data-step] {
    min-height: 66vh;
  }
  /* the first step also covers the stage settling in. The last one is as tall as the
     stage, so the stage lets go exactly when step 4 sits centred beside it. */
  .hiw [data-step]:first-child {
    min-height: 88vh;
  }
  .hiw [data-step]:last-child {
    min-height: min(760px, calc(100vh - 128px));
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hiw-copy {
  padding-right: 32px;
}
.hiw-label {
  color: #8a837c;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hiw-title {
  margin-top: 13px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.143;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.hiw-text {
  max-width: 473px;
  margin-top: 12px;
  color: #57534e;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 28px;
}
.hiw-step-label {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 1.44px;
}

/* stage: the drawer on the blurred orb */
.rc {
  position: relative;
  width: 440px;
  margin-inline: auto;
  color: #0c0a09;
  font-family: var(--font-sans);
  text-align: left;
}
.rc img,
.rc svg {
  display: block;
  flex-shrink: 0;
}
.rc-drawer {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 8px rgb(241 240 238 / 0.5);
}
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
}
.rc-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 6px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  white-space: nowrap;
}
.rc-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
}
.rc-body {
  padding: 16px 20px 0;
}
.rc-amount {
  display: flex;
  min-height: 30px;
  align-items: flex-end;
}
.rc-amount .rc-in {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}
.rc-amount b {
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rc-amount span span {
  color: #78716c;
  font-size: 13px;
  line-height: 20px;
}
.rc-vendor {
  display: flex;
  min-height: 21px;
  align-items: center;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}
.rc-date {
  display: flex;
  min-height: 21px;
  align-items: center;
  color: #78716c;
  font-size: 13px;
  line-height: 21px;
}
.rc-dl {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}
.rc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 21px;
  font-size: 14px;
  line-height: 21px;
}
.rc-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #57534e;
}
.rc-row dd {
  text-align: right;
}
.rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding-inline: 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
}
.rc-muted {
  color: #78716c;
}
.rc-ok {
  color: #15803d;
}
.rc-skel {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5f5f4, #e7e5e4, #f5f5f4) 0 0 / 200% 100%;
  animation: rc-shimmer 1.4s linear infinite;
}
.rc-amount .rc-skel {
  height: 20px;
}
@keyframes rc-shimmer {
  to {
    background-position: -200% 0;
  }
}
.rc-in {
  animation: rc-in 0.5s var(--ease-out) both;
}
@keyframes rc-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* documents */
.rc-docs {
  margin-top: 20px;
  padding: 20px;
  border-top: 1px solid #e7e5e4;
}
.rc-docs-head {
  display: flex;
  margin-bottom: 6px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e5e4, 0 1px 2px rgb(0 0 0 / 0.05);
  color: #0c0a09;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.rc-btn.is-pulse {
  animation: rc-pulse 1.4s ease-out infinite;
}
@keyframes rc-pulse {
  0% {
    box-shadow: inset 0 0 0 1px #e7e5e4, 0 0 0 0 rgb(241 162 58 / 0.55);
  }
  100% {
    box-shadow: inset 0 0 0 1px #e7e5e4, 0 0 0 8px rgb(241 162 58 / 0);
  }
}
.rc-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.7s var(--ease-out), opacity 0.5s var(--ease-out);
}
.rc-collapse.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.rc-collapse-in {
  min-height: 0;
  overflow: hidden;
}
.rc-empty {
  padding-top: 6px;
  color: #78716c;
  font-size: 13px;
  line-height: 20px;
}
.rc-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 6px;
  border-radius: 10px;
  transition: background-color 1s var(--ease-out);
}
.rc-file {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f1f0ee;
}
.rc-file b {
  position: absolute;
  left: 10px;
  bottom: 7px;
  color: #fff;
  font-size: 5px;
  font-weight: 700;
  line-height: 6px;
  letter-spacing: 0.15px;
}
.rc-doc-t {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 17px;
}
.rc-doc-t div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-doc-t small {
  display: block;
  color: #78716c;
  font-size: 12px;
  line-height: 17px;
}
.rc-doc-t em {
  color: #5c5551;
  font-style: normal;
}
.rc-more {
  color: #78716c;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -1px;
}

/* AI suggestion: the app's blue → amber hairline */
/* the gradient rim is heavier at the bottom, like the import banner */
.rc-ai {
  margin-top: 6px;
  padding: 1px 1px 3px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3385ff, #93a8f0 45%, #f5b35c 80%, #f69a21);
}
.rc-ai-in {
  padding: 12px 12px 8px;
  border-radius: 13px;
  background: #fff;
}
.rc-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.rc-ai-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.rc-ai .rc-doc {
  margin-top: 6px;
  padding-inline: 0;
}

/* required documents. Spacing sits on the content, never on .rc-collapse-in: a closed
   collapse is 0 px tall, but padding on it would still show as empty space. */
.rc-reqs {
  margin-top: 12px;
  padding: 14px;
  border-radius: 13px;
  background: #f5f5f4;
}
.rc-reqs p {
  color: #57534e;
  font-size: 13px;
  line-height: 19px;
}
.rc-req {
  display: flex;
  margin-top: 10px;
  align-items: center;
  gap: 10px;
}
.rc-req-t {
  flex: 1;
  font-size: 14px;
  line-height: 17px;
}
.rc-req-t small {
  display: block;
  color: #78716c;
  font-size: 12px;
  line-height: 17px;
  transition: color 0.4s;
}
.rc-req-t small.is-required {
  color: #dc2626;
}
.rc-check {
  --cs: 16px;
  display: grid;
  place-items: center;
  width: var(--cs);
  height: var(--cs);
  flex-shrink: 0;
  border-radius: 999px;
  background: #15803d;
}
.rc-check.is-empty {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #dc2626;
}

/* floating cards */
.rc-float {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.rc-float.is-on {
  opacity: 1;
  transform: none;
}
.rc-at-banner {
  left: -40px;
  top: 12px;
}
.rc-at-banner.is-arriving {
  transform: translate(-16px, -8px) scale(0.98);
}
.rc-at-banner.is-arriving.is-on {
  transform: translate(-8px, -4px);
}
.rc-at-msg {
  left: -40px;
  top: 72px;
}
.rc-banner,
.rc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 13px;
  background: #fff;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}
.rc-banner {
  min-width: 233px;
  border: 1px solid transparent;
  border-bottom-width: 2px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #3385ff, #f59921) border-box;
  box-shadow: 0 12px 28px -12px rgb(28 25 23 / 0.28);
}
.rc-card {
  min-width: 233px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 12px 28px -10px rgb(28 25 23 / 0.35);
}
.rc-banner-logo,
.rc-found-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #191c1f;
}
.rc-found-logo {
  background: #f5f5f4;
}
.rc-banner-t {
  display: grid;
  flex: 1;
}
.rc-banner-t > span {
  color: #78716c;
}
.rc-banner-t b {
  font-weight: 500;
}
.rc-spin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid #e7e5e4;
  border-top-color: #0c0a09;
  border-radius: 999px;
  animation: rc-spin 0.9s linear infinite;
}
@keyframes rc-spin {
  to {
    transform: rotate(360deg);
  }
}
.rc-msg {
  display: grid;
  gap: 13px;
  width: 300px;
  padding: 13px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 18px 40px -12px rgb(28 25 23 / 0.16);
  font-size: 13px;
  line-height: 18px;
}
.rc-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #78716c;
}
.rc-msg-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rc-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #f5f5f4;
  font-size: 10px;
  font-weight: 600;
}
.rc-msg-body b {
  font-weight: 600;
}
.rc-msg-body p {
  margin-top: 2px;
  color: #57534e;
}
.rc-msg-body strong {
  color: #0c0a09;
  font-weight: 500;
}
.rc-msg-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f5f5f4;
}
.rc-msg-ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
}
.rc-msg-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* phones: the cards sit under the drawer */
.rc.is-compact .rc-floats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* ═════════════ Features (Figma "Section - Features") ═════════════
   The heading, the documents app on the orb and three rows (graph, counterparty, close).
   Every mockup is drawn at its Figma size inside a canvas the stage scales as one piece
   (--k, set by initStages). The documents app is a 0.9013 frame in Figma, so it is drawn
   in the app's own units (16 px icons, 52 px bars) and scaled by that factor. */

.feat {
  background: #fff;
}
.feat-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 144px 32px;
}
.feat-head {
  display: grid;
  grid-template-columns: minmax(0, 581fr) minmax(0, 531fr);
  align-items: end;
  gap: 64px;
}
.feat-head-l {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.feat-title {
  max-width: 581px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.125;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.feat-lead {
  justify-self: end;
  max-width: 531px;
  padding-block: 32px;
  color: #57534e;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.95rem + 0.5vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: 0.008em;
  text-align: right;
  text-wrap: pretty;
}
.feat-rows {
  display: grid;
  gap: 160px;
  margin-top: 180px;
}
.feat-row {
  display: grid;
  grid-template-columns: minmax(0, 472fr) minmax(0, 640fr);
  align-items: center;
  gap: 64px;
}
.feat-row.is-flip {
  grid-template-columns: minmax(0, 640fr) minmax(0, 472fr);
}
.feat-row.is-flip .fstage {
  order: -1;
}
.feat-h3 {
  max-width: 472px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 1.9vw, 3rem);
  font-weight: 500;
  line-height: 1.0834;
  letter-spacing: -1px;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.feat-p {
  max-width: 472px;
  margin-top: 20px;
  color: #57534e;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 28px;
}
.feat-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
}
.feat-list svg {
  flex-shrink: 0;
}
@media (max-width: 63.99rem) {
  .feat-inner {
    padding-block: 112px;
  }
  .feat-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feat-lead {
    justify-self: start;
    padding-block: 0;
    text-align: left;
  }
  .feat-rows {
    gap: 112px;
    margin-top: 112px;
  }
  .feat-row,
  .feat-row.is-flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feat-row.is-flip .fstage {
    order: 0;
  }
}
@media (max-width: 47.99rem) {
  .feat-inner {
    padding: 96px 20px;
  }
  .feat-rows {
    gap: 88px;
    margin-top: 88px;
  }
}

/* shared: stages and the canvases they scale */
.dstage-wrap {
  margin-top: 64px;
}
.dstage,
.fstage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* both grow from the top edge on scroll (initStageGrow), like the hero stage */
.dstage,
.astage {
  transform-origin: 50% 0;
}
.dstage {
  aspect-ratio: 1176 / 693;
  border-radius: 28px;
  clip-path: inset(0 round 28px);
  /* Figma crops the orb to its middle 57 % and stretches it over a 1176 × 1192 frame */
  background: #f4f3f1 url(../photo/orb.jpg) 50% 0 / 176.4% 172% no-repeat;
}
.fstage {
  aspect-ratio: 640 / 538;
  border-radius: 32px;
  background: #ecebe7;
}
.dstage-canvas,
.fstage-canvas,
.astage-canvas {
  --k: 1;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  transform: scale(var(--k));
  transform-origin: 0 0;
}
.dstage-canvas {
  width: 1176px;
  height: 693px;
}
.fstage-canvas {
  width: 640px;
  height: 538px;
}
.dapp svg,
.fcard svg,
.cl-floats svg {
  display: block;
  flex-shrink: 0;
}

/* document type switch: a frosted segment, the white pill slides to the active tab */
.dseg {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.4);
}
.dseg-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: var(--w, 100px);
  border-radius: 8px;
  background: #fff;
  transform: translateX(var(--x, 2px));
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
}
.dseg-tab {
  position: relative;
  z-index: 1;
  height: 28px;
  padding-inline: 8px;
  border-radius: 8px;
  color: #57534e;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.dseg-tab:hover {
  color: #0c0a09;
}
.dseg-tab[aria-selected="true"] {
  color: #0c0a09;
  font-weight: 500;
}
.dseg-tab:focus-visible {
  outline: 2px solid #3385ff;
  outline-offset: 1px;
}

/* the documents app: the hero's shell (sidebar classes are shared), Documents active */
.dapp {
  position: absolute;
  left: 80px;
  top: 80px;
  display: flex;
  width: 1127px;
  height: 1080px;
  overflow: hidden;
  border-radius: 27px;
  background: rgb(241 240 238 / 0.96);
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  transform: scale(0.9013);
  transform-origin: 0 0;
}
.dapp-in {
  display: flex;
  flex: 1;
  min-width: 0;
}
.dapp-page {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
  padding: 9px 9px 9px 0;
}
.dbtn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px #d6d3d1;
}

/* file preview */
.dv {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 620px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.dv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
  flex-shrink: 0;
  padding-inline: 16px;
  border-bottom: 1px solid #e7e5e4;
}
.dv-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #78716c;
  white-space: nowrap;
}
.dv-crumb b {
  overflow: hidden;
  color: #0c0a09;
  font-weight: 500;
  text-overflow: ellipsis;
}
.dv-body {
  padding: 36px 43px;
}
/* the scan band: Figma's amber gradient, moved down the page while Teo reads it */
.dv-scan {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 74px;
  background: linear-gradient(180deg, rgb(241 162 58 / 0), rgb(241 162 58 / 0.25), rgb(241 162 58 / 0));
  opacity: 0;
  pointer-events: none;
  transition: top 0.1s linear, opacity 0.4s var(--ease-out);
}
.dv-scan.is-on {
  opacity: 1;
}

/* the paper: a PDF page, Arial at the Figma render size */
.dp {
  position: relative;
  min-height: 690px;
  padding: 47px;
  border: 1px solid rgb(0 0 0 / 0.12);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 7px rgb(0 0 0 / 0.04);
  color: #000;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 8px;
  line-height: 10px;
}
.dp b {
  font-weight: 700;
}
.dp-top,
.dp-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.dp-top {
  min-height: 69px;
}
.dp-co {
  display: block;
  font-size: 10px;
  line-height: 12px;
}
.dp-tag {
  display: block;
  color: #595959;
  font-style: italic;
}
.dp-addr {
  margin-top: 13px;
}
.dp-r {
  text-align: right;
}
.dp-title {
  display: block;
  margin-bottom: 19px;
  color: #595959;
  font-size: 17px;
  line-height: 20px;
}
.dp-two {
  margin-top: 1px;
  min-height: 76px;
}
.dp-note {
  min-height: 64px;
}
.dp-note.is-tight {
  min-height: 0;
  margin-bottom: 18px;
}
.dp-t {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.dp-t + .dp-t {
  margin-top: 21px;
}
.dp-t th,
.dp-t td {
  padding: 3px 6px 4px;
  border: 0.5px solid #a6a6a6;
  vertical-align: top;
}
.dp-t th {
  text-align: center;
}
.dp-t .is-c {
  text-align: center;
}
.dp-t .is-r {
  text-align: right;
}
.dp-t small {
  display: block;
  font-size: 5px;
  line-height: 6px;
}
.dp-sum {
  display: grid;
  grid-template-columns: auto 72px;
  justify-content: end;
  gap: 4px 18px;
  margin-top: 12px;
  padding-right: 9px;
  text-align: right;
}
.dp-sum .is-total {
  font-size: 9px;
}
.dp-clause {
  margin-top: 12px;
}
.dp-clause p {
  margin-top: 2px;
}
.dp-t.dp-annex {
  margin-top: 16px;
}
.dp-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  color: #595959;
}
.dp-sign i {
  display: block;
  height: 22px;
  margin-bottom: 4px;
  border-bottom: 0.5px solid #a6a6a6;
}
.dp-hl {
  margin-inline: -2px;
  padding-inline: 2px;
  border-radius: 2px;
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.dp-hl.is-on {
  background: rgb(241 162 58 / 0.25);
  box-shadow: 0 0 0 1px #f1a23a;
}

/* drawer */
.dd {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-top: 44px;
  border-radius: 16px;
  background: #fff;
}
.dd-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding-inline: 16px;
  background: #fff;
}
.dd-acts {
  display: flex;
  gap: 8px;
}
.dd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  /* Geist sits high in its line box; 2 px on top puts the label on the optical middle */
  padding: 2px 8px 0;
  border-radius: 999px;
  background: #eee2d2;
  color: #431407;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.dd-badge svg,
.dd-badge .rc-spin {
  margin-top: -2px;
}
.dd-badge.is-reading {
  background: #f5f5f4;
  color: #57534e;
}
.dd-badge .rc-spin {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}
.dd-slot {
  padding: 24px 16px;
}
.dd-title {
  min-height: 54px;
  font-size: 20px;
  font-weight: 600;
  line-height: 27px;
  overflow-wrap: break-word;
}
.dd-via {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #78716c;
  white-space: nowrap;
}
.dd-via b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0c0a09;
  font-weight: 400;
}
.dd-fields {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.dd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
}
.dd-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #57534e;
  white-space: nowrap;
}
.dd-row dd {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}
.dd-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 6px;
  white-space: nowrap;
}
.dd-kind {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 23px;
  padding: 2px 4px 0 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #172554;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.dd-kind svg {
  margin-top: -2px;
}
.dd-kind.is-purple {
  background: #f3e8ff;
  color: #3b0764;
}
.dd-more-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-weight: 500;
}
.dd-more-btn svg {
  color: #78716c;
  transition: transform 0.5s var(--ease-out);
}
.dd-more-list {
  display: grid;
  gap: 9px;
  padding: 12px 0 8px;
}
.dd-sep {
  height: 1px;
  margin-top: 20px;
  background: #f1f0ee;
}
.dd-sec {
  margin-top: 18px;
}
.dd-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  font-weight: 500;
}
.dd-empty {
  margin-top: 7px;
  color: #78716c;
  font-size: 12px;
  line-height: 18px;
}
.dd-link {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding-inline: 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px #d6d3d1, 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.dd-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.dd-doc-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f5f5f4;
}
.dd-doc-t {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.dd-doc-t div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-doc-t small {
  display: block;
  color: #78716c;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.dd-doc > svg {
  margin-right: 8px;
}
/* the related document while Teo is still reading: an empty icon box and two lines */
.dd-doc.is-skel .dd-doc-t {
  display: grid;
  gap: 8px;
}

/* phones: the drawer alone, on a taller stage */
@media (max-width: 47.99rem) {
  .dstage {
    --stage-r: 24px;
    aspect-ratio: 600 / 760;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    background-size: 300% 140%;
  }
  .dstage-canvas {
    width: 600px;
    height: 760px;
  }
  .dapp {
    left: 24px;
    top: 96px;
    width: 613px;
  }
  .dapp .app-side,
  .dv {
    display: none;
  }
  .dapp-page {
    padding-left: 9px;
  }
  .dseg {
    top: 14px;
    right: 14px;
  }
}

/* ─── rows: the card on a stone stage ─── */

.fcard {
  position: absolute;
  left: 40px;
  top: 34px;
  width: 560px;
  overflow: hidden;
  border-top: 6px solid transparent;
  border-radius: 16px;
  /* the app's blue → amber rim (a 6 px outside stroke on top in Figma); it draws itself
     from the left when the stage comes into view (.fstage.is-live, set by initFeatureRows),
     the same entrance as the Bills card */
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #3385ff, #f69a21) border-box;
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    0% 100%;
  transition: background-size 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.12s;
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}
.fc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding-inline: 16px;
  border-bottom: 1px solid #e7e5e4;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.fselect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d6d3d1, 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}
.fselect > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fselect.is-strong {
  font-weight: 500;
}
.fselect.is-sm {
  height: 32px;
}
.fstage.is-live .fcard {
  background-size:
    100% 100%,
    100% 100%;
}
/* one entrance for every block in the row cards */
.f-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.f-in.is-on {
  opacity: 1;
  transform: none;
}

/* graph */
.fg-main {
  position: relative;
  height: 406px;
  background-color: #fff;
  background-image: radial-gradient(circle, rgb(212 212 212 / 0.6) 0.8px, transparent 1.3px);
  background-position: 5px 5px;
  background-size: 10px 10px;
}
.fg-tools {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1;
  display: flex;
  gap: 8px;
}
.fg-edges {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}
.fg-edges path {
  fill: none;
  stroke: #d6d3d1;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1), stroke 0.4s var(--ease-out);
}
.fg-edges path.is-on {
  stroke-dashoffset: 0;
}
/* the selected flow: drawn in blue the way the money goes, its arrow pops at the end */
.fg-hl {
  transition: opacity 0.4s var(--ease-out);
}
.fg-hl.is-out {
  opacity: 0;
}
.fg-edges .fg-flow {
  stroke: #3b82f6;
  animation: fg-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.fg-tip {
  fill: #3b82f6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: fg-tip 0.35s var(--ease-out) 0.7s forwards;
}
@keyframes fg-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fg-tip {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fg-edges .fg-arrow {
  fill: #d6d3d1;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), fill 0.4s var(--ease-out);
}
.fg-edges .fg-arrow.is-on {
  opacity: 1;
}

.fg-node {
  position: absolute;
  width: 231px;
  height: 112px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e5e4, 0 1px 2px -1px rgb(0 0 0 / 0.1), 0 1px 3px rgb(0 0 0 / 0.1);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.fg-node.is-on {
  opacity: 1;
  transform: none;
}
.fg-node.is-press {
  transform: scale(0.97);
  transition-duration: 0.09s;
}
.fg-node.is-hl {
  transition: opacity 0.7s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: inset 0 0 0 1px #93c5fd, 0 0 0 3px rgb(147 197 253 / 0.25), 0 8px 20px -6px rgb(37 99 235 / 0.22);
}
.fg-node img {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
}
.fg-name {
  margin-top: 12px;
  font-weight: 500;
}
.fg-tags {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.fg-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 6px;
  border-radius: 8px;
  background: #f5f5f4;
  color: #1c1917;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
/* the entity: Figma's angular stroke (blue → stone), turned into a light that circles it */
@property --fg-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.fg-entity {
  left: 20px;
  top: 90px;
  width: 235px;
  height: 118px;
  padding: 11px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--fg-a), #e7e5e4 0turn, #e7e5e4 0.3turn, #2563eb 0.99turn, #e7e5e4 1turn) border-box;
  box-shadow: 0 1px 2px -1px rgb(0 0 0 / 0.1), 0 1px 3px rgb(0 0 0 / 0.1);
  transform: translateY(8px);
  animation: fg-spin 4s linear infinite;
}
@keyframes fg-spin {
  to {
    --fg-a: 360deg;
  }
}
.fg-ent-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
}
.fg-ent-b {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
}
.fg-ent-b b {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.fg-ent-b span:last-child {
  color: #474747;
}
.fg-amt {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 2px #e7e5e4;
  color: #000;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.fg-amt.is-on {
  opacity: 1;
}
/* the selected flow takes its amount in: a blue rim, once the line has reached the badge.
   On a pseudo-element, so the badge's inline entrance delay doesn't hold it back. */
.fg-amt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px #3b82f6;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.fg-amt.is-hl::after {
  opacity: 1;
  transition-delay: 0.25s;
}
/* the cursor from concept teo-lp-1: travels to a counterparty and presses it */
.fg-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.25));
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s var(--ease-out);
}
.fg-cursor.is-on {
  opacity: 1;
}
.fg-cursor svg {
  transform-origin: 3px 2px;
  transition: transform 0.18s var(--ease-out);
}
.fg-cursor.is-press svg {
  transform: scale(0.82);
  transition-duration: 0.09s;
}
.fg-zoom {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}
.fg-zg {
  display: grid;
}
.fg-zb {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d6d3d1;
}
.fg-zg .fg-zb:first-child {
  border-radius: 8px 8px 0 0;
}
.fg-zg .fg-zb:last-child {
  margin-top: -1px;
  border-radius: 0 0 8px 8px;
}

/* counterparty */
.cp-body {
  display: grid;
  gap: 24px;
  padding: 20px;
}
.cp-id {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-id img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}
.cp-id b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.cp-id small {
  display: block;
  color: #78716c;
  font-size: 11px;
  line-height: 16px;
}
.cp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.cp-stat {
  display: flex;
  flex-direction: column;
  height: 100px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f5f4;
}
.cp-dir {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-bottom: auto;
  border-radius: 999px;
  background: #fff;
}
.cp-stat b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cp-stat small {
  margin-top: 2px;
  color: #78716c;
  font-size: 12px;
  line-height: 16px;
}
.cp-chart {
  margin-top: 16px;
  padding-top: 4px;
}
.cp-chart-h {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
}
.cp-chart-h b {
  font-weight: 500;
}
.cp-chart-h span {
  color: #78716c;
}
.cp-chart svg {
  margin-top: 5px;
  overflow: visible;
}
.cp-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #78716c;
  font-size: 10px;
  line-height: 14px;
}
.cp-metrics {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}
.cp-m {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  line-height: 16px;
}
.cp-m > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #57534e;
}
.cp-m b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cp-m b small {
  color: #78716c;
  font-size: 14px;
  font-weight: 400;
}

/* month-end close */
.fcard.is-close {
  top: 62px;
}
.cl-body {
  padding: 20px;
}
.cl-sum {
  display: grid;
  grid-template-columns: minmax(0, 244fr) minmax(0, 269fr);
  gap: 7px;
}
.cl-stat + .cl-stat {
  padding-left: 16px;
  border-left: 1px solid #efeeec;
}
.cl-k {
  display: block;
  color: #78716c;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.cl-v {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  margin-top: 16px;
}
.cl-v b {
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
}
.cl-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #78716c;
  font-size: 12px;
  line-height: 17px;
}
.cl-sub.is-warn {
  color: #9a3412;
}
.cl-delta {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.cl-delta.is-on {
  opacity: 1;
  transform: none;
}
.cl-cov {
  margin-top: 16px;
}
.cl-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #f69a21;
}
.cl-bar i {
  display: block;
  width: calc(var(--p) * 100%);
  height: 100%;
  background: #3b82f6;
  box-shadow: 2px 0 0 #fff;
  transition: width 1s var(--ease-out);
}
.cl-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #78716c;
  font-size: 12px;
  line-height: 17px;
}
.cl-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cl-legend i {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #1d4ed8;
}
.cl-legend > span:last-child i {
  background: #f69a21;
}
.cl-legend b {
  color: #0c0a09;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cl-list {
  margin-top: 16px;
}
.cl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  border-bottom: 1px solid #efeeec;
}
.cl-row:last-child {
  border-bottom: 0;
}
.cl-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #e7e5e4;
  color: #44403c;
  font-size: 10px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: 0.1px;
}
.cl-logo.is-hetzner {
  background: #d50c2d;
}
.cl-logo.is-hetzner svg {
  border-radius: 4px;
}
.cl-t {
  flex: 1;
  min-width: 0;
  padding-left: 2px;
}
.cl-t b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.cl-t span {
  display: block;
  color: #78716c;
  font-size: 12px;
  line-height: 18px;
}
.cl-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.cl-st.is-unresolved {
  background: #eee2d2;
  color: #431407;
}
.cl-st.is-pending {
  gap: 5px;
  background: #dbeafe;
  color: #1d4ed8;
}
.cl-st.is-resolved {
  background: #dcfce7;
  color: #15803d;
  animation: cl-pop 0.45s var(--ease-out);
}
@keyframes cl-pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
/* the reply that brings the missing invoice in; the HIW message card */
.cl-floats {
  font-family: var(--font-sans);
  color: #0c0a09;
  text-align: left;
}
.cl-mail {
  left: 24px;
  top: 352px;
  z-index: 3;
}
.cl-mail-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .fg-entity {
    animation: none;
  }
}

/* ═════════════ Ask (Figma "Section - Ask") ═════════════
   The dark band, the request tabs and the Ask app on the orb. The app frame is drawn in
   page px; its sidebar is the hero's (a 0.9013 frame in Figma) and the chat + report
   wrapper a 0.8333 frame, so both are drawn in their own units and scaled. The five
   reports share one kit (.rp-*): Figma's report styles, Geist instead of Inter. */

.ask {
  background: #0c0a09;
  color: #fafaf9;
}
.ask-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 144px 32px;
}
.ask-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}
.ask-title {
  margin-top: 20px;
  color: #fafaf9;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.143;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.ask-title span {
  color: rgb(250 250 249 / 0.45);
}
.ask-lead {
  max-width: 650px;
  margin-top: 24px;
  color: rgb(250 250 249 / 0.7);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.ask-demo {
  margin-top: 64px;
}
.ask-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.ask-tab {
  height: 37px;
  padding-inline: 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: rgb(250 250 249 / 0.7);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.ask-tab:hover {
  background: rgb(255 255 255 / 0.1);
  color: #fafaf9;
}
.ask-tab[aria-selected="true"] {
  background: #fafaf9;
  color: #0c0a09;
}
.ask-tab:focus-visible {
  outline: 2px solid #3385ff;
  outline-offset: 2px;
}
.astage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 40px;
  aspect-ratio: 1176 / 860;
  border-radius: 28px;
  clip-path: inset(0 round 28px);
  /* the documents stage's orb, on Figma's taller 1176 × 1359 frame */
  background: #f4f3f1 url(../photo/orb.jpg) 50% 0 / 176.4% 158% no-repeat;
}
.astage-canvas {
  width: 1176px;
  height: 860px;
}
.aapp {
  position: absolute;
  left: 56px;
  top: 56px;
  width: 1064px;
  height: 748px;
  overflow: hidden;
  border-radius: 20px;
  background: rgb(241 240 238 / 0.8);
  /* Figma: an 8 px outside stroke of white at 10 % */
  box-shadow: 0 0 0 8px rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(53px);
  backdrop-filter: blur(53px);
}
.aapp-side {
  position: absolute;
  left: 0;
  top: 0;
  width: 47px;
  height: 100%;
}
.aapp-side .app-side {
  height: 830px;
  transform: scale(0.9013);
  transform-origin: 0 0;
}
.aapp-side svg,
.aapp-wrap svg {
  display: block;
  flex-shrink: 0;
}
.aapp-wrap {
  position: absolute;
  left: 47px;
  top: 7px;
  display: flex;
  width: 1211px;
  height: 882px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  transform: scale(0.8333);
  transform-origin: 0 0;
}
.aw {
  display: flex;
  width: 100%;
  height: 100%;
}
.kbtn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
}
.kbtn.is-sq {
  border-radius: 8px;
}

/* chat */
.ac {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  transition: flex-basis 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.aw.is-split .ac {
  flex-basis: 687px;
}
.ac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  flex-shrink: 0;
  padding-inline: 8px;
  border-bottom: 1px solid #e7e5e4;
}
.ac-title {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}
.ac-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 8px 20px 24px;
}
.ac-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  padding: 32px 32px 16px;
  -webkit-mask: linear-gradient(transparent, #000 32px);
  mask: linear-gradient(transparent, #000 32px);
}
.ac-thread::after {
  content: "";
  flex: 1 1 0;
}
.ac-msgs {
  flex-shrink: 0;
  width: 100%;
}
.ac-msgs {
  display: grid;
  align-content: start;
  gap: 24px;
  max-width: 539px;
  margin-inline: auto;
}
.ak-q {
  justify-self: end;
  max-width: 85%;
  padding: 10px;
  border-radius: 16px;
  background: #f5f5f4;
  animation: ak-rise 0.5s var(--ease-out) both;
}
.ak-a {
  display: grid;
  gap: 14px;
  color: #1c1917;
  line-height: 24px;
}
.ak-a > * {
  animation: ak-rise 0.6s var(--ease-out) both;
}
.ak-a b {
  font-weight: 500;
}
.ak-chip {
  padding: 2px 6px;
  border-radius: 8px;
  background: #f1f0ee;
  font-weight: 500;
}
.ak-a.is-done {
  gap: 16px;
}
/* Figma "Frame 328": the icon and text sit 12 px apart, the button 24 px after them */
.ak-card {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 458px;
  max-width: 100%;
  padding: 13px 12px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #e7e5e4;
}
.ak-card-m {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ak-card-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #f1f0ee;
}
.ak-card-t {
  min-width: 0;
  color: #0c0a09;
  line-height: 20px;
}
.ak-card-t small {
  display: block;
  overflow: hidden;
  color: #78716c;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Figma outline button, mini: 24 px tall, 3 / 8 px padding, 8 px radius */
.ak-open {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px #d6d3d1, 0 1px 2px rgb(0 0 0 / 0.05);
  color: #0c0a09;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}
.ak-acts {
  display: flex;
  gap: 4px;
  margin-top: -4px;
}
.ak-think {
  display: flex;
  min-height: 24px;
  align-items: center;
}
.ak-think span {
  animation: ak-rise 0.3s var(--ease-out) both, ak-shimmer 1.8s linear infinite;
}
.ak-think span {
  background: linear-gradient(90deg, #78716c 0%, #78716c 40%, #d6d3d1 50%, #78716c 60%, #78716c 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ak-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 40px;
  text-align: center;
}
.ak-empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
}
.ak-empty > b {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}
.ak-empty p {
  margin-top: 4px;
  color: #78716c;
}
@keyframes ak-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes ak-shimmer {
  to {
    background-position: -250% 0;
  }
}
.ak-in {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 539px;
  height: 109px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px #e7e5e4, 0 1px 2px rgb(0 0 0 / 0.05);
}
.ak-in-t {
  min-height: 20px;
}
.ak-in-t .is-ph {
  color: #78716c;
}
.ak-caret {
  display: inline-block;
  width: 1px;
  height: 17px;
  margin-left: 1px;
  vertical-align: -3px;
  background: #0c0a09;
  animation: ak-caret 1s step-end infinite;
}
@keyframes ak-caret {
  50% {
    opacity: 0;
  }
}
.ak-in-b {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ak-in-b > span:first-child {
  display: flex;
}
.ak-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1c1917;
  transition: transform 0.25s var(--ease-out);
}
.ak-send.is-ready {
  transform: scale(1.1);
}

/* report panel: opens beside the chat; its content keeps the final width while it opens */
.ar {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid #e7e5e4;
  background: #fff;
}
.ar-in {
  display: flex;
  flex-direction: column;
  width: 524px;
  height: 100%;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.aw.is-split .ar-in {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}
.ar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  flex-shrink: 0;
  padding-inline: 8px;
}
.ar-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
}
.ar-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  padding-inline: 6px;
  border-radius: 8px;
  background: #f5f5f4;
  color: #44403c;
  font-weight: 500;
  white-space: nowrap;
}
.ar-tab b {
  color: #1c1917;
  font-weight: 500;
}
/* an older report: an inactive tab (Figma shows it hovered, with a fade and an x) */
.ar-tab.is-old {
  background: transparent;
  color: #78716c;
}
.ar-tab.is-old b {
  color: #57534e;
}
.ar-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px #d6d3d1;
}
.ar-main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 24px 24px 56px;
}

/* the report kit */
.rp {
  display: grid;
  gap: 34px;
  color: #0c0a09;
}
.rp-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.rp-in.is-row {
  transform: translateX(-8px);
}
.rp-in.is-on {
  opacity: 1;
  transform: none;
}
.rp-h {
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  letter-spacing: -0.01em;
}
.rp-sub {
  margin-top: 9px;
  color: #78716c;
  font-size: 15px;
  line-height: 22px;
}
.rp-kpis {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.rp-kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80px;
  padding: 12px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
}
.rp-kpi span {
  color: #78716c;
  font-size: 12px;
  line-height: 14px;
}
.rp-kpi b {
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
}
.rp-sec-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.rp-sec-h h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
}
.rp-sec-h p {
  margin-top: 4px;
  color: #78716c;
  font-size: 13px;
  line-height: 16px;
}
.rp-pill {
  flex-shrink: 0;
  height: 28px;
  padding-inline: 10px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 12px;
  line-height: 28px;
  white-space: nowrap;
}
.rp-table {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  font-size: 13px;
  line-height: 16px;
}
.rp-tr {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  column-gap: 10px;
  min-height: 45px;
  padding-inline: 16px;
  border-top: 1px solid #e7e5e4;
  font-variant-numeric: tabular-nums;
}
.rp-tr > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.rp-tr.is-head {
  min-height: 42px;
  border-top: 0;
  background: #fafaf9;
  color: #78716c;
  font-size: 12px;
  font-weight: 600;
}
.rp-tr .is-r {
  justify-content: flex-end;
  text-align: right;
}
.rp-b {
  font-weight: 600;
}
.rp-pos {
  color: #15803d;
}
.rp-muted {
  color: #78716c;
}
.rp-alert {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #f0cf93;
  border-radius: 14px;
  background: #fff7e8;
}
.rp-alert > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff1cd;
  color: #92400e;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}
.rp-alert b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}
.rp-alert p {
  margin-top: 3px;
  color: #6d5a3a;
  font-size: 13px;
  line-height: 19px;
}
.rp-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.rp-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}
.rp-doc > div {
  flex: 1;
  min-width: 0;
}
.rp-doc b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}
.rp-doc small {
  display: block;
  color: #78716c;
  font-size: 12px;
  line-height: 16px;
}
.rp-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  height: 28px;
  padding-inline: 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.rp-st.is-ok {
  background: #dcfce7;
  color: #15803d;
}
.rp-st.is-warn {
  background: #eee2d2;
  color: #431407;
}
.rp-st.is-ask {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e5e4;
  color: #44403c;
}
.rp-st.is-sent {
  background: #dcfce7;
  color: #15803d;
  animation: cl-pop 0.45s var(--ease-out);
}
.rp-logo {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #e7e5e4;
  color: #44403c;
  font-size: 9px;
  font-weight: 600;
}
.rp-logo.is-hetzner {
  background: #d50c2d;
}
.rp-logo.is-hetzner svg {
  border-radius: 3px;
}
.rp-av {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.rp-btns {
  display: flex;
  gap: 8px;
}
.rp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e5e4, 0 1px 2px rgb(0 0 0 / 0.05);
  font-weight: 500;
}
.rp-btn.is-dark {
  background: #1c1917;
  box-shadow: none;
  color: #fff;
}
/* chart card (cash flow) */
.rp-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
}
.rp-legend {
  display: flex;
  gap: 14px;
  color: #78716c;
  font-size: 12px;
}
.rp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rp-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--c);
}
.rp-bars {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 150px;
  margin-top: 16px;
  padding-inline: 12px;
  border-bottom: 1px solid #e7e5e4;
  background: repeating-linear-gradient(180deg, transparent 0 49px, #f5f5f4 49px 50px);
}
.rp-bars > div {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 100%;
}
.rp-bars i {
  width: 22px;
  height: calc(var(--h) * 1%);
  border-radius: 5px 5px 0 0;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease-out);
}
.rp-bars.is-on i {
  transform: none;
}
.rp-months {
  display: flex;
  gap: 28px;
  margin-top: 8px;
  padding-inline: 12px;
  color: #78716c;
  font-size: 12px;
}
.rp-months span {
  flex: 1;
  text-align: center;
}
/* sheet (balance sheet): the report table with a row index and a highlighted column */
.rp-sheet .rp-tr {
  column-gap: 0;
  min-height: 34px;
  padding: 0;
  font-size: 12px;
}
.rp-sheet .rp-tr > span {
  height: 100%;
  min-height: 34px;
  padding-inline: 10px;
  border-right: 1px solid #f5f5f4;
}
.rp-sheet .rp-tr > span:last-child {
  border-right: 0;
}
.rp-sheet .rp-ix {
  justify-content: center;
  padding: 0 !important;
  background: #fafaf9;
  color: #78716c;
}
.rp-sheet .is-group {
  background: #fcfcfb;
  font-weight: 600;
}
.rp-sheet .is-item > span:nth-child(2) {
  padding-left: 22px;
  color: #57534e;
}
.rp-sheet .is-total {
  font-weight: 600;
}
.rp-sheet .is-grand {
  background: #f5f5f4;
  font-weight: 600;
}
.rp-sheet .is-ytd {
  background: #fff7e8;
}
.rp-sheet .is-calc {
  box-shadow: inset 0 0 0 1.5px #15803d;
  background: #f0fdf4;
}
.rp-sheet .rp-tr > span {
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.rp-fx {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding-inline: 12px;
  border-bottom: 1px solid #e7e5e4;
  background: #fcfcfb;
  color: #57534e;
  font-size: 12px;
}
.rp-fx em {
  color: #78716c;
  font-style: italic;
  font-weight: 600;
}
.rp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.rp-chips span {
  height: 28px;
  padding-inline: 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e7e5e4;
  color: #44403c;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
}
.rp-chips span.is-on {
  background: #1c1917;
  box-shadow: none;
  color: #fff;
}
/* deck (board deck, from concept teo-lp-1) */
.rp-slide {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 12px;
  background: #0c0a09;
  box-shadow: 0 10px 24px -12px rgb(12 10 9 / 0.5);
  color: #fafaf9;
}
.rp-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../paint/night.jpg) center / cover;
  opacity: 0.45;
}
.rp-slide > * {
  position: relative;
}
.sl-kicker {
  color: #a8a29e;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.sl-title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sl-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 104px;
  margin-top: 18px;
}
.sl-bars div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}
.sl-bars i {
  width: 100%;
  height: calc(var(--h) * 100%);
  border-radius: 4px 4px 0 0;
  background: rgb(250 250 249 / 0.22);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.sl-bars.is-on i {
  transform: none;
}
.sl-bars .is-hl i {
  background: #f1a23a;
}
.sl-bars span {
  color: #a8a29e;
  font-size: 10px;
}
.sl-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  color: #a8a29e;
  font-size: 11.5px;
}
.sl-foot b {
  color: #fafaf9;
  font-weight: 600;
}
.sl-foot svg {
  width: auto;
  height: 16px;
  margin-left: auto;
  color: #fafaf9;
}
.rp-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.rp-thumb {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 6px;
  border-radius: 6px;
  background: #0c0a09;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.rp-thumb.is-sel {
  box-shadow: 0 0 0 2px #f1a23a;
}
.rp-thumb b {
  color: #fafaf9;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.2;
}
.rp-thumb small {
  color: #a8a29e;
  font-size: 6px;
}
.rp-thumb.is-chart {
  flex-direction: row;
  align-items: flex-end;
}
.rp-thumb.is-chart i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 2px 2px 0 0;
  background: rgb(250 250 249 / 0.3);
}
.rp-thumb.is-chart i:last-child {
  background: #f1a23a;
}
.rp-thumb.is-donut {
  align-items: center;
  justify-content: center;
}
.rp-thumb.is-donut span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: conic-gradient(#f1a23a 0 38%, rgb(250 250 249 / 0.5) 0 70%, rgb(250 250 249 / 0.2) 0);
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px);
  mask: radial-gradient(circle, transparent 7px, #000 7.5px);
}
.rp-thumb.is-list {
  justify-content: center;
  gap: 4px;
}
.rp-thumb.is-list i {
  height: 3px;
  border-radius: 2px;
  background: rgb(250 250 249 / 0.3);
}
.rp-thumb.is-list i:first-child {
  width: 70%;
  background: rgb(250 250 249 / 0.6);
}

/* the three points under the demo */
.ask-points {
  display: grid;
  grid-template-columns: 340fr 340fr 360fr;
  gap: 68px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.ask-points svg {
  color: #f1a23a;
}
.ask-points h3 {
  margin-top: 26px;
  color: #fafaf9;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.02em;
}
.ask-points p {
  margin-top: 6px;
  color: #a8a29e;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .ak-q,
  .ak-a > *,
  .ak-think span,
  .ak-caret,
  .rp-st.is-sent {
    animation: none;
  }
  .ac,
  .ar-in,
  .rp-in,
  .rp-bars i,
  .sl-bars i,
  .rp-sheet .rp-tr > span {
    transition: none;
  }
}

/* phones: the chat above the report, at the app's own size */
.aw.is-compact {
  flex-direction: column;
}
.aw.is-compact.is-split .ac {
  flex-basis: 430px;
}
.aw.is-compact .ac-thread {
  padding: 16px 12px 12px;
}
.aw.is-compact .ac-msgs {
  width: 100%;
}
.aw.is-compact .ac-main {
  padding: 8px 12px 12px;
}
.aw.is-compact .ar {
  border-top: 1px solid #e7e5e4;
  border-left: 0;
}
.aw.is-compact .ar-in {
  width: 100%;
}
@media (max-width: 63.99rem) {
  .ask-inner {
    padding-block: 112px;
  }
  .ask-points {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 47.99rem) {
  .ask-inner {
    padding: 96px 20px;
  }
  .ask-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -20px;
    padding: 4px 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .astage {
    aspect-ratio: 560 / 1000;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    background-size: 300% 140%;
  }
  .astage-canvas {
    width: 560px;
    height: 1000px;
  }
  .aapp {
    left: 12px;
    top: 12px;
    width: 536px;
    height: 976px;
  }
  .aapp-side {
    display: none;
  }
  .aapp-wrap {
    left: 6px;
    top: 6px;
    width: 524px;
    height: 964px;
    transform: none;
  }
}

/* ═════════════ Sources marquee (teo-lp-1) ═════════════ */

.sources {
  position: relative;
  z-index: 10;
  padding-block: 55px 88px;
}
.sources-head {
  margin-bottom: 28px;
  color: #8a8580;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.marquee {
  width: calc(100% - clamp(16px, 4vw, 32px) * 2);
  max-width: 1200px;
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.src {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8a8580;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 240ms var(--ease-out);
}
.src svg {
  width: 20px;
  height: 20px;
}
.src:hover {
  color: var(--fg);
}
use[href^="#l-"] {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
use[href^="#i-"] {
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ═════════════ Bills (Figma "Section - Bills") ═════════════
   Heading row, then the Bills app on a stone stage. The card is drawn at its Figma size
   (1016 px on a 1176 × 615 stage, cropped by the stage under the fourth row) and the
   stage scales it as one piece (--k, set by initStages). On a phone the canvas narrows
   to 640 px and the table keeps Due, Payee and Amount. Every part has an off state the
   entrance builds from (.is-on); initBills drives it on a 100 ms clock. */

.bills {
  background: #fff;
}
.bills-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 148px 32px;
}
.bills-head {
  display: grid;
  /* Figma's lead is a 503 px box its forced breaks overflow by a few px; 512 keeps them */
  grid-template-columns: minmax(0, 1fr) minmax(0, 512px);
  align-items: end;
}
.bills-head-l {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.bills-title {
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.125;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.bills-title span {
  color: #78716c;
}
.bills-lead {
  max-width: 512px;
  color: #474747;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.bstage-wrap {
  margin-top: 56px;
}
.bstage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1176 / 615;
  border-radius: 32px;
  clip-path: inset(0 round 32px);
  background: #ecebe7;
}
.bstage-canvas {
  --k: 1;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 1176px;
  height: 615px;
  transform: scale(var(--k));
  transform-origin: 0 0;
}

/* ─── the app ─── */

.bapp-wrap {
  position: absolute;
  inset: 0;
  color: #0c0a09;
  font-family: var(--font-sans);
  text-align: left;
}
.bapp-wrap svg {
  display: block;
  flex-shrink: 0;
}
/* the card: a 6 px blue → amber rim outside the top edge, wrapping the 16 px corners */
.bapp {
  position: absolute;
  left: 80px;
  top: 66px;
  width: 1016px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.bapp.is-on {
  opacity: 1;
  transform: none;
}
.b-rim {
  position: absolute;
  inset: 0 0 auto;
  height: 24px;
  background: linear-gradient(90deg, #3385ff, #f69a21);
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.b-rim.is-on {
  transform: none;
}
.b-in {
  position: relative;
  margin-top: 6px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}
/* one entrance for the small parts */
.b-fade {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.b-fade.is-on {
  opacity: 1;
  transform: none;
}

.b-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding-inline: 20px;
  border-bottom: 1px solid #e7e5e4;
}
.b-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.b-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #172554;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
}
.b-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #d6d3d1,
    0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.b-select > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* total, period switch and the 30-day timeline */
.b-sum {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}
.b-sum-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 60px;
}
.b-total > span:first-child {
  display: block;
  color: #78716c;
  font-size: 12px;
  line-height: 18px;
}
.b-total-v {
  display: block;
  margin-top: 4px;
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}
.b-seg {
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background: #f5f5f4;
  font-size: 14px;
  line-height: 18px;
}
.b-seg span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #57534e;
}
.b-seg .is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  color: #0c0a09;
  font-weight: 500;
}
.b-chart {
  position: relative;
  height: 130px;
}
.b-plot {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.b-area {
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.b-area.is-on {
  opacity: 1;
}
/* the running total draws itself across the month */
.b-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s cubic-bezier(0.65, 0, 0.35, 1);
}
.b-line.is-on {
  stroke-dashoffset: 0;
}
.b-bar {
  position: absolute;
  bottom: 20px;
  width: 13px;
  height: 0;
  margin-left: -6.5px;
  border-radius: 3px 3px 0 0;
  transition:
    height 0.8s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.5s var(--ease-out);
}
.b-bar.is-on {
  height: var(--h);
}
.b-bar.is-dim {
  opacity: 0.32;
}
.b-base {
  position: absolute;
  left: 0;
  right: 0;
  top: 109px;
  height: 1px;
  background: #e7e5e4;
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 0.8s var(--ease-out);
}
.b-base.is-on {
  transform: none;
}
.b-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 118px;
  display: flex;
  justify-content: space-between;
  color: #78716c;
  font-size: 10px;
  line-height: 16px;
}
.b-today {
  position: absolute;
  left: 0;
  top: 0;
  height: 110px;
}
.b-today::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: #0c0a09;
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform 0.6s var(--ease-out) 0.15s;
}
.b-today i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0c0a09;
  box-shadow: 0 0 0 4px #fff;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.b-today span {
  position: absolute;
  left: 7px;
  top: -6px;
  font-size: 10px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.4s var(--ease-out) 0.2s,
    transform 0.5s var(--ease-out) 0.2s;
}
.b-today.is-on::before,
.b-today.is-on i,
.b-today.is-on span {
  opacity: 1;
  transform: none;
}
/* the guide: glides from bill to bill, its dot rides the running total */
.b-guide {
  position: absolute;
  top: 0;
  height: 110px;
  opacity: 0;
  transition:
    left 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.4s var(--ease-out);
}
.b-guide::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #a8a29e;
}
.b-guide i {
  position: absolute;
  left: -5px;
  top: calc(var(--y) - 5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 2.5px #f69a21,
    0 1px 3px rgb(28 25 23 / 0.2);
  transition: top 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.b-guide.is-on {
  opacity: 1;
}

/* the table: skeletons first, then the data; rows have no rules, the hovered one lights up */
.b-table {
  padding: 0 20px 12px;
}
.b-tr {
  display: grid;
  grid-template-columns: 90px 306px 241px 219px 120px;
  align-items: center;
}
.b-th {
  height: 36px;
  border-bottom: 1px solid #e7e5e4;
  color: #78716c;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: -0.04px;
}
.b-th > :last-child,
.b-amt {
  text-align: right;
}
.b-row {
  position: relative;
  isolation: isolate;
  height: 48px;
}
.b-row::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: -1;
  border-radius: 8px;
  background: #f5f5f4;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.b-row.is-hl::before {
  opacity: 1;
}
.b-row > span {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.b-row.is-on > span {
  opacity: 1;
  transform: none;
}
.b-row-sk {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.b-row.is-in .b-row-sk {
  opacity: 1;
}
.b-row.is-on .b-row-sk {
  opacity: 0;
}
.b-row-sk > span {
  display: flex;
}
.b-row-sk > :last-child {
  justify-content: flex-end;
}
.b-row-sk i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5f5f4, #e7e5e4, #f5f5f4) 0 0 / 200% 100%;
  animation: rc-shimmer 1.4s linear infinite;
}
.b-due {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 16px;
}
.b-due small {
  color: #78716c;
  font-size: 11px;
}
.b-due .is-soon {
  color: #c2410c;
}
.b-payee,
.b-src {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.b-src {
  gap: 6px;
}
.b-payee {
  font-size: 13px;
  line-height: 16px;
}
.b-src {
  color: #474747;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.04px;
}
.b-payee > span,
.b-src > span,
.b-ent {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.b-ent {
  padding-right: 12px;
  color: #474747;
  font-size: 12px;
  line-height: 18px;
}
.b-amt {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.04px;
  font-variant-numeric: tabular-nums;
}
.b-av {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #e7e5e4;
  color: #57534e;
  font-size: 7px;
  font-weight: 600;
  line-height: 1;
  object-fit: cover;
}
.b-av.is-xs {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  font-size: 5px;
}

/* where the date came from: blue → amber edge, heavier at the foot */
.b-pop {
  position: absolute;
  left: 871px;
  top: 448px;
  width: 274px;
  border: 1px solid transparent;
  border-bottom-width: 3px;
  border-radius: 17px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #3385ff, #f69a21) border-box;
  box-shadow: 0 24px 50px -16px rgb(28 25 23 / 0.16);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: 50% 100%;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.b-pop.is-on {
  opacity: 1;
  transform: none;
}
.b-pop-c {
  display: flex;
  flex-direction: column;
  padding: 16px;
  animation: b-swap 0.55s var(--ease-out) both;
}
.b-pop-from {
  color: #78716c;
  font-size: 11px;
  line-height: 16px;
}
.b-pop-c > b {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
.b-pop-c > p {
  min-height: 32px;
  margin-top: 4px;
  color: #57534e;
  font-size: 12px;
  line-height: 16px;
}
.b-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  font-size: 12px;
  line-height: 18px;
}
.b-pop-foot > span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #474747;
}
.b-pop-foot > b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@keyframes b-swap {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* the hover cursor, the same arrow as the graph's (from concept teo-lp-1) */
.b-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.25));
  transition:
    transform 0.75s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.4s var(--ease-out);
}
.b-cursor.is-on {
  opacity: 1;
}

/* phone: a 640 px canvas, three columns */
.bapp-wrap.is-compact .bapp {
  left: 20px;
  top: 42px;
  width: 600px;
}
.bapp-wrap.is-compact .b-tr {
  grid-template-columns: 80px minmax(0, 1fr) 110px;
}
.bapp-wrap.is-compact .b-pop {
  left: 346px;
  top: 440px;
}

@media (max-width: 63.99rem) {
  .bills-inner {
    padding-block: 112px;
  }
  .bills-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 47.99rem) {
  .bills-inner {
    padding: 96px 20px;
  }
  .bstage-wrap {
    margin-top: 40px;
  }
  .bstage {
    aspect-ratio: 640 / 600;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
  }
  .bstage-canvas {
    width: 640px;
    height: 600px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fcard,
  .bapp-wrap *,
  .bapp-wrap *::before,
  .bapp-wrap *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ═════════════ Platform (Figma "Section - Built for") ═════════════
   Heading row, then five cards on a 3-column grid. Each card is a visual of fixed height
   (342 px on the first row, 323 px on the second) and the copy under it, so every title
   sits at the same place. The visuals are drawn at the Figma size in a canvas the stage
   scales (--k, set by initStages). Structure and motion come from concept teo-lp-1
   (holding switch, team invite, drive sync, audit feed); initPlatform runs them. The app
   cards sit in the middle of their visual and stay there while they grow or shrink. */

.plat {
  background: #fff;
}
.plat-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 32px 148px;
}
.plat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  align-items: end;
  gap: 32px;
}
.plat-title {
  padding-top: 20px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.125;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.plat-lead {
  padding-bottom: 12px;
  color: #57534e;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
}
.pcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f5f4;
}
.pcard.is-wide {
  grid-column: span 2;
}
.pcopy {
  display: grid;
  gap: 8px;
  padding: 4px 28px 28px;
}
.pcopy h3 {
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 540;
  line-height: 23px;
  letter-spacing: -0.44px;
}
.pcopy p {
  max-width: 630px;
  color: #57534e;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 23px;
  text-wrap: pretty;
}
.pvis {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 381 / 323;
}
.pvis.is-tall {
  aspect-ratio: 381 / 342;
}
.pcard.is-wide .pvis {
  aspect-ratio: 778 / 342;
}
.pvis-canvas {
  --k: 1;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 381px;
  height: 323px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  color: #0c0a09;
  font-family: var(--font-sans);
  text-align: left;
}
.pvis.is-tall .pvis-canvas {
  height: 342px;
}
.pvis-canvas.is-wide {
  width: 778px;
}
.pvis-canvas svg {
  display: block;
  flex-shrink: 0;
}
/* the white app cards: a hairline, no lift */
.pl-ucard {
  position: relative;
  flex-shrink: 0;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  background: #fff;
}
.pl-av {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.pl-tm {
  display: grid;
  flex: 1;
  min-width: 0;
}
.pl-tm b {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}
.pl-tm span {
  overflow: hidden;
  color: #78716c;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-role {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 20px;
  padding-inline: 7px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #44403c;
  font-size: 12px;
  font-weight: 520;
  line-height: 16px;
  white-space: nowrap;
}
.pl-role.is-dark {
  background: #0c0a09;
  color: #fff;
}
.pl-role.is-invited {
  height: 22px;
  padding-inline: 8px;
  background: #dbeafe;
  color: #1d4ed8;
}
.pl-spin {
  display: block;
  width: 12px;
  height: 12px;
  border: 1.5px solid #e7e5e4;
  border-top-color: #78716c;
  border-radius: 999px;
  animation: rc-spin 0.9s linear infinite;
}

/* ─── one company or a holding ─── */

.pl-seg {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background: #e7e5e4;
}
.pl-seg button {
  position: relative;
  z-index: 1;
  height: 28px;
  padding-inline: 8px;
  color: #57534e;
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  transition: color 300ms var(--ease-out);
}
.pl-seg button[aria-pressed="true"] {
  color: #0c0a09;
  font-weight: 500;
}
.pl-seg button:focus-visible {
  border-radius: 8px;
  outline: 2px solid #3385ff;
  outline-offset: 1px;
}
.pl-seg-thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 107px;
  border-radius: 8px;
  background: #fff;
  transform: translateX(2px);
  transition:
    transform 500ms var(--ease-out),
    width 500ms var(--ease-out);
}
.pl-org {
  position: absolute;
  inset: 0;
}
.pl-lines {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.pl-lines path {
  fill: none;
  stroke: #d6d3d1;
  stroke-width: 1;
}
/* a zero-size anchor on the line (GSAP scales it), the pill centred on it */
.pl-pct {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
}
.pl-pct b {
  position: absolute;
  left: 0;
  top: 0;
  height: 22px;
  padding: 2px 6px;
  border: 1px solid #e7e5e4;
  border-radius: 22px;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
/* an entity, the way the app draws it on the canvas */
.pl-node {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: 200px;
  padding: 12px;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fff;
}
/* while the group is shown the parent wears the graph entity's running border: a blue
   arc travelling round the hairline (--fg-a and fg-spin are the graph's) */
.pl-node.is-root.is-hl {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--fg-a), #e7e5e4 0turn, #e7e5e4 0.3turn, #2563eb 0.99turn, #e7e5e4 1turn) border-box;
  animation: fg-spin 4s linear infinite;
}
.pl-node-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
}
.pl-node-h .pl-chip {
  transition: opacity 0.3s var(--ease-out);
}
.pl-node.is-solo .pl-node-h .pl-chip {
  opacity: 0;
}
.pl-flag {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.12);
}
.pl-node-b b {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-node-b span {
  display: block;
  color: #474747;
  font-size: 12px;
  line-height: 18px;
}
.pl-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 6px;
  border-radius: 8px;
  background: #f5f5f4;
  color: #1c1917;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

/* ─── team ─── */

.pl-team {
  width: 333px;
  padding-block: 8px;
}
.pl-team-h {
  display: flex;
  gap: 8px;
  padding: 0 12px 8px;
  border-bottom: 1px solid #efeeec;
}
.pl-input {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding-inline: 10px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  font-size: 13px;
  line-height: 18px;
}
.pl-typed:empty::before {
  content: "name@company.com";
  color: #a8a29e;
}
.pl-caret {
  width: 1px;
  height: 14px;
  margin-left: -7px;
  background: #0c0a09;
  opacity: 0;
}
.pl-input.is-typing .pl-caret {
  animation: pl-blink 1s steps(1) infinite;
}
@keyframes pl-blink {
  50% {
    opacity: 1;
  }
}
.pl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding-inline: 8px 10px;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.pl-team-list {
  padding-inline: 8px;
}
.pl-tr,
.pl-tr-in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 8px;
  border-radius: 9px;
}
.pl-tr.is-new {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #f5f5f4;
}

/* ─── drive backup ─── */

.pl-drive,
.pl-exp {
  width: 330px;
  padding-block: 12px;
}
/* card header: logo tile, label, status on the right (backup, integrations) */
.pl-card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px;
  border-bottom: 1px solid #efeeec;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.04px;
}
/* the label is a <b>; Figma sets it in Medium, not the browser's bold */
.pl-card-h b,
.pl-audit-h b {
  font-weight: 500;
}
.pl-btn.is-text {
  padding-inline: 10px;
}
.pl-card-h .pl-btn {
  margin: -4px 0 -4px auto;
}
.pl-drive-logo {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px #e7e5e4;
}
.pl-drive-logo img {
  display: block;
}
/* Syncing / Synced share one slot and cross-fade */
.pl-sync {
  display: inline-grid;
  justify-items: end;
  margin-left: auto;
  font-size: 12px;
  font-weight: 520;
  line-height: 16px;
}
.pl-sync > span {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 5px;
  transition: opacity 0.35s var(--ease-out);
}
.pl-sync .is-a {
  color: #78716c;
}
.pl-sync .is-a svg {
  animation: rc-spin 1s linear infinite;
}
.pl-sync .is-b {
  color: #077b32;
  opacity: 0;
}
.pl-sync.is-done .is-a {
  opacity: 0;
}
.pl-sync.is-done .is-b {
  opacity: 1;
}
.pl-tree {
  display: grid;
  gap: 2px;
  padding: 8px 12px 0;
}
.pl-dt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-inline: 4px;
  font-size: 13px;
  line-height: 18px;
}
/* tree guides: an elbow from the parent folder's icon to each child (rows 30/30/32 px, 2 px apart) */
.pl-dt.is-d1::before,
.pl-dt.is-file::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -10px;
  width: 7px;
  height: 25px;
  border-bottom: 1px solid #e7e5e4;
  border-left: 1px solid #e7e5e4;
  border-bottom-left-radius: 4px;
}
.pl-dt.is-file::before {
  left: 27px;
  width: 8px;
  height: 26px;
}
.pl-dt.is-file + .pl-dt.is-file::before {
  top: -44px;
  height: 60px;
}
.pl-dt.is-file + .pl-dt.is-file + .pl-dt.is-file::before {
  top: -78px;
  height: 94px;
}
.pl-dt.is-d1 {
  padding-left: 20px;
}
.pl-dt.is-file {
  height: 32px;
  padding-left: 38px;
}
/* a document glyph: two ruled lines and a coloured band */
.pl-doc {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 20px;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7e5e4;
}
.pl-doc::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 10px;
  height: 6px;
  background: linear-gradient(#e7e5e4 0 25%, transparent 25% 67%, #e7e5e4 67% 92%, transparent 92%);
}
.pl-doc::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--c);
}
.pl-ok {
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #16a34a;
}
.pl-ok > * {
  position: absolute;
  inset: 1px;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pl-ok svg {
  inset: 0;
  opacity: 0;
  transform: scale(0.4);
}
.pl-dt.is-done .pl-ok .pl-spin {
  opacity: 0;
  transform: scale(0.6);
}
.pl-dt.is-done .pl-ok svg {
  opacity: 1;
  transform: none;
}

/* ─── export ─── */

.pl-soon {
  position: absolute;
  top: 16px;
  right: 14px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: rgb(12 10 9 / 0.05);
  color: #57534e;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}
.pl-er {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #efeeec;
  transition: background-color 0.4s var(--ease-out);
}
.pl-er:last-child {
  border-bottom: 0;
}
.pl-exp .pl-card-h + .pl-er {
  margin-top: 4px;
}
.pl-er.is-sending {
  background: #fafaf9;
}
.pl-app {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e7e5e4;
  color: #78716c;
  transition: color 0.4s var(--ease-out);
}
.pl-er.is-done .pl-app {
  color: #0c0a09;
}
/* Queued → Sending → Exported share one slot and cross-fade */
.pl-st {
  display: inline-grid;
  justify-items: end;
}
.pl-st > span {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding-inline: 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pl-st .is-q {
  background: #f5f5f4;
  color: #44403c;
}
.pl-st .is-s {
  background: #dbeafe;
  color: #1d4ed8;
}
.pl-st .is-s .pl-spin {
  width: 10px;
  height: 10px;
  border-color: #bfdbfe;
  border-top-color: #1d4ed8;
}
.pl-st .is-d {
  background: #dcfce7;
  color: #166534;
}
.pl-er:not(.is-sending, .is-done) .is-q,
.pl-er.is-sending:not(.is-done) .is-s,
.pl-er.is-done .is-d {
  opacity: 1;
  transform: none;
}

/* ─── audit ─── */

.pl-audit {
  width: 340px;
  overflow: hidden;
  padding-top: 12px;
}
.pl-audit-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 8px;
  border-bottom: 1px solid #efeeec;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
.pl-audit-h .pl-role {
  padding-inline: 6px;
  font-weight: 480;
}
/* the list fades out at the foot instead of a hard crop */
.pl-audit-list {
  height: 196px;
  overflow: hidden;
  padding-top: 4px;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 53px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 53px), transparent);
}
.pl-al {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 8px 12px;
  border-bottom: 1px solid #efeeec;
  color: #44403c;
  font-size: 12px;
  line-height: 17px;
}
.pl-al b {
  color: #0c0a09;
  font-weight: 500;
}
.pl-al .pl-av {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.pl-av.is-teo {
  background: #f5f5f4;
}
.pl-al time {
  color: #a8a29e;
  font-size: 11px;
  line-height: 15px;
}

/* ─── responsive ─── */

@media (max-width: 63.99rem) {
  .plat-inner {
    padding-bottom: 112px;
  }
  .plat-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .plat-lead {
    padding-bottom: 0;
  }
  .plat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }
  /* Team now shares a row with Backup: one visual height keeps their titles level */
  .pcard:not(.is-wide) .pvis.is-tall {
    aspect-ratio: 381 / 323;
  }
  .pcard:not(.is-wide) .pvis.is-tall .pvis-canvas {
    height: 323px;
  }
}
@media (max-width: 47.99rem) {
  .plat-inner {
    padding: 0 20px 96px;
  }
  .plat-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .pcard.is-wide {
    grid-column: auto;
  }
  /* the group stacks onto a narrower canvas: two companies under the parent */
  .pcard.is-wide .pvis {
    aspect-ratio: 440 / 400;
  }
  .pvis.is-tall .pvis-canvas.is-wide {
    width: 440px;
    height: 400px;
  }
  .pl-org .is-c,
  .pl-org .pl-pct:nth-of-type(3),
  .pl-lines path:nth-child(3) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pvis-canvas *,
  .pvis-canvas *::before,
  .pvis-canvas *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ═════════════ Who it's for (Figma "Section", roles) ═════════════
   Heading with the carousel arrows, then a full-bleed track of white role cards (Figma's
   one card, the rest from the page) and the progress rule. The track keeps the page's
   drag / arrow / snap logic (initRoles). Icons are Hugeicons Solid, in the app's blue. */

.roles {
  overflow: hidden;
  background: #f1f1ef;
}
.roles-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}
.roles > .roles-inner:first-of-type {
  padding-top: 144px;
}
.roles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.roles-head-l {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.roles-title {
  align-self: stretch;
  max-width: 720px;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.125;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.roles-nav {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.roles-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: #0c0a09;
  cursor: pointer;
  transition:
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    opacity 240ms var(--ease-out);
}
.roles-nav button:hover {
  background: #0c0a09;
  color: #fafaf9;
}
.roles-nav button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.roles-nav button[aria-disabled="true"]:hover {
  background: #fff;
  color: #0c0a09;
}
.roles-nav button:focus-visible,
.role-btn:focus-visible {
  outline: 2px solid #3385ff;
  outline-offset: 2px;
}
.roles-track {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  overflow-x: auto;
  /* % of the track, not vw, so the first card lines up with the heading under a scrollbar */
  padding-inline: max(32px, calc((100% - 1240px) / 2 + 32px));
  scroll-padding-inline: max(32px, calc((100% - 1240px) / 2 + 32px));
  scroll-snap-type: x mandatory;
  /* a sideways swipe at either end must not turn into the browser's back gesture */
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  /* the track is dragged with the mouse, so its copy is not selectable */
  -webkit-user-select: none;
  user-select: none;
}
.roles-track::-webkit-scrollbar {
  display: none;
}
.roles-track:active {
  cursor: grabbing;
}
.roles-end {
  flex-shrink: 0;
  width: 1px;
}
.role {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 320px;
  min-height: 320px;
  padding: 23px 24px 24px;
  border-radius: 26px;
  background: #fff;
  scroll-snap-align: start;
}
.role-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #2563eb;
  transition: background-color 400ms var(--ease-out);
}
.role-ic svg {
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.role:hover .role-ic {
  background: #dbeafe;
}
.role:hover .role-ic svg {
  transform: scale(1.12) rotate(-6deg);
}
/* the copy sits on the card's foot; three lines are reserved so every title aligns */
.role-body {
  display: grid;
  gap: 4px;
  margin-top: auto;
}
.role-body h3 {
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}
.role-body p {
  min-height: 72px;
  color: #57534e;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}
.role-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  height: 36px;
  margin-top: 24px;
  padding-inline: 14px;
  border-radius: 12px;
  background: #f4f3f0;
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition:
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out);
}
.role-btn svg {
  transition: transform 300ms var(--ease-out);
}
.role-btn:hover {
  background: #0c0a09;
  color: #fafaf9;
}
.role-btn:hover svg {
  transform: translateX(3px);
}
.roles-progress {
  width: 160px;
  height: 2px;
  margin-top: 32px;
  margin-bottom: 144px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(12 10 9 / 0.14);
}
.roles-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0c0a09;
  transition: width 300ms var(--ease-out);
}

/* ═════════════ Pricing (Figma "Section - PRICING", base from concept teo-lp-1) ═════════════
   Centred heading, the billing switch (a white thumb slides between Monthly and Annual),
   three plans with Pro in onyx under a faded photo and an amber top rule, and the
   enterprise strip. initPricing tweens the prices and swaps the billing note. */

.pricing {
  background: #fff;
}
.pricing-inner {
  max-width: 1264px;
  margin-inline: auto;
  padding: 120px 32px 60px;
}
.pricing-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.pricing-title {
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.3rem + 3vw, 4rem);
  font-weight: 500;
  line-height: 1.125;
  font-variation-settings: "GRAD" 0, "ROND" 0;
}
.pricing-lead {
  max-width: 672px;
  color: #474747;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.billing {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.billing-seg {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 16px;
  background: rgb(231 229 228 / 0.6);
}
.billing-seg button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding-inline: 16px;
  color: #57534e;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 520;
  line-height: 22px;
  cursor: pointer;
  transition: color 300ms var(--ease-out);
}
.billing-seg button[aria-pressed="true"] {
  color: #0c0a09;
}
.billing-seg button:focus-visible {
  border-radius: 12px;
  outline: 2px solid #3385ff;
  outline-offset: 2px;
}
.billing-seg em {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(241 162 58 / 0.2);
  color: #8a4b0c;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 14px;
  transition:
    background-color 300ms var(--ease-out),
    color 300ms var(--ease-out);
}
.billing-seg button[aria-pressed="true"] em {
  background: #f1a23a;
  color: #0c0a09;
}
.billing-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 88px;
  border-radius: 12px;
  background: #fff;
  transform: translateX(4px);
  transition:
    transform 500ms var(--ease-out),
    width 500ms var(--ease-out);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border: 1px solid #e7e5e4;
  border-radius: 20px;
  background: #fff;
  color: #0c0a09;
  transition: border-color 300ms var(--ease-out);
}
.plan:hover {
  border-color: #d6d3d1;
}
.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}
.plan-badge {
  height: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1a23a;
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
}
.plan-for {
  margin-top: 6px;
  color: #57534e;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 24px;
}
.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 46px;
  margin-top: 32px;
}
.plan-cur {
  color: #57534e;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 24px;
}
.plan-price b {
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 500;
  line-height: 46px;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.plan-per {
  margin-left: 4px;
  padding-bottom: 1px;
  color: #8a8580;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
}
.plan-bill {
  margin-top: 16px;
  color: #8a8580;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 21px;
  transition: opacity 200ms var(--ease-out);
}
.plan-bill.is-swap {
  opacity: 0;
}
.plan-cta {
  height: 40px;
  margin-top: 24px;
  border-radius: 16px;
  background: #e7e5e4;
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 240ms var(--ease-out);
}
.plan-cta:hover {
  background: #d6d3d1;
}
.plan-cta:focus-visible,
.plans-ent-btn:focus-visible {
  outline: 2px solid #3385ff;
  outline-offset: 2px;
}
.plan-list {
  display: grid;
  gap: 11px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgb(12 10 9 / 0.09);
}
.plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
}
.plan-list svg {
  flex-shrink: 0;
  color: #8a8580;
}
/* Pro: onyx under a faded photo, an amber rule on top */
.plan.is-pro {
  border: 0;
  border-top: 4px solid #f69a21;
  padding-top: 21px;
  background: #0c0a09;
  color: #fafaf9;
}
.plan.is-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../paint/night.jpg) center / cover;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(170deg, #000, transparent 70%);
  mask-image: linear-gradient(170deg, #000, transparent 70%);
  animation: plan-drift 18s ease-in-out infinite alternate;
}
@keyframes plan-drift {
  to {
    transform: scale(1.08) translate(-2%, 1%);
  }
}
.plan.is-pro .plan-for,
.plan.is-pro .plan-cur {
  color: #d6d3d1;
}
.plan.is-pro .plan-per,
.plan.is-pro .plan-bill {
  color: #a8a29e;
}
.plan.is-pro .plan-cta {
  background: #f1a23a;
}
.plan.is-pro .plan-cta:hover {
  background: var(--amber-hover);
}
.plan.is-pro .plan-list {
  border-top-color: rgb(255 255 255 / 0.08);
}
.plan.is-pro .plan-list svg {
  color: #f1a23a;
}
.plans-ent {
  margin-top: 28px;
}
.plans-ent-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  border-radius: 26px;
  background: #f5f5f4;
}
.plans-ent h3 {
  color: #0c0a09;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.plans-ent p {
  margin-top: 3px;
  color: #78716c;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 23px;
}
.plans-ent-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding-inline: 16px;
  border-radius: 16px;
  background: #0c0a09;
  color: #f5f5f4;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 240ms var(--ease-out);
}
.plans-ent-btn svg {
  transition: transform 300ms var(--ease-out);
}
.plans-ent-btn:hover {
  background: #292524;
}
.plans-ent-btn:hover svg {
  transform: translateX(3px);
}

/* ═════════════ Footer (Figma "Component 1") ═════════════
   Brand, blurb and newsletter on the left, three link columns, the base row, and the
   lockup as a watermark that fades out downwards. Content mixes concept teo-lp-1
   (blurb, columns) with this build (newsletter, base row). */

.foot {
  overflow: hidden;
  background: #fff;
  color: #0c0a09;
}
.foot-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 88px 32px 0;
}
.foot-top {
  display: grid;
  grid-template-columns: 332px minmax(0, 1fr);
  gap: 88px;
}
.foot-logo {
  display: inline-block;
}
.foot-logo img {
  display: block;
  width: 92px;
  height: 28px;
}
.foot-blurb {
  margin-top: 27px;
  color: #474747;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 24px;
}
.foot-form {
  margin-top: 24px;
}
.foot-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.foot-field {
  display: flex;
  align-items: center;
  height: 44px;
  margin-top: 12px;
  padding: 4px 4px 4px 16px;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  transition:
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}
.foot-field:focus-within {
  border-color: rgb(12 10 9 / 0.4);
  box-shadow: 0 0 0 4px rgb(241 162 58 / 0.2);
}
.foot-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: #0c0a09;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.foot-field input::placeholder {
  color: #a8a29e;
}
.foot-field button {
  flex-shrink: 0;
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  background: #0c0a09;
  color: #fafaf9;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 240ms var(--ease-out);
}
.foot-field button:hover {
  background: #292524;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-cols h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 560;
  line-height: 20px;
}
.foot-cols ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.foot-cols a,
.foot-cols button {
  color: #78716c;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition:
    color 240ms var(--ease-out),
    background-size 300ms var(--ease-out);
}
.foot-cols a:hover,
.foot-cols button:hover {
  color: #0c0a09;
  background-size: 100% 1px;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 64px;
  padding-top: 24px;
  color: #78716c;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
}
.foot-base-l,
.foot-base-r {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.foot-base a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 240ms var(--ease-out);
}
.foot-base a[aria-label] {
  gap: 6px;
}
.foot-base a:hover {
  color: #0c0a09;
}
.foot-base .is-strong {
  color: #474747;
}
.foot-base-r .is-strong {
  font-weight: 500;
}
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.foot-status i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #15803d;
}
.foot-status i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgb(21 128 61 / 0.5);
  animation: foot-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes foot-ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.foot-sep {
  width: 1px;
  height: 12px;
  background: rgb(12 10 9 / 0.14);
}
/* the lockup, cropped to its top and fading out */
.foot-mark {
  max-width: 1264px;
  height: min(15vw, 190px);
  margin: 64px auto 40px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(#000 20%, transparent);
  mask-image: linear-gradient(#000 20%, transparent);
}
.foot-mark img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.08;
}

@media (max-width: 63.99rem) {
  .roles > .roles-inner:first-of-type {
    padding-top: 112px;
  }
  .roles-progress {
    margin-bottom: 112px;
  }
  .pricing-inner {
    padding-top: 112px;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .plans-ent-in {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .foot-brand {
    max-width: 380px;
  }
}
@media (max-width: 47.99rem) {
  .roles-inner {
    padding-inline: 20px;
  }
  .roles > .roles-inner:first-of-type {
    padding-top: 96px;
  }
  .roles-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .roles-track {
    padding-inline: 20px;
    scroll-padding-inline: 20px;
  }
  .role {
    width: min(82vw, 320px);
  }
  .roles-progress {
    margin-bottom: 96px;
  }
  .pricing-inner {
    padding: 96px 20px 48px;
  }
  .billing {
    margin-top: 40px;
  }
  .plans-ent-in {
    padding: 24px;
  }
  .foot-inner {
    padding: 72px 20px 0;
  }
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
  .foot-base {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-sep {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plan.is-pro::before,
  .foot-status i::before {
    animation: none;
  }
  .role-ic svg {
    transition: none;
  }
}

/* ═════════════ Demo dialog ═════════════ */
@media (max-width: 47.99rem), (max-height: 50rem) {
  dialog.demo-dialog {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
