/* My Cardamom Estate — website styles. Same palette as the app:
   logo green #3F7A2E, light surfaces, Plus Jakarta Sans. */

:root {
  --green: #3f7a2e;
  --green-dark: #2c5a20;
  --green-deep: #1e3d16;
  --green-soft: #5e9a48;
  --mint: #eaf1e5;
  --mint-2: #dfeada;
  --ivory: #f6f8f4;
  --white: #ffffff;
  --ink: #141a12;
  --muted: #6a7264;
  --line: #e3e8df;
  --brass: #d39b28;
  --red: #c0392b;
  --radius: 18px;
  --max: 1140px;
  --shadow: 0 24px 60px rgba(30, 61, 22, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 232, 223, 0.7);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img { width: 38px; height: 38px; border-radius: 11px; }

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover { color: var(--green); }

.nav .btn { color: var(--white); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(63, 122, 46, 0.28);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; line-height: 1.1; }
.store-btn span { display: block; font-size: 17px; line-height: 1.2; }
.store-btn.dark { background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(63, 122, 46, 0.28); }
.store-btn.light { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 112px 0 96px;
  background:
    radial-gradient(700px 420px at 85% 15%, rgba(63, 122, 46, 0.18), transparent 70%),
    radial-gradient(600px 380px at 5% 95%, rgba(94, 154, 72, 0.12), transparent 70%),
    linear-gradient(180deg, #f3f7ef 0%, var(--ivory) 100%);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(63, 122, 46, 0.08);
  border: 1px solid rgba(63, 122, 46, 0.2);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 22px 0 22px;
}

h1 .accent { color: var(--green); display: block; }

.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0; }

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

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
}
.fact { padding: 0 28px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact b { display: block; font-size: 26px; color: var(--green); letter-spacing: -0.02em; line-height: 1.2; }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- hero visual: collage of app cards ---------- */

.hero-visual { position: relative; padding: 10px 0; }

.hero-visual .pod-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  stroke: var(--green);
  opacity: 0.07;
  pointer-events: none;
}

.hero-visual .glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(94, 154, 72, 0.22), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.bento {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bento .col { display: grid; gap: 14px; align-content: start; }
.bento .col:last-child { margin-top: 36px; }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(30, 61, 22, 0.10);
  font-size: 13px;
}

.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tile-head small { color: var(--muted); font-weight: 700; letter-spacing: 0.08em; font-size: 10px; text-transform: uppercase; }
.tile-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--mint); color: var(--green); display: grid; place-items: center; flex: none; }
.tile-ic svg { width: 16px; height: 16px; }

.tile-big { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.tile-big span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.tile-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.rows { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.row .av { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 800; font-size: 11px; display: grid; place-items: center; flex: none; }
.row b { flex: 1; font-size: 13px; }
.row em { font-style: normal; font-weight: 700; font-size: 13px; }

.chip { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.chip.paid { background: rgba(63, 122, 46, 0.12); color: var(--green); }
.chip.due { background: rgba(211, 155, 40, 0.16); color: #9a6a10; }

.faces { display: flex; margin: 8px 0 10px; }
.faces span {
  min-width: 30px; height: 30px; padding: 0 4px; border-radius: 999px;
  border: 2px solid var(--white);
  background: var(--mint); color: var(--green);
  font-weight: 800; font-size: 10px;
  display: grid; place-items: center;
  margin-left: -6px;
}
.faces span:first-child { margin-left: 0; }
.faces span.more { background: var(--green); color: var(--white); }

.offline { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 12px; }
.offline svg { width: 14px; height: 14px; }

.meter { height: 7px; border-radius: 999px; background: var(--mint); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--green); }

.tile.ai {
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: var(--white);
  border: 0;
}
.tile.ai .tile-head small { color: #cfe6c3; }
.tile.ai .tile-ic { background: rgba(255,255,255,0.15); color: var(--white); }
.tile.ai .tile-sub { color: rgba(255,255,255,0.75); }
.tile.ai .meter { background: rgba(255,255,255,0.2); }
.tile.ai .meter i { background: var(--white); }

/* ---------- sections ---------- */

section { padding: 88px 0; }

.eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 14px; letter-spacing: -0.025em; line-height: 1.1; }

.section-lead { color: var(--muted); font-size: 17px; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid .card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30, 61, 22, 0.08); }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card.highlight { border: 1.5px solid var(--green); background: linear-gradient(160deg, #fbfdf9, var(--mint)); }

.badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- AI spotlight ---------- */

.spotlight {
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(94, 154, 72, 0.35), transparent 70%),
    linear-gradient(160deg, var(--green-deep), #284f1d);
  color: var(--white);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.spotlight .eyebrow { color: #b9d9a8; }
.spotlight .section-title { color: var(--white); }
.spotlight p { color: rgba(255, 255, 255, 0.82); font-size: 17px; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { padding: 7px 0 7px 32px; position: relative; color: rgba(255,255,255,0.92); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.scan-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.scan-top { display: flex; align-items: center; gap: 12px; }
.scan-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7fae5f, #3f7a2e);
  display: grid;
  place-items: center;
  flex: none;
}
.scan-thumb svg { width: 34px; height: 44px; stroke: rgba(255,255,255,0.9); }
.scan-top small { color: var(--green); font-weight: 700; letter-spacing: 0.08em; font-size: 11px; }
.scan-top b { display: block; font-size: 19px; }
.conf { margin: 16px 0 6px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--mint); overflow: hidden; }
.bar i { display: block; height: 100%; width: 86%; background: var(--green); border-radius: 999px; }
.dose { margin-top: 16px; background: var(--ivory); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.dose small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- how it works ---------- */

.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step::before {
  counter-increment: s;
  content: counter(s);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 17px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }

.price { font-size: 44px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.03em; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }

.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { padding: 7px 0 7px 30px; position: relative; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7a2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ribbon {
  display: inline-block;
  background: var(--brass);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- download ---------- */

.download {
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(255,255,255,0.14), transparent 70%),
    linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  border-radius: 32px;
  padding: 56px 32px;
  text-align: center;
}

.download h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.download p { margin: 0 0 28px; opacity: 0.88; font-size: 17px; }
.download .store-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.download .store-btn.light { border: 0; }
.download .store-btn.dark { background: var(--ink); box-shadow: none; }

/* ---------- legal pages ---------- */

.doc { padding: 48px 0 72px; }

.doc .wrap { max-width: 780px; }

.doc h1 { font-size: clamp(32px, 4vw, 44px); }

.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }

.doc p, .doc li { color: #2b3329; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}

.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th { background: var(--mint); }

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .spotlight { grid-template-columns: 1fr; padding: 40px 28px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .grid, .pricing { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 60px 0; }
  .fact { padding: 0 16px; }
  .fact b { font-size: 21px; }
  .bento .col:last-child { margin-top: 20px; }
  .tile { padding: 14px; }
  .tile-big { font-size: 22px; }
  .download { padding: 40px 20px; border-radius: 24px; }
}
