/* ==========================================================================
   The landing page — the only screen in this product with no work to do.

   Everywhere else, layout serves a biller who is holding a trolley queue. Here
   the reader has time, so the page is allowed depth: a dark teal hero, the
   product's own bill rendered beside it, and real figures counted out of the
   database underneath. It is still not decoration for its own sake — every
   section answers "what is this and can I try it".
   ========================================================================== */

.lp {
  --lp-gutter: clamp(20px, 5vw, 64px);
  --lp-max: 1180px;
  background: var(--surface);
}

/* -- nav ------------------------------------------------------------------ */

.lp__nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--lp-gutter);
  padding-top: max(var(--sp-3), env(safe-area-inset-top));
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.lp__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: inherit;
  margin-inline-end: auto;
}

.lp__brandmark {
  inline-size: 38px;
  block-size: 38px;
  flex: none;
  border-radius: var(--r-sm);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--e-1);
}

/* The published lockup. Given its own height and left to keep its ratio, so
   it is never stretched to fit a box. */
.lp__wordmark {
  height: 30px;
  width: auto;
}

.lp__brandsuffix {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* --ink-faint on the nav ground is about 3:1, which fails AA at this size.
     --ink-muted is roughly 7:1 and still reads as secondary to the wordmark. */
  color: var(--ink-muted);
  padding-inline-start: var(--sp-3);
  margin-inline-start: var(--sp-1);
  border-inline-start: 1px solid var(--line);
}

.lp__brandtext b {
  display: block;
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lp__brandtext span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lp__navlinks {
  display: none;
  gap: var(--sp-1);
}

.lp__navlinks a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.lp__navlinks a:hover {
  background: var(--brand-tint);
  color: var(--brand);
}

.lp__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: 42px;
  padding-inline: var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--e-brand);
  transition: transform var(--dur-fast) var(--ease-out);
}

.lp__cta:hover { transform: translateY(-1px); }
.lp__cta:active { transform: translateY(0); }

@media (min-width: 860px) {
  .lp__navlinks { display: flex; }
}

/* -- hero ------------------------------------------------------------------
   The one full-bleed dark surface in the product. Text on it is white, so the
   ground is fixed rather than themed: a "light mode" version of this block
   would need a second set of contrast decisions for no benefit.
   ------------------------------------------------------------------------- */

.lp__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--grad-brand-deep);
  color: #eaf6f8;
  padding: clamp(48px, 9vw, 104px) var(--lp-gutter) clamp(56px, 10vw, 120px);
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

/* A slow teal bloom behind the headline, and a faint grid over the whole
   block — the same two devices as the sign-in screen, so the demo feels like
   one place rather than two. */
.lp__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(48rem 34rem at 18% 8%, rgb(32 178 200 / 0.34) 0%, transparent 62%),
    radial-gradient(38rem 30rem at 96% 94%, rgb(249 115 22 / 0.2) 0%, transparent 60%);
}

.lp__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 30% 40%, #000 0%, transparent 78%);
}

.lp__heroinner {
  max-inline-size: 34rem;
  animation: lp-rise var(--dur-grand) var(--ease-out) both;
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.lp__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #9fe6f2;
  padding: 6px var(--sp-3);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(159 230 242 / 0.28);
  margin-block-end: var(--sp-5);
}

.lp__dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: #4ecee0;
  box-shadow: 0 0 0 0 rgb(78 206 224 / 0.7);
  animation: lp-pulse 2.4s var(--ease-out) infinite;
}

@keyframes lp-pulse {
  70% { box-shadow: 0 0 0 9px rgb(78 206 224 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(78 206 224 / 0); }
}

.lp__h1 {
  font-size: clamp(2.15rem, 1.3rem + 4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #fff;
}

.lp__grad {
  background: linear-gradient(100deg, #4ecee0 10%, #8ce4f0 48%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp__lede {
  margin-block-start: var(--sp-5);
  font-size: var(--text-lg);
  line-height: 1.62;
  color: rgb(234 246 248 / 0.84);
  max-inline-size: 48ch;
}

.lp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-8);
}

.lp__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: 54px;
  padding-inline: var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
}

.lp__btn:hover { transform: translateY(-2px); }

/* The chevron leans into the hover, so the button reads as a way through
   rather than a label. */
.lp__btn svg { transition: transform var(--dur-fast) var(--ease-out); }
.lp__btn:hover svg { transform: translateX(3px); }
.lp__btn:active { transform: translateY(0); }

/* The single orange thing on the page, and it is the way in. */
.lp__btn--accent {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--e-accent);
}

.lp__btn--ghost {
  color: #eaf6f8;
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.04);
}

.lp__btn--ghost:hover { background: rgb(255 255 255 / 0.1); }

.lp__hint {
  margin-block-start: var(--sp-5);
  font-size: var(--text-sm);
  color: rgb(234 246 248 / 0.6);
}

/* -- the bill preview ------------------------------------------------------
   A real bill from the demo's own database, drawn at the size it appears on a
   phone. Showing the product beats describing it.
   ------------------------------------------------------------------------- */

.lp__device {
  justify-self: center;
  inline-size: min(100%, 340px);
  animation: lp-rise var(--dur-grand) var(--ease-out) 120ms both;
}

.lp__screen {
  border-radius: var(--r-xl);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 40px 80px rgb(3 26 32 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.1);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transform-origin: center;
}

@media (max-width: 900px) {
  .lp__screen { transform: none; }
}

.lp__screenbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--grad-brand);
  color: #fff;
}

.lp__screenmark {
  inline-size: 26px;
  block-size: 26px;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
}

.lp__screentitle {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-inline-end: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp__screenpill {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.18);
}

.lp__lines {
  list-style: none;
  padding: var(--sp-2) 0;
  margin: 0;
}

.lp__line {
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.86rem;
  border-bottom: 1px solid rgb(15 23 42 / 0.06);
  /* Lines arrive one after another, as if they were just scanned. */
  animation: lp-line-in var(--dur-base) var(--ease-out) both;
  animation-delay: calc(340ms + var(--i, 0) * 110ms);
}

@keyframes lp-line-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.lp__lineqty {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.76rem;
  color: #0e6e7c;
  background: rgb(14 110 124 / 0.09);
  border-radius: var(--r-xs);
  padding: 2px 0;
  text-align: center;
}

.lp__linename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e293b;
}

.lp__lineamt { color: #0f172a; }

.lp__totals {
  padding: var(--sp-3) var(--sp-4);
  background: #f1f5f8;
  display: grid;
  gap: 6px;
}

.lp__totalrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: #475569;
}

.lp__totalrow--grand {
  margin-block-start: var(--sp-1);
  padding-block-start: var(--sp-2);
  border-top: 1px solid rgb(15 23 42 / 0.14);
  color: #0f172a;
  font-weight: 700;
}

.lp__pay {
  margin: var(--sp-3) var(--sp-4) var(--sp-4);
  min-block-size: 52px;
  border-radius: var(--r-md);
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--e-accent);
}

@media (min-width: 940px) {
  .lp__hero {
    grid-template-columns: 1.05fr 0.95fr;
    max-inline-size: calc(var(--lp-max) + var(--lp-gutter) * 2);
    margin-inline: auto;
  }
  .lp__device { inline-size: min(100%, 380px); justify-self: end; }
}

/* -- stat band -------------------------------------------------------------
   Lifted so it straddles the hero's bottom edge: the figures are the evidence
   for the claim directly above them, and the overlap says so.
   ------------------------------------------------------------------------- */

.lp__numbers {
  max-inline-size: var(--lp-max);
  margin: calc(clamp(56px, 10vw, 120px) * -0.5) auto 0;
  padding-inline: var(--lp-gutter);
  position: relative;
  z-index: 1;
}

.lp__sectionlabel {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-block-end: var(--sp-4);
}

.lp__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--e-3);
}

.lp__stat {
  background: var(--surface-raised);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
}

.lp__stat dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lp__stat dd {
  margin: var(--sp-1) 0 0;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.lp__stat p {
  margin-block-start: var(--sp-1);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.45;
}

/* -- flow ------------------------------------------------------------------ */

.lp__flow {
  max-inline-size: var(--lp-max);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 104px) var(--lp-gutter) 0;
}

.lp__flowhead {
  max-inline-size: 44ch;
  margin-block-end: var(--sp-10);
}

.lp__flowhead h2 {
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.lp__flowhead p {
  margin-block-start: var(--sp-3);
  color: var(--ink-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.lp__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
  counter-reset: step;
}

.lp__step {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.lp__step:hover {
  transform: translateY(-3px);
  box-shadow: var(--e-3);
  border-color: color-mix(in oklab, var(--brand) 32%, transparent);
}

.lp__stepno {
  position: absolute;
  top: var(--sp-4);
  inset-inline-end: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: color-mix(in oklab, var(--brand) 32%, transparent);
}

.lp__stepicon {
  color: var(--brand);
  margin-block-end: var(--sp-3);
}

.lp__step h3 {
  font-size: var(--text-lg);
  margin-block-end: var(--sp-2);
}

.lp__step p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* -- pillars --------------------------------------------------------------- */

.lp__pillars {
  max-inline-size: var(--lp-max);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 88px) var(--lp-gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.lp__pillar {
  padding-block-start: var(--sp-4);
  border-top: 3px solid var(--brand);
}

.lp__pillar h3 {
  font-size: var(--text-lg);
  margin-block-end: var(--sp-2);
}

.lp__pillar p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.lp__pillar:nth-child(2) { border-top-color: var(--accent); }
.lp__pillar:nth-child(3) { border-top-color: var(--chart-3); }

/* -- foot ------------------------------------------------------------------ */

.lp__foot {
  background: var(--navy-900);
  color: rgb(233 239 245 / 0.72);
  padding: var(--sp-10) var(--lp-gutter);
  padding-bottom: max(var(--sp-10), env(safe-area-inset-bottom));
}

.lp__footinner {
  max-inline-size: var(--lp-max);
  margin-inline: auto;
  display: grid;
  gap: var(--sp-5);
}

.lp__footbrand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.lp__footbrand b { color: #fff; font-size: var(--text-base); }
.lp__footbrand span { font-size: var(--text-sm); }

.lp__footnote {
  font-size: var(--text-sm);
  max-inline-size: 62ch;
  line-height: 1.6;
}

.lp__footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-block-start: var(--sp-5);
  border-top: 1px solid rgb(233 239 245 / 0.12);
}

.lp__footlinks a {
  color: rgb(233 239 245 / 0.78);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.lp__footlinks a:hover { color: #4ecee0; }

@media (min-width: 760px) {
  .lp__footinner {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: var(--sp-10);
  }
  .lp__footlinks { grid-column: 1 / -1; }
}

/* -- prose (the notice page) ----------------------------------------------- */

.page--prose { padding-block: var(--sp-8); }

.prose {
  max-inline-size: 68ch;
  margin-inline: auto;
}

.prose__head { margin-block-end: var(--sp-8); }

.prose__mark {
  display: grid;
  place-items: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--e-1), inset 0 0 0 1px color-mix(in oklab, var(--navy-900) 9%, transparent);
  margin-block-end: var(--sp-4);
}

.prose__head h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
}

.prose__stand {
  margin-block-start: var(--sp-3);
  color: var(--ink-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.prose__callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--warning-surface);
  color: var(--ink);
  border-inline-start: 4px solid var(--warning);
  margin-block-end: var(--sp-8);
}

.prose__callout svg { color: var(--warning); flex: none; margin-block-start: 3px; }
.prose__callout p { font-size: var(--text-sm); line-height: 1.62; }

.prose h2 {
  margin-block: var(--sp-8) var(--sp-3);
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-muted);
  line-height: 1.72;
}

.prose p + p { margin-block-start: var(--sp-3); }

.prose ul {
  margin-block-start: var(--sp-3);
  padding-inline-start: 1.2em;
  display: grid;
  gap: var(--sp-2);
}

.prose strong { color: var(--ink); }

.prose__back {
  margin-block-start: var(--sp-10);
  padding-block-start: var(--sp-6);
  border-top: 1px solid var(--line);
}
