/* KIWIbox — Design System */

:root {
  --green:       #2d7a3a;
  --green-dark:  #1e5528;
  --green-light: #e8f5eb;
  --dark:        #111827;
  --gray:        #4b5563;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --bg:          #f9fafb;
  --white:       #ffffff;
  --font-head:   'Poppins', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container    { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 1.5rem; }

/* --- Nav --- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--green); letter-spacing: -.02em; }
.nav-logo span { color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--gray); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta {
  background: var(--green) !important; color: var(--white) !important;
  padding: .5rem 1.25rem; border-radius: 8px;
  font-weight: 600 !important; font-size: .875rem !important;
  transition: background .15s !important; cursor: pointer;
}
.nav-cta:hover { background: var(--green-dark) !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .8rem 2rem; border-radius: var(--radius);
  cursor: pointer; transition: all .2s; border: 2px solid transparent; text-decoration: none;
}
.btn-primary  { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 4px 16px rgba(45,122,58,.3); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-white    { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-white:hover { background: var(--green-light); border-color: var(--green-light); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* --- Sections --- */
.section      { padding: 5rem 0; }
.section-sm   { padding: 3rem 0; }
.section-alt  { background: var(--bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-green{ background: var(--green); color: var(--white); }

.section-label {
  display: inline-block;
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green);
  margin-bottom: .85rem;
}
.section-dark .section-label,
.section-green .section-label { color: rgba(255,255,255,.65); }

.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2; letter-spacing: -.025em; margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-dark .section-subtitle,
.section-green .section-subtitle { color: rgba(255,255,255,.72); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* --- Cards --- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: .45rem; }
.card-text  { color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #f0faf2 0%, var(--white) 65%);
  padding: 6rem 0 5rem; position: relative; overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-light); color: var(--green);
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15; letter-spacing: -.03em; margin-bottom: 1.25rem;
}
.hero-title em { color: var(--green); font-style: normal; }
.hero-subtitle { font-size: 1.1rem; color: var(--muted); max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-actions  { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-note     { font-size: .82rem; color: var(--muted); }

/* --- Steps --- */
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: white;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* --- Pricing --- */
.pricing-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem;
  transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.pricing-badge {
  display: inline-block;
  background: var(--green); color: white;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .75rem; border-radius: 999px; margin-bottom: 1rem; align-self: flex-start;
}
.pricing-name  { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: .4rem; }
.pricing-price { font-family: var(--font-head); font-weight: 800; font-size: 2.5rem; line-height: 1; margin-bottom: .25rem; }
.pricing-price sup { font-size: 1.25rem; vertical-align: top; margin-top: .4rem; margin-right: .1rem; }
.pricing-price sub { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pricing-desc  { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .875rem; color: var(--gray);
  padding: .45rem 0; border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { flex-shrink: 0; color: var(--green); margin-top: 1px; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.2rem 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-head); font-weight: 600; font-size: .975rem; color: var(--dark);
  transition: color .15s;
}
.faq-q:hover { color: var(--green); }
.faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--green); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 1.2rem; color: var(--muted); font-size: .925rem; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-category { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--dark); margin: 2.5rem 0 .5rem; }
.faq-category:first-child { margin-top: 0; }

/* --- Legal --- */
.legal-page { padding: 4rem 0 5rem; }
.legal-page h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 2rem; }
.legal-page h2 { font-family: var(--font-head); font-size: .975rem; font-weight: 700; margin: 2rem 0 .5rem; }
.legal-page p, .legal-page address { font-style: normal; color: var(--muted); line-height: 1.75; margin-bottom: .65rem; }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; color: var(--muted); margin-bottom: .65rem; }
.legal-page li { line-height: 1.75; margin-bottom: .3rem; }
.legal-page a { color: var(--green); }
.legal-page a:hover { text-decoration: underline; }
.legal-divider { border: none; border-top: 1px solid var(--border); margin: 1.75rem 0; }
.legal-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .875rem;
  color: var(--muted); margin-bottom: 2rem; transition: color .15s;
}
.legal-back:hover { color: var(--green); }

/* --- Footer --- */
footer { background: var(--dark); padding: 3rem 1.5rem 2rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.45); margin-top: .4rem; max-width: 240px; line-height: 1.6; }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: white; }
.footer-logo span { color: rgba(255,255,255,.4); }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: white; margin-bottom: .75rem; }
.footer-col a { display: block; font-size: .875rem; color: rgba(255,255,255,.5); margin-bottom: .4rem; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 0;
  }
  .nav-links.open a { padding: .7rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links.open a:last-child { border: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
