:root {
  --ink: #172e29;
  --brand: #285b46;
  --brand-deep: #172e29;
  --brand-soft: #e6efe9;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --line: #e2e7df;
  --muted: #5c6b62;
  --accent: #c9a35a;
  --radius: 16px;
  --font: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 15px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(40, 91, 70, 0.22); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 244, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.site-header nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.site-header nav a { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.lang button { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button.on { background: var(--brand); color: #fff; }

/* hero */
.hero { padding: 84px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-facts b { color: var(--ink); }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(23, 46, 41, 0.18); background: #fff; }
.hero .shot { transform: rotate(-1.2deg); }
.phone { width: 230px; border-radius: 34px; border: 8px solid #172e29; overflow: hidden; box-shadow: 0 30px 60px rgba(23, 46, 41, 0.25); background: #fff; }

/* logos / trust strip */
.strip { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 26px 0 10px; color: var(--muted); font-size: 14px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; padding: 34px 0; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .copy { order: 2; }
.feature .copy p { color: var(--muted); font-size: 16px; }
.feature ul { padding-left: 18px; color: var(--muted); margin: 10px 0 0; }
.feature ul li { margin: 6px 0; }
.feature ul li b { color: var(--ink); }

/* dark band */
.band { background: var(--brand-deep); color: #fff; padding: 72px 0; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.78); }
.band .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.band .card p { color: rgba(255, 255, 255, 0.72); }
.band .icon { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: var(--brand); box-shadow: 0 20px 40px rgba(40, 91, 70, 0.14); position: relative; }
.plan.featured::before { content: attr(data-tag); position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 14px; color: var(--muted); font-size: 15px; }
.plan ul li { padding: 5px 0 5px 22px; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 10px 4px 0; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.contact label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.contact input, .contact textarea, .contact select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }

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

/* docs */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0 80px; }
.docs aside { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.docs aside a { display: block; padding: 6px 0; color: var(--muted); }
.docs aside a:hover { color: var(--brand); }
.docs article h2 { margin-top: 56px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 28px; }
.docs article h2:first-child { margin-top: 0; border: 0; }
.docs article h3 { margin-top: 28px; }
.docs article p, .docs article li { color: #2f3b35; font-size: 16px; }
.docs article code { background: #eef1ec; padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.docs article pre { background: #172e29; color: #e6efe9; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 13.5px; }
.docs article .shot { margin: 18px 0 28px; }
.note { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

[data-sq] { }
@media (max-width: 900px) {
  .hero, .feature, .feature.flip, .contact, .docs { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .gallery, .grid2 { grid-template-columns: 1fr; }
  .site-header nav a.hide-sm { display: none; }
  .docs aside { position: static; }
  .hero { padding-top: 48px; }
  .hero .shot { transform: none; }
}

/* ============================================================
   Refresh: live demo, softer depth, and the working form.
   Appended, so these deliberately win over the rules above.
   ============================================================ */

/* hero on a soft wash instead of flat paper */
.hero-bg {
  background:
    radial-gradient(900px 420px at 12% -10%, #e6efe9 0%, rgba(230, 239, 233, 0) 62%),
    radial-gradient(700px 360px at 92% 6%, #f2ece0 0%, rgba(242, 236, 224, 0) 60%);
  border-bottom: 1px solid var(--line);
}
.hero { padding: 92px 0 64px; }
.hero p.lead { font-size: 20px; max-width: 540px; }
.hero-note { font-size: 14px; color: var(--muted); margin: -4px 0 20px; max-width: 460px; }
.hero-facts { gap: 26px; }
.hero-facts b { font-family: var(--display); font-size: 17px; }

/* live demo */
.demo-section { padding: 56px 0; }
.demo-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 38px; box-shadow: 0 24px 50px rgba(23, 46, 41, 0.10);
}
.demo-card h2 { font-size: clamp(26px, 3.2vw, 34px); }
.demo-card > div > p { color: var(--muted); max-width: 520px; }
.creds { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.creds div {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; display: grid; gap: 3px;
}
.creds span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.creds code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--ink); }
.demo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.demo-list li {
  display: grid; gap: 2px; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.demo-list b { font-size: 14px; }
.demo-list span { font-size: 14px; color: var(--muted); }

/* cards lift slightly, so the page feels alive without moving much */
.card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(23, 46, 41, 0.08); border-color: #cfd8cf; }
.band .card:hover { box-shadow: none; border-color: rgba(255, 255, 255, 0.25); }

.phones { display: flex; gap: 20px; align-items: flex-start; justify-content: center; }
.gallery { margin-top: 30px; }
.wrap.narrow { width: min(820px, calc(100% - 40px)); }
.section-head { max-width: 680px; }

/* pricing gets a little more presence */
.plan.featured { transform: translateY(-6px); }
.plan .price { margin-top: 4px; }

/* faq */
details { transition: border-color 0.15s ease; }
details[open] { border-color: #cfd8cf; }
summary::marker { color: var(--brand); }

/* contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: inline-block; }
.small { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 4px 0 0; font-size: 14px; min-height: 20px; color: var(--muted); }
.form-status.good { color: var(--brand); font-weight: 600; }
.form-status.bad { color: #a33; font-weight: 600; }
.contact form button { justify-content: center; }

/* respect people who would rather things stayed still */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero { padding: 52px 0 40px; }
  .demo-card { grid-template-columns: 1fr; padding: 26px; gap: 26px; }
  .plan.featured { transform: none; }
  .phones { gap: 12px; }
  .phone { width: 44%; }
}

/* The header ran off the right edge on a phone: brand, links, toggle and CTA
   cannot all fit in 375px. Drop the links, keep the language toggle and the
   call to action, and stop the page scrolling sideways. */
@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .site-header .wrap { gap: 10px; height: 60px; }
  .site-header nav { gap: 10px; }
  .site-header nav a:not(.btn) { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; }
  .btn { padding: 11px 14px; font-size: 13.5px; white-space: nowrap; }
  .hero-actions .btn { font-size: 15px; padding: 13px 20px; }
  .lang button { padding: 5px 8px; }
  .hero-facts { gap: 14px 20px; }
  .creds { gap: 8px; }
  .creds div { padding: 8px 12px; }
  .creds code { font-size: 13px; }
}

/* Two sign-ins in the demo card: each block carries an address and a password. */
.creds div { min-width: 210px; }
.creds code { display: block; }
.creds code + code { margin-top: 2px; color: var(--brand); font-weight: 600; }
.creds-note { font-size: 14px; color: var(--muted); max-width: 500px; margin: -6px 0 20px; }

/* ============================================================
   Documentation: a reading layout, with every screen shown.
   ============================================================ */

.docs-hero {
  background:
    radial-gradient(760px 380px at 10% -20%, #e6efe9 0%, rgba(230, 239, 233, 0) 60%),
    radial-gradient(620px 320px at 88% 0%, #f2ece0 0%, rgba(242, 236, 224, 0) 58%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.docs-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 14px; }
.docs-hero .lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.docs-hero .hero-actions { margin: 22px 0 14px; }
.docs-hero .hero-note { font-size: 14px; color: var(--muted); margin: 0; }
.docs-hero .hero-note code { background: #fff; border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 13px; }

.aside-title {
  display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 10px;
}
.docs aside a { border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; transition: color 0.15s ease, border-color 0.15s ease; }
.docs aside a.on { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

/* A screenshot is worth more with a sentence telling you what to look at. */
.docs article figure { margin: 22px 0 30px; }
.docs article figure .shot { margin: 0; }
.docs article figcaption {
  font-size: 14.5px; color: var(--muted); line-height: 1.5;
  padding: 12px 2px 0; border-left: 2px solid var(--brand-soft); padding-left: 14px; margin-top: 12px;
}
.docs-phones { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; margin: 22px 0 30px; justify-content: flex-start; }
.docs-phones figure { margin: 0; width: 230px; }
.docs-phones figcaption { border: 0; padding-left: 2px; text-align: center; font-size: 14px; }

.docs article ol.steps { padding-left: 0; list-style: none; counter-reset: step; margin: 16px 0 24px; }
.docs article ol.steps li {
  counter-increment: step; position: relative; padding: 0 0 0 42px; margin-bottom: 14px; color: #2f3b35;
}
.docs article ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 13px; display: grid; place-items: center; font-family: var(--display);
}

.docs-cta {
  margin: 46px 0 10px; padding: 30px; border-radius: 20px;
  background: var(--brand-deep); color: #fff; text-align: center;
}
.docs-cta h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.docs-cta p { color: rgba(255, 255, 255, 0.78); max-width: 480px; margin: 0 auto 18px; }

@media (max-width: 900px) {
  .docs-hero { padding: 38px 0 32px; }
  .docs-phones figure { width: 45%; }
  .docs-phones { gap: 14px; }
}
