:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #0e1620;
  --muted: #556270;
  --line: #dde4e2;
  --accent: #0d7c6f;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3ef;
  --danger: #b3372e;
  --danger-soft: #fbe9e7;
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 40px);
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1319;
    --surface: #131c24;
    --ink: #e9eff2;
    --muted: #93a2ad;
    --line: #22303b;
    --accent: #34d4b6;
    --accent-ink: #06231d;
    --accent-soft: #12302b;
    --danger: #f0827a;
    --danger-soft: #3a1d1b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 22px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.site-nav .nav-cta:hover { border-color: var(--muted); }

/* hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(32px, 5vw, 64px); }
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0.55rem 0 1.2rem;
  max-width: 16ch;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.3rem, 6.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { max-width: 56ch; margin: 0; font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* sections */
section { padding-block: 36px; }
h2 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; }
.section-note { margin: 0 0 28px; max-width: 56ch; color: var(--muted); }

/* app list */
.apps { border-top: 1px solid var(--line); }
.app {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.app-icon,
.app-tile {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.app-icon { display: block; object-fit: cover; }

/* long-form text pages (privacy) */
.prose section { max-width: 68ch; padding-block: 18px; }
.prose section h2 { font-size: 1.2rem; }
.prose section p { color: var(--muted); }
.prose section a { color: var(--accent); font-weight: 600; }
.app h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 1.2rem;
}
.app p { margin: 6px 0 0; max-width: 52ch; color: var(--muted); }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.02em;
}
.chip-live { background: var(--accent-soft); color: var(--accent); }
.chip-dev { border: 1px solid var(--line); color: var(--muted); }

@media (max-width: 640px) {
  .app { grid-template-columns: 56px 1fr; gap: 16px; }
  .app-icon, .app-tile { width: 56px; height: 56px; border-radius: 14px; font-size: 1.2rem; }
  .app-links { grid-column: 1 / -1; }
}

/* teaser band */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.band h2 { font-size: 1.3rem; }
.band p { margin: 0; max-width: 46ch; color: var(--muted); }

/* offerings (enterprise) */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.offer { padding: 26px 0; border-bottom: 1px solid var(--line); }
.offer h3 { margin: 0 0 8px; font-size: 1.1rem; }
.offer p { margin: 0; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  position: relative;
  padding: 20px 0 20px 48px;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 700 0.85rem var(--font-head);
}
.steps strong { display: block; font-family: var(--font-head); font-weight: 600; }
.steps span { color: var(--muted); }

/* company facts (about) */
.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: 40px; color: var(--muted); font-weight: 500; }
.facts a { color: var(--accent); font-weight: 600; }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
}

/* support / contact */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.support-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.support-row:first-child { border-top: 1px solid var(--line); }
.support-row h3 { margin: 0 0 6px; font-size: 1.05rem; }
.support-row p { margin: 0; color: var(--muted); }
.support-row a { color: var(--accent); font-weight: 600; }

.field { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 150px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.status { margin-top: 18px; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
.status:empty { display: none; }
.status-ok { background: var(--accent-soft); color: var(--accent); }
.status-err { background: var(--danger-soft); color: var(--danger); }

/* footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px 56px;
  margin-top: 56px;
  padding-block: 40px 52px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-brand .wordmark { font-size: 1.2rem; color: var(--ink); }
.footer-brand p { margin: 10px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 56px; }
.footer-cols div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-h {
  margin: 0 0 3px;
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .wordmark:hover { color: var(--ink); }

@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 440px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: border-color 0.15s, filter 0.15s, color 0.15s; }
}
