/* Tabellion launch page */

:root {
  --bg: oklch(0.9787 0.0017 247.84);
  --text: oklch(0.2868 0.0248 258.35);
  --muted: oklch(0.5165 0.0536 258.33);
  --border: oklch(0.8598 0.0076 260.73);
  --primary: #1a56db;
  --primary-hover: #226cee;
  --yellow: #f0d028;
  --card-bg: oklch(0.995 0.001 247);
  --panel-bg: oklch(0.9451 0.0034 247.86);
  --shot-bg: #e7ebf3;
  --ink: #23293a;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { color: var(--primary-hover); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: 48px; line-height: 1.1; max-width: 900px; }
h2 { font-size: 36px; line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; }

section[id] { scroll-margin-top: 88px; }

p { margin: 0; color: var(--muted); }

.lede { font-size: 20px; line-height: 1.55; margin-top: 24px; max-width: 780px; }
.intro { font-size: 18px; line-height: 1.6; max-width: 820px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.95em;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.btn:hover { background: var(--primary-hover); color: #ffffff; }
.btn.btn-light { background: #ffffff; color: var(--primary); }
.btn.btn-light:hover { background: #f2f6ff; color: var(--primary-hover); }

/* Header */
.site-header {
  height: 72px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark .l { color: #2880d8; }
.subline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a.navlink {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a.navlink:hover { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 20px; height: 20px; display: block; flex: none; }
.footer-brand span { font-size: 14px; font-weight: 500; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 32px; }
.footer-links a { font-size: 14px; font-weight: 500; }
.footer-links span { font-size: 14px; font-weight: 500; color: var(--muted); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.8598 0.0076 260.73 / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.8598 0.0076 260.73 / 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-cta .note { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.shot {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shot-frame {
  aspect-ratio: 16/10;
  background: var(--shot-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.shot-frame img { width: 100%; height: auto; }
.caption { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.caption.note-muted { margin-top: 8px; }

/* Two-column intro sections */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}
.split p { font-size: 18px; line-height: 1.6; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card p { font-size: 16px; line-height: 1.55; }
.card svg { width: 20px; height: 20px; display: block; flex: none; }

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.note-wide {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 24px;
  max-width: 900px;
}

/* Screenshots grid */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: 40px;
  align-items: start;
}
.shots-grid .shot { margin-top: 0; }

/* Utskrifter section */
.print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}
.print-grid .shot { margin-top: 0; align-items: center; text-align: center; }
.a4-frame {
  width: 100%;
  max-width: 396px;
  aspect-ratio: 1018/1440;
  background: var(--shot-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}
.a4-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Plattform (grund) grid */
.grund-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 40px;
}
.grund-item h3 { font-size: 17px; margin-bottom: 8px; }
.grund-item p { font-size: 15px; line-height: 1.5; }
.grund-note {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 32px;
  max-width: 900px;
}

/* Planerat panel */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.planerat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.planerat-grid div {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* CTA band */
.cta-band { padding: 96px 0; background: var(--primary); }
.cta-band .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-band h2 { color: #ffffff; max-width: 820px; }
.cta-band p { font-size: 18px; line-height: 1.6; color: oklch(0.92 0.03 258); }
.cta-band .btn { margin-top: 12px; }

@media (max-width: 700px) {
  .site-nav a.navlink { display: none; }
  .subline { display: none; }
  .site-header .wrap { gap: 12px; }
  .site-nav { gap: 12px; }
  .site-header .btn { padding: 10px 16px; font-size: 14px; }

  .section, .hero, .cta-band { padding: 56px 0; }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .split,
  .cards-2,
  .cards-3,
  .shots-grid,
  .print-grid,
  .grund-grid,
  .planerat-grid {
    grid-template-columns: 1fr;
  }

  .a4-frame { max-width: 260px; }
}
