/* ============================================================
   RESET
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --primary: #02230d;
  --secondary: #518463;
  --bg: #e4ece1;
  --btn-bg: #02230d;
  --surface: #f5f5f5;
  --surface-2: #f7f9f6;
  --text: #02230d;
  --muted: #333;
  --border: #dddddd;
  --border-radius: 15px;
  --br-pill: 999px;
  --max-width: 780px;
  --radius: 28px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0px 8px 10px rgba(0, 0, 0, 0.5);
  --shadow-eye: 0px 4px 10px rgba(51, 75, 59, 0.2);
  --shadow-pill: 0px 4px 10px rgba(27, 39, 31, 0.3);
}

/* ============================================================
   BASE
   ============================================================ */

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

body {
  font-family: "Almarai", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

a,
button {
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

#landing-page .container {
  max-width: 1280px;
}

@media all and (min-width: 678px) {
  .container {
    padding: 0 50px;
  }
}

/* ============================================================
   TYPOGRAPHY — defaults (index.html scale)
   ============================================================ */

h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  max-width: 980px;
  margin-bottom: 32px;
}

h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 28px;
  max-width: 800px;
}

h3 {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.large {
  font-size: 1.3rem;
  max-width: 760px;
  line-height: 1.7;
}

/* Content pages (personvern.html, om-oss.html) typography */
.page-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: unset;
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 1.5rem;
  line-height: normal;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  margin-top: 48px;
  max-width: unset;
}

.page-content p {
  line-height: 1.7;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin: 8px;
}

.page-content ul li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.page-content ul li::before {
  content: "–";
  position: absolute;
  left: 0;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--border-radius);
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-eye);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--br-pill);
  background: #894fa3;
  animation: pulse-dot 2s infinite;
  box-shadow: var(--shadow);
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary,
.btn-secondary {
  padding: 13px 28px;
  border-radius: var(--border-radius);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  outline: none;
  cursor: pointer;
  border: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--surface);
}

@media all and (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    /* background: linear-gradient(135deg, #334b3b, #476250); */
    transform: translateY(-3px);
  }
}

.btn-secondary {
  color: var(--text);
}

/* Content pages button: pill shape with more padding */
.page-content .btn-primary {
  padding: 18px 28px;
  border-radius: var(--br-pill);
  margin-top: 36px;
}

/* ============================================================
   NAV — om-oss.html
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(228, 236, 225, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

@media all and (hover: hover) and (pointer: fine) {
  .nav-back:hover {
    color: var(--text);
  }
}

/* ============================================================
   SITE HEADER — index.html
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: calc(28px + env(safe-area-inset-left, 0px));
  padding-right: calc(28px + env(safe-area-inset-right, 0px));
  opacity: 1;
  transition: opacity 0.15s ease;
}

.site-header .header-logo {
  padding: 20px 0;
  display: flex;
  align-items: center;
}

.site-header .header-logo img {
  height: 25px;
  display: block;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.burger-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    width 0.25s ease;
  transform-origin: center;
}

.burger-btn span:nth-child(2) {
  width: 60%;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
  width: 100%;
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
  width: 100%;
}

.nav-drawer {
  position: fixed;
  top: calc(72px + env(safe-area-inset-top, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--border-radius);
  padding: 6px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.nav-drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-drawer a {
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s ease;
  white-space: nowrap;
  display: block;
}

.nav-drawer a.active {
  background: rgba(2, 35, 13, 0.08);
}

@media all and (hover: hover) and (pointer: fine) {
  .nav-drawer a:hover {
    background: rgba(2, 35, 13, 0.06);
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */

section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   INDEX — HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr auto;
  align-items: center;
  gap: 80px;
}

.hero-copy {
  animation: fadeUp 1s ease;
}

.hero-copy p {
  font-size: 1.3rem;
  max-width: 720px;
  margin-bottom: 42px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ============================================================
   INDEX — PHONE MOCKUP
   ============================================================ */

.phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 700px;
  transform-style: preserve-3d;
  zoom: 0.8;
  user-select: none;
}

.ambient-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), transparent 70%);
  filter: blur(60px);
  top: 10%;
  z-index: 0;
}

.phone {
  width: 420px;
  height: 860px;
  border-radius: 48px;
  padding: 8px;
  background: linear-gradient(120deg, #d9d9d9, #494949);
  box-shadow:
    18px 13px 15px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: rotateY(-8deg) rotateX(4deg);
  position: relative;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: radial-gradient(circle at top, #ffffff, #f3f3f3);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.top-controls {
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}

.segmented {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: var(--br-pill);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-pill);
}

.segmented button {
  border: none;
  background: transparent;
  padding: 10px 18px;
  border-radius: var(--br-pill);
  font-weight: 600;
  color: var(--text);
}

.segmented .active {
  background: var(--btn-bg);
  color: white;
}

.filter-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  font-size: 1.4rem;
  box-shadow: var(--shadow-pill);
  color: var(--text);
}

.map-area {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.street {
  position: absolute;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--br-pill);
}

.street:nth-child(1) {
  width: 500px;
  height: 18px;
  top: 240px;
  left: -60px;
  transform: rotate(24deg);
}

.street-2 {
  width: 420px;
  height: 16px;
  top: 480px;
  left: 20px;
  transform: rotate(-18deg);
}

.street-3 {
  width: 600px;
  height: 22px;
  top: 620px;
  left: -120px;
  transform: rotate(12deg);
}

.event-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--btn-bg);
  animation: pulse-pin 3s infinite;
}

.event-pin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  z-index: -1;
}

.pin-1 {
  top: 240px;
  left: 90px;
}

.pin-2 {
  top: 220px;
  right: 90px;
}

.pin-3 {
  bottom: 315px;
  left: 240px;
}

.floating-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 110px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(30px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--br-pill);
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.floating-card h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text);
}

.floating-card p {
  opacity: 0.6;
}

.bottom-nav {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
  padding: 14px 22px;
  border-radius: var(--br-pill);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
}

.nav-item {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.nav-item.active {
  background: var(--btn-bg);
}

@keyframes pulse-pin {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

.event-pin.active {
  animation: pulse-active 2s infinite;
  background: var(--secondary);
  box-shadow:
    0 0 0 5px rgba(2, 35, 13, 0.2),
    0 0 0 13px rgba(2, 35, 13, 0.07);
  z-index: 10;
}

@keyframes pulse-active {
  0%,
  100% {
    transform: scale(1.55);
  }
  50% {
    transform: scale(1.72);
  }
}

.phone-wrapper .floating-card {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.phone-wrapper .floating-card.card-hidden {
  opacity: 0;
  transform: translateY(8px);
}

/* ============================================================
   INDEX — FEATURES & EXAMPLES
   ============================================================ */

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

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-radius: var(--border-radius);
  padding: 34px;
  transition: transform 0.25s ease-in-out;
}

@media all and (hover: hover) and (pointer: fine) {
  .feature-card.reveal.visible:hover {
    transform: translateY(-10px);
    transition-delay: 0s;
  }
}

.number {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.examples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.example {
  border-radius: var(--border-radius);
  padding: 26px;
  background: linear-gradient(180deg, white, #f7f7f7);
  /* min-height: 140px; */
  display: flex;
  align-items: end;
  font-weight: 600;
  transition: 0.25s ease;
}

@media all and (hover: hover) and (pointer: fine) {
  .example:hover {
    transform: translateY(-6px);
  }
}

/* ============================================================
   INDEX — QUOTE
   ============================================================ */

.quote {
  background: var(--btn-bg);
  color: white;
  border-radius: 48px;
  padding: 100px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.12),
    transparent 40%
  );
}

.quote h2 {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ============================================================
   INDEX — WAITLIST
   ============================================================ */

.waitlist {
  border: 1px solid var(--border);
  border-radius: 48px;
  padding: 90px;
  background: linear-gradient(180deg, #fafafa, #f1f1f1);
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 70%);
}

.waitlist-form {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.waitlist-form input {
  flex: 1;
  min-width: 240px;
  padding: 20px 22px;
  border-radius: var(--border-radius);
  border: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  font-size: 1rem;
  box-shadow: var(--shadow-pill);
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-form input[aria-invalid="true"] {
  border: none;
  box-shadow: 0 0 0 2px #c90000;
  background: #fff7f7;
}

.waitlist-status {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.waitlist-status.error {
  color: #b10000;
}

.waitlist-status.success {
  color: #0f6d33;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   CONTENT PAGES — personvern.html, userterms.html
   ============================================================ */

.page-content {
  padding: 140px 0 100px;
}

.content-inner {
  max-width: 720px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--btn-bg);
  padding: 70px 0 calc(50px + env(safe-area-inset-bottom, 0px));
}

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-width: 280px;
}

.footer-brand img {
  width: 65px;
  height: auto;
}

.footer-brand-col p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-brand-col a {
  width: fit-content;
}

.footer-brand-col a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-copy {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 0.82rem !important;
}

.footer-nav {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.footer-nav-group a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  position: relative;
  width: fit-content;
}

.footer-nav-group a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-nav-group a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.25s ease;
}

@media all and (hover: hover) and (pointer: fine) {
  .footer-nav-group a:hover {
    color: white;
  }
  .footer-nav-group a:hover::after {
    width: 100%;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}
.reveal-delay-6 {
  transition-delay: 0.6s;
}
.reveal-delay-7 {
  transition-delay: 0.7s;
}
.reveal-delay-8 {
  transition-delay: 0.8s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-layout,
  .features {
    grid-template-columns: 1fr;
  }

  .examples {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-layout {
    gap: 50px;
  }

  .phone {
    margin: 0 auto;
  }

  .quote,
  .waitlist {
    padding: 60px 32px;
  }

  section {
    padding: 90px 0;
  }

  h1 {
    font-size: clamp(3.5rem, 14vw, 6rem);
  }
}

@media (max-width: 768px) {
  footer {
    padding: 50px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top {
    gap: 36px;
  }

  .footer-nav {
    gap: 36px;
  }

  .page-content {
    padding: 120px 0 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .examples {
    grid-template-columns: 1fr;
  }

  .phone-wrapper {
    zoom: 0.65;
  }

  .quote,
  .waitlist {
    padding: 40px 20px;
  }
}

/* ============================================================
   ACCESSIBILITY & STATE STYLES
   ============================================================ */

*:focus {
  outline: none;
}

*:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}
