/* Dozed — the app's own language, on the web.
   No web fonts: the system stack is what the app itself renders in, and a
   font request is a third party the privacy promise would then have to
   explain away. */

:root {
  --bg: #0b1220;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f2f5fa;
  --dim: #9aa7bd;
  --blue: #2e7bff;
  --green: #34c759;
  --radius: 20px;
  --max: 940px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The aurora, flattened to three radial washes. The app animates its mesh;
   a page that drifts under you while you read does not earn the attention. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 15% -5%, rgba(46, 123, 255, 0.30), transparent 60%),
    radial-gradient(50rem 35rem at 95% 10%, rgba(120, 90, 255, 0.22), transparent 60%),
    radial-gradient(55rem 40rem at 50% 100%, rgba(34, 195, 184, 0.16), transparent 60%);
}

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

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 8px; text-align: center; }
.hero img.mark { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--dim); max-width: 620px; margin: 0 auto 28px;
}

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(46, 123, 255, 0.35);
}
.cta:hover { filter: brightness(1.08); }
.req { color: var(--dim); font-size: 0.85rem; margin-top: 14px; }

/* Screenshots */
/* Three across on a wide screen, not four: at 940px four columns leave each
   phone about 215px wide, which is smaller than the phone it depicts. */
.shots {
  display: grid; gap: 20px; padding: 56px 0 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.shot { text-align: center; }
.shot img {
  width: 100%; border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.shot p { color: var(--dim); font-size: 0.9rem; margin: 14px 4px 0; }

/* Cards */
.cards {
  display: grid; gap: 16px; padding: 40px 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  backdrop-filter: blur(20px);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--dim); font-size: 0.95rem; }

/* Privacy block — the strongest single argument, so it gets its own colour */
.promise {
  border: 1px solid rgba(52, 199, 89, 0.28);
  background: rgba(52, 199, 89, 0.07);
  border-radius: var(--radius);
  padding: 28px; margin: 24px 0 48px;
}
.promise h2 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.02em; }
.promise ul { margin: 14px 0 0; padding-left: 20px; color: var(--dim); }
.promise li { margin: 6px 0; }

/* Long-form pages */
.doc { padding: 8px 0 40px; max-width: 720px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc h2 { font-size: 1.2rem; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.02rem; margin: 24px 0 6px; }
.doc p, .doc li { color: #d7dee9; }
.doc a { color: #6ea8ff; }
.doc .updated { color: var(--dim); font-size: 0.9rem; }
.doc ul { padding-left: 20px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding: 28px 0 48px;
  color: var(--dim); font-size: 0.9rem;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }

/* The app ships light and dark; a marketing page that only exists in dark is
   a deliberate choice — the product's identity is the dark aurora. */
/* The hint line and dots exist only for the swipeable row, so both start
   hidden and are switched on inside the same breakpoint that turns .shots
   into that row — there is nothing to swipe on a desktop grid. */
.shots-hint { display: none; }
.dots { display: none; }

@media (max-width: 700px) {
  /* A swipeable row rather than a grid. Two columns on a phone made each
     screenshot about 150px wide — unreadable, and the captions broke to one
     word per line. One at a time, nearly full width, is also how the App
     Store itself presents them. */
  .shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Bleed to the screen edges so the next one peeks in and the row reads
       as scrollable without a scrollbar to say so. */
    margin: 0 -24px;
    padding: 8px 24px 8px;
    scroll-padding-left: 24px;
  }
  .shots::-webkit-scrollbar { display: none; }
  /* Narrower than before (was 76%) so more of the next card peeks past the
     edge — one screenshot filling almost the full screen read as a single
     static image, not as the start of a row (reported 7 augusti 2026). */
  .shot { flex: 0 0 68%; scroll-snap-align: center; }
  .shot p { font-size: 0.95rem; }

  /* A static peek is a weak signal on its own — it was there before and
     still read as "one image" rather than "more to come". The line above
     the row and the dots below say the same thing two more ways. */
  .shots-hint {
    display: block;
    color: var(--dim);
    font-size: 0.85rem;
    text-align: center;
    margin: 40px 0 -2px;
  }

  .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 14px 0 4px;
  }
  .dots button {
    width: 6px; height: 6px; padding: 0; border: none; border-radius: 3px;
    background: var(--line);
  }
  .dots button.active {
    width: 20px;
    background: var(--blue);
    transition: width 0.2s ease, background 0.2s ease;
  }
}

@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; gap: 10px; }
}
