@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted.woff2) format("woff2-variations"), url(fonts/schibsted.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #ffffff;
  --sheet: #f3f4f2;
  --ink: #15171c;
  --grey: #5f636b;
  --line: #e2e4df;
  --rule: #e9ece7;
  --mark: #f2e94e;
  --paid: #18794e;
  --paid-bg: #e2f3e9;
  --due: #7a5200;
  --due-bg: #fff1cc;
  --late: #b42318;
  --late-bg: #fde7e4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--mark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 5; padding: 8px 14px; background: var(--ink); color: var(--paper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 10px;
  font: 700 1rem/1.2 "Schibsted Grotesk", sans-serif; text-decoration: none; cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2c3039; }
.btn-line { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-line:hover { background: var(--sheet); }
.btn-mark { background: var(--mark); color: var(--ink); }
.btn-mark:hover { background: #f6ef7a; }

.top { display: flex; align-items: center; gap: 28px; padding: 16px clamp(18px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.brand-q { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--mark); font-size: 1.05rem; }
.nav { display: flex; gap: 26px; }
.nav a, .login { color: var(--grey); text-decoration: none; font-weight: 600; }
.nav a:hover, .login:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* hero on ledger paper */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(44px, 7vw, 104px) clamp(18px, 5vw, 64px);
  background: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px), var(--paper);
}
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); font-weight: 850; line-height: 0.98; letter-spacing: -0.045em; }
.lede { margin-top: 22px; max-width: 32em; font-size: 1.2rem; color: var(--grey); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: 520px; }
.signup input {
  flex: 1 1 240px; min-height: 48px; padding: 10px 14px;
  font: 1rem "Schibsted Grotesk", sans-serif; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px;
}
.form-msg { flex-basis: 100%; font-weight: 600; }
.form-msg:empty { display: none; }
.fine { margin-top: 12px; font-size: 0.92rem; color: var(--grey); }

.app {
  position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 0 30px 60px -36px rgba(21, 23, 28, 0.55); overflow: visible;
}
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-title { font-weight: 800; font-size: 1.1rem; }
.app-tabs { display: flex; gap: 4px; font-size: 0.85rem; color: var(--grey); }
.app-tabs span { padding: 3px 10px; border-radius: 999px; }
.app-tabs .is-on { background: var(--sheet); color: var(--ink); font-weight: 700; }
.app-new { margin-left: auto; padding: 6px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 0.85rem; font-weight: 700; }
.app-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.app-summary div { padding: 14px 18px; }
.app-summary div + div { border-left: 1px solid var(--line); }
.k { display: block; font-size: 0.78rem; color: var(--grey); }
.v { display: inline-block; margin-top: 2px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.v-mark { background: linear-gradient(transparent 52%, var(--mark) 52% 92%, transparent 92%); padding: 0 2px; }
.inv { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.inv th { text-align: left; font-weight: 600; color: var(--grey); font-size: 0.78rem; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.inv td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.inv tr:last-child td { border-bottom: 0; }
.inv td:first-child { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; font-weight: 650; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.st-paid { background: var(--paid-bg); color: var(--paid); }
.st-due { background: var(--due-bg); color: var(--due); }
.st-late { background: var(--late-bg); color: var(--late); }
.toast {
  position: absolute; right: -14px; bottom: -22px; max-width: 290px;
  padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: 0.88rem; line-height: 1.4; box-shadow: 0 16px 30px -18px rgba(21, 23, 28, 0.7);
}
.toast strong { display: block; color: var(--mark); }

/* features */
.features { padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 64px); background: var(--sheet); }
.features h2, .pricing h2, .faq h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); font-weight: 850; line-height: 1.04; letter-spacing: -0.035em; max-width: 18ch; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.feature { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.feature h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.feature p { margin-top: 6px; color: var(--grey); max-width: 38em; }
.vignette { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 92px; padding: 18px; border-radius: 12px; background: var(--sheet); }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.chip-on { background: var(--mark); border-color: var(--mark); }
.paybtn { padding: 10px 18px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.methods { font-size: 0.88rem; color: var(--grey); }
.cal { display: flex; gap: 6px; }
.cal b { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); border-top: 8px solid var(--ink); font-size: 0.95rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.bars i { display: block; width: 26px; border-radius: 4px 4px 0 0; background: var(--ink); }
.bars i:nth-child(1) { height: 40%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 48%; }
.bars i:nth-child(4) { height: 70%; } .bars i:nth-child(5) { height: 62%; } .bars i:nth-child(6) { height: 92%; background: var(--mark); }

/* pricing */
.pricing { padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 64px); }
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.billing { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--sheet); gap: 4px; }
.billing button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: 700 0.95rem "Schibsted Grotesk", sans-serif; color: var(--grey); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 23, 28, 0.15); }
.save { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--mark); color: var(--ink); font-size: 0.75rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1.5px solid var(--line); border-radius: 18px; }
.plan h3 { font-size: 1.15rem; font-weight: 800; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.amount { font-size: 3rem; font-weight: 850; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.per { color: var(--grey); font-size: 0.95rem; }
.plan-for { margin-top: 8px; color: var(--grey); }
.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-main .per, .plan-main .plan-for { color: #b9bdc6; }
.plan-main .btn-ink { background: var(--mark); color: var(--ink); }
.plan-main .btn-ink:hover { background: #f6ef7a; }
.pricing .fine { margin-top: 18px; }

/* faq */
.faq { padding: 0 clamp(18px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.faq-list { margin-top: 28px; max-width: 880px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--grey); max-width: 60em; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 64px); background: var(--ink); color: var(--paper); }
.cta h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding: 24px clamp(18px, 5vw, 64px); border-top: 1px solid #2a2d34; background: var(--ink); color: #b9bdc6; font-size: 0.9rem; }
.foot .brand { color: var(--paper); font-size: 1.1rem; }
.foot .brand-q { width: 24px; height: 24px; font-size: 0.85rem; color: var(--ink); }

@media (max-width: 1000px) {
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .toast { right: 12px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 640px) {
  .login { display: none; }
  .top .btn { min-height: 42px; padding: 0 14px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .app-summary { grid-template-columns: minmax(0, 1fr); }
  .app-summary div + div { border-left: 0; border-top: 1px solid var(--line); }
  .inv th:nth-child(2), .inv td:nth-child(2) { display: none; }
  .inv td, .inv th { padding-left: 12px; padding-right: 12px; }
  .toast { position: static; margin: 12px; max-width: none; }
}
