/* Komiti — v0 placeholder landing
   System fonts only · no external deps · brand decisions deliberately deferred
   Palette: warm off-white + deep slate + forest green accent (chosen to differentiate from EXIT CODE's gold) */

:root {
  --bg: #FAF7F2;          /* warm off-white */
  --bg-card: #FFFFFF;
  --ink: #0F1A2B;         /* deep slate */
  --ink-2: #2A3A52;       /* secondary text */
  --ink-3: #5C6B82;       /* muted */
  --rule: #E6DFD2;        /* warm divider */
  --accent: #1F5C44;      /* forest green — chosen to differentiate from EXIT CODE's gold */
  --accent-hover: #173D2E;
  --ok: #1F6F4A;
  --err: #9A2A2A;
  --shadow: 0 1px 2px rgba(15,26,43,.04), 0 6px 16px rgba(15,26,43,.05);
  --serif: "Fraunces","Iowan Old Style","Palatino Linotype",Palatino,Charter,Georgia,serif;
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,Roboto,Helvetica,Arial,sans-serif;
  --maxw: 720px;
}

* { box-sizing: border-box; }

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

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

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark-img {
  height: 32px;
  width: auto;
  display: block;
}
.topbar-tag {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ---------- main layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 24px;
}
section { margin-bottom: 56px; }
section:last-child { margin-bottom: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h1 {
  font-size: clamp(28px, 5.2vw, 40px);
  line-height: 1.18;
  margin: 14px 0 22px;
  letter-spacing: -.005em;
}
h2 {
  font-size: clamp(20px, 3.2vw, 24px);
  line-height: 1.3;
  margin: 0 0 18px;
}
p { margin: 0 0 14px; color: var(--ink-2); }
em { font-style: italic; color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0 0 4px;
  font-weight: 600;
}
.lede {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.cta-primary {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .05s ease;
}
.cta-primary:hover { background: #1A2A45; color: #fff; text-decoration: none; }
.cta-primary:active { transform: translateY(1px); }
.cta-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  row-gap: 4px;
  padding: 18px 18px 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.step-n {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
  align-self: start;
}
.step-h {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  align-self: start;
}
.step-b {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- trust list ---------- */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.trust-list li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--ink-2);
  font-size: 15.5px;
  border-bottom: 1px solid var(--rule);
}
.trust-list li:last-child { border-bottom: 0; }
.trust-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- faq ---------- */
.faq dl { margin: 0; padding: 0; }
.faq dl > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.faq dl > div:last-child { border-bottom: 0; }
.faq dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  margin: 0 0 4px;
}
.faq dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------- form ---------- */
.join {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.join h2 { margin-bottom: 10px; }
.join-pitch {
  margin-bottom: 22px;
  color: var(--ink-2);
}
.subscribe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: .01em;
}
.optional { color: var(--ink-3); font-weight: 400; }
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #D6CFC0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%235C6B82' stroke-width='1.5' stroke-linecap='square'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
  padding-right: 32px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,92,68,.18);
}
.field textarea { resize: vertical; min-height: 60px; }
.cta-submit {
  grid-column: 1 / -1;
  padding: 14px;
  font-size: 16px;
  position: relative;
}
.cta-submit:disabled { opacity: .7; cursor: progress; }
.cta-submit .cta-spinner { display: none; }
.cta-submit.is-loading .cta-text { opacity: .5; }
.cta-submit.is-loading .cta-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-3);
  margin: 4px 0 0;
}
.form-msg {
  grid-column: 1 / -1;
  font-size: 14px;
  margin: 0;
  min-height: 18px;
}
.form-msg.is-ok { color: var(--ok); font-weight: 600; }
.form-msg.is-err { color: var(--err); font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--maxw);
  margin: 32px auto 32px;
  padding: 18px 24px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.foot-row { margin-bottom: 6px; }
.foot-row-mute { color: var(--ink-3); font-style: italic; }
.foot-mark {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-2);
}
.foot-mark::before {
  content: "Ω ";
  color: var(--accent);
  font-weight: 500;
}
.foot-sep { margin: 0 8px; color: var(--rule); }

/* ---------- small screens ---------- */
@media (max-width: 540px) {
  main { padding: 36px 18px 18px; }
  .topbar { padding: 14px 18px; }
  .topbar-tag { display: none; }
  .subscribe { grid-template-columns: 1fr; }
  .join { padding: 22px 18px; }
  .foot { padding: 18px 18px 0; }
  .foot-row span { display: inline-block; }
}

@media (prefers-color-scheme: dark) {
  /* deliberately not implementing — v0 stays light so brand pass can decide */
}
