/* frugalResolution – shared stylesheet. No build step, no external resources. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4fb;
  --surface: #ffffff;
  --text: #16152b;
  --text-muted: #5a5a72;
  --border: #e2e2ee;
  --accent: #4a45c6;
  --accent-strong: #2a2788;
  --on-accent: #ffffff;
  --radius: 14px;
  --maxw: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e1f;
    --bg-alt: #17162b;
    --surface: #1c1b33;
    --text: #f1f1f8;
    --text-muted: #a9a9c2;
    --border: #2d2c4a;
    --accent: #8f8bf5;
    --accent-strong: #5b57d9;
    --on-accent: #ffffff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Sections */

section {
  padding: 64px 0;
}

.alt {
  background: var(--bg-alt);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 38em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40em;
  margin-bottom: 32px;
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 24px;
}

.hero-shot {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
}

.platforms {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

.button {
  display: inline-block;
  background: var(--accent-strong);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
}

.button:hover {
  background: var(--accent);
}

.badge {
  display: inline-block;
  border-radius: 9px;
}

.badge img {
  height: 54px;
  width: auto;
}

/* Device switch: two radios drive which gallery is shown, no JavaScript needed. */

.device-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.device-switch label {
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

#device-iphone:checked ~ .device-switch label[for="device-iphone"],
#device-ipad:checked ~ .device-switch label[for="device-ipad"] {
  background: var(--accent-strong);
  color: var(--on-accent);
}

#device-iphone:focus-visible ~ .device-switch label[for="device-iphone"],
#device-ipad:focus-visible ~ .device-switch label[for="device-ipad"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#device-iphone:checked ~ .gallery.ipad,
#device-ipad:checked ~ .gallery.iphone {
  display: none;
}

/* Screenshot gallery */

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 16px;
  margin: 0 -20px 24px;
  list-style: none;
}

.gallery li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.gallery img {
  border-radius: 20px;
}

.gallery.iphone img {
  width: 240px;
}

.gallery.ipad img {
  width: 360px;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--accent);
}

a.app-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: 0 0 auto;
}

/* Callout */

.callout {
  background: var(--accent-strong);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: 32px;
}

.callout a {
  color: inherit;
}

.callout ol {
  margin: 0;
  padding-left: 1.2em;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 44em;
}

/* Text pages (privacy, imprint, support) */

.prose {
  max-width: 44em;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose address {
  font-style: normal;
  margin-bottom: 1em;
}

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 760px) {
  section {
    padding: 44px 0;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-shot {
    max-width: 240px;
  }

  /* In-page anchors would wrap the header onto a second line. */
  .site-nav a[href^="#"] {
    display: none;
  }
}

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