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

/* dark first, matching the homepage; light only when the system asks for it */
:root {
  --bg:      #0B0C0E;
  --surface: #121317;
  --raise:   #181A1F;
  --line:    rgba(255, 255, 255, 0.07);
  --line2:   rgba(255, 255, 255, 0.13);
  --ink:     #EDEEF0;
  --ink2:    #A3A7AF;
  --ink3:    #6E727B;
  --accent:  #2FD9BC;
  --tint:    #7B6CF0; /* Podnap's violet, from the icon */
  --glow:    18%;
  --sans:    'DM Sans', -apple-system, system-ui, sans-serif;
  --mono:    'Geist Mono', ui-monospace, monospace;
  --display: 'Syne', system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:      #F7F7F5;
    --surface: #FFFFFF;
    --raise:   #F0F0ED;
    --line:    rgba(15, 18, 24, 0.08);
    --line2:   rgba(15, 18, 24, 0.16);
    --ink:     #111317;
    --ink2:    #4F545D;
    --ink3:    #6C717A;
    --accent:  #0B8A75;
    --glow:    12%;
  }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { overflow-x: hidden; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 0 20px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* violet light behind the hero */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background: radial-gradient(50% 65% at 20% 5%, color-mix(in srgb, var(--tint) var(--glow), transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.wrap { max-width: 720px; margin: 0 auto; }

a { -webkit-tap-highlight-color: transparent; }

/* NAV: sticks to the top, frosted */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -20px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
          backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: 720px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-name {
  font-family: var(--display); font-weight: 800; font-size: 1.0625rem;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.site-name span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links li + li { margin: 0; }
.nav-links a {
  display: inline-block; padding: 6px 10px; border-radius: 8px; color: var(--ink2);
  text-decoration: none; font-size: 0.875rem; transition: color 0.15s, background 0.15s;
}
.nav-links a[aria-current="page"] { color: var(--ink); }

/* HERO */
.hero { padding: 64px 0 8px; }
.hero-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.app-icon {
  width: 76px; height: 76px; border-radius: 22.5%; flex: none;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -12px color-mix(in srgb, var(--tint) 80%, #000);
}
.hero-label {
  font-family: var(--mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 6px;
}
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.125rem, 7vw, 3rem);
  line-height: 1; letter-spacing: -0.045em;
}
.hero-desc { font-size: 1.0625rem; color: var(--ink2); max-width: 520px; }

/* SCREENSHOTS: a swipeable strip */
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px; scrollbar-width: none;
  padding: 36px 20px 8px; margin: 0 -20px;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: none; width: 46%; max-width: 210px; height: auto; border-radius: 24px;
  border: 1px solid var(--line2); scroll-snap-align: start;
  box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--tint) 70%, #000);
}

/* SECTION HEADINGS: small mono caps, the only monospace besides the hero label */
h2 {
  padding: 52px 0 14px;
  font-family: var(--mono); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3);
}

h3 {
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  margin: 24px 0 4px; color: var(--ink);
}
p, li { color: var(--ink2); }
p + p { margin-top: 12px; }
strong { color: var(--ink); font-weight: 500; }
ul { padding-left: 1.2rem; }
li + li { margin-top: 8px; }
a { color: var(--ink); text-decoration-color: var(--line2); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* the feature list: a small accent dot per line */
ul.features { list-style: none; padding: 0; }
ul.features li { position: relative; padding-left: 18px; }
ul.features li::before {
  content: ''; position: absolute; left: 2px; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--tint);
}

/* the itch, the fix, and what got left out, as on the homepage */
.why {
  margin-top: 28px;
  display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 8px 10px;
  font-size: 0.9375rem; line-height: 1.5;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(110% 120% at 0% 0%, color-mix(in srgb, var(--tint) var(--glow), transparent), transparent 60%),
    var(--surface);
}
.why dt {
  font-family: var(--mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); padding-top: 0.35em;
}
.why dd { color: var(--ink2); }
.why dt.itch { color: var(--accent); }
.why dd.itch { color: var(--ink); font-weight: 500; }
.why dd.skip { color: var(--ink3); }

.store {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; padding: 11px 20px;
  background: var(--ink); color: var(--bg); border-radius: 999px;
  text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: opacity 0.15s;
}
.store:active { opacity: 0.8; }

.mail {
  display: inline-block; margin: 4px 0 12px; padding: 11px 18px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: 999px;
  color: var(--ink); text-decoration: none; transition: border-color 0.15s;
}

footer {
  margin-top: 72px; border-top: 1px solid var(--line); padding: 24px 0 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8125rem; color: var(--ink3);
}
footer a { color: var(--ink2); }

@media (hover: hover) {
  .nav-links a:hover { color: var(--ink); background: var(--raise); }
  .mail:hover { border-color: var(--accent); }
  .store:hover { opacity: 0.88; }
  a:hover { text-decoration-color: var(--accent); }
  footer a:hover { color: var(--ink); }
}

/* screenshots and the why card rise in as they scroll into view, where supported */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .why, .shots {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
  }
}

@media (max-width: 480px) {
  .hero { padding: 44px 0 4px; }
  .hero-desc { font-size: 1rem; }
  .app-icon { width: 62px; height: 62px; }
}

/* narrow phones: shrink the nav so the links fit next to the name */
@media (max-width: 440px) {
  .site-name { font-size: 0.875rem; }
  .nav-links { gap: 0; margin-right: -5px; }
  .nav-links a { padding: 6px 5px; font-size: 0.8125rem; }
}

/* the tiniest phones: support and privacy are both in the page and footer anyway */
@media (max-width: 350px) {
  .nav-links { display: none; }
}
