/* Kulin Systems Development — Autumn palette, Material 1 inspired */

:root {
  --bg: #f5efe6;
  --surface: #fbf6ee;
  --surface-2: #efe6d6;
  --ink: #2c2620;
  --ink-2: #4a3f33;
  --ink-3: rgb(117 102 85 / 50%);
  --line: #e0d4be;
  --line-2: #d3c4a8;

  --primary: #b8694a;
  --primary-ink: #fff;
  --primary-soft: #e8c9b8;
  --accent: #c8a042;
  --accent-ink: #2c2620;
  --accent-soft: #ebd9a4;

  --green: #6b7d3f;
  --green-soft: #cdd4ae;
  --blue: #5d7a8c;
  --blue-soft: #c4d2db;
  --plum: #8a5a6b;
  --plum-soft: #d9c0c8;

  --mac-red: #d97757;
  --error: #c0533c;
  --warn-bg: #fef9ec;
  --warn-border: #e8d88a;
  --warn-ink: #7a6010;

  --shadow-1: 0 1px 2px rgba(60,40,25,.06), 0 2px 4px rgba(60,40,25,.05);
  --shadow-2: 0 2px 4px rgba(60,40,25,.07), 0 6px 16px rgba(60,40,25,.07);
  --shadow-3: 0 4px 8px rgba(60,40,25,.08), 0 12px 28px rgba(60,40,25,.10);

  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  --font: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;

  --space-y-section: 112px;
  --space-y-block: 32px;
  --container: 1180px;
  --gutter: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1814;
    --surface: #25201a;
    --surface-2: #2e2820;
    --ink: #f0e7d8;
    --ink-2: #d8ccba;
    --ink-3: rgb(182 168 144 / 67%);
    --line: #3a3329;
    --line-2: #4a4135;
    --primary-ink: #fff;
    --accent-ink: #1c1814;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.25);
    --shadow-2: 0 2px 4px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.35);
    --shadow-3: 0 4px 8px rgba(0,0,0,.4), 0 12px 28px rgba(0,0,0,.45);
    --error: #e07060;
    --warn-bg: color-mix(in oklab, #c8a042 12%, var(--surface));
    --warn-border: color-mix(in oklab, #c8a042 40%, var(--surface));
    --warn-ink: var(--accent);
  }
  .contact-section { background: color-mix(in oklab, var(--primary) 8%, var(--surface)); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Top bar === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  transform: translateY(-1px);
}
.topbar-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-cta a.tlink {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.topbar-cta a.tlink:hover { color: var(--ink); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: box-shadow .15s, transform .05s, background .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 14px 28px; font-size: 14.5px; }

/* === Section scaffolding === */
section {
  padding: var(--space-y-section) 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* === HERO === */
.hero {
  padding-top: 88px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 24px;
  max-width: 540px;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--ink-3);
  font-size: 13.5px;
}
.hero-meta b { color: var(--ink-2); font-weight: 600; }
.hero-meta .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block; margin-right: 6px;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 25%, transparent);
}

/* === IS THIS YOU === */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  list-style: none;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.45;
}
.checklist .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === WHAT I BUILD === */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.build-card, .case-card, .price-card, .fit-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.build-card {
  padding: 28px 26px 26px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.build-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.build-card .swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.build-card:nth-child(2) .swatch { background: var(--green-soft); color: var(--green); }
.build-card:nth-child(3) .swatch { background: var(--blue-soft); color: var(--blue); }
.build-card:nth-child(4) .swatch { background: var(--primary-soft); color: var(--primary); }
.build-card:nth-child(5) .swatch { background: var(--plum-soft); color: var(--plum); }
.build-card:nth-child(6) .swatch { background: var(--accent-soft); color: var(--accent-ink); }
.build-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.build-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* === OUR PROCESS — vertical timeline === */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 56px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line-2);
}
.tl-step { position: relative; padding-bottom: 48px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step .num {
  position: absolute;
  left: -56px;
  top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--shadow-1), 0 0 0 4px var(--bg);
}
.tl-step:nth-child(2) .num { background: var(--accent); color: var(--accent-ink); }
.tl-step:nth-child(3) .num { background: var(--green); color: #fff; }
.tl-step h3 { margin-bottom: 8px; font-size: 22px; }
.tl-step .step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tl-step p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.55; }
.tl-step ul { margin: 8px 0 0 0; padding: 0; list-style: none; }
.tl-step ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-2);
  padding: 4px 0;
  font-size: 15.5px;
}
.tl-step ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}
/* p.note specificity (0,1,1) matches .tl-step p — placed after so cascade wins for color */
p.note { margin-top: 14px; color: var(--ink-3); font-style: italic; }

/* === CASE STUDIES === */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.case-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.case-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.case-card h3 { font-size: 19px; }
.case-row { display: flex; gap: 14px; align-items: flex-start; }
.case-row .label {
  flex-shrink: 0;
  width: 72px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}
.case-row .text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.case-row.result .text { color: var(--ink); font-weight: 500; }
.case-row.result .label { color: var(--primary); }

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid > div > h2 { margin-bottom: 24px; }
.about-grid p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-bottom: 16px; }
.about-grid p:first-of-type { font-size: 19px; color: var(--ink); }
.cred-list { display: flex; flex-direction: column; }
.cred-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-2);
  align-items: flex-start;
}
.cred-list li:first-child { padding-top: 0; }
.cred-list li:last-child { border-bottom: 0; }
.cred-list .ic {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
}
.cred-list b { color: var(--ink); font-weight: 600; }

.principles {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.principle { display: flex; flex-direction: column; }
.principle h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.55; letter-spacing: 0; /* intentional: cancels the group -0.01em */ }
.principle p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* === PRICING === */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.price-card {
  padding: 36px 32px;
}
.price-tag {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.price-tag .per { font-size: 18px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.price-card .sub { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.price-card hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.price-bullets, .cred-list, .fit-card ul { list-style: none; padding: 0; margin: 0; }
.price-bullets { display: flex; flex-direction: column; gap: 10px; }
.price-bullets li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.price-bullets li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-copy h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--ink); margin-top: 24px; }
.pricing-copy h3:first-child { margin-top: 0; }
.pricing-copy p { color: var(--ink-2); margin-bottom: 0; line-height: 1.55; font-size: 16px; }

/* === FIT === */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card {
  padding: 28px 28px 26px;
}
.fit-card.good { border-top: 4px solid var(--green); }
.fit-card.bad  { border-top: 4px solid var(--plum); }
.fit-card h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.fit-card .ic-circle {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.fit-card.good .ic-circle { background: var(--green-soft); color: var(--green); }
.fit-card.bad  .ic-circle { background: var(--plum-soft); color: var(--plum); }
.fit-card li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.fit-card li:first-child { border-top: 0; }

/* === CONTACT === */
.contact-section {
  background: var(--surface-2);
  border-bottom: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { font-size: 40px; }
.contact-copy p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin-top: 16px; }
.contact-copy ul { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-copy li {
  padding: 12px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
}
.contact-copy li::before {
  content: ''; width: 14px; height: 14px;
  border: 2px solid var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--green-soft);
}
.contact-copy .aside { margin-top: 24px; color: var(--ink-3); font-size: 14.5px; }
.form-card {
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.field { margin-bottom: 20px; position: relative; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field label .opt { font-weight: 500; color: var(--ink-3); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 22%, transparent);
}
.field.error input, .field.error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--error) 18%, transparent);
}
.err-msg { color: var(--error); font-size: 13px; margin-top: 6px; }
.retry-notice { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius); color: var(--warn-ink); font-size: 13.5px; padding: 10px 14px; margin-bottom: 16px; }
.field--honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-foot small { color: var(--ink-3); font-size: 13px; max-width: 280px; line-height: 1.4; }
@media (max-width: 599px) {
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot small { max-width: none; text-align: center; }
}
.success {
  text-align: center;
  padding: 24px 8px 12px;
}
.success .check-big {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.success h3 { font-size: 22px; margin-bottom: 8px; }
.success p { color: var(--ink-2); }

/* === FOOTER === */
footer {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}

/* === Responsive === */
@media (max-width: 980px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  .hero-grid, .about-grid, .pricing-wrap, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .build-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  :root { --space-y-section: 80px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .build-grid, .cases-grid { grid-template-columns: 1fr; }
  .topbar-cta a.tlink { display: none; }
  .timeline { padding-left: 48px; }
  .timeline::before { left: 17px; }
  .tl-step .num { left: -48px; width: 36px; height: 36px; font-size: 15px; }
  .form-card { padding: 24px 20px; }
  .hero-demo-col { display: none; }
  .hero-meta { flex-wrap: wrap; gap: 10px 28px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero-actions .btn-ghost { display: none; }
  .hero-meta { display: none; }
  section { border-bottom: none; }
  .hero { border-bottom: none; }
  .cred-list li { border-bottom: none; }
  .principles { border-top: none; }
  :root { --space-y-section: 24px; }
  .eyebrow { display: none; }
}
@media (max-width: 400px) {
  :root { --gutter: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Contact form hidden until JS runs */
#contact-form { display: none; }

/* Shared footer link style */
.footer-link { color: inherit; text-decoration: none; }

/* Demo chrome dots */
.dot-red    { background: var(--mac-red); }
.dot-accent { background: var(--accent); }
.dot-green  { background: var(--green); }

/* Live pill dot */
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  vertical-align: middle;
}

/* Privacy page */
.privacy .container { max-width: 720px; }
.privacy h1 { font-size: 42px; margin-bottom: 16px; }
.privacy h2 { font-size: 24px; margin-bottom: 12px; }
.privacy p, .privacy li { color: var(--ink-2); }
.privacy .intro { margin-bottom: 48px; }
.privacy-sections { display: flex; flex-direction: column; gap: 40px; }
.privacy-sections ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.privacy-sections p + p { margin-top: 12px; }
.privacy-sections a { color: var(--primary); }
.privacy code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
}
.privacy table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.privacy thead tr { border-bottom: 2px solid var(--line); }
.privacy tbody tr { border-bottom: 1px solid var(--line); }
.privacy tbody tr:last-child { border-bottom: none; }
.privacy th { text-align: left; padding: 8px 12px 8px 0; }
.privacy td { padding: 10px 12px 10px 0; }
.privacy td:last-child, .privacy th:last-child { padding-right: 0; }
