/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Paper surfaces */
  --paper-warm:   #F5EFE6;
  --paper-cream:  #FFF8F0;
  --paper-cool:   #F0F0EC;
  --paper-kraft:  #D4C5A9;
  --paper-white:  #FAFAF8;

  /* Accents */
  --red:    #C85C5C;
  --blue:   #5C7FA8;
  --green:  #6B9E78;
  --gold:   #C9A96E;
  --purple: #8B7BAF;

  /* Text */
  --text-primary:   #2C2520;
  --text-secondary: #6B6560;
  --text-tertiary:  #9E9890;
  --text-inverse:   #FAFAF8;

  /* Borders & shadows */
  --border-light:  #E8E2D8;
  --border-medium: #D4CEC4;
  --shadow-light:  rgba(0,0,0,0.06);
  --shadow-medium: rgba(0,0,0,0.12);
  --shadow-fold:   rgba(0,0,0,0.15);

  --max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--paper-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Paper Card ────────────────────────────────────── */
.paper {
  background: var(--paper-cream);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow:
    0 1px 3px var(--shadow-light),
    0 4px 12px var(--shadow-light);
  position: relative;
}

.paper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 6px 6px 0 0;
}

/* colored top-edges per section */
.paper--red::before    { background: var(--red); }
.paper--blue::before   { background: var(--blue); }
.paper--green::before  { background: var(--green); }
.paper--gold::before   { background: var(--gold); }
.paper--purple::before { background: var(--purple); }

/* ── Fold crease decoration ────────────────────────── */
.fold-line {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-medium) 0 8px,
    transparent 8px 14px
  );
  margin: 3rem 0;
}

/* ── Shared Layout ─────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Nav ──────────────────────────────────── */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--paper-cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo span { color: var(--red); }

nav { display: flex; gap: 1.75rem; align-items: center; }

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
nav a:hover { color: var(--text-primary); text-decoration: none; }

.nav-cta {
  background: var(--red);
  color: var(--text-inverse) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: #b84a4a; text-decoration: none !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 1px;
  transition: 0.2s;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: var(--text-inverse);
}
.btn-primary:hover { background: #b84a4a; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}
.btn-secondary:hover { border-color: var(--text-secondary); }

/* Store badge styling */
.store-badge { height: 44px; border-radius: 8px; }

/* ── Origami illustration (CSS-only decorative crane) ── */
.hero-visual {
  margin: 3rem auto 0;
  max-width: 360px;
  position: relative;
}

.origami-crane {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  position: relative;
}

.origami-crane::before,
.origami-crane::after {
  content: "";
  position: absolute;
}

.origami-crane::before {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 80px solid var(--red);
  top: 0; left: 0;
  opacity: 0.85;
}

.origami-crane::after {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-top: 60px solid #b84a4a;
  bottom: 0; left: 0;
  opacity: 0.7;
}

/* ── Features ──────────────────────────────────────── */
.features {
  padding: 4rem 0;
}

.features-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.features-heading h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.features-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-icon--red    { background: rgba(200,92,92,0.12); color: var(--red); }
.feature-icon--blue   { background: rgba(92,127,168,0.12); color: var(--blue); }
.feature-icon--green  { background: rgba(107,158,120,0.12); color: var(--green); }
.feature-icon--gold   { background: rgba(201,169,110,0.12); color: var(--gold); }
.feature-icon--purple { background: rgba(139,123,175,0.12); color: var(--purple); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── How It Works ──────────────────────────────────── */
.how-it-works {
  padding: 4rem 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem;
  counter-increment: step;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--paper-cool);
  border-radius: 8px;
  margin: 2rem 0 4rem;
  border: 1px solid var(--border-light);
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  background: var(--paper-cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ── Legal Pages ───────────────────────────────────── */
.legal {
  padding: 3rem 0 5rem;
}

.legal-card {
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.legal-meta {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-card li { margin-bottom: 0.4rem; }

.legal-card a { color: var(--red); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }

  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper-cream);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px var(--shadow-light);
  }

  .nav-toggle { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .legal-card { padding: 2rem 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
