/* paychaser.org — the public site. Same colours as the app (apps/web/src/styles.css). Fonts are self-hosted (SIL OFL 1.1, see fonts/). */
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/fonts/newsreader.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F3F6F4; --surface: #fff; --ink: #12201C; --ink-2: #3C4A46; --mute: #5B6964;
  --line: #D8E0DC; --line-soft: #E4EAE7; --pine: #14533F; --pine-dark: #0E3D2E; --ok-bg: #E6F3EC; --on-pine: #9FD8BD;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--pine); }
a:hover { color: var(--pine-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(5vw, 20px); padding-right: max(5vw, 20px); }
.narrow { max-width: 760px; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 46ch; }
.sub { color: var(--ink-2); max-width: 60ch; }
.small { font-size: 14px; color: var(--mute); }

/* header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark { width: 32px; height: 32px; border-radius: 8px; background: var(--pine); color: #fff; display: grid; place-items: center; font-family: Newsreader, Georgia, serif; font-size: 20px; }
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.navlinks a:not(.btn):hover { color: var(--pine); }
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn.solid { background: var(--pine); color: #fff; }
.btn.solid:hover { background: var(--pine-dark); color: #fff; }
.btn.line { border: 1px solid #B9C6C0; color: var(--pine); background: #fff; }
.btn.line:hover { border-color: var(--pine); }
.btn.compact { min-height: 44px; padding: 10px 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* cards: fine grain, then the lintejas.io deck treatment in PayChaser's colours — soft light and a pixel-dot screen fading out from the top corner, with a thin arc */
.card { position: relative; isolation: isolate; overflow: hidden; background: #fff radial-gradient(rgba(18,32,28,.035) .6px, transparent .9px) 0 0 / 4px 4px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(18,32,28,.06), 0 8px 24px rgba(18,32,28,.06), inset 0 1px 0 rgba(255,255,255,.8); padding: 22px; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px 200px at 100% 0%, rgba(20,83,63,.11), transparent 70%), radial-gradient(circle, rgba(20,83,63,.48) .5px, transparent .8px) 0 0 / 3px 3px;
  -webkit-mask-image: radial-gradient(140% 120% at 100% 0%, #000 0%, rgba(0,0,0,.7) 40%, transparent 80%); mask-image: radial-gradient(140% 120% at 100% 0%, #000 0%, rgba(0,0,0,.7) 40%, transparent 80%); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 100% 0%, transparent 0 110px, rgba(20,83,63,.34) 110px 111px, transparent 112px); }
.card h3 { font-size: 19px; margin: 0 0 6px; }
.card p { color: var(--ink-2); font-size: 15px; }
@media (forced-colors: active) { .card::before, .card::after { display: none; } }

/* sections */
.sec { padding: 64px 0; }
.sec.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { font-size: 38px; }
.sec h2 + .sub { margin: 10px 0 28px; }
.grid { display: grid; gap: 16px; }
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.04; max-width: 13ch; }
.hero .lede { margin: 22px 0 30px; }
.hero .small { margin-top: 16px; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.steps .n { font-family: Newsreader, Georgia, serif; font-size: 28px; color: var(--pine); line-height: 1.2; }
.steps h3 { font-size: 20px; margin: 6px 0; }
.feat { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }

/* the example timeline */
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-amount { font-family: Newsreader, Georgia, serif; font-size: 30px; font-weight: 600; }
.tl { list-style: none; margin: 22px 0 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.tl .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--pine); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tl .dot.done { background: var(--pine); }
.tl b { font-weight: 600; }
.tl .q { font-size: 14px; color: var(--mute); }
.tl .when { font-size: 13px; color: var(--mute); white-space: nowrap; }
.tl .paid { color: var(--pine); font-weight: 600; }

/* polite band */
.band { padding: 64px 0; background: var(--pine); color: #fff; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.band h2 { font-size: 38px; color: #fff; max-width: 14ch; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.band li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.band li span:first-child { color: var(--on-pine); font-weight: 700; }

/* plans */
.plan { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.plan h3 { font-size: 24px; margin: 0; }
.plan.best { border: 2px solid var(--pine); }
.plan .price b { font-family: Newsreader, Georgia, serif; font-size: 42px; font-weight: 600; }
.plan .price span { color: var(--mute); }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; flex-grow: 1; align-content: start; }
.pill { font-size: 13px; font-weight: 600; background: var(--ok-bg); color: var(--pine); padding: 4px 10px; border-radius: 99px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: 34px; max-width: 20ch; }

/* legal pages */
.legal main { padding-top: 56px; padding-bottom: 72px; font-size: 17px; line-height: 1.65; }
.legal h1 { font-size: 46px; line-height: 1.1; margin: 4px 0 20px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 0; display: grid; gap: 6px; }
.legal .table { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.legal thead th { border-top: 0; background: #F8FAF9; font-weight: 600; }

@media (max-width: 900px) {
  .hero .wrap, .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feat, .plans, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks a.wide-only { display: none; }
}
@media (max-width: 600px) {
  .feat, .plans, .steps, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 40px; }
  .sec h2, .band h2 { font-size: 32px; }
  .legal h1 { font-size: 36px; }
  .navlinks { gap: 12px; margin-left: auto; }
  .top .wrap { gap: 0 12px; padding-top: 6px; padding-bottom: 6px; }
  .btn.compact { padding: 10px 14px; font-size: 15px; }
}
