/* website/assets/style.css */
/* ─────────────────────────────────────────────────────────────────────────── */
/* Design tokens                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:       #1a4731;
  --forest-light: #2d6a4f;
  --cream:        #faf7f0;
  --ink:          #1a2010;
  --sage:         #74a57f;
  --mist:         #e8f0e9;
  --gold:         #c9a84c;
  --text-muted:   #5a6a52;
  --border:       rgba(26,71,49,0.10);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill: 100px;

  --shadow-card: 0 2px 12px rgba(26,71,49,0.08);
  --shadow-float: 0 20px 50px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--forest-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-ghost:hover { opacity: 1; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeSlideUp .75s cubic-bezier(.22,1,.36,1) both;
}
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .48s; }
.delay-5 { animation-delay: .62s; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  position: sticky;
  top: 0;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--forest);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { display: block; }
.nav-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--forest);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  opacity: .6;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  opacity: 1 !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 500 !important;
}
.nav-links .nav-cta:hover { background: var(--forest-light); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--forest); }

/* ─── Section helpers ────────────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--forest);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--forest);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 48px;
  max-width: 520px;
}

/* ─── How it works ───────────────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 48px;
  max-width: 960px;
  margin: 0 auto;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.how-connector {
  position: absolute;
  top: 27px;
  left: calc(33.33% / 2 + 28px);
  right: calc(33.33% / 2 + 28px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.how-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 28px 0 0;
}
.how-step:last-child { padding-right: 0; }
.how-num {
  width: 56px;
  height: 56px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.how-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-top: 4px;
}
.how-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features { padding: 0 48px 80px; }
.features-inner { max-width: 1060px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--cream);
  padding: 28px 24px;
  transition: background .2s;
}
.feature-card:hover { background: #f0f7f2; }
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--mist);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.feature-icon svg { display: block; }
.feature-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Social proof ───────────────────────────────────────────────────────── */
.social-proof {
  background: var(--mist);
  padding: 72px 48px;
}
.social-proof-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.quote-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.8vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  max-width: 560px;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.quote-avatar {
  width: 40px;
  height: 40px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.quote-meta { text-align: left; }
.quote-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.quote-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── Pricing ────────────────────────────────────────────────────────────── */
.pricing {
  background: var(--forest);
  padding: 80px 48px 100px;
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pricing-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.pricing .section-label { color: var(--sage); }
.pricing .section-label::before { background: var(--sage); }
.pricing .section-title { color: var(--cream); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background .2s, transform .2s;
}
.plan-card:hover { background: rgba(255,255,255,.10); transform: translateY(-3px); }
.plan-card.featured { background: var(--cream); border-color: var(--cream); }
.plan-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}
.plan-card.featured .plan-name { color: var(--ink); }
.plan-desc { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.plan-card.featured .plan-desc { color: #7a8a72; }
.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
}
.plan-card.featured .plan-price { color: var(--forest); }
.plan-price sup { font-size: 18px; font-weight: 400; vertical-align: top; margin-top: 6px; display: inline-block; }
.plan-period { font-size: 12px; color: rgba(255,255,255,.4); margin: 4px 0 18px; }
.plan-card.featured .plan-period { color: #7a8a72; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.plan-features li { font-size: 13px; color: rgba(255,255,255,.65); display: flex; gap: 8px; }
.plan-card.featured .plan-features li { color: #4a5a42; }
.plan-features li::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }
.plan-card.featured .plan-features li::before { color: var(--forest); }
.plan-btn {
  width: 100%; padding: 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: rgba(255,255,255,.7);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.plan-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.plan-card.featured .plan-btn { background: var(--forest); color: var(--cream); border-color: transparent; }
.plan-card.featured .plan-btn:hover { background: var(--forest-light); }
.pricing-note {
  text-align: center; font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-top: 24px;
  position: relative; z-index: 1;
}

/* ─── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  padding: 80px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta-inner { max-width: 560px; margin: 0 auto; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 16px;
}
.final-cta h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--forest);
}
.final-cta p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.final-cta-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Hero mockup (CSS) ──────────────────────────────────────────────────── */
.hero-mockup {
  position: relative;
  z-index: 1;
}
.mockup-phone {
  width: 228px;
  background: #f5f5f5;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 48px 96px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 1px rgba(0,0,0,.08);
  transform: rotate(-3deg);
}
.mockup-notch {
  background: #1a1a1a;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-notch-pill {
  width: 80px;
  height: 10px;
  background: #111;
  border-radius: 100px;
  border: 1.5px solid #333;
}
.mockup-header {
  background: var(--forest);
  padding: 14px 16px 12px;
  color: var(--cream);
}
.mockup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.mockup-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.mockup-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--sage);
  border-radius: 50%;
}
.mockup-subtitle {
  font-size: 9px;
  opacity: .5;
  font-family: var(--font-body);
}
.mockup-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #f8f8f6;
}
.mockup-item {
  background: white;
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mockup-item-info {}
.mockup-item-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-body);
}
.mockup-item-sku {
  font-size: 8.5px;
  color: #aaa;
  margin-top: 1px;
  font-family: var(--font-body);
}
.mockup-stock {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  font-family: var(--font-body);
  white-space: nowrap;
}
.mockup-stock.ok  { background: #e8f5e9; color: #2e7d32; }
.mockup-stock.low { background: #fff3e0; color: #e65100; }
.mockup-stock.alert {
  background: #ffebee;
  color: #c62828;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
.mockup-footer {
  background: white;
  padding: 10px 14px 12px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #eee;
}
.mockup-tab {
  font-size: 8.5px;
  color: #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-body);
}
.mockup-tab.active { color: var(--forest); font-weight: 500; }
.mockup-tab svg { display: block; }

/* ─── Legal pages ────────────────────────────────────────────────────────── */
.legal-wrap {
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 48px;
}
.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
}
.legal-wrap h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 6px;
}
.legal-wrap p { margin-bottom: 14px; color: var(--text-muted); }
.legal-wrap a { color: var(--forest); }
.legal-wrap hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250,247,240,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; opacity: .7; }
  .nav-links .nav-cta { text-align: center; padding: 11px 18px; }
  .nav-hamburger { display: flex; }

  .how-it-works { padding: 48px 20px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-connector { display: none; }
  .how-step { padding-right: 0; }

  .features { padding: 0 20px 60px; }
  .features-grid { grid-template-columns: 1fr; }

  .social-proof { padding: 52px 20px; }

  .pricing { padding: 60px 20px 80px; }
  .pricing-grid { grid-template-columns: 1fr; }

  .final-cta { padding: 60px 20px; }

  .site-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .legal-wrap { padding: 0 20px; }
}
