/* hazher.no — Plus Jakarta Sans, no condensed/stretch display font */
:root {
  --bg0: #050508;
  --surface: rgba(255, 255, 255, 0.045);
  --surface2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.93);
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.38);
  --eco: #34d399;
  --eco-bg: rgba(52, 211, 153, 0.12);
  --loop: #a78bfa;
  --loop-bg: rgba(167, 139, 250, 0.14);
  --accent: #38bdf8;
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --prose-width: 68ch;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 201;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--eco), var(--loop), var(--accent));
  pointer-events: none;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-stretch: 100%;
  background: var(--bg0);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(52, 211, 153, 0.1), transparent),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(167, 139, 250, 0.12), transparent),
    radial-gradient(ellipse 55% 50% at 50% 105%, rgba(56, 189, 248, 0.06), transparent),
    var(--bg0);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, black, transparent 78%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

/* Headings: same font family, normal width */
h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-stretch: 100%;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 14px 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-cta {
  background: var(--surface2) !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    padding: 14px;
    background: rgba(12, 12, 18, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
}

/* Hero */
.hero {
  padding: 128px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eco);
  box-shadow: 0 0 10px var(--eco);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 16ch;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #022c22;
}

.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
}

.btn-eco {
  background: var(--eco-bg);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.btn-loop {
  background: var(--loop-bg);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
}

/* Hero visual: mockup stack */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mockup-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.device-frame {
  width: 200px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.device-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 14px;
  max-width: 22ch;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* Logo lockup rows */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.brand-lockup img,
.brand-lockup .logo-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-lockup h3 {
  font-size: 1.75rem;
  margin: 0;
}

/* Deep-dive panels */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 28px;
}

.panel.eco-accent {
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.06) inset;
}

.panel.loop-accent {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.06) inset;
}

.panel h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.panel h4 {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.prose-block {
  max-width: var(--prose-width);
}

.prose-block p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.prose-block ul {
  margin: 12px 0 16px 1.2em;
  color: var(--muted);
}

.prose-block li {
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag.hit-eco {
  background: var(--eco-bg);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.28);
}

.tag.hit-loop {
  background: var(--loop-bg);
  color: #e9d5ff;
  border-color: rgba(167, 139, 250, 0.3);
}

/* Product panel header (app store–style lockup, no fake device chrome) */
.product-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.product-intro--eco {
  border-bottom-color: rgba(52, 211, 153, 0.15);
}

.product-intro--loop {
  border-bottom-color: rgba(167, 139, 250, 0.18);
}

.app-icon-tile {
  width: 112px;
  height: 112px;
  border-radius: 24.5%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-icon-tile--loop {
  box-shadow:
    0 24px 48px rgba(91, 33, 182, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(167, 139, 250, 0.2);
}

.app-icon-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-intro-title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.product-intro-tagline {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.5;
}

.product-intro .tag-row {
  margin-top: 0;
  margin-bottom: 16px;
}

.product-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-prose {
  padding-top: 4px;
}

.hero-lead-tight {
  margin-top: 4px;
  font-size: 0.98rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .product-intro {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }

  .app-icon-tile {
    width: 96px;
    height: 96px;
  }
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-cols {
    grid-template-columns: 1fr;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.feature-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.feature-card span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
}

.tech-item {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.tech-item strong {
  color: var(--text);
}

/* AdSense placeholder — min height reduces CLS */
.ad-slot {
  min-height: 280px;
  margin: 32px auto;
  max-width: 728px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}

.ad-slot p {
  max-width: 36ch;
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 16px 20px;
  background: rgba(10, 10, 14, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.cookie-inner a {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 48px 0 120px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.footer a {
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-meta {
  color: var(--faint);
  font-size: 0.85rem;
}

/* Legal pages */
.legal-main {
  padding: 110px 0 48px;
}

.prose {
  max-width: 720px;
}

.prose h1.legal-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.prose ul {
  margin: 0 0 16px 1.2em;
}

.cta-box {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.cta-box h2 {
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* App icons (raster PNG) */
.brand-lockup .logo-img,
.device-frame img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

/* Nav after scroll */
.nav-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: rgba(5, 5, 8, 0.88) !important;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="up"] {
  transform: translate3d(0, 40px, 0);
}

[data-reveal="left"] {
  transform: translate3d(-36px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(36px, 0, 0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Staggered children */
[data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-stagger].is-visible > *:nth-child(1) {
  transition-delay: 0.04s;
}
[data-stagger].is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}
[data-stagger].is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}
[data-stagger].is-visible > *:nth-child(4) {
  transition-delay: 0.22s;
}
[data-stagger].is-visible > *:nth-child(5) {
  transition-delay: 0.28s;
}
[data-stagger].is-visible > *:nth-child(6) {
  transition-delay: 0.34s;
}
[data-stagger].is-visible > *:nth-child(7) {
  transition-delay: 0.4s;
}
[data-stagger].is-visible > *:nth-child(8) {
  transition-delay: 0.46s;
}
[data-stagger].is-visible > *:nth-child(9) {
  transition-delay: 0.52s;
}
[data-stagger].is-visible > *:nth-child(10) {
  transition-delay: 0.58s;
}
[data-stagger].is-visible > *:nth-child(11) {
  transition-delay: 0.64s;
}
[data-stagger].is-visible > *:nth-child(12) {
  transition-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hero device float */
@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

.hero-float .device-frame {
  animation: heroFloat 5.5s ease-in-out infinite;
}

.hero-float .device-frame:nth-child(2) {
  animation-delay: -2.75s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-float .device-frame {
    animation: none;
  }
}

/* Subtle shine on section panels when visible */
.panel-glow {
  position: relative;
  overflow: hidden;
}

.panel-glow::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  pointer-events: none;
}

.panel-glow.is-visible::after {
  animation: panelShine 1.4s ease-out forwards;
}

@keyframes panelShine {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-glow::after {
    display: none;
  }
}

/* Stat / highlight row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-pill {
  text-align: center;
  padding: 18px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.stat-pill b,
.stat-pill strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-pill span {
  font-size: 0.78rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-row--prose .stat-pill span {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.quote-block {
  margin: 24px 0;
  padding: 20px 22px;
  border-left: 3px solid var(--eco);
  background: rgba(52, 211, 153, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem;
  color: var(--muted);
  font-style: italic;
}

.quote-block p {
  margin: 0;
}

.quote-block footer {
  margin-top: 14px;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.section-deep {
  padding-bottom: 8px;
}
