/* Kassabytet: light and calm, like good paper. Dark green ties it to Haxer; amber is the deadline. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --card: #fffdf8;
  --ink: #16211b;
  --ink-2: #4c5a51;
  --line: #d9d1bf;
  --green: #1d6b45;
  --green-dark: #10432b;
  --green-soft: #dcebdf;
  --amber: #e2a72e;
  --amber-soft: #fbefd2;
  --red: #a63d2f;
  --night: #0f1a14;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: clamp(16px, calc(10px + 0.45vw), 20px); scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0.7em 0 0; }
.wrap { width: min(72rem, 100% - 32px); margin-inline: auto; }
.narrow { width: min(46rem, 100% - 32px); }
.eyebrow { margin: 0 0 0.7rem; font: 600 0.78rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.small, .fine { font-size: 0.9rem; color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 0.5em 1em; z-index: 20; }
.skip:focus { left: 8px; }

/* Placeholders for details that aren't decided yet. Easy to spot, easy to search for. */
.todo { background: var(--amber-soft); outline: 1px dashed var(--amber); border-radius: 4px; padding: 0 0.25em; color: #6b4a06 !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em; padding: 0.85em 1.4em; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font: 600 1rem/1.1 "IBM Plex Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--green-dark), 0 8px 22px rgba(29, 107, 69, 0.22); transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: none; }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-small { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 241, 232, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font: 800 1.3rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 1.9rem; height: 1.9rem; }
.brand-mark .rg { fill: var(--green); }
.brand-mark .rg-cut { fill: var(--paper); }
.brand-mark .rg-paper { fill: #fff; stroke: var(--green); stroke-width: 1.5; }
.brand-mark .rg-smile { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.brand-mark .rg-line { fill: none; stroke: var(--green); stroke-width: 1.3; stroke-linecap: round; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--green); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; }
.hero h1 .deadline { color: var(--green); white-space: nowrap; background: linear-gradient(transparent 62%, var(--amber-soft) 62%, var(--amber-soft) 92%, transparent 92%); }
.hero-sub { margin: 1.1rem 0 0; font: 700 clamp(1.25rem, 2.4vw, 1.6rem)/1.3 var(--display); color: var(--ink); max-width: 30em; }
.hero .lead { margin-top: 1.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero .fine { margin-top: 1.2rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .receipt { width: min(18rem, 100%); } }

/* The receipt */
.receipt { margin: 0; justify-self: center; width: min(21rem, 100%); transform: rotate(2deg); filter: drop-shadow(0 18px 30px rgba(22, 33, 27, 0.18)); }
.receipt-paper {
  position: relative; background: var(--card); padding: 1.6rem 1.5rem 2.2rem; font: 500 0.88rem/1.5 var(--mono); color: #2a2f2b;
  /* Torn zigzag edge at the bottom */
  --tooth: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat;
}
.receipt p { margin: 0; }
.r-head { text-align: center; font-weight: 700; letter-spacing: 0.2em; font-size: 1rem; }
.r-head span { display: block; font-size: 0.72rem; letter-spacing: 0.14em; color: #6f746f; font-weight: 500; }
.r-rule { border-top: 2px dashed #bdb6a6; margin: 0.9rem 0 !important; }
.r-lines { list-style: none; margin: 0; padding: 0; }
.r-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.15rem 0; }
.r-ok { color: var(--green); font-weight: 700; }
.r-muted { color: #8b8f88; font-size: 0.78rem; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; }
.r-total span { font-size: 0.74rem; letter-spacing: 0.06em; }
.r-total strong { font: 800 2.4rem/1 var(--display); color: var(--ink); background: var(--amber-soft); padding: 0.1em 0.25em; border-radius: 6px; }
.r-foot { text-align: center; margin-top: 1rem !important; color: #6f746f; font-size: 0.78rem; }
.r-barcode { height: 2.4rem; margin-top: 0.9rem !important; background: repeating-linear-gradient(90deg, #2a2f2b 0 2px, transparent 2px 4px, #2a2f2b 4px 7px, transparent 7px 9px, #2a2f2b 9px 10px, transparent 10px 13px); opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: #eef3ef; }
.section-dark .eyebrow { color: #7fd1a3; }
.section-dark .lead { color: #b9c6bd; }
.section > .wrap > h2 + .lead, .section > .wrap > .lead { margin-top: 1rem; }

/* ---------- Checker ---------- */
.checker { margin-top: 2rem; display: grid; gap: 1rem; }
.q { margin: 0; padding: 1.3rem 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-width: 0; }
.q legend { float: left; width: 100%; padding: 0; font: 700 1.12rem/1.35 var(--display); display: flex; gap: 0.7rem; align-items: baseline; }
.q legend + * { clear: both; }
.q-n { flex: none; display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--green); color: #fff; font: 700 0.9rem/1 var(--mono); transform: translateY(-0.1rem); }
.q .hint { clear: both; margin: 0.5rem 0 0 2.5rem; font-size: 0.9rem; color: var(--ink-2); }
.opts { clear: both; display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 1rem; }
.q .opts { padding-left: 2.5rem; }
.opts-col { flex-direction: column; align-items: stretch; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: block; padding: 0.7em 1.15em; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.opts label:hover span { border-color: var(--green); }
.opts input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.opts input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.q.is-muted { opacity: 0.5; }
@media (max-width: 520px) { .q .hint, .q .opts { padding-left: 0; margin-left: 0; } }

.result { margin-top: 0.5rem; }
.result-wait { margin: 0; padding: 1.2rem 1.3rem; border: 2px dashed var(--line); border-radius: 18px; color: var(--ink-2); text-align: center; }
.result-box { padding: 1.5rem 1.5rem 1.6rem; border-radius: 18px; border: 2px solid var(--green); background: var(--green-soft); animation: pop 0.3s ease-out; }
.result-box.is-warn { border-color: var(--amber); background: var(--amber-soft); }
.result-box.is-now { border-color: var(--red); background: #f8e1dc; }
.result-kicker { margin: 0; font: 600 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.result-box h3 { margin-top: 0.5rem; font-size: 1.45rem; }
.result-box .btn { margin-top: 1.1rem; }
.disclaimer { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--ink-2); }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }

/* ---------- Rules ---------- */
.dates { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dates li { padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--card); border-left: 6px solid var(--amber); }
.dates li + li { border-left-color: var(--green); }
.dates time { display: block; font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); }
.dates p { color: var(--ink-2); }
.rules { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rule { padding: 1.4rem; border-radius: 18px; background: var(--card); }
.rule p { color: var(--ink-2); }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dates { grid-template-columns: 1fr; } }
.ticks, .crosses { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.55rem; }
.ticks li, .crosses li { position: relative; padding-left: 1.7rem; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ticks li::before { content: "✓"; color: var(--green); }
.crosses li::before { content: "✕"; color: var(--red); }
.rule .ticks { color: var(--ink-2); font-size: 0.95rem; }
.sources { margin-top: 1.4rem; padding: 1.4rem; border-radius: 18px; border: 1px solid var(--line); }
.sources ul { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.checked { display: inline-block; margin-top: 1rem; font: 600 0.85rem var(--mono); padding: 0.35em 0.7em; border-radius: 8px; background: var(--amber-soft); }

/* ---------- Do / don't ---------- */
.split { margin-top: 2rem; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; }
.card { padding: 1.6rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.card-do { border-top: 6px solid var(--green); }
.card-dont { border-top: 6px solid var(--red); }
.card li { color: var(--ink-2); }
.card li strong { color: var(--ink); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Packages ---------- */
.packages { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.pkg { position: relative; padding: 1.6rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pkg-main { border: 2px solid var(--green); box-shadow: 0 14px 34px rgba(29, 107, 69, 0.14); }
.pkg-tag { position: absolute; top: -0.8rem; left: 1.4rem; margin: 0; padding: 0.2em 0.7em; border-radius: 999px; background: var(--green); color: #fff; font: 600 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.price { margin-top: 0.8rem; font: 800 1.6rem/1.1 var(--display); }
.vat { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.pkg .ticks { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.custom { margin-top: 1rem; color: var(--ink-2); }
.pkg .ticks li.hl-point { display: grid; gap: 0.1rem; margin: 0 -0.6rem; padding: 0.55rem 0.6rem 0.55rem 2.3rem; border-radius: 12px; background: var(--amber-soft); border: 1px solid var(--amber); color: var(--ink-2); }
.pkg .ticks li.hl-point::before { left: 0.75rem; top: 0.55rem; color: #a06a00; }
.hl-point strong { color: var(--ink); }
.hl-point span { font-size: 0.9rem; }
.launch { margin-top: 1.4rem; padding: 1rem 1.3rem; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--amber); }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; row-gap: 1.6rem; } }
.addon { margin: 0.5rem 0 0; display: inline-block; padding: 0.2em 0.6em; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: 0.88rem; }
.drift { margin-top: 1rem; padding: 1.4rem 1.6rem; border-radius: 18px; background: var(--card); border: 1px dashed var(--green); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.5rem 2rem; align-items: center; }
.drift .ticks { margin: 0; }
@media (max-width: 760px) { .drift { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { padding: 1.5rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font: 800 1.2rem/1 var(--display); margin-bottom: 0.9rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; display: grid; gap: 0.7rem; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative; font: 700 1.08rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 "IBM Plex Sans", sans-serif; color: var(--green); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-2); }

/* ---------- About ---------- */
.about-text { font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 24em; }
.about-points { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.about-points li { padding: 1.2rem 1.3rem 1.2rem 2.9rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 1.05rem; }
.about-points li::before { left: 1.2rem; top: 1.2rem; }
@media (max-width: 820px) { .about-points { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lead-form { padding: clamp(1.3rem, 3vw, 2rem); border-radius: 20px; background: var(--card); color: var(--ink); display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field .opts { padding-top: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field input:not([type="radio"]) { width: 100%; padding: 0.75em 0.9em; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:not([type="radio"]):focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(29, 107, 69, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.lead-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 500; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: var(--red); }
.privacy-note { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: #b9c6bd; border-top: 1px solid #22332a; padding: 2.5rem 0 3rem; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem 3rem; }
.foot-brand { margin: 0; font: 800 1.2rem var(--display); color: #fff; }
.foot a { color: #9fdcb9; }
.company { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.8rem 1.5rem; }
.company dt { font: 600 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #7d9085; }
.company dd { margin: 0.1rem 0 0; color: #eef3ef; justify-self: start; }
.company-line { margin: 0; color: #eef3ef; }
.company-line[hidden] { display: none; }
.policy-company { color: inherit; }
.foot-small { padding: 1.6rem 0 2rem; }
.foot-small .foot-links { border-top: 0; padding-top: 0; }
.foot-small .company-line + .foot-links { margin-top: 0.6rem; }
.foot-links { grid-column: 1 / -1; margin: 0.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid #22332a; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Plain pages (integritetspolicy, 404) ---------- */
.page { padding: clamp(2.5rem, 6vw, 5rem) 0 5rem; }
.page h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; }
.page h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.page p, .page li { color: var(--ink-2); max-width: 40em; }
.page ul { padding-left: 1.2rem; }
.page .btn { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
  .result-box { animation: none; }
}

/* ---------- Testa själv (demo.js) ---------- */
.demo-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; counter-reset: ds; }
.demo-steps li { counter-increment: ds; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.45em 0.95em 0.45em 0.5em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 0.92rem; transition: background 0.2s, color 0.2s; }
.demo-steps li::before { content: counter(ds); display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--paper-2); font: 700 0.8rem/1 var(--mono); }
.demo-steps li.is-now { background: var(--amber-soft); border-color: var(--amber); color: var(--ink); }
.demo-steps li.is-now::before { background: var(--amber); color: #fff; }
.demo-steps li.is-done { color: var(--green-dark); border-color: var(--green); }
.demo-steps li.is-done::before { content: "✓"; background: var(--green); color: #fff; }
.demo { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.2rem; align-items: start; max-width: 54rem; }
.phone { margin: 0; }
.phone figcaption { font: 600 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.6rem 0.4rem; }
.screen { position: relative; min-height: 27rem; border-radius: 30px; border: 10px solid var(--ink); background: #fff; overflow: hidden; box-shadow: 0 20px 40px rgba(22, 33, 27, 0.18); display: flex; flex-direction: column; }
.phone-owner .screen { border-color: var(--green-dark); }
.demo-arrow { align-self: center; font: 800 2rem/1 var(--display); color: var(--green); padding-top: 2rem; }
.app-head { padding: 1rem 1.1rem 0.8rem; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; }
.app-head strong { font: 800 1.15rem/1.2 var(--display); }
.app-head span { font-size: 0.85rem; color: var(--ink-2); }
.app-head-shop { display: flex; align-items: center; gap: 0.7rem; }
.shop-name { display: grid; min-width: 0; }
.shop-logo, .tab-logo { flex: none; display: inline-grid; place-items: center; background: var(--brand); border-radius: 10px; }
.shop-logo { width: 2.5rem; height: 2.5rem; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.tab-logo { width: 1.5rem; height: 1.5rem; border-radius: 7px; }
.shop-logo svg, .tab-logo svg { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-tab { display: inline-flex; align-items: center; gap: 0.5em; text-align: left; }
.demo-tab[aria-selected="true"] .tab-logo { box-shadow: 0 0 0 2px #fff; }
.owner-shop { display: inline-flex; align-items: center; gap: 0.4em; }
.app-head-owner { grid-template-columns: 1fr auto; align-items: baseline; }
.app-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.6rem; align-content: start; }
.app-q { margin: 0 0 0.2rem; font: 700 1.05rem/1.3 var(--display); }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; width: 100%; padding: 0.95em 1em; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: 600 1rem "IBM Plex Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
.pick:hover, .time:not(:disabled):hover { border-color: var(--green); background: var(--green-soft); }
.demo-tabs { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo-tab { padding: 0.65em 1.1em; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 600 0.95rem "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; }
.demo-tab:hover { border-color: var(--green); }
.demo-tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 520px) { .demo-tabs { display: grid; grid-template-columns: 1fr 1fr; } .demo-tab { padding: 0.7em 0.5em; } }
.pick-name { display: grid; gap: 0.1rem; }
.pick-name small { font-weight: 400; font-size: 0.8rem; color: var(--ink-2); }
.pick-meta { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.time { padding: 0.85em 0.5em; border: 2px solid var(--green); border-radius: 12px; background: #fff; color: var(--green-dark); font: 700 1rem "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; }
.time.is-taken { border-color: var(--line); color: #a39d90; background: var(--paper); font-weight: 500; font-size: 0.85rem; cursor: not-allowed; text-decoration: line-through; }
.link-btn { background: none; border: 0; padding: 0.3em 0; color: var(--green); font: 600 0.95rem "IBM Plex Sans", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; justify-self: start; }
.app-done { text-align: center; padding: 1rem 0 0.4rem; animation: pop 0.3s ease-out; }
.app-done p { color: var(--ink-2); }
.big-tick { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.8rem; font-weight: 700; }
.notice { display: flex; gap: 0.5rem; align-items: center; margin: 0.6rem; padding: 0.7rem 0.85rem; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; font-size: 0.92rem; animation: drop 0.4s ease-out; }
.agenda { list-style: none; margin: 0; padding: 0.4rem 0.8rem; display: grid; gap: 0.5rem; flex: 1; align-content: start; }
.agenda li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.7rem 0.75rem; border-radius: 14px; background: var(--paper); }
.agenda li.is-new { background: var(--amber-soft); outline: 2px solid var(--amber); animation: pop 0.4s ease-out; }
.ag-info { display: grid; min-width: 0; }
.ag-info strong { font-weight: 600; white-space: pre; }
.ag-info span { font-size: 0.82rem; color: var(--ink-2); }
.pay { flex: none; padding: 0.5em 0.8em; font-size: 0.8rem; box-shadow: 0 2px 0 var(--green-dark); }
.paid { flex: none; font-weight: 600; font-size: 0.85rem; color: var(--green); }
.till { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6rem 0.8rem 0.8rem; padding: 0.8rem 0.9rem; border-radius: 14px; background: var(--green-dark); color: #fff; }
.till strong { font: 800 1.4rem/1 var(--display); }
.demo-note { margin-top: 1.2rem; }
.agenda li.is-new .pay { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 2px 0 var(--green-dark), 0 0 0 6px rgba(226, 167, 46, 0.45); } }
.goods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.good { display: grid; justify-items: center; gap: 0.1rem; padding: 0.6em 0.3em; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font: 500 0.82rem/1.2 "IBM Plex Sans", system-ui, sans-serif; }
.good:hover { border-color: var(--green); background: var(--green-soft); }
.good:active { transform: scale(0.96); }
.good-icon { font-size: 1.5rem; line-height: 1.2; }
.good-name { font-weight: 600; text-align: center; }
.good-price { color: var(--ink-2); font-size: 0.76rem; }
.cart { list-style: none; margin: 0.2rem 0 0; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--paper); display: grid; gap: 0.2rem; font: 500 0.85rem/1.4 var(--mono); }
.cart li { display: flex; justify-content: space-between; gap: 0.5rem; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.pay-row .pay { justify-content: center; font-size: 0.85rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.6rem 0.8rem 0.2rem; }
.kpi { padding: 0.7rem 0.8rem; border-radius: 14px; background: var(--green-dark); color: #fff; display: grid; }
.kpi span { font-size: 0.78rem; opacity: 0.8; }
.kpi strong { font: 800 1.3rem/1.2 var(--display); }
.stock li { padding: 0.5rem 0.75rem; }
.stock li.is-low { background: var(--amber-soft); }
.stock-n { font-weight: 700; }
.stock-n.is-low { color: var(--red); }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
@media (max-width: 760px) {
  .demo { grid-template-columns: 1fr; }
  .demo-arrow { padding: 0; justify-self: center; transform: rotate(90deg); }
  .screen { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .notice, .agenda li.is-new, .agenda li.is-new .pay, .app-done { animation: none; } }

/* ---------- Kassaval: comparison table ---------- */
.compare-page h2 { margin-top: 0; }
.must { margin-top: 2rem; padding: 1.3rem 1.5rem; border-radius: 18px; background: var(--green-soft); border: 1px solid var(--green); }
.must h2 { font-size: 1.2rem; }
.must .ticks li { color: var(--ink); max-width: none; }
.table-wrap { margin-top: 1.6rem; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare caption { caption-side: bottom; text-align: left; padding: 0.8rem 1rem; color: var(--ink-2); font-size: 0.85rem; }
.compare th, .compare td { padding: 1rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: var(--ink); color: #fff; font: 600 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.compare tbody th { font: 700 1.02rem/1.3 var(--display); min-width: 11rem; }
.compare tbody tr:nth-child(even) { background: #faf7f0; }
.compare tbody tr:hover { background: var(--green-soft); }
.compare td { color: var(--ink-2); min-width: 9rem; }
.compare td:nth-child(4), .compare td:nth-child(5) { min-width: 13rem; }
.compare .ticks, .compare .crosses { margin: 0; gap: 0.35rem; }
.compare li { max-width: none !important; color: var(--ink-2) !important; }
.compare small { display: block; margin-top: 0.3rem; }
.opt-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: 0 0.5rem 0.4rem 0; border-radius: 50%; background: var(--green); color: #fff; font: 700 0.8rem/1 var(--mono); vertical-align: middle; }
.cost { display: inline-block; padding: 0.15em 0.55em; border-radius: 8px; font: 700 0.85rem var(--mono); white-space: nowrap; }
.cost-0 { background: var(--green-soft); color: var(--green-dark); }
.cost-1 { background: var(--green-soft); color: var(--green-dark); }
.cost-2 { background: var(--amber-soft); color: #6b4a06; }
.cost-3 { background: #f8e1dc; color: var(--red); }
.fit { display: inline-block; padding: 0.25em 0.7em; border-radius: 999px; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.fit-yes { background: var(--green); color: #fff; }
.fit-some { background: var(--amber); color: var(--ink); }
.fit-no { background: var(--paper-2); color: var(--ink-2); }
.compare-cta { margin-top: 2rem; padding: 1.5rem; border-radius: 18px; background: var(--night); color: #eef3ef; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.compare-cta p { color: #b9c6bd !important; }
.compare-cta .btn-ghost { color: #fff; border-color: #fff; }
.compare-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.compare-cta .cta { margin-top: 0; }
/* On phones each option becomes a card instead of a wide table. */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; min-width: 0 !important; }
  .compare tbody tr { margin-bottom: 1rem; border-radius: 18px; border: 1px solid var(--line); background: var(--card) !important; overflow: hidden; }
  .compare tbody th { background: var(--paper-2); }
  .compare td { border-bottom: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 0.35rem; font: 600 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
  .compare td:last-child { border-bottom: 0; }
  .compare caption { display: block; width: auto; padding: 0 0 0.8rem; }
  .compare-cta { grid-template-columns: 1fr; }
}
.compare-link { margin: 0 0 1.2rem; }
.compare-h { margin-top: 2.6rem !important; font-size: clamp(1.5rem, 3vw, 2rem); }
.compare-h + .lead { margin-top: 0.6rem; }
.compare tbody th small { display: block; margin-top: 0.3rem; font: 400 0.82rem/1.35 "IBM Plex Sans", system-ui, sans-serif; color: var(--ink-2); }
.page .about-points { padding-left: 0; margin-bottom: 2rem; }

/* ---------- Buying path ---------- */
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-top: 1.1rem; }
.result-box .result-actions .btn { margin-top: 0; }
.pkg-pick { margin-top: 1.3rem; width: 100%; justify-content: center; }
.about-teaser { margin-top: 1rem; padding: 1.1rem 1.4rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.about-teaser p { margin: 0; color: var(--ink-2); max-width: 44em; }
.about-teaser strong { color: var(--ink); }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.2rem; justify-items: start; }
.contact-list li { display: grid; gap: 0.1rem; }
.contact-list li > span { font: 600 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #8fa397; }
.contact-list a { font: 800 1.6rem/1.2 var(--display); color: #fff; text-decoration: none; }
.contact-list a:hover { color: #9fdcb9; }
.next { margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-radius: 16px; border: 1px solid #2a3b31; }
.next h3 { color: #fff; font-size: 1.05rem; }
.next ol { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; color: #b9c6bd; }
.field select { width: 100%; padding: 0.75em 0.9em; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field select:focus { border-color: var(--green); outline: none; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; padding: 0.7rem 16px calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(245, 241, 232, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sticky-cta[hidden] { display: none; }
  .sticky-cta .btn { justify-content: center; }
  .sticky-cta .btn-ghost { background: var(--card); }
  body { padding-bottom: 4.5rem; }
}

/* "Read on" arrow under the hero */
.hero { position: relative; }
.scroll-cue { position: fixed; z-index: 20; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: max-content; padding: 0.5rem 1rem 0.6rem; border-radius: 18px; background: rgba(245, 241, 232, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 0.3s, visibility 0.3s; color: var(--green); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.scroll-cue:hover { color: var(--green-dark); }
.scroll-cue svg { width: 2.4rem; height: 2.4rem; padding: 0.45rem; border-radius: 50%; background: var(--green); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 6px 16px rgba(29, 107, 69, 0.3); animation: nudge-down 1.8s ease-in-out infinite; }
.scroll-cue.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes nudge-down { 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
@media (min-width: 861px) {
  /* Wide screens: the hero fills the first screen and the arrow sits under it, not over the text. */
  .hero { min-height: calc(100svh - 4rem); display: flex; align-items: center; padding: 3rem 0 6.5rem; }
  .hero > .wrap { width: min(72rem, 100% - 32px); }
  .scroll-cue { position: absolute; bottom: 1.2rem; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* "Read on" at the bottom of every section: there is more below, and what it is */
.next-cue { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: max-content; max-width: calc(100% - 32px); margin: 2.5rem auto 0; color: var(--green); font-weight: 600; font-size: 0.95rem; text-align: center; text-decoration: none; }
.next-cue:hover { color: var(--green-dark); }
.next-cue svg { width: 2.4rem; height: 2.4rem; padding: 0.45rem; border-radius: 50%; background: var(--green); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 6px 16px rgba(29, 107, 69, 0.3); animation: nudge-down 1.8s ease-in-out infinite; }
.section-dark .next-cue { color: #9fdcb9; }
.section-dark .next-cue svg { background: #9fdcb9; stroke: var(--night); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .next-cue svg { animation: none; } }

/* Seller login in the header */
.nav .login-link { display: inline-flex !important; gap: 0.4em; box-shadow: none; }
.login-link svg { width: 1em; height: 1em; fill: currentColor; }
@media (max-width: 520px) { .login-link span { display: none; } .login-link { padding: 0.6em 0.7em; } }

/* ---------- Chat (chatt.js) ---------- */
.kb-chat { position: fixed; right: 16px; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; transition: bottom 0.2s; }
/* On phones the call bar sits along the bottom; the chat button moves up above it. */
/* On phones the call bar along the bottom has its own Chatta button, so the round one steps aside. */
body:has(#sticky-cta:not([hidden])) .kb-chat { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
body:has(#sticky-cta:not([hidden])) .kb-chat:not(.is-open) .kb-chat-launcher { display: none; }
.kb-chat-launcher { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.2rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 28px rgba(16, 67, 43, 0.35); }
.kb-chat-launcher:hover { background: var(--green-dark); }
.kb-chat-launcher svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.kb-chat.is-open .kb-chat-launcher { display: none; }
.kb-chat-badge { position: absolute; top: -4px; right: -4px; min-width: 1.3rem; height: 1.3rem; padding: 0 0.35rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.75rem; display: grid; place-items: center; }
.kb-chat-badge[hidden] { display: none; }
.kb-chat-panel { width: min(24rem, calc(100vw - 32px)); height: min(34rem, calc(100svh - 7rem)); display: flex; flex-direction: column; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(22, 33, 27, 0.3); overflow: hidden; }
.kb-chat-panel[hidden] { display: none; }
.kb-chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; padding: 0.9rem 1rem; background: var(--green); color: #fff; }
.kb-chat-head strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.kb-chat-status { display: block; font-size: 0.85rem; color: #dcebdf; }
.kb-chat-close { border: 0; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.kb-chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.kb-chat-note { margin: 0; padding: 0.7rem 0.85rem; border-radius: 14px; background: var(--green-soft); font-size: 0.92rem; }
.kb-chat-msg { max-width: 85%; padding: 0.55rem 0.8rem; border-radius: 14px; }
.kb-chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.kb-chat-msg.is-me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.kb-chat-msg.is-them { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.kb-chat-meta { display: block; margin-top: 0.2rem; font-size: 0.72rem; opacity: 0.75; }
.kb-chat-email, .kb-chat-compose { padding: 0.7rem 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; }
.kb-chat-email[hidden], .kb-chat-name[hidden] { display: none; }
.kb-chat-email label { font-size: 0.9rem; font-weight: 600; }
.kb-chat-hint { margin: 0; font-size: 0.82rem; color: var(--ink-2); }
.kb-chat-row { display: flex; gap: 0.5rem; align-items: flex-end; }
.kb-chat-row input, .kb-chat-row textarea, .kb-chat-name { flex: 1; min-width: 0; padding: 0.6em 0.75em; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); resize: none; }
.kb-chat-row input:focus, .kb-chat-row textarea:focus, .kb-chat-name:focus { border-color: var(--green); outline: none; }
.kb-chat-row .btn { margin-top: 0; flex: none; }
.kb-chat-error { margin: 0; color: var(--red); font-size: 0.88rem; }
.kb-chat-error:empty { display: none; }
@media (max-width: 520px) {
  .kb-chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kb-chat-launcher { padding: 0.95rem; }
}
.is-editing .kb-chat { display: none; }
.sticky-cta a[data-open-chat] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
