/* Samme palett som appen (tarot-app/src/app/globals.css). */
:root {
  color-scheme: light;
  --bg: #fbf8f3;
  --bg-alt: #f3ede4;
  --fg: #2a2420;
  --muted: #665b52;
  --line: #e4dccf;
  --surface: #ffffff;
  --accent: #7c4d8f;
  --accent-soft: rgba(124, 77, 143, 0.1);
  --on-accent: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(42, 36, 32, 0.12);
}

/* Mørkt tema: følger systemet, med mindre brukeren har valgt lyst. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16131a;
    --bg-alt: #1c1821;
    --fg: #ece6dd;
    --muted: #b8afa5;
    --line: #2e2833;
    --surface: #1e1a23;
    --accent: #b88bd0;
    --accent-soft: rgba(184, 139, 208, 0.12);
    --on-accent: #16131a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* Mørkt tema valgt med bryteren. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16131a;
  --bg-alt: #1c1821;
  --fg: #ece6dd;
  --muted: #b8afa5;
  --line: #2e2833;
  --surface: #1e1a23;
  --accent: #b88bd0;
  --accent-soft: rgba(184, 139, 208, 0.12);
  --on-accent: #16131a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

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

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

/* Skjermbildene er fra appens lyse tema; dempes litt i mørkt tema så de ikke blender. */
:root[data-theme="dark"] main img:not(.logo img) {
  filter: brightness(0.88);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  text-decoration: none;
  flex: 1;
}

/* Logo: symbol og navn, med «speil» i aksentfargen. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 34px;
  height: 34px;
}

.logo em {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 2px 10px;
  cursor: pointer;
}

.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.header-nav a {
  text-decoration: none;
}

.header-nav a:hover {
  text-decoration: underline;
}

.header-login {
  font-weight: 600;
}

@media (max-width: 720px) {
  .header-nav a:not(.header-login),
  .theme-label {
    display: none;
  }
}

/* Knapper */
.btn {
  display: inline-block;
  padding: 0.7em 1.3em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  font-size: 1rem;
  transition: border-color 0.15s, transform 0.15s;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-large {
  font-size: 1.15rem;
  padding: 0.85em 1.8em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.6em 0 0.8em;
}

.fineprint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 64px 0 72px;
  overflow: hidden;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 1em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-shot {
  margin: 0;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  /* Toner ut nederst, så det høye skjermbildet ikke kuttes brått. */
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    height: 380px;
  }
}

/* Seksjoner */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: -0.2em;
  margin-bottom: 2.4em;
}

/* Steg */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 72px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.step:nth-child(even) .step-text {
  order: 2;
}

.step img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step img.tall {
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.step-no {
  display: inline-flex;
  width: 2.2em;
  height: 2.2em;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8em;
}

.step-text p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .step {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .step:nth-child(even) .step-text {
    order: 0;
  }
}

/* Digital stokking */
.shuffle-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.shuffle-steps img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.shuffle-steps h3 {
  margin-bottom: 0.3em;
}

.shuffle-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .shuffle-steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.phones {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
}

.phones img {
  width: 260px;
  border-radius: 28px;
  border: 8px solid var(--fg);
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .phones img {
    width: 44%;
    border-width: 5px;
    border-radius: 18px;
  }
}

/* Pris */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.6em;
}

.plan ul {
  padding-left: 1.2em;
  margin: 0 0 1.6em;
  flex: 1;
}

.plan .btn {
  text-align: center;
}

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

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

details p {
  color: var(--muted);
  margin: 0.8em 0 0;
}

/* Avslutning og bunn */
.final-cta {
  padding: 96px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.footer-inner p {
  margin: 0.4em 0;
}
