:root {
  --brand: #0b7a55;
  --brand-2: #1e9e6c;
  --brand-soft: #e3f4ec;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #111a16;
  --muted: #5b6a63;
  --border: #e2e7e4;
  --code-bg: #f0f3f1;
  --radius: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2bb07c;
    --brand-2: #1e9e6c;
    --brand-soft: #12261e;
    --bg: #0c110f;
    --surface: #151c19;
    --text: #eef3f0;
    --muted: #9aa8a1;
    --border: #24302b;
    --code-bg: #101714;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #222; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn svg { width: 22px; height: 22px; }

@media (prefers-color-scheme: dark) {
  .btn-primary { background: #fff; color: #000; }
  .btn-primary:hover { background: #e6e6e6; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #22a874 0%, #0b7a55 55%, #075c40 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 0;
}
.hero-text { padding-bottom: 72px; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-bottom: 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 span { color: #b9f3d8; }
.hero p.lead { font-size: 20px; color: rgba(255,255,255,.88); margin: 0 0 30px; max-width: 520px; }
.hero .btn-primary { background: #000; color: #fff; }
.hero .btn-secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.75); }
.hero-shot { align-self: end; }
/* The real app screen in a simple phone outline, cut off by the bottom of the hero. */
.hero-shot .phone {
  width: 100%; max-width: 400px; height: 560px; margin: 0 auto; overflow: hidden;
  border: 12px solid #0e1512; border-bottom: 0; border-radius: 60px 60px 0 0;
  background: #f4f3ef; box-shadow: 0 -10px 60px rgba(0,0,0,.28);
}
.hero-shot .phone img { width: 100%; height: auto; }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { margin: 14px 0 8px; font-size: 20px; }
.card p, .card li { color: var(--muted); margin: 0; font-size: 16px; }
.card ul { margin: 0; padding-left: 18px; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.icon-badge svg { width: 24px; height: 24px; }

/* Demo */
.demo { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-box { max-width: 860px; margin: 0 auto; }
.tabs { display: inline-flex; background: var(--code-bg); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs button {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 18px; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.demo-tabs .tabs { margin-bottom: 0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.demo textarea {
  width: 100%; min-height: 170px; resize: vertical;
  background: var(--code-bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  font: 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.demo textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.demo-foot .btn { padding: 8px 16px; font-size: 14px; }
.error { color: #d0443a; }

/* Gallery */
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 20px; margin: 0 -20px;
}
.gallery figure { flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: start; }
.gallery img {
  width: 100%; height: auto; border-radius: 30px;
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.gallery figcaption strong { display: block; color: var(--text); font-size: 15px; }
.mac-shot {
  width: 100%; height: auto; margin-top: 48px; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,.14);
}

/* Privacy band */
.privacy-band .card { text-align: center; padding: 48px 28px; background: var(--brand-soft); border-color: transparent; }
.privacy-band .card p { max-width: 640px; margin: 0 auto; font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.pill { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--text); }

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

/* CTA */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Legal / text pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 20px 88px; }
.page h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.015em; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.summary-box { background: var(--brand-soft); border-radius: 16px; padding: 20px 24px; margin-bottom: 8px; }
.summary-box p { margin: 0; }
.contact-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin: 20px 0; }
.contact-card strong { font-size: 18px; }
code { background: var(--code-bg); border-radius: 6px; padding: 2px 6px; font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-text { padding-bottom: 8px; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-shot .phone { max-width: 320px; height: 440px; border-width: 10px; border-radius: 48px 48px 0 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .nav a.hide-sm { display: none; }
  .nav { gap: 16px; }
  .features { grid-template-columns: 1fr; }
  .gallery figure { width: 190px; }
  .gallery img { border-radius: 26px; }
}
