/* Sortify — Forest & Amber palette, editorial typography */

:root {
  --green: #1a5c3a;
  --green-light: #2d7a4e;
  --green-pale: #e8f2ec;
  --amber: #e8a317;
  --amber-light: #fdf3dc;
  --bg: #f7f5f0;
  --bg-alt: #eef0eb;
  --text: #1c1c1a;
  --text-mid: #4a4a46;
  --text-muted: #7a7a72;
  --white: #ffffff;
  --border: #d8dccf;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.15;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--green);
  letter-spacing: -0.02em;
}
nav { display: flex; gap: 32px; }
nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--green); }

/* Hero */
.hero {
  padding: 80px 40px 64px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 420px;
  line-height: 1.65;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 280px;
  background: var(--text);
  border-radius: 40px;
  padding: 16px;
  box-shadow: 0 32px 80px rgba(26, 92, 58, 0.2), 0 8px 24px rgba(0,0,0,0.15);
}
.phone-notch {
  width: 80px;
  height: 24px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 12px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--green-pale);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--green);
}
.photo-placeholder span {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}
.screen-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.result-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.result-badge.green {
  background: var(--green-pale);
  color: var(--green);
}
.result-guide {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 8px;
}
.result-confidence {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stats row */
.stats-row {
  background: var(--green);
  padding: 40px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}
.stat-number {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--amber);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
}

/* Features */
.features {
  padding: 96px 40px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features h2 {
  font-size: clamp(28px, 3vw, 38px);
  text-align: center;
  margin-bottom: 56px;
  color: var(--text);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}
.feature h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}
.feature p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* How it works */
.how-it-works {
  background: var(--bg-alt);
  padding: 96px 40px;
}
.how-it-works-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.how-it-works h2 {
  font-size: clamp(26px, 3vw, 36px);
  text-align: center;
  margin-bottom: 64px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
}
.step-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}
.step-connector {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 24px 16px 0;
  flex-shrink: 0;
}

/* Impact */
.impact {
  padding: 96px 40px;
}
.impact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.impact-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 24px;
}
.impact-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.impact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.impact-card {
  background: var(--green-pale);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(26, 92, 58, 0.1);
}
.impact-stat {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: var(--green);
  margin-bottom: 6px;
}
.impact-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
}

/* Closing */
.closing {
  background: var(--green);
  padding: 96px 40px;
  text-align: center;
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}
.closing-statement {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: rgba(255,255,255,0.9);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.footer-links {
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }
  .impact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .header-inner { padding: 0 24px; }
  .hero, .features, .how-it-works, .impact, .closing { padding-left: 24px; padding-right: 24px; }
}
/* Hero CTA button */
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: .85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background .2s, transform .1s;
}
.hero-cta:hover { background: #15803d; transform: translateY(-1px); }
