/* Systaim — site styles */

:root {
  --ink: #14212b;
  --ink-soft: #4a5a66;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --card: #ffffff;
  --line: #ddd7cb;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

h1 em {
  font-style: normal;
  color: var(--accent);
}

p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9em;
}

.stack > :last-child { margin-bottom: 0; }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0.8em 1.5em;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: #185a4a; border-color: #185a4a; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #e0a43a;
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-small { padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn-full { width: 100%; }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 30%, #8fd1b8 0 22%, transparent 23%),
    var(--accent);
}

.brand-small { font-size: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--ink); }

/* Sections */

section { padding: 96px 0; }

.hero {
  padding: 120px 0 104px;
  background:
    radial-gradient(900px 400px at 85% 0%, var(--accent-soft), transparent 70%),
    var(--paper);
}

.hero h1 { max-width: 20ch; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 2em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.problem { background: var(--ink); color: #e9e6df; }
.problem h2 { color: #ffffff; }
.problem p { color: #c5ccd1; font-size: 1.08rem; }

.services h2, .how h2 { max-width: 22ch; margin-bottom: 1.4em; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card p { color: var(--ink-soft); margin-bottom: 0; }

.card-num {
  display: block;
  font: 600 0.85rem var(--sans);
  color: var(--accent);
  margin-bottom: 18px;
}

.card-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.card-accent p { color: #d6ece4; margin-bottom: 1em; }
.card-accent .text-link { color: #ffffff; }

.how { background: var(--paper-2); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 600 2.4rem var(--serif);
  color: var(--accent);
  margin-bottom: 8px;
}

.steps p { color: var(--ink-soft); margin: 0; }

.who p { color: var(--ink-soft); font-size: 1.08rem; }

/* Contact form */

.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact p { color: var(--ink-soft); }

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.optional { font-weight: 400; color: var(--ink-soft); }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus, .field textarea:focus { border-color: var(--accent); background: #ffffff; }

.field textarea { resize: vertical; min-height: 120px; }

.hp { position: absolute; left: -9999px; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.ok { color: var(--accent); }
.form-status.error { color: #a33a2a; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: #aab4bb;
  font-size: 0.9rem;
  padding: 32px 0;
}

.site-footer .brand { color: #ffffff; }

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

/* Responsive */

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .cards { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Services table */

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.services-table thead th {
  font: 600 0.78rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-2);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.services-table thead th:last-child { color: var(--accent); }

.services-table td, .services-table tbody th {
  padding: 24px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.services-table tbody tr:last-child td,
.services-table tbody tr:last-child th { border-bottom: 0; }

.services-table .svc-name {
  width: 20%;
  font: 600 1.15rem/1.3 var(--serif);
  color: var(--ink);
}

.services-table td:nth-child(2) { width: 42%; }

.services-table .svc-ai {
  background: var(--accent-soft);
  color: #234a40;
}

.support-band {
  margin-top: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-band h3 { margin-bottom: 0.3em; }
.support-band p { color: #d6ece4; margin: 0; max-width: 70ch; }

.btn-light {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
  white-space: nowrap;
}
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

@media (max-width: 800px) {
  .services-table thead { display: none; }
  .services-table, .services-table tbody, .services-table tr,
  .services-table td, .services-table tbody th { display: block; width: auto !important; }
  .services-table tr { padding: 20px; border-bottom: 1px solid var(--line); }
  .services-table tbody tr:last-child { border-bottom: 0; }
  .services-table td, .services-table tbody th { padding: 0; border: 0; }
  .services-table .svc-name { margin-bottom: 10px; }
  .services-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font: 600 0.72rem var(--sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--ink-soft);
  }
  .services-table td[data-label="What we do"] { margin-bottom: 14px; }
  .services-table .svc-ai { padding: 14px; border-radius: 10px; }
  .services-table .svc-ai::before { color: var(--accent); }
  .support-band { flex-direction: column; align-items: flex-start; padding: 24px; }
}
