/* Stall Bill design system.
   Colours are the original palette; type, shape and spacing follow a calm, studio-style feel:
   one grotesque sans, two-tone headlines, pill buttons, big soft cards, small mono labels. */

/* Geist for text; the naira sign comes from Inter (Geist has no ₦). Same family name, so the
   browser stitches them together and only fetches the 1 KB naira file when ₦ is on the page. */
@font-face {
  font-family: "GP Sans";
  src: url("fonts/geist-latin-wght.a147f99cd533.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "GP Sans";
  src: url("fonts/naira-inter-wght.3f8e84ba2171.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20A6;
}

:root {
  /* Original colours */
  --ink: #1b1f1d;
  --muted: #5b625e;
  --line: #d9dedb;
  --bg: #f7f8f6;
  --card: #ffffff;
  --brand: #0f5132;
  --brand-ink: #ffffff;
  --whatsapp: #1f8f4e;
  --danger: #a1261b;
  --danger-bg: #fbeceb;
  --notice-bg: #fff3cd;
  --notice-ink: #6b4e00;
  --paid-bg: #d8f0e0;
  --part-bg: #e2ecfb;
  --part-ink: #1d4380;
  /* Tints derived from them */
  --faint: #8d938f;
  --hair: rgba(27, 31, 29, 0.08);
  --soft: rgba(27, 31, 29, 0.055);
  --soft-hover: rgba(27, 31, 29, 0.09);
  --brand-soft: rgba(15, 81, 50, 0.08);
  --ring: 0 0 0 4px rgba(15, 81, 50, 0.16);
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.04), 0 10px 30px -12px rgba(16, 24, 20, 0.12);
  --shadow-lift: 0 1px 2px rgba(16, 24, 20, 0.05), 0 18px 40px -16px rgba(16, 24, 20, 0.22);
  --r-card: 22px;
  --r-field: 14px;
  --sans: "GP Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 450 16px/1.5 var(--sans);
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 34rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* ---------- Type ---------- */
h1 { font-size: 2rem; line-height: 1.08; font-weight: 560; letter-spacing: -0.032em; margin: 0.25rem 0 1.25rem; }
h1 .faint, .display .faint { color: var(--faint); }
/* Section labels: small, mono, letter-spaced. */
h2 {
  font: 500 0.72rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong, b { font-weight: 620; }
p { margin: 0.4rem 0; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.big { font-size: 2.6rem; line-height: 1.05; font-weight: 560; letter-spacing: -0.04em; }
.eyebrow { font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- App bar + tabs ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  padding-top: max(0.7rem, env(safe-area-inset-top));
  /* No backdrop-filter here on phones: it would make this bar the containing block for the
     position:fixed tab bar inside it, pinning the tabs to the header instead of the screen. */
  background: rgba(247, 248, 246, 0.96);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.015em; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-size: 0.9rem; font-weight: 600;
}
.icon-link {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  color: var(--muted); background: var(--soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-link:hover, .icon-link.active { color: var(--ink); background: var(--soft-hover); }

/* Phones: the tab bar sits at the bottom, in thumb reach, like an installed app. */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--hair);
}
.tab {
  display: grid; justify-items: center; gap: 0.15rem;
  padding: 0.35rem 0.1rem;
  font-size: 0.68rem; font-weight: 520; letter-spacing: 0;
  color: var(--faint); text-decoration: none;
  border-radius: 14px;
  transition: color 0.2s var(--ease);
}
.tab.active { color: var(--brand); }
.tab-new { color: var(--ink); }
.tab-new .icon {
  width: 2.6rem; height: 2.6rem; padding: 0.55rem; margin-top: -1.15rem;
  border-radius: 50%; color: var(--brand-ink); background: var(--brand);
  box-shadow: 0 8px 18px -6px rgba(15, 81, 50, 0.55); stroke-width: 2.2;
}
body.has-tabs { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }

/* Desktop: tabs move into the app bar as a segmented pill. */
@media (min-width: 760px) {
  .appbar {
    padding: 0.8rem 1.5rem; background: rgba(247, 248, 246, 0.82);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  }
  .tabs {
    position: static; display: flex; gap: 0.15rem; padding: 0.25rem;
    background: var(--soft); border: 0; border-radius: 999px;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tab { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; font-size: 0.88rem; color: var(--muted); border-radius: 999px; }
  .tab .icon { width: 18px; height: 18px; }
  .tab:hover { color: var(--ink); }
  .tab.active { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(16, 24, 20, 0.08); }
  .tab-new .icon { width: 18px; height: 18px; padding: 0; margin: 0; background: none; color: var(--brand); box-shadow: none; }
  .tab-new { color: var(--brand); }
  body.has-tabs { padding-bottom: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 1.15rem 1.2rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0.35rem 0; }
.card > h2:first-child, .card > span.muted.small:first-child { margin-top: 0; }
.card > span.muted.small:first-child { display: block; font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }

/* Home hero: what you're owed, on the brand colour. */
.owed { display: grid; gap: 0.35rem; }
a.card.owed.linkcard {
  background: var(--brand); color: var(--brand-ink);
  padding: 1.4rem 1.4rem 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(15, 81, 50, 0.6);
  position: relative; overflow: hidden;
}
a.card.owed.linkcard::after {
  content: ""; position: absolute; right: -3.5rem; top: -3.5rem; width: 11rem; height: 11rem;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
}
a.card.owed.linkcard .muted { color: rgba(255, 255, 255, 0.72); }
a.card.owed.linkcard .small {
  justify-self: start; margin-top: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: var(--brand-ink); font-weight: 520;
}
/* "Who owes you" total card keeps the light style but a big number. */
.card.owed:not(.linkcard) .big { color: var(--ink); }

a.linkcard { display: grid; color: var(--ink); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
a.linkcard:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }

/* ---------- Buttons ---------- */
button, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font: inherit; font-weight: 560; letter-spacing: -0.01em;
  min-height: 3rem; padding: 0.75rem 1.35rem;
  border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
a.button { display: flex; width: 100%; }
button:hover, a.button:hover { filter: brightness(1.08); }
button:active, a.button:active { transform: scale(0.98); }
button:focus-visible, a.button:focus-visible, a:focus-visible { outline: none; box-shadow: var(--ring); }
button.secondary, a.button.secondary {
  background: var(--soft); color: var(--ink); border: 0;
}
button.secondary:hover, a.button.secondary:hover { background: var(--soft-hover); filter: none; }
button.danger { background: var(--danger); }
a.button.whatsapp, button.whatsapp { background: var(--whatsapp); }
.actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.actions > * { flex: 1; }
.send { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin: 0 0 1.25rem; }
.signout { margin-top: 2.5rem; text-align: center; }
.signout button { min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.92rem; }

/* ---------- Forms ---------- */
.stack { display: grid; gap: 1rem; margin: 1rem 0; }
label { display: grid; gap: 0.4rem; font-weight: 540; font-size: 0.92rem; }
label.check { display: flex; align-items: center; gap: 0.6rem; font-weight: 450; }
input, select, textarea {
  font: inherit; color: var(--ink);
  min-width: 0; /* a file input's natural width otherwise stretches the form past the card */
  min-height: 3rem; padding: 0.75rem 0.95rem;
  background: var(--card);
  border: 1px solid rgba(27, 31, 29, 0.13);
  border-radius: var(--r-field);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type=checkbox] { min-height: 0; width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
input[type=file] { width: 100%; padding: 0.55rem; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b625e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.1rem; }
textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: 0.86rem; margin: -0.55rem 0 0; }
.error { color: var(--danger); background: var(--danger-bg); border-radius: var(--r-field); padding: 0.8rem 1rem; margin: 0 0 1rem; }
ul.error { padding-left: 1.8rem; }
.form-card { padding: 1.4rem 1.3rem; }
fieldset.lines { border: 0; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
fieldset.lines legend { font-weight: 540; font-size: 0.92rem; margin-bottom: 0.45rem; }
.line { display: grid; grid-template-columns: 1fr 3.75rem 6.75rem; gap: 0.45rem; }
.line.head { font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.line input { min-width: 0; }
.new-customer { display: grid; gap: 1rem; padding: 1rem; border-radius: var(--r-field); background: var(--soft); border: 0; }

/* ---------- Lists: one grouped card, hairline rows ---------- */
.list {
  list-style: none; padding: 0; margin: 0;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden;
}
.list li { background: transparent; border: 0; }
.list li + li { border-top: 1px solid var(--hair); }
/* Row links only: buttons inside a row (Confirm, Remind) keep their own button colours. */
.list li a:not(.button) {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.1rem; color: var(--ink); text-decoration: none;
  transition: background 0.15s var(--ease);
}
.list li a:not(.button):hover { background: rgba(27, 31, 29, 0.025); }
.list.plain li { padding: 1rem 1.1rem; }
.row-end { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-weight: 520; }

/* Status chips */
.pill {
  display: inline-block; vertical-align: middle;
  font-size: 0.72rem; font-weight: 580; letter-spacing: 0.01em; line-height: 1.5;
  padding: 0.12rem 0.6rem; border-radius: 999px;
  background: var(--notice-bg); color: var(--notice-ink);
}
.pill.part_paid { background: var(--part-bg); color: var(--part-ink); }
.pill.paid { background: var(--paid-bg); color: var(--brand); }
.pill.void { background: #ececec; color: #555; }

/* Debtors */
.debtors li { display: grid; gap: 0.35rem; }
.debtor-head { display: flex; justify-content: space-between; gap: 0.75rem; font-weight: 560; }
.overdue { color: var(--danger); font-weight: 560; }
.remind { margin-top: 0.45rem; min-height: 2.75rem; }
.upsell { margin-top: 1rem; display: grid; gap: 0.6rem; }
.upsell p { margin: 0; }

/* ---------- Invoice tables ---------- */
table.items {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden;
  margin: 0 0 1rem;
}
table.items td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.items tr:last-child td { border-bottom: 0; }
table.items .num { text-align: right; white-space: nowrap; font-weight: 520; }
table.items tr.total td { font-weight: 640; font-size: 1.02rem; }
table.items tfoot td { background: rgba(27, 31, 29, 0.018); }

/* ---------- Flash messages ---------- */
.flash { padding: 0.85rem 1rem; border-radius: var(--r-field); background: var(--paid-bg); color: var(--brand); margin: 0 0 1rem; font-weight: 500; }
.flash.error { background: var(--danger-bg); color: var(--danger); }
.flash.notice { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--notice-bg); color: var(--notice-ink); text-decoration: none; }

details { margin: 1rem 0; }
summary { cursor: pointer; color: var(--danger); font-weight: 540; }

/* ---------- Public invoice page (buyers) ---------- */
body.public .wrap { padding-top: 2rem; }
body.public .seller { margin-bottom: 1.25rem; }
body.public .seller h1 { margin-bottom: 0.25rem; }
.seller-logo { display: block; max-height: 56px; max-width: 180px; margin-bottom: 0.9rem; border-radius: 12px; }
.logo-preview { max-height: 64px; max-width: 200px; border-radius: 12px; }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 0; font-size: 1.05rem; }
.pay-to { display: grid; gap: 0.15rem; }
.pay-to h2 { margin: 0 0 0.6rem; }
.pay-to .acct { display: flex; align-items: center; gap: 0.75rem; font-size: 1.6rem; font-weight: 600; letter-spacing: 0.04em; margin: 0.1rem 0; }
.pay-to .acct button { min-height: 2.2rem; padding: 0.3rem 0.9rem; font-size: 0.86rem; letter-spacing: 0; }
.big-amount { font-size: 2.3rem; line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; margin-top: 0.6rem !important; }
details.card { padding: 0; overflow: hidden; }
details.card > summary { padding: 1.1rem 1.2rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform 0.25s var(--ease); }
details.card[open] > summary::after { transform: rotate(45deg); }
details.card > form { padding: 0 1.2rem 1.2rem; margin: 0; }
.plain-summary { color: var(--brand); font-weight: 600; }
.paid-note { color: var(--brand); font-weight: 600; }
.public-footer { margin-top: 2.5rem; text-align: center; color: var(--faint); font-size: 0.82rem; }
.public-footer p { margin: 0.35rem 0; }
.public-footer a { color: var(--muted); }

/* ---------- Install app ---------- */
.install-btn { background: var(--brand-soft); color: var(--brand); }
.install-btn:hover { background: rgba(15, 81, 50, 0.14); filter: none; }
.install-btn .icon { width: 19px; height: 19px; }
.install-btn.secondary { background: var(--soft); color: var(--ink); }
.install-btn.compact { flex: none; min-height: 2.5rem; padding: 0.4rem 0.9rem; font-size: 0.88rem; }
@media (max-width: 360px) { .install-btn.compact span { display: none; } .install-btn.compact { padding: 0.4rem 0.65rem; } }
.install-row { text-align: center; margin-top: 0.75rem; }
/* Inside the installed app the install buttons never show, even before any script runs. */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  [data-install-app] { display: none !important; }
}
dialog.sheet {
  width: min(28rem, calc(100vw - 2rem)); border: 0; padding: 1.5rem 1.4rem 1.3rem;
  border-radius: var(--r-card); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift);
}
dialog.sheet::backdrop { background: rgba(16, 24, 20, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.sheet h2 { margin: 0 0 0.5rem; font: 600 1.35rem/1.2 var(--sans); letter-spacing: -0.025em; text-transform: none; color: var(--ink); }
.sheet-lede { color: var(--muted); margin: 0 0 1rem; }
ol.sheet-steps { margin: 0 0 1.25rem; padding-left: 1.3rem; display: grid; gap: 0.6rem; }
p.sheet-steps { margin: 0 0 1.25rem; }
dialog.sheet form button { width: 100%; }
@media (max-width: 520px) {
  /* Phones: the help slides up from the bottom like a native sheet. */
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }
}
.site-footer { text-align: center; padding: 1.5rem 1rem 2rem; font-size: 0.8rem; color: var(--faint); }
.site-footer a { color: var(--muted); }
body.has-tabs .site-footer { padding-bottom: 1rem; }

/* ---------- Auth pages ---------- */
.auth { max-width: 26rem; margin: 0 auto; padding-top: 1.5rem; }
.mark { width: 3rem; height: 3rem; border-radius: 14px; box-shadow: 0 8px 20px -8px rgba(15, 81, 50, 0.55); display: block; margin-bottom: 1.5rem; }
.auth h1 { font-size: 2.1rem; }
.auth .lede { color: var(--muted); margin: -0.6rem 0 1.4rem; }
.auth .switch { text-align: center; margin-top: 1.25rem; color: var(--muted); }

/* ---------- Landing page ---------- */
body.landing .wrap { max-width: 72rem; padding: 0 1.25rem 3rem; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.lp-logo { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.lp-logo img { width: 2rem; height: 2rem; border-radius: 9px; }
.lp-bar nav { display: flex; gap: 0.4rem; }
.lp-bar .button { width: auto; min-height: 2.5rem; padding: 0.45rem 1.05rem; font-size: 0.92rem; }
.lp-hero { display: grid; gap: 2.5rem; align-items: center; padding: 2.5rem 0 3rem; }
.display { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.02; font-weight: 560; letter-spacing: -0.045em; margin: 0.9rem 0 1.1rem; }
.lp-hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 30rem; margin: 0 0 1.6rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lp-cta .button { width: auto; }
.lp-note { margin-top: 1rem; font-size: 0.86rem; color: var(--faint); }
.lp-note a { color: var(--muted); }
.lp-shot { position: relative; justify-self: center; width: min(19rem, 78vw); }
.phone {
  border-radius: 2.4rem; padding: 0.55rem; background: #111513;
  box-shadow: 0 40px 80px -30px rgba(16, 24, 20, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 1.9rem; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-lift);
  font-size: 0.8rem; font-weight: 540; white-space: nowrap;
}
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--whatsapp); }
.chip-a { left: -2.2rem; top: 18%; }
.chip-b { right: -2rem; top: 52%; }
.chip-c { left: -1rem; bottom: 9%; }
.lp-section { padding: 3.5rem 0 1rem; }
.lp-shot-center { margin: 0 auto; }
.plan.featured .eyebrow { color: rgba(255, 255, 255, 0.7); }
body.landing .site-footer { display: none; }
.lp-section > .eyebrow { display: block; text-align: center; }
.lp-section > h2.display { text-align: center; font-size: clamp(1.9rem, 5vw, 2.9rem); text-transform: none; font-family: var(--sans); letter-spacing: -0.04em; color: var(--ink); max-width: 40rem; margin: 0.8rem auto 2.2rem; }
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 1.4rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 0.9rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.plans { display: grid; gap: 1rem; max-width: 46rem; margin: 0 auto; }
.plan { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 1.6rem; display: grid; gap: 0.6rem; align-content: start; }
.plan.featured { background: var(--brand); color: var(--brand-ink); box-shadow: 0 24px 50px -24px rgba(15, 81, 50, 0.7); }
.plan.featured .muted, .plan.featured li { color: rgba(255, 255, 255, 0.78); }
.plan .price { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 0.95rem; font-weight: 450; letter-spacing: 0; opacity: 0.7; }
.plan ul { margin: 0.4rem 0 0.2rem; padding-left: 1.1rem; color: var(--muted); }
.plan li { margin: 0.25rem 0; }
.plan.featured .button { background: var(--card); color: var(--brand); }
.lp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding: 2.5rem 0 1rem; margin-top: 3rem; border-top: 1px solid var(--hair); color: var(--faint); font-size: 0.85rem; }
.lp-footer a { color: var(--muted); }
@media (min-width: 860px) {
  .lp-hero { grid-template-columns: 1.15fr 0.85fr; padding: 4.5rem 0 4rem; }
  /* Wide screens: chips sit beside the phone so they never cover what's on its screen. */
  .chip-a { left: -9.5rem; top: 30%; }
  .chip-b { right: -8rem; top: 50%; }
  .chip-c { left: -10.5rem; bottom: 16%; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .chip-a { left: -0.75rem; } .chip-b { right: -0.75rem; } .chip-c { left: 0; }
}

/* Calm entrance on page load; nothing moves for people who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .wrap > * { animation: rise 0.5s var(--ease) both; }
  .wrap > *:nth-child(2) { animation-delay: 0.04s; }
  .wrap > *:nth-child(3) { animation-delay: 0.08s; }
  .wrap > *:nth-child(4) { animation-delay: 0.12s; }
  .chip { animation: float 6s ease-in-out infinite; }
  .chip-b { animation-delay: -2s; } .chip-c { animation-delay: -4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Landing top bar: the install button joins it on wider screens; phones use the one beside "Start free". */
.lp-logo, .lp-bar .button { white-space: nowrap; }
@media (max-width: 600px) { .lp-bar .install-btn { display: none !important; } }
