/* ==========================================================================
   Lappfri — design tokens
   Palette drawn from Swedish road-sign blue, warm paper, and a single
   ticket-red accent reserved for "you'll get fined" states.
   ========================================================================== */

:root {
  /* color */
  --signblue: #0055A4;
  --signblue-deep: #003a73;
  --paper: #F5F3EE;
  --paper-raised: #FFFFFF;
  --ink: #10151A;
  --ink-soft: #3B4450;
  --steel: #6B7785;
  --steel-line: #D8D3C8;
  --ticketred: #C6392F;
  --ticketred-soft: #F4E2DF;
  --ok-green: #1F7A4D;
  --ok-green-soft: #E1EEE5;

  /* type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1120px;
  --radius-sign: 6px;
  --radius-card: 14px;
  --shadow-card: 0 1px 2px rgba(16,21,26,0.04), 0 8px 24px rgba(16,21,26,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signblue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 12px;
  border: 1.5px solid var(--signblue);
  border-radius: 2px;
  display: inline-block;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--signblue);
  outline-offset: 3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--signblue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,85,164,0.28);
}
.btn-primary:hover { background: var(--signblue-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--steel-line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--signblue); color: var(--signblue); }

.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245,243,238,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--signblue); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

/* mobile menu */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--steel-line);
  background: var(--paper);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .container { padding: 10px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  padding: 12px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--steel-line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ==========================================================================
   Hero + signpost signature element
   ========================================================================== */

.hero {
  padding: 76px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.hero-copy p.lead {
  font-size: 1.16rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 30px 0 22px;
}
.store-badge {
  height: 48px;
  display: block;
}
.store-badge-placeholder {
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-fineprint {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--steel);
  font-family: var(--font-mono);
}
.hero-fineprint span { display: inline-flex; align-items: center; gap: 6px; }
.hero-fineprint span::before { content: "✓"; color: var(--ok-green); }

/* the signpost */
.signpost-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 901px) {
  .signpost-stage {
    justify-self: end;
    margin-right: 12px;
  }
}
.signpost {
  position: relative;
  width: 260px;
}
.sign {
  background: var(--signblue);
  color: #fff;
  border: 3px solid #fff;
  border-radius: var(--radius-sign);
  box-shadow: var(--shadow-card);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 6px;
  position: relative;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.sign strong { display: block; font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 2px; }
.sign.sign-alt { background: #fff; color: var(--ink); border-color: var(--signblue); }
.pole {
  width: 6px;
  height: 90px;
  background: linear-gradient(var(--steel-line), var(--steel));
  margin: 0 auto;
  border-radius: 2px;
}
.scan-line {
  position: absolute;
  left: -14px; right: -14px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 14px 3px rgba(255,255,255,0.8);
  animation: scan 3.2s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 1; }
  48% { top: 100%; opacity: 1; }
  56% { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

.verdict-card {
  margin-top: 26px;
  width: 100%;
  max-width: 300px;
  background: var(--paper-raised);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  border: 1px solid var(--steel-line);
}
.verdict-card .verdict-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.verdict-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok-green);
  box-shadow: 0 0 0 4px var(--ok-green-soft);
}
.verdict-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.verdict-card .verdict-time {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--signblue);
  margin: 6px 0 2px;
}
.verdict-sub { font-size: 0.85rem; color: var(--steel); margin: 0; }

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 1.06rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.bg-ink { background: var(--ink); color: #fff; }
.bg-ink p { color: #B8C0C9; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-raised { background: var(--paper-raised); border-top: 1px solid var(--steel-line); border-bottom: 1px solid var(--steel-line); }

/* problem cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ticketred);
  background: var(--ticketred-soft);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 14px;
}

/* how it works — real sequence, numbering earned */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-top: 8px;
  border-top: 2px solid var(--steel-line);
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--signblue);
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--steel-line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-visual { order: 2; }
@media (max-width: 860px) {
  .feature-row, .feature-row.reverse .feature-visual { grid-template-columns: 1fr; order: initial; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
}
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 0.96rem; color: var(--ink-soft); }
.feature-list li::before { content: "＋"; color: var(--signblue); font-weight: 700; }

.feature-visual {
  background: var(--paper-raised);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-card);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 30px;
  box-shadow: var(--shadow-card);
}

/* timeline mock (24h) */
.timeline-mock { width: 100%; }
.timeline-track {
  height: 34px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--ok-green-soft) 0 62%, var(--ticketred-soft) 62% 68%, var(--ok-green-soft) 68% 100%);
  position: relative;
  border: 1px solid var(--steel-line);
}
.timeline-now {
  position: absolute;
  left: 41%;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: var(--ink);
}
.timeline-now::after {
  content: "NU";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--ink);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}
.timeline-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel); margin-top: 10px; }

/* widget mock */
.widget-mock {
  width: 220px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  padding: 18px;
}
.widget-mock .w-label { font-family: var(--font-mono); font-size: 0.68rem; color: #9FB3C8; letter-spacing: 0.06em; }
.widget-mock .w-time { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 500; margin: 6px 0; }
.widget-mock .w-bar { height: 6px; border-radius: 3px; background: #2A3742; overflow: hidden; margin-top: 10px; }
.widget-mock .w-bar-fill { height: 100%; width: 64%; background: var(--signblue); }

/* comparison table */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  border-radius: var(--radius-card);
  padding: 30px;
  border: 1px solid var(--steel-line);
}
.compare-col.win { background: var(--signblue); color: #fff; border-color: var(--signblue); }
.compare-col.win h3 { color: #fff; }
.compare-col ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; }
.compare-col:not(.win) ul li { color: var(--ink-soft); }
.compare-col.win ul li { color: #E9F1FA; }
.compare-col ul li { display: flex; gap: 10px; }

/* pricing */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  max-width: 420px;
  width: 100%;
  background: var(--paper-raised);
  border: 2px solid var(--signblue);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.price-tabs {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.price-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--steel);
}
.price-tab.active { background: var(--signblue); color: #fff; }
.price-amount { font-family: var(--font-mono); font-size: 3rem; color: var(--ink); margin: 6px 0 0; }
.price-amount span { font-size: 1.1rem; color: var(--steel); }
.price-note { font-size: 0.88rem; color: var(--steel); margin-bottom: 24px; }
.price-panel { display: none; }
.price-panel.active { display: block; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 30px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; font-size: 0.95rem; }
.price-card ul li::before { content: "✓"; color: var(--ok-green); font-weight: 700; }
.price-free { font-size: 0.86rem; color: var(--steel); margin-top: 16px; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--steel-line); }
.faq-item { border-bottom: 1px solid var(--steel-line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--signblue);
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 22px; margin: 0; max-width: 68ch; }

/* CTA band */
.cta-band {
  border-radius: 20px;
  background: var(--signblue);
  color: #fff;
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #D7E6F5; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-fineprint { justify-content: center; color: #C9DCEE; }
.cta-band .hero-fineprint span::before { color: #8FD4AE; }

/* footer */
.site-footer { border-top: 1px solid var(--steel-line); padding: 56px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--signblue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--steel-line);
  font-size: 0.84rem;
  color: var(--steel);
}

/* ==========================================================================
   Legal / document pages
   ========================================================================== */

.doc-page { padding: 64px 0 100px; }
.doc-wrap { max-width: 760px; margin: 0 auto; }
.doc-wrap h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc-updated { font-family: var(--font-mono); font-size: 0.82rem; color: var(--steel); margin-bottom: 40px; }
.doc-wrap h2 { font-size: 1.3rem; margin-top: 2.2em; }
.doc-wrap p, .doc-wrap li { color: var(--ink-soft); font-size: 1rem; }
.doc-wrap ul, .doc-wrap ol { padding-left: 1.3em; }
.doc-wrap a { color: var(--signblue); text-decoration: underline; }
.doc-callout {
  background: var(--paper-raised);
  border: 1px solid var(--steel-line);
  border-left: 4px solid var(--signblue);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
}
.doc-callout p:last-child { margin-bottom: 0; }

/* support page */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; } }
.support-card { text-align: left; }
.support-card .tag { background: var(--ok-green-soft); color: var(--ok-green); }

/* page hero (non-home pages) */
.page-hero { padding: 64px 0 20px; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p.lead { font-size: 1.08rem; max-width: 56ch; }
