/* Plingkit — one stylesheet for every page.
   Palette and type are defined once here; the product mockups reuse them so the
   site and the "product" read as one thing. Yellow is used only inside mockups,
   because that is what the real Excel looks like. */

:root {
  --bg: #ffffff;
  --bg-warm: #fafaf7;
  --ink: #1c1f1e;
  --ink-2: #5d6462;
  --green: #1f5e3b;
  --green-hover: #184b2f;
  --sage: #eaf1ec;
  --sage-2: #d4e3d9;
  --line: #e7e8e5;
  --line-2: #d3d6d2;
  --yellow: #fff2cc;
  --yellow-ink: #6b5400;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 31, 30, 0.04), 0 8px 24px rgba(28, 31, 30, 0.06);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--green-hover); }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.warm { background: var(--bg-warm); }
.section-head { max-width: 40em; }
.section-head .lead { margin-top: 14px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--green);
  color: #fff;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--green-hover); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--bg-warm); border-color: var(--ink-2); color: var(--ink); }
.btn.small { padding: 9px 14px; font-size: 0.9rem; }
.btn.quiet { background: transparent; color: var(--green); border-color: transparent; padding-inline: 6px; }
.btn.quiet:hover { background: var(--sage); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.text-link { font-weight: 500; }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-back { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-back:hover { color: var(--ink); }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links li.cta { display: none; } /* on desktop the CTA sits in .nav-right, after the language menu */

/* language menu: a native <details>, so it works without JavaScript */
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; color: var(--ink-2);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: var(--ink-2); }
.lang summary svg { width: 15px; height: 15px; }
.lang summary .chev { width: 12px; height: 12px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 164px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 6px; list-style: none;
}
.lang li a, .lang li span {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 0.92rem; white-space: nowrap;
}
.lang li a:hover { background: var(--bg-warm); color: var(--ink); }
.lang li span { color: var(--ink-2); }
.lang li span::after { content: "✓"; color: var(--green); font-weight: 700; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .nav .wrap { height: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-links li.cta { display: block; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-links .btn { width: 100%; }
  .nav-right .cta-desktop { display: none; }
  .lang summary { padding: 8px 9px; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 24px; max-width: 32em; }
.reassure { margin-top: 18px; color: var(--ink-2); font-size: 0.98rem; display: flex; gap: 10px; align-items: flex-start; }
.reassure svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--green); }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-2); max-width: 34em; }
.section-note { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); max-width: 40em; }
@media (max-width: 920px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* ---------- product demo (hero mockup) ---------- */
.demo {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  line-height: 1.4;
}
.demo-stage { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.demo-stage > * { min-width: 0; }
.demo-stage .n {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage); color: var(--green);
  font-size: 0.66rem; font-weight: 600; display: grid; place-items: center;
  font-family: var(--mono);
}
.demo-stage .label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; line-height: 22px; }
.mail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.mail-head { padding: 7px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 1px; background: var(--bg-warm); }
.mail-head .row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; }
.mail-head .k { color: var(--ink-2); font-size: 0.7rem; }
.mail-head .v { font-family: var(--mono); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-head .v.light { color: var(--ink-2); font-family: var(--font); font-style: italic; }
.mail-body { padding: 10px 12px; display: grid; gap: 8px; }
.mail-body p { color: var(--ink); }
.att-row { display: flex; flex-wrap: wrap; gap: 8px; }
.att {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 8px 4px 4px; background: #fff;
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink);
  max-width: 100%;
}
.att img { width: 26px; height: 32px; object-fit: cover; border-radius: 4px; flex: none; }
.att .ext { font-size: 0.58rem; font-weight: 700; padding: 3px 5px; border-radius: 4px; color: #fff; background: var(--ink-2); flex: none; letter-spacing: 0.04em; }
.att .ext.xlsx { background: var(--green); }
.att .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.send-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff; border: 0; border-radius: 6px;
  padding: 6px 12px; font-size: 0.78rem; font-weight: 600;
  transition: background-color 0.3s var(--ease);
}
.send-btn svg { width: 13px; height: 13px; }
.demo.sent .send-btn { background: var(--sage); color: var(--green); }
.send-btn .t-send, .send-btn .t-sent { display: inline; }
.send-btn .t-sent { display: none; }
.demo.sent .send-btn .t-send { display: none; }
.demo.sent .send-btn .t-sent { display: inline; }
.time { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2); }

.check { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 7px; }
.progress { height: 3px; border-radius: 3px; background: var(--sage); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.9s var(--ease); }
.demo.reading .progress i { width: 100%; }
.check-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.78rem; }
.check-list { list-style: none; display: grid; gap: 6px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--green); }
.check-list li.set-aside svg { color: var(--ink-2); }

.sheet { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.sheet-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg-warm);
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2);
}
.sheet-bar .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.sheet-bar .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sheet-scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 6px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; white-space: nowrap; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; }
.sheet tbody tr:last-child td { border-bottom: 0; }
.sheet thead th { background: var(--sage); color: var(--green); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.02em; }
.sheet .num { text-align: right; font-family: var(--mono); }
.sheet td.unsure { background: var(--yellow); color: var(--yellow-ink); position: relative; }
.sheet td.empty { color: var(--ink-2); }
/* The "Osäker, kontrollera" label sits under the yellow cell, inside the extra bottom
   padding of the scroll area, so it is never clipped. */
.demo .sheet { margin-top: 10px; }
.demo .sheet-scroll { padding-bottom: 30px; }
.caught .empty { padding: 0; }
.tip {
  position: absolute; left: 10px; top: calc(100% + 5px);
  background: var(--ink); color: #fff; font-size: 0.66rem; font-weight: 500;
  padding: 4px 8px; border-radius: 5px; white-space: nowrap;
  box-shadow: var(--shadow);
}
.tip::after { content: ""; position: absolute; left: 12px; bottom: 100%; border: 5px solid transparent; border-bottom-color: var(--ink); }
.demo-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 0.85rem; color: var(--ink-2); }
.replay { background: none; border: 0; color: var(--green); font-weight: 600; font-size: 0.85rem; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
.replay svg { width: 14px; height: 14px; }
.replay:hover { color: var(--green-hover); }

/* animation: everything is in the DOM from the start (no layout shift); JS adds .in */
.demo .a { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.demo .a.in { opacity: 1; transform: none; }
.demo .flash td { animation: rowflash 1.4s var(--ease) 1; }
@keyframes rowflash { 0% { background: var(--sage); } 100% { background: transparent; } }
.demo .flash td.unsure { animation: none; }
@media (max-width: 480px) {
  .demo { padding: 14px; font-size: 0.78rem; }
  .demo-stage { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
  .demo-stage .n { width: 20px; height: 20px; font-size: 0.62rem; }
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; list-style: none; }
.step { padding: 0 40px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step .icon { width: 28px; height: 28px; color: var(--green); }
.step .num { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); margin: 22px 0 10px; }
.step h3 { max-width: 14em; }
.step p { color: var(--ink-2); margin-top: 10px; font-size: 1rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .step { padding: 28px 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { padding-top: 0; }
  .step .num { margin-top: 16px; }
}

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.benefit { padding: 0 40px; }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; }
.benefit + .benefit { border-left: 1px solid var(--line-2); }
.benefit p { color: var(--ink-2); margin-top: 12px; font-size: 1rem; }
@media (max-width: 820px) {
  .benefits { grid-template-columns: 1fr; margin-top: 40px; }
  .benefit { padding: 24px 0; }
  .benefit:first-child { padding-top: 0; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ---------- the month (scenario teaser) ---------- */
.month-intro { max-width: 680px; }
.month-sub { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
/* battle cards: one per thing Plingkit did in the month, each readable on its own */
.month-cards { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.month-cards li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.month-cards .d { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); margin-bottom: 6px; }
.month-cards b { display: block; font-weight: 600; font-size: 0.98rem; }
.month-cards small { display: block; color: var(--ink-2); font-size: 0.88rem; line-height: 1.45; margin-top: 4px; }
@media (max-width: 900px) { .month-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .month-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sample ---------- */
.sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.fan { display: flex; align-items: flex-end; gap: 0; padding: 12px 0 4px; }
.fan button {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 22%; margin-left: -3%; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
  background: #e9ece7;
}
.fan button:first-child { margin-left: 0; }
.fan button:hover { transform: translateY(-4px); }
.fan img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.fan-caption { font-size: 0.85rem; color: var(--ink-2); margin-top: 10px; }
.caption { font-size: 0.9rem; color: var(--ink-2); margin-top: 18px; }
@media (max-width: 820px) { .sample-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* gallery (dialog) */
.gallery { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); width: 100%; }
.gallery::backdrop { background: rgba(28, 31, 30, 0.55); }
.gallery-box { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-box img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #e9ece7; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.gallery-bar .nav-btns { display: flex; gap: 6px; }
.icon-btn { background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg-warm); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- getting started ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.start-list { list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.start-list li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 1.05rem; }
.start-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--green); font-weight: 600; }
@media (max-width: 820px) { .start-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- demo form ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.form { display: grid; gap: 18px; }
.form-fields { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form-fields:disabled { opacity: 0.55; }
.form-fields:disabled input, .form-fields:disabled textarea, .form-fields:disabled .btn, .form-fields:disabled label { cursor: not-allowed; }
.form-fields:disabled input, .form-fields:disabled textarea { background: var(--bg-warm); }
.form-note { font-size: 0.95rem; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--sage-2); background: var(--sage); color: var(--ink); }
.form-note[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label .opt { color: var(--ink-2); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; width: 100%;
  transition: border-color 0.15s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field textarea { min-height: 110px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; gap: 12px; }
.check-field { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--ink-2); }
.check-field input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-status { font-size: 0.95rem; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-warm); display: none; }
.form-status.show { display: block; }
.form-status.error { border-color: #c7a26a; background: #fdf6e7; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alt-contact { margin-top: 28px; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 820px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- status line above the footer ---------- */
.site-status { margin: 0; padding: 18px 0; background: var(--bg-warm); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.site-status .wrap { display: block; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.9rem; color: var(--ink-2); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer .brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.footer .brand .wordmark { font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; align-items: center; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- plain pages (tack, integritetspolicy) ---------- */
.page { padding: 72px 0 104px; }
.page .prose { max-width: 42em; }
.prose h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 44px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .lead { margin-top: 16px; }
.todo { background: var(--yellow); color: var(--yellow-ink); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 0.86em; }
.notice { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-warm); font-size: 0.95rem; color: var(--ink-2); }

/* ---------- scenario page ---------- */
.story-page { padding: 48px 0 96px; }
.story-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.story-top h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.story-top .lead { margin-top: 14px; max-width: 40em; }
.story-note { font-size: 0.9rem; color: var(--ink-2); max-width: 28em; }
@media (max-width: 820px) { .story-top { grid-template-columns: 1fr; } }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.controls .count { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); }
.timeline { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tick { flex: 1 0 52px; border: 0; background: none; cursor: pointer; display: grid; gap: 6px; justify-items: stretch; padding: 4px 0; color: var(--ink-2); border-radius: 6px; }
.tick i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); transition: background-color 0.2s var(--ease); }
.tick span { font-family: var(--mono); font-size: 0.68rem; white-space: nowrap; text-align: center; }
.tick:hover i { background: var(--sage-2); }
.tick.done i { background: var(--sage-2); }
.tick.cur i { background: var(--green); }
.tick.cur span { color: var(--ink); font-weight: 600; }

.story { margin-top: 28px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-warm); display: grid; gap: 10px; }
.story .when { font-family: var(--mono); font-size: 0.8rem; color: var(--green); font-weight: 600; }
.story .when-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.next-tag { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--green); background: #fff; border: 1px solid var(--sage-2); border-radius: 999px; padding: 2px 8px; }
.next-tag[hidden] { display: none; }
.tick.next i { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
.tick.next.done i { background: repeating-linear-gradient(90deg, var(--sage-2) 0 6px, transparent 6px 10px); }
.tick.next.cur i { background: repeating-linear-gradient(90deg, var(--green) 0 6px, var(--sage-2) 6px 10px); }
.story h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.story .narr { color: var(--ink-2); max-width: 72ch; font-size: 1rem; }
@media (max-width: 600px) { .story { padding: 20px; } }

.stage { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.stage > * { min-width: 0; }
.side-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
@media (max-width: 920px) { .stage { grid-template-columns: minmax(0, 1fr); } }

/* Anna's phone */
.phone { background: var(--ink); border-radius: 34px; padding: 12px; max-width: 330px; box-shadow: var(--shadow); }
.screen { background: #fff; border-radius: 24px; overflow: hidden; height: 560px; display: grid; grid-template-rows: auto 1fr; }
.screen-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.screen-head b { font-size: 1rem; font-weight: 600; }
.screen-head small { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mails { overflow-y: auto; scroll-behavior: smooth; }
.quiet { padding: 28px 20px; color: var(--ink-2); font-size: 0.9rem; text-align: center; }
.em { border-bottom: 1px solid var(--line); padding: 10px 14px; font-size: 0.8rem; line-height: 1.45; display: grid; gap: 4px; }
.em.new { background: var(--sage); animation: emin 0.4s var(--ease) both; }
@keyframes emin { from { opacity: 0; transform: translateY(6px); } }
.em .hdr { display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 8px; align-items: center; }
.em .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: #fff; background: var(--ink-2); }
.em.pk .av { background: var(--green); }
.em.me .av { background: #4b6a8a; }
.em .from { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em .from small { font-weight: 400; color: var(--ink-2); font-family: var(--mono); font-size: 0.64rem; }
.em .t { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-2); white-space: nowrap; align-self: start; }
.em .to { grid-column: 2 / span 2; font-family: var(--mono); font-size: 0.64rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em .subj { font-weight: 600; }
.em .body { white-space: pre-line; color: var(--ink); }
.em .att-row { margin-top: 2px; }
.em .att { font-size: 0.66rem; padding: 4px 8px 4px 4px; }
.em .att img { width: 24px; height: 30px; }
/* collapsed row for older mail */
.em.row { grid-template-columns: 26px 1fr auto; gap: 0 8px; align-items: center; padding-block: 8px; }
.em.row .from { display: block; }
.em.row .line { grid-column: 2 / span 2; display: flex; gap: 6px; min-width: 0; color: var(--ink-2); font-weight: 400; white-space: nowrap; overflow: hidden; }
.em.row .line b { color: var(--ink); font-weight: 500; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.em.row .line span { overflow: hidden; text-overflow: ellipsis; }
.em.row .clip { flex: none; display: inline-flex; align-items: center; gap: 2px; }
.em.row .clip svg { width: 11px; height: 11px; }

/* Maria's side */
.firm { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.firm > * { min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-warm); flex-wrap: wrap; }
.panel-h h3 { font-size: 0.95rem; }
.panel-h span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }
.inbox { max-height: 300px; overflow-y: auto; }
.inbox .em { font-size: 0.82rem; }
.empty { padding: 16px 14px; color: var(--ink-2); font-size: 0.9rem; }
.folder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; }
.folder-grid > * { min-width: 0; }
.folder-grid .sheet { border: 0; border-radius: 0; }
.folder-grid .sheet table { min-width: 560px; }
.aside { border-left: 1px solid var(--line); padding: 14px; display: grid; gap: 8px; align-content: start; }
.aside h4 { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.flag { font-size: 0.82rem; border-radius: 8px; padding: 8px 10px; background: #fdf6e7; border: 1px solid #efdcb3; display: grid; gap: 2px; }
.flag b { font-family: var(--mono); font-size: 0.68rem; color: #8a5a00; font-weight: 600; }
.flag.done { background: var(--sage); border-color: var(--sage-2); }
.flag.done b { color: var(--green); }
.flag.new { animation: emin 0.4s var(--ease) both; }
.sheet tr.new td { animation: rowflash 1.2s var(--ease) 1; }
.sheet tr.new td.unsure { animation: none; }
tfoot td { font-weight: 600; background: var(--bg-warm); }
@media (max-width: 920px) {
  .folder-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { border-left: 0; border-top: 1px solid var(--line); }
}

.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.stat b { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 0.82rem; color: var(--ink-2); display: block; margin-top: 4px; }
.stat.good b { color: var(--green); }
@media (max-width: 700px) { .tally { grid-template-columns: 1fr 1fr; } }

/* scenario: mode switches (E-post/WhatsApp, Excel/Fortnox) */
.modes { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; }
.seg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.9rem; }
.seg > span { color: var(--ink-2); margin-right: 4px; }
.seg button {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px;
  cursor: pointer; color: var(--ink-2); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 7px;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.seg button:hover { border-color: var(--ink-2); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--sage); border-color: var(--green); color: var(--ink); font-weight: 600; }
.seg em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--green); background: #fff; border: 1px solid var(--sage-2); border-radius: 999px; padding: 2px 6px; }
.next-note { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); padding: 10px 14px; border-left: 3px solid var(--sage-2); background: var(--bg-warm); border-radius: 0 8px 8px 0; max-width: 62em; }
.next-note[hidden] { display: none; }

/* scenario: chat view on Anna's phone (WhatsApp, next step) */
.screen.chat { background: #ece9e2; }
.screen.chat .screen-head { background: var(--green); color: #fff; border-bottom: 0; }
.screen.chat .screen-head small { color: rgba(255, 255, 255, 0.8); }
.chat-list { overflow-y: auto; padding: 12px 10px 16px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.day { align-self: center; font-family: var(--mono); font-size: 0.68rem; background: rgba(255, 255, 255, 0.85); color: var(--ink-2); padding: 2px 8px; border-radius: 6px; margin: 6px 0 2px; }
.bubble { max-width: 84%; padding: 7px 10px 5px; border-radius: 12px; font-size: 0.84rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); white-space: pre-line; }
.bubble.me { align-self: flex-end; background: #d9f0d6; border-bottom-right-radius: 4px; }
.bubble.pk { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.bubble.warn { border-left: 3px solid #c7a26a; }
.bubble.img { padding: 4px 4px 2px; }
.bubble img { width: 160px; max-width: 100%; border-radius: 8px; }
.bubble .who { display: block; font-size: 0.68rem; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.bubble .t { display: block; text-align: right; font-family: var(--mono); font-size: 0.62rem; color: var(--ink-2); margin-top: 3px; }
.bubble.new, .day.new { animation: emin 0.4s var(--ease) both; }
.em.warn .av { background: #b07a1e; }
.story-foot { margin-top: 32px; font-size: 0.9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }

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