/* Shared styles for grupy.dk. Deliberately dependency-free — no fonts,
   frameworks or trackers to load, so every page works offline-ish and
   stays fast on a phone.

   Theme is time-of-day, not OS preference: an inline script in <head> sets
   data-theme="light"|"dark" on <html> based on the visitor's local clock
   (see theme.js) before first paint. :root is the light baseline; dark
   overrides everything through the same custom properties. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --line: rgba(0, 0, 0, .08);
  --ink: #1c1c1e;
  --on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);

  --accent-blue: #2AA4FB;
  --accent-purple: #B85CF0;
  --accent-teal: #178C87;
  --accent-orange: #FD7D08;
  --accent-pink: #FC4F98;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --text: #f2f2f7;
  --muted: #98989d;
  --line: rgba(255, 255, 255, .12);
  --ink: #f2f2f7;
  --on-ink: #1c1c1e;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.wrap-wide { max-width: 1080px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -.01em;
}
.dot {
  width: 84px; height: 84px;
  border-radius: 20px;
  display: block;
}

.platform-line {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .01em;
  margin: 18px 0 0;
}

h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 40px 0 16px;
}
h2 {
  font-size: 20px;
  letter-spacing: -.01em;
  margin: 36px 0 10px;
}
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

a { color: inherit; text-underline-offset: 3px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 26px;
  margin: 28px 0;
  border: 1px solid var(--line);
}

/* Centred single-message pages (the Stripe hand-off screens). */
.center {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.center .card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  margin: 0;
}
.lang-switch { position: relative; display: inline-block; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 10px; font: inherit; font-size: 15px; color: inherit; cursor: pointer;
}
.lang-trigger .lang-flag { font-size: 16px; line-height: 1; }
.lang-trigger .lang-chevron { opacity: .55; margin-left: 2px; }
.lang-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; margin: 0; list-style: none; min-width: 160px;
  box-shadow: var(--shadow); z-index: 20;
}
.lang-menu[hidden] { display: none; }
.lang-menu li a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 15px;
}
.lang-menu li a:hover { background: var(--bg); }
.lang-menu li a[aria-current="true"] { font-weight: 700; }
.lang-menu .lang-flag { font-size: 16px; line-height: 1; }

/* Same pill language as `.lang-trigger` — the time-of-day default still
   picks the initial theme (see the inline script in <head>), this just lets
   a visitor override it. The override is sticky (localStorage), so once
   tapped the clock stops re-deciding for that visitor. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: inherit; cursor: pointer; padding: 0; vertical-align: middle;
  margin-right: 10px; line-height: 1;
  -webkit-appearance: none; appearance: none;
}
/* fill="none" icons only hit-test on the stroke itself, not the interior —
   a click anywhere else in the circle would fall through past the svg. Take
   the icons out of hit-testing entirely so the button's own box (backed by
   --card, not transparent) is always what the cursor actually hits. */
.theme-toggle svg { display: none; pointer-events: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }

.mark {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--ink);
  color: var(--on-ink);
}
.mark.warn { background: #ff9f0a; color: #fff; }

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
footer a { margin-right: 18px; }

/* Long-form legal text. */
.prose h1 { margin-top: 24px; }
.prose p { max-width: 62ch; }

/* ---------- Marketing homepage ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 8px 0 16px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-copy h1 { margin-top: 24px; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.pill-badge b { color: var(--text); }

/* Real device mockups (Pixelmator templates) with the on-screen area
   flood-filled transparent, so a screenshot dropped into .mockup-screen
   shows through the actual frame photo instead of a hand-drawn shape. */
.device-stack {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.mockup { position: relative; width: 100%; }
.mockup > img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
}
.mockup-screen {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: var(--card);
}
.mockup-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* All three device photos are the user's own cutouts with a real
   transparent hole punched in the screen — frame on top (default stacking
   from `.mockup > img` above), screenshot shows through from behind. */
.mockup-mac { width: 100%; }
.mockup-mac .mockup-screen { left: 10.29%; top: 2.49%; width: 79.36%; height: 85.33%; }

.mockup-phone {
  position: absolute;
  width: 27%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.mockup-phone-ios { right: -4%; bottom: -10%; z-index: 3; }
.mockup-phone-ios .mockup-screen { left: 4.3%; top: 1.83%; width: 91.41%; height: 96.42%; }

.mockup-phone-android {
  right: 14%;
  bottom: -2%;
  width: 23%;
  z-index: 2;
}
.mockup-phone-android .mockup-screen { left: 5.48%; top: 1.92%; width: 86.31%; height: 96.25%; }

.screenshot-pending {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-blue) 18%, var(--card)), var(--card));
  color: var(--muted);
  font-size: 13px;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 32px 0;
}
@media (max-width: 860px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .usp-grid { grid-template-columns: 1fr; }
}
.usp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--accent, var(--ink));
}
.usp-card .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--ink)) 16%, transparent);
  color: var(--accent, var(--ink));
  margin-bottom: 14px;
  font-size: 19px;
}
.usp-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.usp-card p { margin: 0; font-size: 15px; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.gallery-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 9 / 17;
  position: relative;
}
.gallery-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-shot .screenshot-pending { border-radius: 0; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 48px 0 4px;
}
