/* Public front page. Same palette as the app (public/app.css) so a visitor who signs up lands somewhere that looks familiar. */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --char: #1d2126;
  --char-2: #2a3037;
  --line: #3a424b;
  --green: #9be800;
  --green-d: #6fb000;
  --warn: #ffb020;
  --text: #f2f5f8;
  --muted: #a9b4c0;
  --r: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--char); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5; padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.1rem; }
.narrow { max-width: 760px; }
.fine { color: var(--muted); font-size: .85rem; margin-top: .8rem; }
.fine a { color: var(--green); }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--navy); border-bottom: 4px solid var(--green);
  padding: calc(.7rem + env(safe-area-inset-top)) max(1rem, calc((100vw - 1040px) / 2 + 1.1rem)) .7rem;
}
.brand { text-decoration: none; font-weight: 900; letter-spacing: .12em; font-size: 1.1rem; white-space: nowrap; }
.brand span, .mark { color: var(--green); }
.bar-links { display: flex; align-items: center; gap: 1rem; }
.link { text-decoration: none; font-weight: 700; padding: .5rem .25rem; white-space: nowrap; }
.link:hover { color: var(--green); }

/* Buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: .8rem 1.5rem; border-radius: var(--r); text-decoration: none;
  border: 3px solid var(--green-d); background: var(--green); color: #0a1400;
  font-weight: 800; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 5px 0 var(--green-d);
}
.cta:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--green-d); }
.cta:focus-visible, .link:focus-visible, summary:focus-visible, .foot a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta.small { min-height: 44px; padding: .4rem .9rem; font-size: .82rem; box-shadow: none; white-space: nowrap; }
@media (max-width: 480px) { .bar .cta.small { display: none; } }   /* the big Start free button is right below the bar on a phone */
@media (max-width: 420px) { .brand { letter-spacing: .06em; font-size: 1rem; } .bar { gap: .5rem; } .bar-links { gap: .4rem; } .link { font-size: .92rem; } }
.cta.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.cta.ghost:hover { border-color: var(--green); }
.cta-row { display: grid; gap: .8rem; margin-top: 1.5rem; }
.cta-row .cta { white-space: nowrap; }

/* Hero */
.hero { max-width: 1040px; margin: 0 auto; padding: 2rem 1.1rem 3rem; display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: .8rem; }
h1 { font-size: clamp(1.8rem, 8vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; font-weight: 900; }
h1 em { font-style: normal; color: var(--green); }
.lede { color: var(--muted); font-size: 1.12rem; margin-top: 1.1rem; max-width: 34rem; }

/* The sample phone + invoice */
.hero-visual { position: relative; display: grid; justify-items: center; gap: .8rem; padding-bottom: .5rem; }
.phone { width: min(100%, 320px); background: #070f1c; border: 3px solid var(--line); border-radius: 34px; padding: 14px 12px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 6px rgba(155,232,0,.1); }
.paper { background: #fff; color: #14202e; border-radius: 10px; padding: .95rem .9rem 1rem; font-size: .78rem; line-height: 1.35; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 4px solid #0b1f3a; padding-bottom: .6rem; }
.p-title { font-weight: 900; font-size: 1.35rem; letter-spacing: .08em; color: #0b1f3a; }
.p-from { color: #5b6b7c; margin-top: .1rem; }
.p-stamp { border: 2px solid #c62828; color: #c62828; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; padding: .1rem .45rem; transform: rotate(-4deg); }
.p-bill { margin: .6rem 0; color: #5b6b7c; }
.p-bill b { color: #14202e; }
.paper table { width: 100%; border-collapse: collapse; }
.paper td { padding: .45rem 0; border-bottom: 1px solid #d5dce4; vertical-align: top; }
.paper td small { display: block; color: #5b6b7c; font-size: .68rem; }
.paper td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: .5rem; }
.flag { background: #ffb020; color: #3a2400; font-weight: 800; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 .35rem; border-radius: 4px; margin-left: .25rem; }
.p-tot, .p-due { display: flex; justify-content: space-between; padding-top: .4rem; font-variant-numeric: tabular-nums; }
.p-due { border-top: 3px solid #6fb000; margin-top: .4rem; font-weight: 900; font-size: 1.05rem; color: #0b1f3a; }
.chip { display: flex; gap: .6rem; align-items: flex-start; background: var(--char-2); border: 2px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; font-size: .82rem; color: var(--muted); max-width: 320px; width: 100%; }
.chip b { color: var(--text); }
.chip-ico { font-size: 1.4rem; line-height: 1; }

/* Sections */
.section { padding: 3.2rem 1.1rem; }
.band { background: var(--navy); border-top: 1px solid var(--navy-2); border-bottom: 1px solid var(--navy-2); padding: 3.2rem 0; }
.band.alt { background: var(--char-2); border-color: var(--line); }
h2 { font-size: clamp(1.45rem, 4.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 900; }
h3 { font-size: 1.05rem; font-weight: 800; }
.section-lede { color: var(--muted); margin-top: .8rem; max-width: 40rem; }

.steps { display: grid; gap: 1rem; margin-top: 2rem; }
.step { position: relative; background: var(--char); border: 2px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.2rem 1.3rem; }
.num { position: absolute; top: -.9rem; left: 1rem; background: var(--green); color: #0a1400; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.step-ico { font-size: 1.9rem; display: block; margin-bottom: .4rem; }
.step p { color: var(--muted); margin-top: .4rem; }

.trades { display: grid; gap: .8rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.trades li { background: var(--char-2); border: 2px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.trade-ico { font-size: 1.6rem; }
.trades p { color: var(--muted); font-size: .88rem; margin-top: .3rem; font-style: italic; }

.control { display: grid; gap: 2rem; align-items: center; }
.flagged { background: #fff; color: #14202e; border-radius: 12px; padding: .5rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fl { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 0; border-bottom: 1px solid #d5dce4; font-size: .95rem; }
.fl:last-child { border-bottom: 0; }
.fl b { font-variant-numeric: tabular-nums; }
.fl.warn { background: #fff4de; margin: 0 -1rem; padding: .75rem 1rem; border-left: 6px solid var(--warn); }
.fl em { flex-basis: 100%; font-style: normal; font-size: .82rem; color: #8a5400; font-weight: 700; }

.features { display: grid; gap: 1.2rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.features li { display: flex; gap: .9rem; align-items: flex-start; }
.feat-ico { font-size: 1.6rem; background: var(--char-2); border: 2px solid var(--line); border-radius: 12px; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; flex: none; }
.features p { color: var(--muted); font-size: .95rem; margin-top: .15rem; }

.price { text-align: center; }
.price-card { margin: 1.6rem auto 0; max-width: 26rem; background: var(--char); border: 3px solid var(--green); border-radius: 18px; padding: 1.8rem 1.4rem; display: grid; gap: .4rem; justify-items: center; }
.price-big { font-size: 3.6rem; font-weight: 900; color: var(--green); line-height: 1; }
.price-big span { font-size: 1.3rem; color: var(--text); }
.price-then { font-size: 1.15rem; margin-top: .6rem; }
.price-card .cta { margin-top: 1rem; width: 100%; }
.price-card p { color: var(--muted); }

details { background: var(--char-2); border: 2px solid var(--line); border-radius: var(--r); margin-top: .7rem; }
summary { cursor: pointer; font-weight: 800; padding: 1rem 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 1.5rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { padding: 0 1.1rem 1.1rem; color: var(--muted); }
details a { color: var(--green); }
#faq-h { margin-bottom: 1rem; }

.final { background: var(--navy); border-top: 4px solid var(--green); padding: 3.2rem 0; text-align: center; }
.final h2 { max-width: 34rem; margin: 0 auto 1.6rem; }
.final .cta { width: min(100%, 24rem); }

.foot { padding: 1.6rem 0 2.4rem; color: var(--muted); font-size: .85rem; text-align: center; }
.foot a { color: var(--green); }
.foot p { margin-top: .5rem; }

/* Wider screens */
@media (min-width: 560px) {
  .cta-row { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.25fr .75fr; padding: 3.5rem 1.1rem 4.5rem; }
  /* The two chips sit above and below the phone, touching its edge, so they never cover the invoice figures. */
  .hero-visual { padding: 4.6rem 0 5.6rem; }
  .chip { position: absolute; width: 250px; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
  .chip-photo { top: .4rem; left: -1.5rem; transform: rotate(-3deg); }
  .chip-voice { bottom: .4rem; right: -1.5rem; transform: rotate(2.5deg); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .control { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .section, .band { padding-top: 4.2rem; padding-bottom: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
