/* Soon — promotional site styles.
   Palette taken from the app's Aubergine theme (ApexTheme.swift). */

:root {
  --bg: #fff5e8;          /* warm cream — the light background */
  --bg-tint: #fdeedd;     /* slightly deeper cream for alternating sections */
  --ink: #2e1230;         /* aubergine — primary text / dark surfaces */
  --ink-soft: #5a3a5e;    /* muted aubergine for secondary text */
  --surface: #ffffff;     /* cards */
  --aubergine: #2e1230;
  --aubergine-2: #3a223d;
  --accent: #ff8a2a;      /* warm orange accent */
  --accent-ink: #2e1230;
  --line: rgba(46, 18, 48, 0.12);
  --shadow: 0 10px 30px rgba(46, 18, 48, 0.10);
  --radius: 18px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.tinted { background: var(--bg-tint); }

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 245, 232, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand:hover { text-decoration: none; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 138, 42, 0.35); }
.btn small { display: block; font-weight: 400; opacity: 0.85; font-size: 0.72rem; }
.btn .label-main { font-size: 1.05rem; line-height: 1.1; }
.btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }

.price-line {
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero { padding-top: 84px; }
.hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-icon {
  width: min(280px, 70vw);
  height: auto;
  border-radius: 28%;
  box-shadow: 0 24px 60px rgba(46, 18, 48, 0.28);
  display: block;
  margin: 0 auto;
}
.hero .tagline { color: var(--accent); font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255, 138, 42, 0.14);
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; margin-top: 30px; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 520px;
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
table.compare thead th {
  background: var(--aubergine);
  color: var(--bg);
  font-family: "Playfair Display", Georgia, serif;
}
table.compare thead th.soon-col { background: var(--accent); color: #fff; }
table.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
table.compare td.soon-col { font-weight: 600; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }

/* ---------- Category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Privacy highlight band ---------- */
.band {
  background: var(--aubergine);
  color: var(--bg);
  border-radius: 26px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.band h2 { color: var(--bg); }
.band p { color: rgba(255, 245, 232, 0.78); max-width: 60ch; margin-left: auto; margin-right: auto; }
.band a { color: var(--accent); font-weight: 600; }

/* ---------- Price section ---------- */
.price-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  max-width: 620px;
  margin: 30px auto 0;
}
.price-tag { font-family: "Playfair Display", serif; font-size: 3.4rem; color: var(--accent); line-height: 1; }
.price-box .sub { color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .slogan { font-family: "Playfair Display", serif; font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 22px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--aubergine);
  color: rgba(255, 245, 232, 0.75);
  padding: 40px 0;
  font-size: 0.92rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--bg); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Privacy policy page ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 0.2em; }
.legal .updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2em; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.legal a.back { font-weight: 600; }

/* ---------- i18n visibility ---------- */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-no] { display: none; }
html[lang="en"] [data-lang-en] { display: revert; }

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