/* Landing + legal pages. Standalone: does not depend on styles.css (the app stylesheet). */
:root {
  --ink: #0b1220;
  --ink-2: #0f182b;
  --slate: #161f33;
  --line: #2a3652;
  --text: #e8ecf5;
  --muted: #9aa6c0;
  --amber: #f5b301;
  --amber-ink: #1a1400;
  --paper: #eef1f6;
  --paper-ink: #101828;
  --paper-muted: #5b6578;
  --paid: #1f8f4e;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--amber); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .88rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.tint { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ---- header / footer ---- */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(11, 18, 32, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.bar-nav { display: flex; align-items: center; gap: 1.25rem; }
.bar-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.bar-nav a:not(.btn):hover { color: var(--amber); }
@media (max-width: 520px) { .hide-sm { display: none; } }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .06em; color: var(--text); text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 7px; background: var(--amber); color: var(--amber-ink); font-weight: 800; }
.site-foot { border-top: 1px solid var(--line); padding-block: 2rem; }
.foot { display: grid; gap: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--amber); }
@media (min-width: 800px) { .foot { grid-template-columns: auto 1fr auto; align-items: center; } .foot nav { justify-content: center; } }

/* ---- buttons ---- */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: .8rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter .15s, background .15s; text-align: center; }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { background: var(--slate); }

/* ---- hero ---- */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.demo { margin: 0; display: grid; gap: 1rem; }
.demo figcaption { color: var(--muted); font-size: .82rem; }
.sheet { background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 1.4rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); display: grid; gap: 1rem; }
.sheet-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.sheet-from, .sheet-no { display: grid; gap: .15rem; }
.sheet-from span { color: var(--paper-muted); font-size: .85rem; }
.sheet-no { justify-items: end; }
.stamp { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800; border: 2px solid var(--amber); color: #7a5600; transition: background .4s, color .4s, border-color .4s; }
.stamp[data-state="partial"] { background: var(--amber); color: var(--amber-ink); }
.stamp[data-state="paid"] { background: var(--paid); border-color: var(--paid); color: #fff; }
.sheet-meta { display: flex; gap: 2rem; margin: 0; }
.sheet-meta dt { color: var(--paper-muted); font-size: .78rem; }
.sheet-meta dd { margin: 0; font-weight: 600; }
.sheet-items { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.sheet-items td { padding: .45rem 0; border-top: 1px solid #d3d9e5; }
.sheet-items td:nth-child(2) { text-align: center; width: 3rem; color: var(--paper-muted); }
.sheet-items td:last-child { text-align: right; }
.sheet-items .sub td { color: var(--paper-muted); }
.pay-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pay-line { display: flex; justify-content: space-between; color: var(--paid); font-weight: 600; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; }
.pay-line.on { visibility: visible; opacity: 1; transform: none; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--paper-ink); padding-top: .7rem; font-weight: 600; }
.sheet-total strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.bubble { justify-self: start; max-width: 30rem; background: #12392f; border: 1px solid #1d5a49; color: #e3f4ec; border-radius: 4px 16px 16px 16px; padding: .8rem 1rem; font-size: .9rem; display: grid; gap: .25rem; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.bubble.on { visibility: visible; opacity: 1; transform: none; }
.bubble-who { font-size: .75rem; color: #8fd2b6; font-weight: 600; }

/* ---- steps ---- */
.steps { list-style: none; counter-reset: s; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 1rem; display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(s); font-size: 2rem; font-weight: 800; color: var(--amber); line-height: 1; }
.steps p { color: var(--muted); font-size: .96rem; }

/* ---- features ---- */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: 4rem; } .split > div:first-child { position: sticky; top: 6rem; align-self: start; } }
.split > div:first-child { display: grid; gap: .75rem; }
.facts { margin: 0; display: grid; }
.facts div { padding-block: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: .3rem; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 1.05rem; }
.facts dd { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---- pricing ---- */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem; margin-bottom: 2rem; }
.price-head > div:first-child { display: grid; gap: .5rem; }
.cycle { display: inline-flex; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: .2rem; gap: .2rem; }
.cycle button { background: transparent; border: 0; color: var(--muted); padding: .5rem .9rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--slate); color: var(--text); }
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--slate); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; display: grid; gap: .9rem; align-content: start; }
.plan h3 { font-size: 1.2rem; }
.plan .price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan .price strong { font-size: 2rem; letter-spacing: -0.02em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; color: var(--muted); font-size: .95rem; }
.plan li::before { content: "✓"; color: var(--amber); font-weight: 800; margin-right: .5rem; }
.plan .btn { margin-top: .4rem; }

/* ---- faq ---- */
.narrow h2 { margin-bottom: 1.5rem; }
details { border-top: 1px solid var(--line); padding-block: 1rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: .6rem; max-width: 62ch; }

/* ---- closing ---- */
.closing .wrap { display: grid; gap: 1.5rem; justify-items: start; }

/* ---- legal + 404 ---- */
.legal { max-width: 740px; margin-inline: auto; padding: 3rem 1.25rem 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: #c9d1e3; max-width: 68ch; }
.legal p { margin-bottom: .8rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 .8rem; display: grid; gap: .35rem; }
.legal .note { background: var(--slate); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; color: var(--muted); font-size: .92rem; margin: 1.2rem 0; }
.lost { min-height: 70vh; display: grid; place-content: center; justify-items: start; gap: 1rem; padding: 2rem 1.25rem; max-width: 620px; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
