/* Figtree (OFL) – self-hosted variabel skrift, vægte 400-600 */
@font-face { font-family: Figtree; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/figtree-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/figtree-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; }
  :root {
    --ink: #141414;
    --ink-soft: #4a4458;
    --muted: #857e97;
    --accent: #5f55ff;
    --accent-deep: #4338e0;
    --aubergine: #302a40;
    --surface: #f2f3f7;
    --card: #ffffff;
    --line: #e3e6e7;
    --footer: #1e1e1e;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    font-family: Figtree, "TT Commons", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a { color: inherit; text-decoration: none; }
  a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .hero a:focus-visible { outline-color: #fff; }

  /* ---------- Top ---------- */
  .hero {
    position: relative;
    color: #fff;
    background-color: var(--aubergine);
    background-image:
      linear-gradient(100deg, rgba(48, 42, 64, .94) 0%, rgba(48, 42, 64, .82) 45%, rgba(95, 85, 255, .55) 100%),
      url("hero-emner.jpg");
    background-image:
      linear-gradient(100deg, rgba(48, 42, 64, .94) 0%, rgba(48, 42, 64, .82) 45%, rgba(95, 85, 255, .55) 100%),
      image-set(url("hero-emner.webp") type("image/webp"), url("hero-emner.jpg") type("image/jpeg"));
    background-position: center, center 40%;
    background-size: auto, cover;
    background-repeat: no-repeat;
  }
  .wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    height: 88px;
  }
  .logo img { height: 22px; display: block; }
  .topbar-right { display: flex; align-items: center; gap: 28px; font-size: 15px; }
  .topbar-right .date { color: rgba(255, 255, 255, .72); }
  .hero-body { padding: 56px 0 96px; }
  .eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255, 255, 255, .7); margin: 0 0 18px;
  }
  .hero h1 {
    font-size: clamp(40px, 5.4vw, 68px); font-weight: 500; line-height: 1.02;
    letter-spacing: -.015em; margin: 0 0 18px;
  }
  .hero .lead { font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .85); max-width: 520px; margin: 0; }

  /* ---------- Apps ---------- */
  main { flex: 1; }
  .apps { margin-top: -48px; padding-bottom: 88px; position: relative; }
  .apps-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin: 0 0 20px; color: #fff;
  }
  .apps-head h2 { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
  .grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .tile {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); min-height: 264px; padding: 32px 30px 28px;
    box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 32px -18px rgba(48, 42, 64, .28);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .tile:not(.soon):hover, .tile:not(.soon):focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(20, 20, 20, .05), 0 24px 48px -20px rgba(67, 56, 224, .45);
    outline: none;
  }
  .tile::after { /* accentlinje i bunden, som induflex.dk's fliser */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .3s ease;
  }
  .tile:not(.soon):hover::after, .tile:not(.soon):focus-visible::after { transform: scaleX(1); }

  .icon {
    width: 84px; height: 84px; border-radius: 23px;
    display: grid; place-items: center; margin-bottom: 28px;
    background: linear-gradient(145deg, #7d75ff 0%, var(--accent) 45%, var(--accent-deep) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(67, 56, 224, .7);
    position: relative; overflow: hidden;
  }
  .icon::before { /* blødt lys i øverste hjørne */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .28), transparent 55%);
  }
  .icon svg { width: 46px; height: 46px; position: relative; }
  .tile h3 { font-size: 24px; font-weight: 500; margin: 0 0 8px; letter-spacing: -.01em; }
  .tile p { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
  .tile .go {
    margin-top: auto; padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 500; color: var(--accent);
  }
  .tile .go svg { width: 30px; height: 14px; transition: transform .25s ease; }
  .tile:not(.soon):hover .go svg { transform: translateX(6px); }

  /* Ikonfarver: alle i Induflex' violet/aubergine-familie, så de hører sammen men kan skelnes */
  .i-crm   { --c1: #8a83ff; --c2: #5f55ff; --c3: #4338e0; --glow: rgba(67, 56, 224, .7); }
  .i-takt  { --c1: #6c6188; --c2: #463d5e; --c3: #2a2438; --glow: rgba(48, 42, 64, .65); }
  .i-srm   { --c1: #6f8dff; --c2: #4a63f0; --c3: #3341c4; --glow: rgba(51, 65, 196, .6); }
  .i-brief { --c1: #b39bff; --c2: #8a6dff; --c3: #6447e6; --glow: rgba(100, 71, 230, .6); }
  .icon[class*="i-"] {
    background: linear-gradient(145deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -10px var(--glow);
  }
  .tile .kind {
    font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin: -2px 0 10px;
  }

  .tile.soon { cursor: default; }
  .tile.soon .go { color: var(--muted); font-weight: 400; font-size: 14px; }
  .badge {
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
    padding: 5px 9px; background: var(--surface); color: var(--muted);
  }

  /* ---------- Bund ---------- */
  footer { background: var(--surface); }
  footer .bar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    border-top: 1px solid var(--line); padding: 22px 0 26px;
    font-size: 13px; color: var(--muted);
  }
  footer a { color: var(--muted); transition: color .2s; }
  footer a:hover { color: var(--accent); }

  @media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .topbar { height: 72px; }
    .topbar-right .date { display: none; }
    .hero-body { padding: 28px 0 80px; }
    .hero .lead { font-size: 17px; }
    .grid { grid-template-columns: 1fr; gap: 14px; }
    .tile { min-height: 0; padding: 24px 22px 22px; }
    .icon { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 20px; }
    .icon svg { width: 34px; height: 34px; }
    footer .bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
