@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f6f1ea;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-tint: #fff5ee;
  --text: #1f2428;
  --muted: #5f666d;
  --line: rgba(124, 101, 84, 0.16);
  --accent: #d9784b;
  --accent-deep: #b75f35;
  --accent-soft: rgba(217, 120, 75, 0.14);
  --emerald: #2f8a62;
  --sky: #347bb8;
  --rose: #d67c80;
  --shadow: 0 20px 50px rgba(31, 36, 40, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 120, 75, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(47, 138, 98, 0.14), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 244, 0.84);
  border-bottom: 1px solid rgba(124, 101, 84, 0.08);
}

.topbar-inner,
.hero-inner,
.page-inner,
.section-shell,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

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

.menu-toggle,
.menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(124, 101, 84, 0.12);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 24px rgba(31, 36, 40, 0.06);
}

.menu-toggle-bars {
  display: grid;
  gap: 5px;
}

.menu-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.14rem;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff6ef 0 16%, transparent 18%),
    linear-gradient(135deg, var(--accent), var(--rose));
  box-shadow: 0 0 0 6px rgba(217, 120, 75, 0.16);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 18, 0.46);
  backdrop-filter: blur(4px);
}

.mobile-menu-panel {
  position: relative;
  margin-left: auto;
  width: min(100%, 380px);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 24px 22px 28px;
  background:
    radial-gradient(circle at top right, rgba(217, 120, 75, 0.14), transparent 24%),
    linear-gradient(180deg, #fffaf5 0%, #f7efe7 100%);
  box-shadow: -18px 0 42px rgba(31, 36, 40, 0.16);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mobile-menu-top .brand {
  font-size: 1rem;
}

.menu-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 101, 84, 0.12);
  font-size: 1.6rem;
  line-height: 1;
}

.mobile-menu-groups {
  display: grid;
  gap: 18px;
}

.mobile-group {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(31, 36, 40, 0.06);
}

.mobile-group-title {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-group nav,
.mobile-link-stack {
  display: grid;
  gap: 8px;
}

.mobile-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(124, 101, 84, 0.1);
}

.mobile-group a::after {
  content: "→";
  color: var(--muted);
  font-weight: 700;
}

.mobile-group a[aria-current="page"] {
  background: rgba(217, 120, 75, 0.14);
  color: var(--accent-deep);
}

.hero,
.page {
  padding: 42px 0 72px;
}

.hero-card,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(135deg, #201914 0%, #392821 35%, #c76c43 100%);
  color: #fff;
}

.hero-card::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -30% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.hero-inner {
  padding: 74px 42px 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 14px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.02;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.74;
  font-size: 1.08rem;
}

.hero-actions,
.link-row,
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.stats-grid,
.directory-grid,
.support-grid,
.page-grid,
.screenshot-grid,
.info-grid,
.feature-list,
.policy-list,
.faq-list,
.card-stack {
  display: grid;
  gap: 18px;
}

.stats-grid,
.page-grid,
.info-grid {
  grid-template-columns: repeat(12, 1fr);
}

.stats-grid {
  margin-top: 28px;
}

.stat-card,
.directory-card,
.page-card,
.feature-item,
.policy-item,
.faq-item,
.support-card,
.shot,
.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-card,
.page-card,
.support-card,
.resource-card {
  padding: 26px;
}

.stat-card {
  grid-column: span 3;
  min-height: 148px;
}

.stat-card strong,
.metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.stat-card span,
.stat-card p,
.page-card p,
.directory-card p,
.feature-item p,
.policy-item p,
.policy-item li,
.faq-item p,
.support-card p,
.resource-card p,
.shot p {
  color: var(--muted);
  line-height: 1.72;
}

.section-shell {
  margin-top: 26px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.section-heading h2,
.page-card h2,
.policy-item h3,
.faq-item h3,
.directory-card h3,
.feature-item h3 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-heading p,
.microcopy,
.muted-label {
  margin: 0;
  color: var(--muted);
}

.muted-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.directory-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 241, 0.94));
}

.directory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--rose));
}

.directory-card[data-tone="green"]::before {
  background: linear-gradient(90deg, var(--emerald), #5ec798);
}

.directory-card[data-tone="blue"]::before {
  background: linear-gradient(90deg, var(--sky), #63a4dd);
}

.directory-card[data-tone="rose"]::before {
  background: linear-gradient(90deg, var(--rose), #e8a0a3);
}

.directory-card[data-platform="android"]::before {
  background: linear-gradient(90deg, #1fa14a, #53d67b);
}

.directory-card[data-platform="iphone"]::before {
  background: linear-gradient(90deg, #1d73d6, #63aef3);
}

.directory-card[data-platform="watch"]::before {
  background: linear-gradient(90deg, #0b0b0d, #3a3a40);
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.directory-card h3 {
  margin-top: 14px;
  font-size: 1.34rem;
}

.pill,
.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 160ms ease;
}

.cta {
  background: var(--accent);
  color: #fff;
}

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

.pill {
  background: var(--surface-tint);
  border-color: rgba(217, 120, 75, 0.16);
  color: var(--accent-deep);
}

.pill:hover,
.ghost:hover {
  transform: translateY(-1px);
}

.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.support-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

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

.mini-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.page-hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 24px;
  padding: 40px 32px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(140deg, #2a211b, #d9784b);
}

.page-hero[data-tone="green"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(140deg, #1c2620, #2f8a62);
}

.page-hero[data-tone="blue"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(140deg, #1e2430, #347bb8);
}

.page-hero[data-tone="rose"] {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(140deg, #2d2022, #d67c80);
}

.page-inner {
  display: grid;
  gap: 18px;
}

.page-grid > *,
.stats-grid > * {
  grid-column: span 12;
}

.page-card h2 {
  font-size: 1.34rem;
  margin-bottom: 10px;
}

.feature-list,
.policy-list,
.faq-list,
.card-stack {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-item,
.policy-item,
.faq-item,
.resource-card {
  padding: 22px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.88);
}

.feature-item h3,
.policy-item h3,
.faq-item h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.screenshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.screenshot-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shot {
  min-height: 240px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 240, 232, 0.94));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.shot.placeholder::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto;
  height: 58%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(217, 120, 75, 0.16), rgba(47, 138, 98, 0.08)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.86) 14px,
      rgba(217, 120, 75, 0.06) 14px,
      rgba(217, 120, 75, 0.06) 28px
    );
  border: 1px solid rgba(124, 101, 84, 0.12);
}

.shot-real {
  min-height: auto;
  padding: 14px;
  justify-content: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.shot-ghost {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  visibility: hidden;
  pointer-events: none;
}

.shot strong {
  position: relative;
  font-size: 1rem;
}

.shot p {
  position: relative;
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.shot-media {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(124, 101, 84, 0.12);
  box-shadow: 0 16px 32px rgba(31, 36, 40, 0.08);
  background: #fff8f3;
}

.shot-media img {
  width: 100%;
  height: auto;
}

.shot-content {
  position: relative;
}

.shot-content p {
  margin-top: 6px;
}

.info-grid .resource-card {
  grid-column: span 6;
}

.meta {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.meta strong {
  color: var(--text);
}

.document-page {
  display: grid;
  gap: 0;
}

.document-section + .document-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(124, 101, 84, 0.16);
}

.document-section h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.document-section p,
.document-section li {
  font-size: 1rem;
  line-height: 1.72;
}

.document-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.contact-card {
  display: grid;
  gap: 18px;
}

.footer {
  padding: 28px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

@media (max-width: 980px) {
  .stat-card {
    grid-column: span 6;
  }

  .support-grid,
  .page-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid .resource-card {
    grid-column: span 12;
  }

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

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 72px;
    padding: 12px 0;
  }

  .menu-toggle,
  .menu-close {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .hero-inner,
  .page-hero {
    padding: 30px 22px;
  }

  .hero-actions,
  .app-links,
  .link-row {
    gap: 10px;
  }

  .stat-card,
  .directory-card,
  .page-card,
  .feature-item,
  .policy-item,
  .faq-item,
  .resource-card,
  .support-card,
  .shot {
    padding: 20px 18px;
  }

  .stat-card {
    grid-column: span 12;
  }

  .footer-inner {
    flex-direction: column;
  }

  .screenshot-grid-four {
    grid-template-columns: 1fr;
  }

  .shot-ghost {
    display: none;
  }
}

body.menu-open {
  overflow: hidden;
}
