:root {
  --bg: #f4f5ef;
  --bg-soft: #eef2ea;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: rgba(255, 250, 243, 0.92);
  --text: #161715;
  --text-soft: #4f554d;
  --line: rgba(22, 23, 21, 0.08);
  --sage: #c9d7c9;
  --sage-deep: #9fb19c;
  --sand: #e8ded1;
  --shadow: 0 20px 60px rgba(55, 68, 55, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "SF Pro Display", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(224, 233, 223, 0.95), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(234, 226, 214, 0.8), transparent 28%),
    linear-gradient(180deg, #f8f7f2 0%, #edf2ea 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(244, 245, 239, 0.72);
  border-bottom: 1px solid rgba(22, 23, 21, 0.06);
}

.site-header__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(232, 222, 209, 0.95), rgba(201, 215, 201, 0.95));
  border: 1px solid rgba(22, 23, 21, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
}

.hero__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 span,
.legal-hero h1 span {
  display: block;
}

.hero__sub {
  margin: 22px 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 34rem;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.app-store-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-store-button {
  padding: 16px 22px;
  background: #111210;
  color: #f7f5ee;
  box-shadow: 0 16px 36px rgba(17, 18, 16, 0.22);
  font-weight: 700;
}

.app-store-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.text-button {
  font-weight: 600;
  color: var(--text-soft);
}

.app-store-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.hero__notes {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__note {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(22, 23, 21, 0.05);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.78), rgba(238, 242, 234, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-xl) - 12px);
  background: linear-gradient(180deg, rgba(233, 224, 210, 0.25), rgba(201, 215, 201, 0.18));
  filter: blur(28px);
  z-index: 0;
}

.hero-card__image,
.shot-card__media {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
}

.section {
  padding: 32px 0 28px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.section__kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.section__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.section__description {
  max-width: 34rem;
  color: var(--text-soft);
  line-height: 1.6;
}

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

.feature-card,
.legal-card,
.cta-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(201, 215, 201, 0.88), rgba(232, 222, 209, 0.78));
  margin-bottom: 16px;
}

.feature-card h3,
.legal-card h2,
.cta-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-card p,
.legal-card p,
.legal-card li,
.cta-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.feature-card ul,
.legal-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(22, 23, 21, 0.05);
  box-shadow: var(--shadow);
}

.shot-card__label {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.shot-card__caption {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.cta-card {
  margin: 36px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.88), rgba(232, 239, 229, 0.88));
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 72px 0 28px;
}

.legal-hero p {
  max-width: 42rem;
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1.08rem;
}

.legal-stack {
  display: grid;
  gap: 18px;
  padding-bottom: 72px;
}

.site-footer {
  padding: 0 0 40px;
}

.site-footer__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 23, 21, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.94rem;
}

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

.muted {
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .hero__wrap,
  .cta-card,
  .screenshot-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header__inner {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 38px;
  }

  .hero__actions,
  .site-footer__inner,
  .cta-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions a,
  .cta-card a {
    width: 100%;
  }

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