/* WEBRIOT – designsystem inspirerat av dizparc.se (färger, struktur, hörnradie).
   Typsnitt: Figtree (ersätter Degular) och Fraunces (ersätter Swear). */

:root {
  --white: #fff;
  --light: #f8f5f3;
  --skin: #f2eee9;
  --midnight: #140b26;
  --dawn: #281b44;
  --pink: #ffc2dd;
  --yellow: #ffedb7;
  --green: #d4ecc7;
  --sky: #a3e1fa;
  --lilac: #f6eaf6;
  --mint: #e5f5eb;
  --grey-300: #d9d3cc;
  --grey-400: #b8b0a6;
  --grey-500: #8a8278;
  --grey-600: #6a6357;
  --grey-700: #4a443c;
  --error: #ac2929;
  --radius: 1rem;
  --font: "Figtree", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6;
  color: var(--midnight); background: var(--light); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.4rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; }
.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.eyebrow { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .7; margin-bottom: 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--midnight); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--light); border-bottom: 1px solid var(--grey-300); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 2rem; }
/* Logotyp: samma typsnitt som intivio.app – Inter, fet, tätt bokstavsavstånd, gemener. */
.wordmark { font-family: "Inter", system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; font-size: 1.75rem; line-height: 1; text-decoration: none; color: var(--midnight); }
.site-footer a.wordmark:hover { text-decoration: none; }
.wordmark-lg { display: inline-block; color: #fff; font-size: 2.25rem; margin-bottom: 1.2rem; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--midnight); }
.nav .btn { border-bottom: 0; }
.menu-toggle { display: none; background: none; border: 1px solid var(--midnight); border-radius: 99px; padding: .5rem 1.1rem; font: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; background: var(--dawn); color: #fff; text-decoration: none; border: 0;
  border-radius: 99px; padding: .85rem 1.7rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .2s ease-out, transform .2s ease-out;
}
.btn:hover { background: var(--midnight); transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--midnight); }
.btn.light:hover { background: var(--grey-300); }
.btn.outline { background: transparent; color: var(--midnight); border: 1.5px solid var(--midnight); }
.btn.outline:hover { background: var(--midnight); color: #fff; }
.btn.small { padding: .45rem 1rem; font-size: .95rem; }
.btn.danger { background: var(--error); }

/* Hero */
.hero { background: var(--midnight); color: #fff; padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(180deg, rgba(42,20,80,0) 0%, var(--dawn) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero .lead { font-size: clamp(1.2rem, 2vw, 1.55rem); max-width: 46ch; color: #e1d8ee; }
.crumbs { font-size: .95rem; color: #c9bde0; margin-bottom: 2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero .btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero.sub { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* Intro */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split p { max-width: 62ch; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--grey-300); border-radius: var(--radius); padding: 2rem; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
/* Färgvarianterna (pink, yellow …) används i vyerna men ska se neutrala ut. */
.card.pink, .card.yellow, .card.green, .card.sky, .card.lilac, .card.mint { background: #fff; }
.card .eyebrow { color: var(--grey-600); opacity: 1; }
.icon { width: 3rem; height: 3rem; margin-bottom: 1.5rem; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--grey-400); }
.process li { display: grid; grid-template-columns: 6rem 1fr 1.4fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--grey-400); align-items: baseline; }
.process .num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.process h3 { margin: 0; font-size: 1.6rem; }
.process p { margin: 0; color: var(--grey-700); }

/* Kundcitat i kort */
.quote-card { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.quote-card blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.quote-card blockquote::before { content: "”"; display: block; font-family: var(--serif); font-size: 3.5rem; line-height: .6; margin-bottom: .6rem; color: var(--grey-400); }
.quote-card .who strong { display: block; }
.quote-card .who span { color: var(--grey-600); font-size: .95rem; }

/* Tre punkter utan kort */
.points > div { border-top: 1px solid var(--grey-400); padding-top: 1.25rem; }
.points h3 { margin-bottom: .4rem; }
.points p { color: var(--grey-700); margin: 0; }

/* Processlista på mörk bakgrund */
.process-dark { border-color: rgba(255,255,255,.3); }
.process-dark li { border-color: rgba(255,255,255,.3); }
.process-dark p { color: #e1d8ee; }

/* Linjelista utan kort */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-400); }
.rows li { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--grey-400); align-items: baseline; }
.rows h3 { margin: 0; font-size: 1.6rem; }
.rows p { margin: 0; color: var(--grey-700); max-width: 60ch; }
@media (max-width: 700px) { .rows li { grid-template-columns: 1fr; gap: .5rem; } }

/* Statistik utan kort */
.stats > div { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.5rem; }
.stats p { color: #e1d8ee; margin: 0; }

/* Dark band */
.band { background: var(--dawn); color: #fff; }
.band .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.band .who span { color: #c9bde0; }
.stat { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat sup { font-size: .5em; }

/* Project / post cards */
.tile { text-decoration: none; display: block; }
.tile .thumb { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--skin); margin-bottom: 1rem; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.tile:hover .thumb img { transform: scale(1.04); }
.tile .meta { font-size: .9rem; color: var(--grey-600); margin-bottom: .3rem; }
.tile h3 { margin: 0 0 .4rem; }
.tile p { color: var(--grey-700); font-size: 1rem; }
.tag { display: inline-block; background: var(--skin); border: 1px solid var(--grey-300); border-radius: 99px; padding: .15rem .8rem; font-size: .85rem; font-weight: 600; }

/* Projekt: webbläsarram runt skärmdumpar */
.browser { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-300); box-shadow: 0 1px 2px rgba(20,11,38,.05), 0 12px 32px -12px rgba(20,11,38,.18); }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--skin); border-bottom: 1px solid var(--grey-300); }
.browser-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--grey-400); opacity: .6; }
.browser-bar span { margin-left: .8rem; font-size: .85rem; color: var(--grey-600); background: #fff; padding: .15rem .9rem; border-radius: 99px; }
.browser-screen { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--skin); }
.browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease-out; }
.browser-lg .browser-screen { aspect-ratio: 16/9; max-height: 720px; }

.projects-grid { gap: clamp(2rem, 4vw, 3.5rem) 2rem; }
.project-tile { display: block; text-decoration: none; }
.project-tile .browser { transition: transform .3s ease-out, box-shadow .3s ease-out; }
.project-tile:hover .browser { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,11,38,.05), 0 20px 40px -12px rgba(20,11,38,.28); }
.project-tile:hover .browser-screen img { transform: scale(1.03); }
.project-meta { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 .6rem; }
.project-meta .year { color: var(--grey-600); font-size: .95rem; }
.project-tile h3 { font-size: 1.9rem; margin: 0 0 .5rem; }
.project-tile p { color: var(--grey-700); max-width: 52ch; margin: 0 0 .9rem; }
.project-tile .more { font-weight: 600; border-bottom: 2px solid var(--midnight); padding-bottom: 1px; }
.project-tile:hover .more { border-color: transparent; }

/* Projekt: detaljsida */
.project-hero { padding-bottom: clamp(7rem, 12vw, 10rem); }
.tag-dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; margin-bottom: 1.2rem; }
.showcase { margin-top: calc(-1 * clamp(4.5rem, 8vw, 7rem)); position: relative; z-index: 2; }
.facts { margin: 2rem 0 0; }
.facts div { padding: 1rem 0; border-top: 1px solid var(--grey-400); }
.facts div:last-child { border-bottom: 1px solid var(--grey-400); }
.facts dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-600); font-weight: 600; }
.facts dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 500; }
.facts a { text-decoration: none; border-bottom: 2px solid var(--midnight); }
.prose { font-size: 1.25rem; line-height: 1.65; }
.prose p { max-width: 60ch; }
.project-nav { border-top: 1px solid var(--grey-300); }
.project-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.project-nav a { display: block; padding: 2.5rem 0; text-decoration: none; }
.project-nav a.next { text-align: right; border-left: 1px solid var(--grey-300); padding-left: 2rem; }
.project-nav span { display: block; font-size: .9rem; color: var(--grey-600); margin-bottom: .3rem; }
.project-nav strong { font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -.02em; transition: opacity .2s; }
.project-nav a:hover strong { opacity: .6; }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price .amount { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: .6rem 0 1rem; }
.price .amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 1rem 0 2rem; flex: 1; }
.price li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-top: 1px solid rgba(20,11,38,.12); font-size: 1rem; }
.price li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.price .badge { align-self: flex-start; background: #fff; color: var(--midnight); border-radius: 99px; font-size: .8rem; padding: .2rem .8rem; margin-bottom: .6rem; font-weight: 600; }
.price.pink { background: var(--dawn); border-color: var(--dawn); color: #fff; }
.price.pink li { border-color: rgba(255,255,255,.2); }
.price.pink .btn { background: #fff; color: var(--midnight); }
.price.pink .btn:hover { background: var(--grey-300); }
/* Prispaket på mörk bakgrund: vanliga kort är genomskinliga, det rekommenderade är vitt. */
.band .price li { border-color: rgba(255,255,255,.2); }
.band .price .btn { background: #fff; color: var(--midnight); }
.band .price .btn:hover { background: var(--grey-300); }
.band .price.featured { background: #fff; color: var(--midnight); border-color: #fff; }
.band .price.featured li { border-color: rgba(20,11,38,.12); }
.band .price.featured .badge { background: var(--midnight); color: #fff; }
.band .price.featured .btn { background: var(--dawn); color: #fff; }
.band .price.featured .btn:hover { background: var(--midnight); }
.footnotes { font-size: .95rem; color: var(--grey-700); margin-top: 2rem; }

/* Quote */
.quote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; max-width: 30ch; margin: 0 0 3rem; }
.who strong { display: block; }
.who span { color: var(--grey-600); font-size: .95rem; }

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: .85rem 1rem; background: #fff;
  border: 1px solid var(--grey-600); border-radius: .6rem; color: var(--midnight);
}
.field input:hover, .field textarea:hover { border-color: #2a2620; }
.field textarea { min-height: 9rem; resize: vertical; }
.field .err { color: var(--error); font-size: .95rem; margin-top: .3rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -9999px; }
.notice { background: var(--green); border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: 1.5rem; font-weight: 500; }

/* Article */
.article { max-width: 70ch; margin-inline: auto; }
.article img.cover { border-radius: var(--radius); margin: 2rem 0; width: 100%; }
.article .body { font-size: 1.2rem; line-height: 1.7; }
.article .body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.5rem 0 1rem; }
.article .body h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.article .body ul { padding-left: 1.4rem; margin: 0 0 1.4em; }
.article .body li { margin-bottom: .4rem; }
.post-cta { margin-top: 4rem; background: var(--dawn); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); }
.post-cta h2 { font-size: 1.8rem; margin: 0 0 .5rem; }
.post-cta p { color: #e1d8ee; margin-bottom: 1.4rem; }
.post-cta .btn { background: #fff; color: var(--midnight); }
.pager { margin-top: 3rem; }
.pager nav > div:first-child { display: none; }
.pager svg { width: 1.2rem; display: inline; }
.pager a, .pager span[aria-current] span { padding: .4rem .8rem; }

/* CTA */
.cta { background: var(--dawn); color: #fff; border-radius: calc(var(--radius) * 2); padding: clamp(2.5rem, 6vw, 5rem); display: flex; justify-content: space-between; gap: 2rem; align-items: center; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 18ch; }
.cta .btn { background: #fff; color: var(--midnight); }
.cta .btn:hover { background: var(--grey-300); }

/* Footer */
.site-footer { background: var(--midnight); color: #fff; padding: 4rem 0 2rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4, .site-footer .foot-title { margin: 0 0 .6em; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; opacity: .9; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.5rem; font-size: .95rem; opacity: .7; }

/* Admin */
.admin-bar { background: var(--midnight); color: #fff; }
.admin-bar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 4rem; gap: 1rem; flex-wrap: wrap; }
.admin-bar nav { display: flex; gap: 1.5rem; align-items: center; }
.admin-bar a { text-decoration: none; } .admin-bar a:hover { text-decoration: underline; }
.admin-bar form { margin: 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.table th, .table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--skin); vertical-align: top; }
.table th { background: var(--skin); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.table .actions { display: flex; gap: .5rem; white-space: nowrap; }
.table form { margin: 0; }
.unread td:first-child { font-weight: 700; }
.row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.row-head h1 { font-size: 2.2rem; margin: 0; }
.login-box { max-width: 420px; margin: 6rem auto; background: #fff; padding: 2.5rem; border-radius: var(--radius); }
.hint { color: var(--grey-600); font-size: .95rem; }

@media (max-width: 960px) {
  .split, .grid.c2 { grid-template-columns: 1fr; }
  .project-nav .wrap { grid-template-columns: 1fr; }
  .project-nav a.next { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--grey-300); }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .process li { grid-template-columns: 3.5rem 1fr; }
  .process li p { grid-column: 2; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--light); flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--grey-300); }
  .nav.open { display: flex; }
}
@media (max-width: 600px) {
  .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Cookie-samtycke */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 42rem; margin: 0 auto; padding: 1rem 1.25rem; background: #fff; color: var(--midnight); border: 1px solid var(--grey-300); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(20, 11, 38, .18); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .95rem; flex: 1 1 18rem; }
.consent .btn { cursor: pointer; }

.rows .q { display: block; font-size: 1.3rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6em; }
