/* Recall — memba.app */

:root {
  --bg: #f4eee2;
  --bg-deep: #ebe3d4;
  --ink: #2c2822;
  --ink-soft: #4a4438;
  --muted: #8c8474;
  --accent: #c0794b;
  --accent-deep: #a5623a;
  --card: #fcfaf4;
  --border: rgba(44, 40, 34, 0.08);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(192, 121, 75, 0.16), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(91, 122, 106, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

/* —— Shell —— */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* —— Landing hero —— */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(6.5rem, 18vh, 8rem) var(--pad) 3rem;
  max-width: 36rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  animation: rise 0.9s ease both;
}

.hero .tagline {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  color: var(--ink-soft);
  animation: rise 0.9s ease 0.1s both;
}

.hero .lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  animation: rise 0.9s ease 0.18s both;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.28s both;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.55rem 1.1rem 0.55rem 0.95rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  background: var(--accent-deep);
  color: var(--bg);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.store-btn .label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-btn .name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-visual {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(52vw, 26rem);
  height: min(88svh, 46rem);
  pointer-events: none;
  animation: float-in 1.1s ease 0.15s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 24px 48px rgba(44, 40, 34, 0.18));
}

@media (max-width: 720px) {
  .hero {
    align-items: stretch;
  }

  .hero-copy {
    padding-bottom: min(58svh, 28rem);
  }

  .hero-visual {
    width: min(78vw, 20rem);
    height: min(52svh, 26rem);
    right: 50%;
    transform: translateX(50%);
  }

  .hero-visual img {
    object-position: bottom center;
  }
}

/* —— Feature band —— */

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--pad) 2rem;
}

.band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.band > p {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list li {
  max-width: 28rem;
}

.feature-list h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
}

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

.privacy-callout {
  margin: 3rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 36rem;
}

.privacy-callout p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* —— Inner pages —— */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 6.5rem var(--pad) 3rem;
}

.page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.page .meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page h2 {
  margin: 2.25rem 0 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
}

.page h3 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
}

.page p,
.page li {
  color: var(--ink-soft);
}

.page ul {
  padding-left: 1.2rem;
}

.page li + li {
  margin-top: 0.35rem;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.65rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(44, 40, 34, 0.04);
  color: var(--ink);
}

.faq dt {
  margin: 1.35rem 0 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}

.faq dd {
  margin: 0;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  @keyframes float-in {
    from {
      opacity: 0;
      transform: translateX(50%) translateY(28px);
    }
    to {
      opacity: 1;
      transform: translateX(50%);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
