/* =========================================================================
   Euroly - website (samme design som app'en)
   ========================================================================= */
:root {
  --bg: #0b0f17;
  --bg-2: #111826;
  --panel: #141d2e;
  --panel-2: #1a2537;
  --text: #eaf0f9;
  --muted: #8b9bb4;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #34d399;
  --accent-2: #22d3ee;
  --deal: #ff5a5f;
  --deal-2: #ff8c42;
  --radius: 26px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(52, 211, 153, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px 0;
}

/* ------------------------------- topbar --------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin: 0 -6px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 24, 38, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  padding: 9px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
  color: #ffffff;
  background: none;
}

.lang-select {
  margin-left: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-select:hover {
  border-color: rgba(52, 211, 153, 0.5);
}

.lang-select option {
  color: #0b0f17;
}

/* Hoejre gruppe i topbar: sprog-vaelger + mobil-menu-knap */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-toggle svg {
  display: block;
}

/* -------------------------------- main ---------------------------------- */
main {
  padding: 26px 0 40px;
}

.hero {
  text-align: center;
  padding: 30px 10px 10px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.55;
}

/* ------------------------------- buttons -------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05131f;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Store-download knapper */
.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 6px 0 4px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.5);
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn .sb-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-btn .sb-small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-btn .sb-big {
  font-size: 1.05rem;
  font-weight: 800;
}

/* ------------------------------- sections -------------------------------- */
.section {
  margin-top: 56px;
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.card .card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(34, 211, 238, 0.16));
  color: var(--accent-2);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05131f;
  font-weight: 900;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ------------------------------- panels ---------------------------------- */
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.panel + .panel {
  margin-top: 20px;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.panel .sub {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

/* -------------------------------- form ----------------------------------- */
.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field .hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.alert {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.alert.success {
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.12);
  color: #b9f6d9;
}

.alert.error {
  border: 1px solid rgba(255, 90, 95, 0.4);
  background: rgba(255, 90, 95, 0.12);
  color: #ffc2c4;
}

.alert.info {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.alert a {
  word-break: break-all;
}

/* ------------------------------ store list ------------------------------- */
.store-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.store-list .sl-domain {
  font-weight: 700;
}

.store-list .sl-feed {
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
}

.store-list .sl-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ------------------------------- content --------------------------------- */
.content h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
}

.content h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

.content p,
.content li {
  color: #c4d0e2;
  line-height: 1.65;
}

.content ul {
  padding-left: 20px;
}

.content pre {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0e16;
  color: #cfe8ff;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.content .inline-code {
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86em;
}

/* -------------------------------- footer --------------------------------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 26px 4px 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-nav {
  display: flex;
  gap: 16px;
}

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

.foot-nav a:hover {
  color: var(--text);
}

/* -------------------------------- responsive ----------------------------- */
@media (max-width: 640px) {
  .topbar {
    gap: 10px;
  }
  /* Mobil-navigation: skjul links, vis menu-knap, aabn som dropdown */
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 210px;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: #141d2e;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    z-index: 30;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .lang-select {
    padding: 7px 8px;
    font-size: 0.82rem;
  }
  .store-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .foot {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================ logo (front page) ========================== */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 10%, #a9b7cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
