/* ---------------------------------------------------
   All You Can — shared styles
--------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f2;
  --color-surface: #ffffff;
  --color-body: #34332f;
  --color-text: #121210;
  --color-invert: #ffffff;
  --color-text-muted: #6d6c67;
  --color-border: #e8e6e0;
  --color-border-strong: #d9d7cf;
  --color-nav-bg: rgba(255, 255, 255, 0.85);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1140px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121110;
    --color-bg-alt: #1a1916;
    --color-surface: #1c1b18;
    --color-body: #d9d7cf;
    --color-text: #f5f3ee;
    --color-invert: #121110;
    --color-text-muted: #a19e93;
    --color-border: #2b2a26;
    --color-border-strong: #3c3a35;
    --color-nav-bg: rgba(18, 17, 16, 0.85);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--color-text);
  color: var(--color-invert);
}

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

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  display: block;
  height: 30px;
  width: auto;
}

.nav-brand .logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .nav-brand .logo-light {
    display: none;
  }

  .nav-brand .logo-dark {
    display: block;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 108px 0 108px;
  text-align: center;
}

.hero-mark {
  margin-bottom: 32px;
}

.hero-mark img {
  width: 46px;
  height: 46px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto 28px;
  max-width: 880px;
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text);
}

.hero p.lede {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.hero-scroll {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.hero-scroll a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  text-decoration: none;
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------------- Apps section ---------------- */

.apps {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 110px 0 120px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.app-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-card:hover {
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35);
  border-color: var(--color-border-strong);
}

.app-card .art {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.app-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card .tag {
  display: none;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.app-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.app-card p.desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 26px;
  flex-grow: 1;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  padding: 10px 18px 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: default;
  background: var(--color-bg-alt);
}

.store-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ---------------- CTA strip ---------------- */

.cta {
  padding: 110px 0;
  text-align: center;
}

.cta h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.cta p {
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-invert);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 100px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-brand .mark {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-brand .mark img {
  display: block;
  width: 40px;
  height: 40px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------------- Simple content pages ---------------- */

.page-header {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--color-border);
}

.page-header .eyebrow {
  margin-bottom: 18px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0;
}

.page-content {
  padding: 64px 0 120px;
  max-width: 720px;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--color-body);
  font-size: 1rem;
  margin: 0 0 16px;
}

.page-content a.inline-link {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 3px;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  background: var(--color-bg-alt);
}

.contact-card p.email {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 8px 0 0;
}

.contact-card p.email a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--color-text);
}

/* ---------------- Mobile nav ---------------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 22px;
  }

  .hero {
    padding: 96px 0 80px;
  }

  .apps {
    padding: 80px 0 90px;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 20px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }
}
