/* --- CUSTOM PROPERTIES --- */

:root {
  --ink: #0A0A0B;
  --paper: #F8F7F5;
  --warm-gray: #E8E6E1;
  --mid-gray: #9E9B95;
  --cool-gray: #6B6862;
  --signal: #C45D3E;
  --signal-light: #E8A391;
  --squish: #D94F30;
  --squish-end: #E87558;
  --exifspy: #2B7A78;
  --exifspy-end: #4ECDC4;
  --lensight: #3D5A80;
  --lensight-end: #6B93D6;
  --workbench: #7B5EA7;
  --workbench-end: #A78BFA;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

/* --- RESET & BASE --- */

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* --- LAYOUT --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 2.5rem 0;
}

/* --- NAVIGATION --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.mark-bg {
  fill: var(--ink);
}

.mark-fg {
  stroke: var(--paper);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-mark img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-wordmark .labs {
  font-weight: 300;
  color: var(--cool-gray);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--cool-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* --- HERO --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.hero-logotype {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-logotype .labs {
  font-weight: 300;
  color: var(--cool-gray);
}

.hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cool-gray);
  margin-top: 1.5rem;
}

.hero-sub {
  font-family: var(--body);
  font-weight: 400;
  color: var(--mid-gray);
  margin-top: 1rem;
  max-width: 500px;
}

/* --- SECTION HEADERS --- */

.section-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--signal);
  margin-bottom: 2rem;
}

/* --- SECTION TITLES --- */

.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* --- SECTION BODY --- */

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cool-gray);
  max-width: 640px;
}

.section-body strong {
  color: var(--ink);
  font-weight: 500;
}

/* --- APP CARDS GRID --- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.app-card {
  background: var(--paper);
  border: 1px solid var(--warm-gray);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.app-card.squish::before {
  background: var(--squish);
}

.app-card.exifspy::before {
  background: var(--exifspy);
}

.app-card.lensight::before {
  background: var(--lensight);
}

.app-card.workbench::before {
  background: var(--workbench);
}

.app-card.coming-soon {
  opacity: 0.85;
  border-style: dashed;
}

.app-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* --- APP PRICE --- */

.app-price {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 0.75rem;
}

.app-price.free {
  color: var(--exifspy);
  font-weight: 500;
}

/* --- APP CARD INNER ELEMENTS --- */

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.app-card h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.app-card .app-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--cool-gray);
  margin-bottom: 0.5rem;
}

.app-card .app-oneliner {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--mid-gray);
}

/* --- APP PAGE HERO --- */

.app-hero {
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.app-hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 1.5rem;
}

.app-hero h1 {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
}

.app-hero .app-hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-top: 0.75rem;
}

.app-hero.squish .app-hero-tagline {
  color: var(--squish);
}

.app-hero.exifspy .app-hero-tagline {
  color: var(--exifspy);
}

.app-hero.lensight .app-hero-tagline {
  color: var(--lensight);
}

/* --- FEATURE LIST --- */

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--cool-gray);
  font-size: 1rem;
}

.feature-list li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: var(--signal);
  font-weight: 700;
}

/* --- SCREENSHOT --- */

.screenshot-placeholder {
  background: var(--warm-gray);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--mid-gray);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 2rem;
}

.screenshot-img {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

.screenshot-img--small {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-img--large {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-gallery {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.screenshot-gallery .screenshot-img {
  margin-top: 0;
  flex: 0 1 auto;
}

.screenshot-gallery .screenshot-img--small {
  max-width: 280px;
}

/* --- DARK SECTION --- */

.section-dark {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 0;
}

.section-dark .section-label {
  color: var(--signal-light);
}

.section-dark .section-title {
  color: var(--paper);
}

.section-dark .section-body {
  color: var(--mid-gray);
}

.section-dark .section-body strong {
  color: var(--paper);
}

.section-dark .manifesto-item {
  border-left-color: #2A2A2D;
}

/* --- MANIFESTO --- */

.manifesto-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.manifesto-item {
  padding-left: 1.5rem;
  border-left: 2px solid var(--warm-gray);
}

.manifesto-item h3 {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.manifesto-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cool-gray);
}

/* --- DOWNLOAD SECTION --- */

.download-section {
  text-align: center;
  padding: 3rem 0;
}

.download-link {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-family: var(--body);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.download-link:hover {
  opacity: 0.85;
}

.system-req {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 1rem;
}

/* --- SIBLING APPS --- */

.sibling-apps {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.sibling-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  border: 1px solid var(--warm-gray);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.sibling-card:hover {
  border-color: var(--signal-light);
}

.sibling-card .sibling-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.sibling-card .sibling-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.sibling-card .sibling-name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
}

.sibling-card .sibling-desc {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--mid-gray);
}

/* --- FAQ --- */

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--cool-gray);
  line-height: 1.7;
}

/* --- PRIVACY SECTIONS --- */

.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section h2 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.privacy-section p {
  color: var(--cool-gray);
  line-height: 1.75;
}

.last-updated {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 3rem;
}

/* --- FOOTER --- */

.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--warm-gray);
}

.footer-mark {
  opacity: 0.3;
  margin-bottom: 1rem;
}

.footer-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
}

.footer-text a {
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-text a:hover {
  color: var(--signal);
}

/* --- DARK MODE --- */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A0A0B;
    --ink: #F8F7F5;
    --warm-gray: #2A2A2D;
    --cool-gray: #9E9B95;
    --mid-gray: #6B6862;
  }

  .app-card {
    background: #141416;
  }

  .sibling-card {
    background: #141416;
  }

  .download-link {
    background: #F8F7F5;
    color: #0A0A0B;
  }

  .screenshot-placeholder {
    background: #1A1A1D;
  }

  .section-dark {
    background: var(--paper);
  }

  .section-dark .manifesto-item {
    border-left-color: var(--warm-gray);
  }
}

/* --- RESPONSIVE --- */

@media (max-width: 640px) {
  .hero {
    padding-top: 6rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .sibling-apps {
    flex-direction: column;
  }

  .manifesto-block {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    flex-direction: column;
    align-items: center;
  }

  .screenshot-gallery .screenshot-img--small {
    max-width: 300px;
  }

  .container {
    padding: 0 1.5rem;
  }
}
