/* ============================================================
   KawanWorks — Landing page
   Warm editorial minimalism. Fraunces display + Plus Jakarta Sans.
   One confident green, warm paper ground, amber spark.
   ============================================================ */

:root {
  --primary:       #0f7a52;
  --primary-dark:  #0b5c3e;
  --primary-soft:  #e6f2eb;
  --primary-ring:  rgba(15, 122, 82, 0.16);
  --accent:        #d98a2b;
  --accent-soft:   #f7ecd9;

  --bg:            #f6f3ec;
  --bg-alt:        #efeae0;
  --surface:       #ffffff;
  --ink:           #1c1a16;
  --ink-2:         #4b4840;
  --muted:         #7c786e;
  --border:        #e6e0d5;
  --border-strong: #d8d1c2;

  --star:          #e0a72e;

  --shadow-sm: 0 1px 2px rgba(28,26,22,0.05);
  --shadow:    0 6px 22px rgba(28,26,22,0.07);
  --shadow-md: 0 14px 38px rgba(28,26,22,0.10);
  --shadow-lg: 0 30px 70px rgba(28,26,22,0.16);

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-h: 70px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint paper grain */
  background-image:
    radial-gradient(60% 50% at 85% -5%, rgba(15,122,82,0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-md { max-width: 760px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn-solid { background: var(--primary); color: #fff; box-shadow: 0 8px 20px var(--primary-ring); }
.btn-solid:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px var(--primary-ring); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-cream { background: #fff; color: var(--primary-dark); }
.btn-cream:hover { background: #f2efe8; transform: translateY(-2px); }

.link-quiet { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.link-quiet:hover { color: var(--primary); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(246,243,236,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--border); background: rgba(246,243,236,0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary); display: grid; place-items: center;
  box-shadow: 0 4px 10px var(--primary-ring);
}
.brand-name { font-family: var(--sans); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.94rem; font-weight: 600; color: var(--ink-2); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

.nav-drawer { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 68px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 60px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-2); font-size: 0.82rem; font-weight: 600;
  padding: 7px 15px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.3rem); letter-spacing: -0.03em; }
.hero-title em { font-style: italic; color: var(--primary); font-weight: 500; }

.hero-sub { color: var(--ink-2); font-size: 1.16rem; max-width: 520px; margin: 26px 0 34px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 42px; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 0.74rem; font-weight: 800;
  background: var(--c, var(--primary));
  border: 2px solid var(--bg); margin-left: -11px;
}
.avatars span:first-child { margin-left: 0; }
.hero-proof p { font-size: 0.94rem; color: var(--muted); max-width: 260px; }
.hero-proof strong { color: var(--ink); font-weight: 800; }

/* Browser frame */
.hero-visual { position: relative; }
.frame {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; background: #f3efe7;
  border-bottom: 1px solid var(--border);
}
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #d8d1c2; }
.tl-dot:nth-child(1) { background: #e6a09a; }
.tl-dot:nth-child(2) { background: #e6cf94; }
.tl-dot:nth-child(3) { background: #a7cbae; }
.frame-url {
  margin-left: 12px; font-size: 0.76rem; color: var(--muted);
  background: var(--bg); padding: 4px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.frame img { width: 100%; height: auto; }

.frame-tilt { transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg); transform-origin: left center; }
.frame-tilt:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(0.5deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }

.float-chip {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.chip-match { left: -26px; bottom: 54px; padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 2px; }
.chip-pct { font-family: var(--display); font-size: 1.6rem; color: var(--primary); line-height: 1; }
.chip-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.chip-verified { right: -18px; top: 40px; padding: 10px 15px; font-size: 0.85rem; color: var(--primary-dark); }
.chip-verified .chip-check { display: grid; place-items: center; width: 18px; height: 18px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 0.62rem; }

/* Stat band */
.statband {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 26px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--primary); letter-spacing: -0.02em; }
.stat-label { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.sec-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.sec-head-left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary);
  margin-bottom: 16px;
}
.sec-title { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
.sec-lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- HOW / STEPS ---------- */
.how { background:
  linear-gradient(180deg, var(--bg) 0%, var(--bg) 30%, transparent 30%),
  var(--bg); }
.steps { display: flex; flex-direction: column; gap: 60px; }
.step {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 56px; align-items: center;
}
.step-rev .step-copy { order: 2; }
.step-rev .step-shot { order: 1; }
.step-num {
  font-family: var(--display); font-size: 2.4rem; color: var(--border-strong);
  display: inline-block; margin-bottom: 8px; letter-spacing: -0.02em;
}
.step-copy h3 { font-size: 1.7rem; margin-bottom: 14px; }
.step-copy > p { color: var(--ink-2); font-size: 1.05rem; max-width: 440px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 0.98rem; }
.ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 50%; font-size: 0.7rem; font-weight: 800;
}
.step-shot .frame { transition: transform .3s ease, box-shadow .3s ease; }
.step-shot .frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- WHY ---------- */
.why { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-lead { grid-row: span 2; grid-column: 1; display: flex; flex-direction: column; justify-content: flex-start; background: var(--primary); color: #fff; }
.why-lead .why-ic { background: rgba(255,255,255,0.16); color: #fff; }
.why-lead h3 { color: #fff; }
.why-lead p { color: rgba(255,255,255,0.86); }
.why-ic {
  width: 54px; height: 54px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); margin-bottom: 20px;
}
.why-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- SERVICES ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); font-weight: 600; font-size: 0.96rem;
  padding: 12px 20px; border-radius: var(--r-pill);
  transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.pill:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.pill-ic { font-size: 1.1rem; }

/* ---------- REVIEWS ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.95rem; }
.review blockquote { font-size: 1.04rem; color: var(--ink); line-height: 1.6; font-family: var(--display); font-weight: 400; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rv-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--primary)); color: #fff; font-weight: 800; font-size: 0.82rem; }
.review figcaption strong { display: block; font-size: 0.94rem; }
.review figcaption small { color: var(--muted); font-size: 0.82rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 4px 24px; transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--primary); transition: transform .2s ease; flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 0.98rem; padding-bottom: 20px; }

/* ---------- FINAL CTA ---------- */
.final { padding: 40px 0 100px; }
.final-card {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #12885b 0%, var(--primary) 45%, var(--primary-dark) 100%);
  border-radius: var(--r-xl); padding: 72px 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.final-card::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.final-card > * { position: relative; }
.final-card h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.final-card > p { color: rgba(255,255,255,0.88); font-size: 1.14rem; margin: 16px auto 30px; max-width: 480px; }
.final-form {
  display: flex; gap: 10px; max-width: 620px; margin: 0 auto;
  background: #fff; padding: 8px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}
.final-form input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 0 18px;
}
.final-form input::placeholder { color: var(--muted); }
.final-fine { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 20px; }
.final-fine a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #cfcabf; padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 0.94rem; color: #a49f94; max-width: 300px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 0.94rem; color: #cfcabf; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem; color: #a49f94;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .frame-tilt { transform: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-lead { grid-row: auto; grid-column: auto; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.open .nav-drawer {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 28px 24px; box-shadow: var(--shadow-md);
  }
  .nav-drawer a { padding: 12px 0; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--border); }
  .nav-drawer a.btn { border: 0; color: #fff; margin-top: 12px; justify-content: center; }
  .step, .step-rev .step-copy, .step-rev .step-shot { grid-template-columns: 1fr; order: 0; }
  .step { grid-template-columns: 1fr; gap: 28px; }
  .step-shot { order: 2 !important; }
  .step-copy { order: 1 !important; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 68px 0; }
  .statband { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .why-grid { grid-template-columns: 1fr; }
  .final-card { padding: 48px 22px; }
  .final-form { flex-direction: column; background: transparent; box-shadow: none; padding: 0; gap: 12px; }
  .final-form input { background: #fff; padding: 15px 18px; border-radius: var(--r-pill); }
  .final-form .btn { justify-content: center; }
  .chip-match { left: 8px; bottom: 8px; }
  .chip-verified { right: 8px; top: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}
