:root {
  --navy: #061a2f;
  --navy-light: #0b2b4c;
  --yellow: #fad63a;
  --yellow-deep: #e9b900;
  --yellow-soft: #fff8d9;
  --ink: #162235;
  --muted: #667085;
  --line: #e5e9ef;
  --surface: #ffffff;
  --page: #f6f8fb;
  --vipps: #ff5b24;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(6, 26, 47, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: 230px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-badge {
  padding: 7px 12px;
  border: 1px solid rgba(250,214,58,.28);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(250,214,58,.08);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.hub-hero {
  padding: 72px 0 94px;
  background:
    radial-gradient(circle at 85% 0%, rgba(250,214,58,.17), transparent 27%),
    linear-gradient(180deg, var(--navy) 0, var(--navy) 355px, var(--page) 355px);
}

.hub-intro {
  max-width: 750px;
  color: #fff;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow-deep);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hub-intro .eyebrow,
.coffee-card .eyebrow { color: var(--yellow-deep); }

.hub-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #c7d2de;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tool-card {
  padding: 30px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(6,26,47,.03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d7dde5;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--yellow-soft);
  color: #725600;
  font-size: 1.6rem;
  font-weight: 900;
}

.tool-type {
  color: #876800;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-align: right;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.tool-card p {
  margin: 15px 0 20px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #5f6878;
  background: #f1f3f6;
  font-size: .77rem;
  font-weight: 750;
}

.tool-link {
  margin-top: auto;
  min-height: 52px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 13px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: var(--yellow);
  color: var(--navy);
}

.coffee-section {
  padding: 0 0 88px;
}

.coffee-card {
  padding: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border: 1px solid #efd982;
  border-radius: var(--radius);
  background: #fff9e2;
}

.coffee-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--yellow);
  font-size: 2rem;
}

.coffee-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -.04em;
}

.coffee-copy p:last-child {
  margin: 8px 0 0;
  color: #6c6452;
}

.coffee-action {
  display: flex;
  align-items: center;
  gap: 15px;
}

.coffee-action strong {
  font-size: 1.3rem;
  white-space: nowrap;
}

.vipps-button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: var(--vipps);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.vipps-button:hover,
.vipps-button:focus-visible { filter: brightness(.95); }

.site-footer {
  background: var(--navy);
  color: #afbbc8;
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .9rem;
}

.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--yellow); }

@media (max-width: 820px) {
  .hub-hero {
    background:
      radial-gradient(circle at 90% 0%, rgba(250,214,58,.16), transparent 26%),
      linear-gradient(180deg, var(--navy) 0, var(--navy) 330px, var(--page) 330px);
  }

  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }

  .coffee-card {
    grid-template-columns: auto 1fr;
  }

  .coffee-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 76px; }
  .brand { width: 185px; }
  .header-badge { display: none; }

  .hub-hero {
    padding: 54px 0 70px;
    background:
      radial-gradient(circle at 95% 0%, rgba(250,214,58,.15), transparent 24%),
      linear-gradient(180deg, var(--navy) 0, var(--navy) 300px, var(--page) 300px);
  }

  .hub-intro { margin-bottom: 34px; }
  .hub-intro h1 { font-size: clamp(3rem, 16vw, 4.3rem); }

  .tool-card { padding: 24px; }
  .tool-top { align-items: flex-start; }
  .tool-type { padding-top: 4px; }

  .coffee-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .coffee-action {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .coffee-action strong { font-size: 1.2rem; }

  .footer-inner {
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}
