/* =========================================================
   Idestart – stylesheet
   ========================================================= */

/* Manrope (variable, 200–800), self-hostet. Lisens: SIL OFL 1.1 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --bg-soft: #f2f0ea;
  --ink: #14171f;
  --ink-2: #434a58;
  --ink-3: #6c7382;
  --line: #e6e3db;
  --accent: #7c3aed;
  --accent-2: #a855f7;
  --accent-ink: #ffffff;
  --sukker: #c34b83;
  --sukker-2: #f380b7;
  --sukker-ink: #4a4a8a;
  --tuni: #374b2f;
  --tuni-2: #5c9762;
  --tuni-bg: #fbf9f4;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 23, 31, 0.04), 0 12px 40px -12px rgba(20, 23, 31, 0.14);
  --shadow-lg: 0 2px 4px rgba(20, 23, 31, 0.05), 0 30px 70px -20px rgba(20, 23, 31, 0.28);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262b36; box-shadow: 0 10px 24px -10px rgba(20,23,31,.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-elev); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f5f3ee; }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: #262b36; color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer;
  place-items: center; color: var(--ink);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, opacity .2s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(32px, 5vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(168, 85, 247, .22), transparent 60%),
    radial-gradient(50% 50% at 15% 10%, rgba(124, 58, 237, .14), transparent 60%);
}
.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero h1 { font-size: clamp(44px, 7.2vw, 88px); letter-spacing: -0.035em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); max-width: 46ch; margin: 28px 0 36px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.section-alt { background: var(--bg-soft); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr; gap: 28px; }
.product {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-visual { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual .logo { position: absolute; width: 52%; max-width: 260px; height: auto; object-fit: contain; }
.product-visual.sukker {
  background: linear-gradient(135deg, #a93a70 0%, var(--sukker) 45%, var(--sukker-2) 100%);
}
.product-visual.sukker img.screen {
  position: absolute; right: -8%; bottom: -30%; width: 72%; border-radius: 18px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.45); transform: rotate(-6deg);
}
.product-visual.sukker .logo { left: 8%; top: 10%; width: 48%; filter: brightness(0) invert(1); }
.product-visual.tuni { background: var(--tuni-bg); }
.product-visual.tuni::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: rgba(92, 151, 98, .16); right: -10%; bottom: -25%; transform: rotate(18deg);
}
.product-visual.tuni::after {
  content: ""; position: absolute; width: 40%; aspect-ratio: 1; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: rgba(55, 75, 47, .10); left: -8%; top: -14%; transform: rotate(-20deg);
}
.product-visual.tuni .logo { position: relative; width: 44%; z-index: 1; }
.product-visual.jul { background: #7a1220; }

.product-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-meta img { width: 36px; height: 36px; border-radius: 10px; }
.product-body h3 { font-size: 26px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tag { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); letter-spacing: .02em; }
.product-body .tagline { font-weight: 700; font-size: 17px; color: var(--ink); margin: 0; }
.product-body p { color: var(--ink-2); margin: 0; }
.product-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

@media (min-width: 821px) {
  .product { display: grid; grid-template-columns: 1.15fr 1fr; }
  .product-visual { aspect-ratio: auto; min-height: 340px; }
  .product-body { padding: 40px 44px; justify-content: center; }
  .product-links { margin-top: 6px; }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.value .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237,.14), rgba(168, 85, 247,.22)); color: var(--accent);
}
.value .icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value p { color: var(--ink-2); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- Quote / mission ---------- */
.mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start;
}
.mission blockquote {
  margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.mission blockquote span { color: var(--accent); }
.mission .text p { color: var(--ink-2); font-size: 18px; }
@media (max-width: 820px) { .mission { grid-template-columns: 1fr; } }

/* ---------- Contact CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  background: var(--ink); color: #fff; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 60% at 20% 110%, rgba(124, 58, 237,.45), transparent 70%),
    radial-gradient(45% 60% at 85% -10%, rgba(168, 85, 247,.35), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 48ch; margin: 0 auto 28px; }
.cta .email { overflow-wrap: anywhere; font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; display: inline-block; margin-bottom: 24px; border-bottom: 2px solid rgba(255,255,255,.35); transition: border-color .15s; }
.cta .email:hover { border-color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--ink-3); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { font-weight: 600; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- Subpages ---------- */
.page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 64px); letter-spacing: -0.035em; max-width: 16ch; overflow-wrap: anywhere; hyphens: auto; }
.page-hero .lead { font-size: clamp(19px, 2.1vw, 23px); color: var(--ink-2); max-width: 46ch; margin: 22px 0 0; line-height: 1.45; }
.page-hero .updated { color: var(--ink-3); font-size: 15px; margin-top: 16px; }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 17.5px; }
.prose a { color: var(--ink); font-weight: 700; border-bottom: 2px solid rgba(124, 58, 237,.4); }
.prose a:hover { border-color: var(--accent); }
.prose ul { padding-left: 1.2em; list-style: disc; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }

.info-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
  display: flex; flex-direction: column; gap: 6px; margin-top: 18px;
}
.info-card strong { font-size: 15px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.info-card a { font-size: 20px; font-weight: 800; color: var(--ink); }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.mini-product {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.mini-product:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mini-product img { width: 44px; height: 44px; border-radius: 12px; }
.mini-product strong { display: block; font-size: 17px; }
.mini-product span { font-size: 14.5px; color: var(--ink-3); }
.mini-product .arrow { margin-left: auto; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px; }
.fact strong { display: block; font-size: 26px; letter-spacing: -0.02em; }
.fact span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-aside { position: static; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .product, .mini-product, .btn { transition: none; }
}

/* ---------- Utility ---------- */
.section--flush { padding-top: 0; }
.mt-28 { margin-top: 28px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--accent); }

/* Inline links in product cards and footer */
.product-body p a { color: var(--ink); font-weight: 700; border-bottom: 2px solid rgba(124, 58, 237, .4); }
.product-body p a:hover { border-color: var(--accent); }
