/* style.css – gemensam stil för montrika.se. Svart, rakt, en accentfärg. Inga externa typsnitt. */
:root {
  --bg: #000;
  --panel: #1a1a1a;
  --panel-2: #111;
  --line: #333;
  --text: #fff;
  --body: #ccc;
  --muted: #999;
  --accent: #ffc400;     /* loggans gula mittprick */
  --good: #3fb950;
  --bad: #f85149;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--text); font-weight: 700; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* Knappar: raka hörn. Fylld gul, kantad vit, och textlänk med gul pil. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; background: var(--accent); color: #000; border: 1px solid var(--accent); border-radius: 0; }
.btn:hover { background: #ffd54a; border-color: #ffd54a; }
.btn.outline { background: transparent; color: #fff; border-color: #fff; }
.btn.outline:hover { background: #fff; color: #000; }
.link { font-weight: 700; color: #fff; text-decoration: none; }
.link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg) translateY(-2px); }
.link:hover { text-decoration: underline; }

/* Sidhuvud */
.nav { position: sticky; top: 0; z-index: 10; background: #000; border-bottom: 1px solid #222; }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; letter-spacing: .14em; font-size: 16px; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 700; color: #eee; padding: 21px 0; border-bottom: 3px solid transparent; }
.nav-links a:hover { color: #fff; border-bottom-color: var(--accent); }
.nav .right { margin-left: auto; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #ccc; text-decoration: none; }
.lang:hover { color: #fff; }

/* Första vyn: bild i hela bredden, text till vänster ovanpå */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #000; }
.hero-visual { position: absolute; inset: 0; background-image: radial-gradient(#2a2a2a 1.5px, transparent 1.5px); background-size: 26px 26px; }
/* Bilden går in under texten med flit; tonen nedan gör den mörk bakom texten så att texten läses tydligt ovanpå. */
.hero-visual .mock { position: absolute; left: 34%; top: 50%; transform: translateY(-50%) perspective(1800px) rotateY(-10deg); width: min(68%, 1000px); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 24%, rgba(0,0,0,.88) 40%, rgba(0,0,0,.35) 58%, rgba(0,0,0,0) 74%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-text { max-width: 600px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; display: block; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); }
.hero p { font-size: 20px; color: var(--body); margin-top: 20px; }
.buttons { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* Förenklad bild av översikten i Montrika (ritad i HTML, ingen skärmdump). */
.mock { background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.mock-bar { display: flex; align-items: center; height: 40px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); gap: 10px; }
.mock-bar img { width: 16px; height: 16px; }
.mock-body { padding: 24px 28px 28px; }
.mock-title { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.mock-title span { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.row { display: grid; grid-template-columns: 100px 1fr 52px; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid #262626; font-size: 14px; color: #ddd; }
.row .pct { font-family: var(--mono); color: var(--muted); text-align: right; }
.bar { height: 6px; background: #262626; display: flex; }
.bar .done { background: var(--good); }
.bar .prog { background: var(--accent); }
.alert { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--bad); background: #1f1414; font-size: 14px; color: #ddd; }
.alert b { color: var(--bad); }

/* Sektion med centrerad rubrik och kort */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.section-head p { font-size: 18px; margin-top: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--panel); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 10; background: #0d0d0d; border-bottom: 3px solid var(--accent); display: grid; place-items: center; overflow: hidden; position: relative; }
.card-body { padding: 24px 24px 32px; }
.card .tag { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-size: 22px; margin: 10px 0 10px; }

/* Illustrationerna är inline-SVG och fyller sin ruta */
.card-img svg { width: 100%; height: 100%; }
.split-img svg { width: 88%; max-width: 560px; }

/* Delad sektion: bild till vänster, text till höger, kant i kant */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); }
.split-img { min-height: 440px; background-image: radial-gradient(#333 1.5px, transparent 1.5px); background-size: 22px 22px; background-color: #0d0d0d; display: grid; place-items: center; }
.split-text { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.split-text h2 { font-size: clamp(30px, 3vw, 40px); }
.split-text > p { font-size: 18px; margin-top: 16px; max-width: 30em; }
.specs { list-style: none; padding: 0; margin: 32px 0 0; }
.specs li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: #eee; }
.specs li::before { content: ""; width: 8px; height: 8px; background: var(--accent); margin-top: 8px; flex: none; }

/* Betaprogrammet */
.beta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.beta h2 { font-size: clamp(34px, 4vw, 52px); }
.beta .intro > p { font-size: 18px; margin-top: 18px; max-width: 28em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 40px; }
.steps div { background: var(--panel); padding: 20px; border-top: 3px solid var(--accent); }
.steps span { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.steps b { color: #fff; }

form, .done-msg { background: var(--panel); padding: 40px; }
form h3, .done-msg h3 { font-size: 26px; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: #eee; margin-bottom: 8px; }
.field input { width: 100%; height: 46px; padding: 0 14px; font: inherit; color: #fff; background: #000; border: 1px solid #555; border-radius: 0; }
.field input:hover { border-color: #888; }
.field input:focus { outline: none; border-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--body); margin: 8px 0 28px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
form .btn { width: 100%; }
.privacy { font-size: 13px; color: var(--muted); margin-top: 18px; }
.privacy a { color: #fff; }
/* Fällan för robotar: dold för människor, robotar fyller i den. */
.trap { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; margin-bottom: 20px; border-left: 3px solid var(--bad); background: #1f1414; font-size: 15px; color: #eee; }
.done-msg { border-top: 3px solid var(--accent); }
.done-msg h3 { margin-bottom: 10px; }

/* Sidfot */
footer { background: var(--panel); margin-top: 96px; font-size: 14px; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0 40px; }
.foot-cols h4 { margin: 0 0 16px; font-size: 15px; color: #fff; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: 10px; }
.foot-cols a { color: var(--body); text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid var(--line); padding: 24px 0 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-bottom a { text-decoration: none; color: var(--body); }
.foot-bottom a:hover { color: #fff; text-decoration: underline; }
.foot-bottom .copy { width: 100%; font-size: 13px; }

/* Textsida (integritetspolicyn) */
.doc { max-width: 800px; padding: 80px 48px 0; margin: 0 auto; }
.doc h1 { font-size: 48px; }
.doc .updated { color: var(--muted); margin-top: 12px; font-size: 14px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc a { color: #fff; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .beta .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual .mock { width: 80%; right: -30%; opacity: .6; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { min-height: 0; padding: 72px 0; }
  .hero-visual .mock { display: none; }
  .cards, .split, .steps, .foot-cols { grid-template-columns: 1fr; }
  .split-img { min-height: 260px; }
  .split-text { padding: 48px 20px; }
  .section { padding: 64px 0; }
  form, .done-msg { padding: 28px 20px; }
  .doc { padding: 56px 20px 0; }
}
