/* aetthq.no front page. Colours from the app icon: sky to deep blue, with runes in the background. */
:root {
  --sky: #44b4f7;
  --deep: #1171da;
  --navy: #0b3a78;
  --ink: #0f2138;
  --muted: #4f6079;
  --paper: #f5f8fc;
  --card: #ffffff;
  --line: #dde6f1;
  --phone: #0e1726;
  --runes: url("runes-light.svg");
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eff8; --muted: #a2b1c6; --paper: #0b1320; --card: #121d2e; --line: #22324a;
    --phone: #000000; --runes: url("runes-dark.svg");
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing {
  margin: 0;
  color: var(--ink);
  background: var(--runes) repeat, var(--paper);
  background-size: 612px auto, auto;
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #7fc0ff; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.landing img { display: block; }

/* Hero: the icon's blue, its runes, and the logo itself. */
.hero {
  color: #fff;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(8, 64, 160, 0.35), transparent 70%),
    url("runes-hero.svg") repeat center top / 612px auto,
    linear-gradient(180deg, var(--sky) 0%, #2a8fe8 45%, var(--deep) 100%);
  padding: 0 20px 84px;
}
.top {
  max-width: 1080px; margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand img { border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 30, 80, 0.3); }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.links a { color: rgba(255, 255, 255, 0.92); text-decoration: none; }
.links a:hover { color: #fff; text-decoration: underline; }
.links .lang { border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 1px 12px; }

.hero-inner { max-width: 760px; margin: 0 auto; padding-top: 48px; text-align: center; }
.logo {
  width: 176px; height: 176px; margin: 0 auto 34px;
  border-radius: 39px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 26px 60px rgba(3, 35, 95, 0.45), 0 4px 14px rgba(3, 35, 95, 0.25);
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; text-shadow: 0 2px 18px rgba(3, 35, 95, 0.25); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: rgba(255, 255, 255, 0.93); max-width: 600px; margin: 0 auto 30px; }
.cta { margin: 0 0 12px; }
.store {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600; letter-spacing: 0.01em;
}
.for { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin: 0; }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--deep); margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .kicker { color: #7fc0ff; } }
.center { text-align: center; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }

/* What ætt means, with the three ættir drawn out. */
.aett {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 96px 0 72px;
}
.aett-text p:not(.kicker) { color: var(--muted); margin: 0 0 14px; }
.aett-text p:last-child { color: var(--ink); }
.aett-runes {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 28px 10px; color: var(--deep);
  box-shadow: 0 20px 50px rgba(17, 113, 218, 0.08);
}
@media (prefers-color-scheme: dark) { .aett-runes { color: #7fc0ff; } }
.ett { margin-bottom: 18px; }
.ett-name { display: block; font-family: var(--serif); font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.rune-row { width: 100%; height: auto; display: block; }

/* The app, one feature at a time with its screenshot. */
.features { padding: 40px 0 40px; border-top: 1px solid var(--line); }
.features > h2 { margin-bottom: 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center;
  max-width: 900px; margin: 0 auto; padding: 44px 0;
}
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text p:last-child { color: var(--muted); font-size: 18px; margin: 0; }
.beta {
  display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.06em; color: #fff; background: var(--deep);
}

.phone {
  position: relative; margin: 0; width: 300px; aspect-ratio: 1290 / 2796;
  border: 10px solid var(--phone); border-radius: 48px; overflow: hidden;
  background: linear-gradient(170deg, #e9f4ff, #cfe6fc);
  box-shadow: 0 30px 60px rgba(9, 40, 90, 0.18), 0 6px 16px rgba(9, 40, 90, 0.12);
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The caption is only for a missing screenshot: an image that loads hides it. */
.phone img + figcaption { display: none; }
.phone figcaption {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  text-align: center; font-size: 14px; color: #4f6f95;
}

/* Privacy: back to the icon's blue. */
.privacy {
  margin: 56px 0 72px; padding: 52px 40px; border-radius: 28px; text-align: center; color: #fff;
  background: url("runes-hero.svg") repeat center / 612px auto, linear-gradient(160deg, #2a8fe8, var(--deep));
}
.privacy h2 { margin-bottom: 12px; }
.privacy p { max-width: 620px; margin: 0 auto 12px; color: rgba(255, 255, 255, 0.92); }
.privacy a { color: #fff; font-weight: 600; }

footer.site { text-align: center; padding: 8px 20px 56px; color: var(--muted); font-size: 15px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.foot-brand img { border-radius: 7px; }
footer.site p { margin: 6px 0; }
footer.site .small { font-size: 13px; }

@media (max-width: 820px) {
  .aett { grid-template-columns: 1fr; gap: 32px; padding: 64px 0 48px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; text-align: center; }
  .feature.flip .feature-text { order: 0; }
  .phone { width: min(280px, 78vw); margin: 0 auto; }
  .links a:not(.lang) { display: none; }
  .privacy { padding: 40px 22px; }
}
