:root {
  --ink: #07120f;
  --ink-2: #0b1b15;
  --ink-3: #10261e;
  --paper: #f4eedf;
  --muted: #a8b8ae;
  --gold: #d7ae5b;
  --gold-2: #f0d18a;
  --green: #2ec770;
  --line: rgba(244, 238, 223, 0.14);
  --line-strong: rgba(244, 238, 223, 0.28);
  --max: 1120px;
  --radius: 20px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% -5%, rgba(46, 199, 112, 0.14), transparent 34rem),
    radial-gradient(circle at 2% 28%, rgba(215, 174, 91, 0.1), transparent 30rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(244, 238, 223, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 223, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

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

::selection {
  background: var(--gold-2);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 15, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(215, 174, 91, 0.62);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(215, 174, 91, 0.18), rgba(46, 199, 112, 0.08));
  color: var(--gold-2);
  font-size: 0.94rem;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 64px;
  align-items: center;
  padding: 96px 0 104px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(46, 199, 112, 0.12);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.4rem, 7.6vw, 6.7rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

h1 em {
  color: var(--gold-2);
  font-style: normal;
}

.lede {
  max-width: 54ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.button-primary {
  background: var(--gold-2);
  color: #1c1608;
}

.button-primary:hover {
  background: #ffe7b1;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid rgba(240, 209, 138, 0.34);
  border-radius: 31%;
  background: linear-gradient(145deg, rgba(240, 209, 138, 0.17), rgba(46, 199, 112, 0.07));
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(4deg);
}

.hero-card img {
  width: 100%;
  border-radius: 27%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.hero-card-label {
  position: absolute;
  bottom: -13px;
  left: 50%;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: translateX(-50%) rotate(-4deg);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(244, 238, 223, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: min(96%, 500px);
  aspect-ratio: 1;
  transform: rotate(-18deg);
}

.orbit-two {
  width: min(112%, 590px);
  aspect-ratio: 2 / 1;
  border-color: rgba(46, 199, 112, 0.14);
  transform: rotate(28deg);
}

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 27, 21, 0.92);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-top {
  top: 11%;
  right: 1%;
}

.note-bottom {
  bottom: 10%;
  left: 1%;
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.app-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 0% 50%, rgba(46, 199, 112, 0.12), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.app-feature::after {
  position: absolute;
  top: -140px;
  right: -90px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(240, 209, 138, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.app-feature-art {
  display: grid;
  place-items: center;
}

.app-feature-art img {
  width: min(100%, 270px);
  border-radius: 28%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(46, 199, 112, 0.26);
  border-radius: 999px;
  background: rgba(46, 199, 112, 0.08);
  color: #a8f2c8;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-feature h3 {
  margin: 18px 0 0;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.app-subtitle {
  margin: 10px 0 0;
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-feature-copy > p:not(.pill):not(.app-subtitle) {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.collection-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.collection-note a {
  color: var(--paper);
  text-underline-offset: 3px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.principle {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.principle span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.principle h3 {
  margin: 20px 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 20px 0 84px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 174, 91, 0.12), transparent 22rem),
    rgba(255, 255, 255, 0.025);
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

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

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--paper);
  text-decoration: underline;
}

/* All apps grid */

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.app-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.app-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.app-kind {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-card h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-card p:not(.app-kind) {
  flex: 1;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.app-card-link {
  margin-top: auto;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.app-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-card-link span {
  display: inline-block;
  margin-left: 3px;
}

/* App detail page */

.app-hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 76px 0;
}

.app-hero-icon img {
  width: 100%;
  border-radius: 28%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.app-hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.meta-row li {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-row li:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.feature-card .num {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  min-height: 112px;
  padding: 22px;
  background: var(--ink-2);
}

.stat strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.panel h2,
.panel h3 {
  margin: 0;
}

.panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.panel h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.panel p {
  color: var(--muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.fine {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.disclaimer {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #7f9187;
  font-size: 0.76rem;
}

/* Support and legal pages */

.page-hero {
  max-width: 780px;
  padding: 76px 0 36px;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.9rem, 6vw, 5rem);
}

.page-hero .lede {
  max-width: 64ch;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 84px;
}

.support-card {
  position: sticky;
  top: 100px;
}

.support-email {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold-2);
  font-weight: 750;
  text-underline-offset: 3px;
}

.faq {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  flex: 0 0 auto;
  color: var(--gold);
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 72ch;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal {
  max-width: 780px;
  padding-bottom: 84px;
}

.legal h2 {
  margin-top: 44px;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.08rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal .updated {
  margin-top: 0;
  color: #82948a;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal a,
.support-card a,
.panel a {
  color: var(--gold-2);
  text-underline-offset: 3px;
}

.not-found {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  max-width: none;
  font-size: clamp(4rem, 12vw, 9rem);
}

.not-found p {
  max-width: 42ch;
  margin: 18px auto 30px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero,
  .app-feature,
  .support-grid,
  .app-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 44px;
    padding: 66px 0 82px;
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-card {
    width: min(74%, 300px);
  }

  .orbit-one {
    width: min(76%, 500px);
  }

  .orbit-two {
    width: min(88%, 590px);
  }

  .app-feature {
    gap: 28px;
    padding: 26px;
  }

  .app-feature-art img {
    width: min(62%, 220px);
  }

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

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-card {
    position: static;
  }

  .app-hero {
    gap: 28px;
    padding: 56px 0;
  }

  .app-hero-icon {
    width: 180px;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .nav {
    gap: 14px;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-art {
    min-height: 280px;
  }

  .note-top {
    right: 0;
  }

  .note-bottom {
    left: 0;
  }

  .section {
    padding: 64px 0;
  }

  .app-feature h3 {
    font-size: 2.25rem;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 64px;
    padding: 26px;
  }

  .feature-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: auto;
  }

  .page-hero {
    padding-top: 56px;
  }

  .support-grid,
  .legal {
    padding-bottom: 64px;
  }

  .panel {
    padding: 22px;
  }
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
