/* Forside. Bygger på farver og skrifter fra app.css */
body.landing { background: var(--paper); }
.landing h1, .landing h2, .landing h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

/* Topbar */
.pub-top { position: sticky; top: 0; z-index: 20; background: rgba(248, 246, 241, .92); backdrop-filter: blur(8px); border-bottom: .5px solid var(--line); }
.pub-top .in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.pub-top .brand { margin-right: 0; }
.pub-top nav { display: flex; gap: 22px; margin-left: 16px; }
.pub-top nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 0; background: none; }
.pub-top nav a:hover { color: var(--ink); background: none; }
.pub-top .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .pub-top nav { display: none; } }
@media (max-width: 520px) { .pub-top .cta .btn.ghost { display: none; } .pub-top .cta .btn { padding: 8px 12px; font-size: .9rem; } }

.btn.big { padding: 14px 24px; font-size: 1.05rem; }

/* Hero */
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 22px; }
.hero .lead { font-size: 1.2rem; line-height: 1.55; color: #3d4a46; max-width: 34rem; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .note { font-size: .9rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; } }

/* Eksempeldokument */
.ledger { position: relative; background: var(--white); border: .5px solid var(--line); border-radius: 14px; padding: 22px 24px 26px; box-shadow: 0 1px 0 rgba(28, 42, 40, .04), 0 18px 40px -22px rgba(28, 42, 40, .35); }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ledger-head b { font: 500 1.1rem var(--serif); }
.ledger-head span { font-size: .85rem; color: var(--muted); }
.lrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 58px; border-bottom: .5px solid var(--line-2); }
.lrow .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .sig { font: 500 1.65rem/1 var(--hand); color: var(--blue-ink); white-space: nowrap; }
.ledger-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: .85rem; color: var(--muted); }
.ledger-foot .track { width: 120px; }
.ledger-foot .fill { width: 75%; }
.count .num { display: inline-grid; }
.count .num > span { grid-area: 1 / 1; }
.count .c2 { opacity: 0; }

.lrow.live { margin: 0 -10px; padding: 0 10px; border-radius: 8px; background: var(--amber-bg); animation: rowbg 7s ease forwards 1s; }
.lrow.live .states { display: grid; justify-items: end; }
.lrow.live .states > * { grid-area: 1 / 1; opacity: 0; }
.lrow.live .chip.wait { opacity: 1; animation: s1 7s ease forwards 1s; }
.lrow.live .chip.seen { animation: s2 7s ease forwards 1s; }
.lrow.live .sig { animation: s3 7s ease forwards 1s; clip-path: inset(0 100% 0 0); }
.lrow.live .av { animation: avon 7s ease forwards 1s; }
.ledger-foot .fill { animation: fill 7s ease forwards 1s; }
.count .c1 { animation: c1 7s linear forwards 1s; }
.count .c2 { animation: c2 7s linear forwards 1s; }
.stamp { position: absolute; right: 18px; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; border: 2.5px solid var(--green); border-radius: 10px; color: var(--green); font: 500 1.05rem var(--serif); background: rgba(255, 255, 255, .92); opacity: 0; transform: rotate(-7deg) scale(1.4); animation: stamp .45s cubic-bezier(.2, .9, .3, 1.3) forwards 6.6s; }
.stamp small { font: 400 .72rem var(--mono); color: var(--green-d); }

@keyframes rowbg { 0%, 30% { background: var(--amber-bg); } 40%, 60% { background: var(--seen-bg); } 75%, 100% { background: var(--green-bg); } }
@keyframes s1 { 0%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes s2 { 0%, 32% { opacity: 0; } 38%, 58% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes s3 { 0%, 62% { opacity: 0; clip-path: inset(0 100% 0 0); } 64% { opacity: 1; clip-path: inset(0 100% 0 0); } 80%, 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes avon { 0%, 78% { background: var(--white); color: var(--faint); border-color: #b5ab98; } 82%, 100% { background: var(--green); color: var(--on-green); border-color: var(--green); } }
@keyframes fill { 0%, 78% { width: 75%; } 86%, 100% { width: 100%; } }
@keyframes c1 { 0%, 80% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes c2 { 0%, 80% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes stamp { to { opacity: 1; transform: rotate(-7deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .lrow.live, .lrow.live *, .ledger-foot .fill, .count *, .stamp { animation: none !important; }
  .lrow.live { background: var(--green-bg); }
  .lrow.live .chip { opacity: 0; }
  .lrow.live .sig { opacity: 1; clip-path: none; }
  .lrow.live .av { background: var(--green); color: var(--on-green); border: 0; }
  .ledger-foot .fill { width: 100%; }
  .count .c1 { opacity: 0; }
  .count .c2 { opacity: 1; }
  .stamp { opacity: 1; transform: rotate(-7deg); }
}
@media (max-width: 520px) {
  .ledger { padding: 18px 16px 22px; }
  .lrow .sig { font-size: 1.35rem; }
  .stamp { right: 10px; bottom: 6px; padding: 8px 12px; font-size: .95rem; }
}

/* Afsnit */
.band { border-top: .5px solid var(--line); }
.band .in { max-width: 1180px; margin: 0 auto; padding: 72px 20px; }
.band h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; max-width: 26ch; margin: 0 0 16px; }
.band .intro { color: #3d4a46; font-size: 1.12rem; max-width: 40rem; margin: 0 0 40px; }
.band.dark { background: #1c2a28; border-top: none; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .intro { color: #b7c4bf; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--ink); }
.flow li { counter-increment: step; padding: 22px 20px 0 0; }
.flow li::before { content: counter(step); display: block; font: 500 3rem/1 var(--serif); color: #c3cdc8; margin-bottom: 14px; }
.flow li .chip { margin-bottom: 10px; }
.flow h3 { font-size: 1.2rem; margin: 0 0 6px; }
.flow p { color: #3d4a46; font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.split h3 { font-size: 1.4rem; margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 11px 0 11px 32px; border-bottom: .5px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: .5px solid #3a4b47; }
.proof > div { padding: 26px 26px 0 0; }
.proof h3 { font-size: 1.15rem; margin: 0 0 8px; }
.proof p { color: #b7c4bf; margin: 0; font-size: .97rem; }
.proof .hashline { display: block; margin-top: 16px; font-family: var(--mono); font-size: .76rem; color: #9fc1b5; word-break: break-all; }
.band.dark .fine { margin: 40px 0 0; font-size: .9rem; color: #8fa29b; max-width: 46rem; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.price-figure { font: 500 clamp(3.5rem, 8vw, 6rem)/1 var(--serif); letter-spacing: -0.04em; color: var(--green); }
.price-unit { font-size: 1.12rem; color: #3d4a46; margin-top: 12px; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; gap: 24px; } }

.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; }
.closing .intro { margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.closing .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.foot { max-width: 1180px; margin: 0 auto; padding: 28px 20px 44px; color: var(--muted); font-size: .85rem; display: flex; gap: 20px; flex-wrap: wrap; border-top: .5px solid var(--line); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .sep { flex: 1; }
