/* Däruppe on the web: the app's colours, light or dark as the visitor has it.
   No web fonts, scripts or inline styles: the policy says so, and the CSP in
   the Caddyfile allows only this file and the site's own pictures. */

:root {
  color-scheme: light dark;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --line: rgba(11, 16, 22, .12);
  --text: #0b1016;
  --dim: #52606d;
  --accent: #0b62b0;
  --on-accent: #ffffff;
  --shadow: 0 24px 60px rgba(20, 40, 70, .22);
  --sky-image: url("/bilder/v1/himmel-light.jpg");
  --sky-across: linear-gradient(90deg, #f3f5f8 0, rgba(243, 245, 248, .96) 40%, rgba(243, 245, 248, .12) 72%);
  --sky-down: linear-gradient(0deg, #f3f5f8 0, rgba(243, 245, 248, 0) 26%);
  --sky-stacked: linear-gradient(0deg, #f3f5f8 8%, rgba(243, 245, 248, .72) 100%);
  --strap: #2c3440;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #151b22;
    --line: rgba(255, 255, 255, .11);
    --text: #f2f5f8;
    --dim: #9aa6b2;
    --accent: #7cc4ff;
    --on-accent: #0b0f14;
    --shadow: 0 30px 70px rgba(0, 0, 0, .55);
    --sky-image: url("/bilder/v1/himmel-dark.jpg");
    --sky-across: linear-gradient(90deg, #0b0f14 0, rgba(11, 15, 20, .95) 40%, rgba(11, 15, 20, .08) 72%);
    --sky-down: linear-gradient(0deg, #0b0f14 0, rgba(11, 15, 20, 0) 26%);
    --sky-stacked: linear-gradient(0deg, #0b0f14 8%, rgba(11, 15, 20, .6) 100%);
    --strap: #252d37;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { overflow-wrap: break-word; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--dim); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* The app's map behind the first screen. */
.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--sky-image) center / cover no-repeat;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sky-down), var(--sky-across);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 72px;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-weight: 750;
  margin: 0 0 18px;
}
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 28px; max-width: 32rem; }
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}
.soon { margin: 0; }
.req { color: var(--dim); font-size: .9rem; margin: 14px 0 0; }

/* A phone: the screen and a hairline, nothing drawn round it. */
.phone {
  --w: min(300px, 74vw);
  display: block;
  justify-self: center;
  width: var(--w);
  margin: 0;
  border-radius: calc(var(--w) * .135);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}
.phone img { width: 100%; }

/* One thing per section, text and picture changing sides. */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.feature .text { max-width: 28rem; justify-self: center; }
.feature.flip .text { order: 2; }
.tag { color: var(--accent); font: 700 .85rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; margin: 0 0 10px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
.feature p.body { color: var(--dim); font-size: 1.1rem; margin: 0; }

/* The watch: a case round the watch's own screens, in both themes. */
.watches { display: flex; justify-content: center; gap: 28px; padding: 64px 0; }
.watch {
  position: relative;
  width: min(210px, 40vw);
  margin: 0;
  padding: min(14px, 2.8vw);
  background: #000;
  border-radius: 24% / 21%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, var(--shadow);
}
.watch img { width: 100%; border-radius: 12%; }
.watch::before, .watch::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 13%;
  right: 13%;
  height: 56px;
  background: var(--strap);
}
.watch::before { bottom: calc(100% - 14px); border-radius: 10px 10px 0 0; }
.watch::after { top: calc(100% - 14px); border-radius: 0 0 10px 10px; }
.watches { isolation: isolate; }
.crown {
  position: absolute;
  right: -5px;
  top: 28%;
  width: 6px;
  height: 18%;
  border-radius: 0 3px 3px 0;
  background: #343b45;
}

/* The policy and the support page */
.doc { max-width: 720px; padding-top: 16px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 2.9rem); letter-spacing: -.02em; margin-bottom: 6px; }
.doc h2 { font-size: 1.35rem; letter-spacing: 0; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 1.03rem; margin: 0 0 10px; }
.doc ul { padding-left: 20px; margin: 0 0 10px; }
.doc li strong { font-weight: 600; }
.updated { color: var(--dim); font-size: .92rem; margin-bottom: 22px; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; padding-top: 24px; padding-bottom: 32px; color: var(--dim); font-size: .88rem; }
.foot a { color: var(--dim); }
.foot .links { display: flex; gap: 20px; }
.foot .links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .note { flex: 1 1 320px; text-align: right; margin: 0; }

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
  .nav a { padding: 0 8px; }
  .sky::after { background: var(--sky-stacked); }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 40px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .feature.flip .text { order: 0; }
  .feature .text { justify-self: start; }
  .watches { gap: 18px; padding: 56px 0; }
  .foot .note { text-align: left; }
}
