/* Rejoy marketing site — brand #FE7302, light surfaces from app tokens */

:root {
  --rejoy-orange: #fe7302;
  --rejoy-orange-soft: #fff0e6;
  --bg: #f6f4f1;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b6b6f;
  --border: #e8e6e3;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 880px;
  /* SF Pro Rounded on Apple (ui-rounded + named faces); Nunito ≈ rounded fallback elsewhere */
  --font-rounded: ui-rounded, "SF Pro Rounded", "SF Compact Rounded", -apple-system,
    BlinkMacSystemFont, "Nunito", system-ui, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-rounded);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--rejoy-orange);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Header */
.site-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header a.home {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.site-header a.home:hover {
  color: var(--rejoy-orange);
  text-decoration: none;
}

.home-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  align-items: center;
}

/* Live community seeds (replaces header Terms/Privacy; legal links stay in footer) */
.seeds-nav {
  justify-content: flex-end;
}

.seeds-counter-inner {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: inherit;
  color: var(--text-secondary);
  white-space: nowrap;
}

.seeds-counter-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  min-width: 1ch;
}

.seeds-counter-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: inherit;
}

.site-header-aside {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-subtle-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.header-subtle-link:hover {
  color: var(--rejoy-orange);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 32px;
}

.hero-logo {
  width: min(200px, 52vw);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
  border-radius: 22%;
  box-shadow: 0 12px 40px rgba(254, 115, 2, 0.18);
}

h1.brand {
  margin: 0 0 12px;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 auto;
  max-width: 28em;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-cta {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-store-badge:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.hero-store-badge:focus-visible {
  outline: 2px solid var(--rejoy-orange);
  outline-offset: 4px;
}

.hero-store-badge-img {
  width: auto;
  height: 40px;
  display: block;
}

@media (min-width: 480px) {
  .hero-store-badge-img {
    height: 44px;
  }
}

.hero-cta-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Section */
section {
  margin-top: 40px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* How to use — centered “— — — How to use Rejoy — — —” */
.how-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.how-heading::before,
.how-heading::after {
  content: "";
  flex: 1 1 auto;
  min-width: 2rem;
  max-width: min(220px, 32vw);
  border: none;
  border-top: 1px dashed var(--border);
  opacity: 0.9;
}

/* Hint of brand on the inner edge of each dash run */
.how-heading::before {
  background: linear-gradient(90deg, transparent, rgba(254, 115, 2, 0.12) 100%) border-box;
}

.how-heading::after {
  background: linear-gradient(270deg, transparent, rgba(254, 115, 2, 0.12) 100%) border-box;
}

@media (max-width: 420px) {
  .how-heading {
    flex-direction: column;
    gap: 0.65rem;
  }

  .how-heading::before,
  .how-heading::after {
    max-width: 140px;
    width: 55%;
  }
}

/* How to use — steps follow heading directly */
.how-section > .steps {
  margin-top: 12px;
}

/* How-to steps — image + title + subtitle, no card chrome */
.steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.step-visual {
  margin: 0;
  padding: 0;
}

.step-visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.step-text h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 36rem;
}

@media (min-width: 720px) {
  .step {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  /* Zigzag: odd = image left / text right, even = text left / image right */
  .step:nth-child(even) {
    flex-direction: row-reverse;
  }

  .step-visual {
    flex: 0 0 42%;
    max-width: 340px;
  }

  .step-visual img {
    width: 100%;
    height: auto;
    max-height: min(380px, 50vh);
    object-fit: contain;
    object-position: center center;
  }

  .step-text {
    flex: 1;
    min-width: 0;
  }
}

/* Support CTA */
.support-card {
  margin-top: 40px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.support-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.support-card a {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 12px;
}

/* Legal pages */
.legal {
  padding-top: 16px;
}

.legal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.legal .meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 28px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 8px;
}
