:root {
  --bg: #FFFDF7;
  --ink: #2C2419;
  --display: "new-spirit", serif;
  --body: "new-spirit-condensed", serif;
  --gutter: 4vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--display); font-weight: 400; }

/* ---------- fixed top logo ---------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 1.4rem) 1rem 1.4rem;
  z-index: 100;
  pointer-events: none;
}
.top-bar::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  filter: blur(16px);
  z-index: -1;
}
.logo {
  pointer-events: auto;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.logo img { height: 36px; width: auto; display: block; }

/* ---------- pills ---------- */
.pill {
  display: inline-block;
  font-family: var(--body);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid rgba(44, 36, 25, 0.15);
  border-radius: 999px;
  padding: 0.95rem 3.2rem;
  transition: transform 0.18s ease;
}
.pill:hover { transform: scale(1.04); }
.pill:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pill-light { background: var(--bg); color: var(--ink); border: none; }

.sticky-cta {
  position: fixed;
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}
.sticky-cta .pill {
  pointer-events: auto;
  min-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  box-shadow: 0 6px 24px rgba(44, 36, 25, 0.18);
}
.pill-apple-icon {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  display: block;
}
.pill-label {
  flex: 1;
  text-align: center;
}
.pill-price {
  flex-shrink: 0;
  font-size: 0.85em;
  opacity: 0.7;
}

/* ---------- 1. intro ---------- */
.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(7rem + env(safe-area-inset-top)) var(--gutter) 6rem;
  text-align: center;
}
.intro h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: pre-line;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.intro-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 70px rgba(44, 36, 25, 0.18);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.intro-body {
  max-width: 46ch;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.intro-body p { margin-bottom: 1.1rem; }
.intro-body p:last-child { margin-bottom: 0; }
.intro-features {
  list-style: none;
  text-align: left;
  max-width: 360px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.intro-features li {
  display: flex;
  gap: 1rem;
  font-size: 1.05rem;
}
.intro-features .num {
  flex-shrink: 0;
  width: 2.2ch;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.badge { display: inline-block; text-decoration: none; }
.badge img { height: 52px; width: auto; display: block; }
.badge .badge-fallback {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-family: var(--body);
}
.badge .badge-fallback small { font-size: 0.7rem; }
.badge .badge-fallback span { font-size: 1.15rem; }

/* ---------- 5. FAQ ---------- */
.faq {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem var(--gutter) 9rem;
}
.faq-item { border-bottom: 1px solid rgba(44, 36, 25, 0.45); }
.faq-item:first-child { border-top: 1px solid rgba(44, 36, 25, 0.45); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  text-align: left;
  padding: 1.2rem 0.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq-q .chev {
  font-size: 0;
}
.faq-q .chev::before {
  content: '+';
  font-family: var(--body);
  font-size: 1.1rem;
}
.faq-item.open .chev::before { content: '−'; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding: 0 0.1rem 1.4rem; max-width: 64ch; font-size: 0.95rem; }

/* footer */
.footer {
  text-align: center;
  padding: 2rem var(--gutter) 7rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin-top: 1rem;
}
.footer-legal a {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.45;
  letter-spacing: 0.05em;
}
.footer-legal a:hover { opacity: 1; }
.footer-editor-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.45;
  letter-spacing: 0.05em;
}
.footer-editor-link:hover { opacity: 1; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .intro {
    padding-top: calc(7rem + env(safe-area-inset-top) + 20px);
    padding-bottom: 4rem;
  }
  .intro-media { aspect-ratio: 5 / 6; }

  .faq { padding: 4rem var(--gutter) 8rem; }
  .sticky-cta .pill { width: calc(100% - 3rem); }
}
