/* ============================================
   ShelfSmart Landing Site
   ============================================ */

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

:root {
  --beige: #D6D2CB;
  --off-white: #F5F5F5;
  --charcoal: #1F2937;
  --green: #22C55E;
  --green-dark: #16A34A;
  --blue: #3B82F6;
  --coral: #EF4444;
  --text: #1F2937;
  --text-light: #6B7280;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Header / Nav --- */
.site-header {
  background: var(--charcoal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

nav a {
  color: rgba(255,255,255,0.8);
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: #fff; text-decoration: none; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--beige) 0%, #e8e4dd 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero h1 .highlight { color: var(--green-dark); }

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #fff;
}

.store-badge .badge-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.store-badge small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.75;
}

.hero-screenshot {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: var(--off-white);
  padding: 12px;
}

.hero-screenshot .placeholder {
  width: 100%;
  aspect-ratio: 9/19;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--charcoal) 0%, #374151 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  gap: 0.5rem;
}

.hero-screenshot .placeholder span {
  font-size: 2rem;
}

/* --- Features --- */
.features {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-3px); }

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

.feature-icon.green  { background: rgba(34,197,94,0.15); }
.feature-icon.blue   { background: rgba(59,130,246,0.15); }
.feature-icon.coral  { background: rgba(239,68,68,0.12); }

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

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

/* --- How It Works --- */
.how-it-works {
  background: var(--charcoal);
  color: #fff;
  padding: 5rem 0;
}

.how-it-works .section-title { color: #fff; }
.how-it-works .section-subtitle { color: rgba(255,255,255,0.6); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- CTA --- */
.cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

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

.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.legal .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal p, .legal li {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

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

/* --- Support Page --- */
.support-page {
  padding: 3rem 0 5rem;
}

.support-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.support-page > .container > p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.support-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.support-card h3 { margin-bottom: 0.5rem; }
.support-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

.support-card a.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.support-card a.btn:hover { background: var(--green-dark); text-decoration: none; }

.faq { margin-top: 1rem; }

.faq h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.05rem; }
  .features, .how-it-works, .cta { padding: 3.5rem 0; }
  .section-title { font-size: 1.6rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .store-badges { flex-direction: column; align-items: center; }
  .hero-screenshot { max-width: 220px; }
}
