:root {
  --rooted-sage: #7FA58A;
  --soft-sage: #C7D8C7;
  --warm-linen: #F8F6F2;
  --stone: #E6E2D9;
  --charcoal: #2B2B2B;
  --harvest-gold: #D6A94D;

  --font-brand: "Playfair Display", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 24px rgba(43, 43, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--charcoal);
  background: var(--warm-linen);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-brand);
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

p {
  margin: 0 0 1em;
  color: #4a4a45;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-ui);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--rooted-sage);
  color: white;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: #6f9679;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--stone);
}

.btn-ghost:hover {
  background: var(--stone);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--charcoal);
}

.wordmark.small {
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal);
}

.nav a:hover {
  color: var(--rooted-sage);
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-login {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--charcoal);
  white-space: nowrap;
}

.header-login:hover {
  color: var(--rooted-sage);
}

@media (max-width: 400px) {
  .header-actions {
    gap: 12px;
  }

  .header-login {
    font-size: 14px;
  }
}

/* Hero */

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

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--soft-sage);
  color: #345c3f;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

.hero .lede {
  font-size: 18px;
  max-width: 480px;
  color: #4a4a45;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Hero visual: phone mockup + decorative avatars */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

.hero-blob {
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(circle at 35% 30%, rgba(127, 165, 138, 0.28), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(214, 169, 77, 0.2), transparent 55%);
  filter: blur(10px);
  z-index: 0;
}

.floating-avatar {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  border: 3px solid white;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}

.avatar-1 {
  top: 6%;
  left: 2%;
  animation-delay: 0.3s;
}

.avatar-2 {
  bottom: 12%;
  right: 0%;
  width: 56px;
  height: 56px;
  animation-delay: 1.1s;
}

.floating-sticker {
  position: absolute;
  z-index: 2;
  background: white;
  border: 1px solid var(--stone);
  box-shadow: var(--shadow-card);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}

.sticker-1 {
  top: 18%;
  right: 4%;
  color: var(--harvest-gold);
  animation-delay: 0.7s;
}

.sticker-2 {
  bottom: 4%;
  left: 6%;
  color: #345c3f;
  animation-delay: 1.6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .floating-avatar,
  .floating-sticker {
    display: none;
  }
}

/* Phone frame */

.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  background: var(--charcoal);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 24px 48px rgba(43, 43, 43, 0.22);
}

.phone-hero {
  transform: rotate(-2deg);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: var(--charcoal);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  background: white;
  border-radius: 28px;
  padding: 20px 18px 22px;
  min-height: 420px;
  overflow: hidden;
}

/* Real screenshot slot: drop a file at the img's `src` path (see
   public/screenshots/README.md) and it covers the illustrated mockup
   automatically. Missing file -> onerror removes the tag, illustrated
   content underneath shows as-is. No code changes needed either way. */
.phone-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.phone-illustrated {
  position: relative;
  z-index: 0;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.phone-statusbar-icons {
  letter-spacing: 2px;
}

.phone-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.phone-topbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--harvest-gold);
  flex-shrink: 0;
}

.phone-topbar-title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 17px;
}

.app-card-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warm-linen);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
}

.app-card-item > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card-item .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--soft-sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.app-card-item.done .check {
  background: var(--rooted-sage);
  border-color: var(--rooted-sage);
}

.app-card-item .pts {
  margin-left: auto;
  color: var(--harvest-gold);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-card-progress {
  border-top: 1px solid var(--stone);
  padding-top: 16px;
}

.progress-track {
  background: var(--stone);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  background: var(--harvest-gold);
  height: 100%;
  border-radius: 999px;
}

.progress-label {
  font-size: 13px;
  color: #4a4a45;
  font-weight: 500;
}

/* Showcase */

.showcase {
  padding: 96px 0;
  background: var(--stone);
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

.showcase-item {
  margin: 0;
  text-align: center;
}

.showcase-item .phone {
  margin: 0 auto 28px;
}

.phone-showcase {
  transform: rotate(0deg);
}

.tilt-left .phone-showcase {
  transform: rotate(-3deg);
}

.tilt-right .phone-showcase {
  transform: rotate(3deg);
}

.showcase-item figcaption h3 {
  font-size: 19px;
}

.showcase-item figcaption p {
  font-size: 15px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Quest board (showcase) */

.quest-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-linen);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
}

.quest-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(43, 43, 43, 0.15);
}

.quest-avatar-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.quest-avatar-level {
  margin: 0;
  font-size: 12px;
  color: var(--harvest-gold);
  font-weight: 600;
}

/* Rewards & wishlist (showcase) */

.wishlist-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--warm-linen);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.wishlist-ring {
  --pct: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: conic-gradient(var(--harvest-gold) var(--pct), var(--stone) 0);
}

.wishlist-ring span {
  background: white;
  color: var(--charcoal);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-title {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.wishlist-sub {
  margin: 0;
  font-size: 12px;
  color: #6a6a62;
}

.reward-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warm-linen);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

.reward-emoji {
  font-size: 18px;
  flex-shrink: 0;
}

.reward-item > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-item .pts {
  margin-left: auto;
  color: var(--harvest-gold);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Parent dashboard (showcase) */

.stat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-pill {
  flex: 1;
  background: var(--soft-sage);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 600;
  color: #234a2d;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #345c3f;
  line-height: 1.3;
}

.approval-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approval-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warm-linen);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.35;
}

.approval-item span {
  flex: 1;
}

.approval-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}

.approval-actions {
  display: flex;
  gap: 10px;
}

.btn-mini {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

.btn-mini-approve {
  background: var(--rooted-sage);
  color: white;
}

.btn-mini-reject {
  background: var(--stone);
  color: var(--charcoal);
}

/* Section shared */

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  text-align: center;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* Features */

.features {
  padding: 96px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: white;
  border: 1px solid var(--stone);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 19px;
}

.feature-card p {
  font-size: 15px;
}

/* How it works */

.how-it-works {
  padding: 96px 0;
  background: var(--stone);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--warm-linen);
  border-radius: var(--radius-md);
  padding: 32px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rooted-sage);
  color: white;
  font-family: var(--font-brand);
  font-weight: 600;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 19px;
}

.step p {
  font-size: 15px;
}

/* CTA */

.cta {
  padding: 96px 0;
  text-align: center;
}

.cta-inner {
  max-width: 560px;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.early-access-form {
  display: flex;
  gap: 12px;
  margin: 32px 0 12px;
}

@media (max-width: 520px) {
  .early-access-form {
    flex-direction: column;
  }
}

.early-access-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--stone);
  font-size: 16px;
  font-family: var(--font-ui);
  background: white;
}

.early-access-form input:focus {
  outline: 2px solid var(--rooted-sage);
  outline-offset: 2px;
}

.form-note {
  font-size: 14px;
  min-height: 20px;
  color: var(--rooted-sage);
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--stone);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-tagline {
  font-size: 14px;
  margin: 4px 0 0;
}

.footer-copy {
  font-size: 13px;
  color: #7a7a72;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.footer-legal-links a {
  font-size: 13px;
  color: #7a7a72;
  text-decoration: underline;
}

.footer-legal-links a:hover {
  color: var(--charcoal);
}

/* Legal pages (Privacy Policy / Terms of Service) */

.legal-main {
  padding: 56px 0 96px;
}

.legal-header {
  max-width: 760px;
  margin: 0 auto 40px;
}

.legal-header .eyebrow {
  color: var(--rooted-sage);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 14px;
  color: #7a7a72;
  margin: 0;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .legal-body {
    padding: 28px 24px;
  }
}

.legal-body h2 {
  font-size: 21px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--stone);
}

.legal-body section:first-of-type h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 16px;
  margin-top: 24px;
  font-family: var(--font-ui);
  font-weight: 700;
}

.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.65;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  margin: 0 0 1em;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--rooted-sage);
  text-decoration: underline;
}

.legal-toc {
  margin: 0 0 1em;
  padding-left: 22px;
}

.legal-toc li {
  font-size: 14.5px;
}

.legal-placeholder {
  background: var(--warm-linen);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.legal-callout {
  background: var(--warm-linen);
  border-left: 3px solid var(--rooted-sage);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  margin: 0 0 1.5em;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}
