/* MK Software — grocery list app site. Fresh green, warm white, rounded type. */
:root {
  --green: #15803d;
  --green-dark: #166534;
  --green-deep: #14261a;
  --green-soft: #dcfce7;
  --green-tint: #f0fdf4;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --ink: #14261a;
  --muted: #4b5a50;
  --line: #e2e8e3;
  --bg: #f7fbf4;
  --card: #ffffff;
  --red: #b91c1c;
  --pad: max(20px, calc((100% - 1160px) / 2));
  --sec: clamp(72px, 9vw, 120px);
  --h1: clamp(2.4rem, 1.5rem + 3.8vw, 4rem);
  --h2: clamp(1.8rem, 1.25rem + 1.9vw, 2.6rem);
  --lead: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.04rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, .ph { font-family: "Varela Round", system-ui, sans-serif; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
.skip:hover { color: #fff; }
.wrap { padding-inline: var(--pad); }
.section { padding-block: var(--sec); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease); cursor: pointer; }
.btn:active { transform: scale(0.98); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 22px 9px 16px; border-radius: 14px; background: #101a13; color: #fff; text-decoration: none; transition: background-color 0.2s; }
.store:hover { background: #26362b; color: #fff; }
.store svg { width: 26px; height: 28px; flex: none; }
.store span { display: grid; line-height: 1.15; text-align: left; }
.store small { font-size: 0.72rem; opacity: 0.9; }
.store b { font-family: "Varela Round", sans-serif; font-weight: 400; font-size: 1.2rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(247, 251, 244, 0.92); backdrop-filter: saturate(1.4) blur(10px); }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding-inline: var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.nav a.btn-green, .nav a.btn-green:hover { color: #fff; background: var(--green); margin-left: 10px; min-height: 46px; padding: 10px 20px; }
.nav a.btn-green:hover { background: var(--green-dark); }
.menu-btn { display: none; min-height: 46px; padding: 8px 18px; border: 2px solid var(--green); border-radius: 999px; background: #fff; font: 700 0.97rem "Nunito Sans", sans-serif; color: var(--green-dark); cursor: pointer; }

/* Hero: split, phone on the right */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(36px, 6vw, 80px) var(--pad) clamp(56px, 7vw, 96px); }
.hero h1 { font-size: var(--h1); line-height: 1.08; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-top: 20px; font-size: var(--lead); color: var(--muted); max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero .trust { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.95rem; color: var(--muted); }
.hero .trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero .trust svg { width: 18px; height: 18px; color: var(--green); }
.stage { position: relative; display: grid; place-items: center; min-height: 680px; }
.stage::before { content: ""; position: absolute; width: min(420px, 86%); aspect-ratio: 1; border-radius: 50%; background: var(--green-soft); }
.phone { position: relative; width: 300px; border-radius: 42px; background: #101a13; padding: 12px; box-shadow: 0 40px 70px -40px rgba(20, 38, 26, 0.6); }
.screen { border-radius: 32px; background: #fff; overflow: hidden; }
.screen .status { display: flex; justify-content: space-between; padding: 12px 20px 4px; font-size: 0.72rem; color: var(--muted); }
.screen .ph { padding: 8px 18px 4px; font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; }
.screen .ph small { font-family: "Nunito Sans", sans-serif; font-size: 0.75rem; color: var(--muted); }
.aisle { padding: 10px 18px 2px; font-size: 0.72rem; font-weight: 700; color: var(--green-dark); }
.items { list-style: none; padding: 0 12px; }
.items li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.items li:last-child { border-bottom: 0; }
.items .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #9fb3a5; flex: none; display: grid; place-items: center; }
.items .done .box { background: var(--green); border-color: var(--green); }
.items .done .box svg { width: 14px; height: 14px; color: #fff; }
.items .done .nm { color: #5f6e64; text-decoration: line-through; }
.items .nm { flex: 1; }
.items .q { font-size: 0.78rem; color: var(--muted); }
.total { margin: 10px 12px 14px; padding: 12px 14px; border-radius: 14px; background: var(--green-tint); display: flex; justify-content: space-between; font-size: 0.85rem; }
.total b { font-family: "Varela Round", sans-serif; font-weight: 400; font-size: 1rem; }
.chip { position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 18px 40px -24px rgba(20, 38, 26, 0.55); font-size: 0.85rem; display: flex; gap: 10px; align-items: center; }
.chip b { display: block; font-family: "Varela Round", sans-serif; font-weight: 400; }
.chip small { color: var(--muted); }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip .dot svg { width: 20px; height: 20px; }
.chip.c1 { left: 0; top: 0; }
.chip.c1 .dot { background: var(--amber-soft); color: var(--amber); }
.chip.c2 { right: 0; bottom: 0; }
.chip.c2 .dot { background: var(--green-soft); color: var(--green); }

/* Aisle strip */
.aisles { background: var(--card); border-block: 1px solid var(--line); }
.aisles ul { list-style: none; padding: 22px var(--pad); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.aisles li { padding: 8px 16px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); font-weight: 600; font-size: 0.95rem; }

/* Section heads */
.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; }
.head h2, .h2 { font-size: var(--h2); line-height: 1.15; text-wrap: balance; }
.head p { margin-top: 14px; font-size: var(--lead); color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: s; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 400 1.2rem "Varela Round", sans-serif; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.row + .row { margin-top: clamp(64px, 8vw, 104px); }
.row.flip .copy { order: 2; }
.row .copy h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem); line-height: 1.2; }
.row .copy p { margin-top: 14px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; }
.ticks svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.card { background: var(--card); border-radius: 24px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 26px 50px -42px rgba(20, 38, 26, 0.6); }
.card .ph { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; }
.card .ph small { font: 600 0.8rem "Nunito Sans", sans-serif; color: var(--muted); }
.budget { margin-top: 16px; display: grid; gap: 10px; }
.meter { height: 12px; border-radius: 999px; background: var(--green-soft); overflow: hidden; }
.meter i { display: block; height: 100%; width: 82%; background: var(--green); border-radius: inherit; }
.budget .over { color: var(--red); font-weight: 700; font-size: 0.9rem; }
.kv { display: flex; justify-content: space-between; font-size: 0.95rem; }
.kv b { font-family: "Varela Round", sans-serif; font-weight: 400; }
.sugg { margin-top: 14px; border: 2px solid var(--green); border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.sugg-list { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 6px; }
.sugg-list li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--green-tint); font-size: 0.93rem; }
.sugg-list span { color: var(--muted); font-size: 0.82rem; }
.pantry { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; }
.pantry li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 0.93rem; }
.pantry .soon { background: var(--amber-soft); border-color: #fcd34d; }
.pantry .soon span { color: #92400e; font-weight: 700; }
.pantry .gone { background: #fee2e2; border-color: #fecaca; }
.pantry .gone span { color: var(--red); font-weight: 700; }

/* More */
.more { margin-top: clamp(64px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.more h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.more h3 svg { width: 24px; height: 24px; color: var(--green); flex: none; }
.more p { margin-top: 6px; color: var(--muted); font-size: 0.97rem; }

/* Company split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.split figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.split .copy p { margin-top: 16px; color: var(--muted); font-size: var(--lead); }
.facts { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div { background: var(--card); border-radius: 16px; padding: 14px 16px; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { font-weight: 700; }

/* Privacy band */
.band { background: var(--green-deep); color: #fff; border-radius: 32px; margin-inline: clamp(8px, 2vw, 24px); }
.band .inner { padding: clamp(48px, 7vw, 96px) var(--pad); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.band h2 { color: #fff; }
.band .copy p { margin-top: 16px; color: rgba(255, 255, 255, 0.86); font-size: var(--lead); }
.band a { color: #bbf7d0; }
.band a:hover { color: #fff; }
.promises { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promises li { background: rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 20px; }
.promises b { display: block; font-family: "Varela Round", sans-serif; font-weight: 400; font-size: 1.08rem; color: #fff; }
.promises span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 400 1.1rem "Varela Round", sans-serif; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23166534' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* CTA */
.cta .box { background: var(--green); color: #fff; border-radius: 32px; padding: clamp(40px, 6vw, 72px) 24px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin: 14px auto 0; max-width: 52ch; color: #fff; font-size: var(--lead); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.cta .btn-ghost { border-color: #fff; }

/* Footer */
.foot { background: var(--card); border-top: 1px solid var(--line); font-size: 0.95rem; margin-top: var(--sec); }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 60px var(--pad) 36px; }
.foot address { font-style: normal; margin-top: 16px; line-height: 1.7; white-space: pre-line; color: var(--muted); }
.foot .fh { font-weight: 700; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--green-dark); text-decoration: underline; }
.foot .legal { padding: 20px var(--pad) 32px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.foot .legal a { text-decoration: underline; color: var(--muted); }

/* Inner pages */
.page-head { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); line-height: 1.1; max-width: 22ch; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: var(--lead); max-width: 62ch; }
.page-head .meta { font-size: 0.92rem; margin-top: 8px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 0 var(--pad); }
.doc > * { min-width: 0; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 0.95rem; }
.toc .fh { font-weight: 700; color: var(--muted); margin-bottom: 10px; font-size: 0.85rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.toc a:hover { background: var(--green-soft); color: var(--green-dark); }
.body { max-width: 760px; background: var(--card); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.body h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 44px 0 12px; scroll-margin-top: 100px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font-size: 1.15rem; margin: 24px 0 6px; }
.body p, .body ul, .body ol, .body table { margin-top: 12px; }
.body ul, .body ol { padding-left: 1.25em; }
.body li { margin-top: 6px; }
.body li::marker { color: var(--green); }
.body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.body th, .body td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.body thead th { color: var(--green-dark); }
.body code { font: inherit; font-weight: 700; overflow-wrap: anywhere; }
.box-note { background: var(--green-tint); border-radius: 18px; padding: 18px 20px; margin-top: 14px; }
.addr { white-space: pre-line; font-style: normal; font-weight: 700; }

/* Motion */
.js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero, .row, .split, .band .inner { grid-template-columns: minmax(0, 1fr); }
  .row.flip .copy { order: 0; }
  .stage { min-height: 640px; }
  .steps, .more { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--pad) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav a.btn-green { margin: 8px 0 0; }
  .hero .actions > * { flex: 1 1 100%; justify-content: center; }
  .chip.c1 { left: 0; top: 0; }
  .chip.c2 { right: 0; bottom: 0; }
}
@media (max-width: 640px) {
  .steps, .more, .promises, .facts, .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 270px; }
  .body table { display: block; overflow-x: auto; }
}
