:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #5b6571;
  --line: #d9e1e8;
  --bg: #f6f8f7;
  --panel: #ffffff;
  --green: #12634f;
  --gold: #b77a1d;
  --red: #a63b36;
  --blue: #285e8f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button, input, select, textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  background: #9aa7a1;
  cursor: default;
}

a { color: inherit; }

.hero {
  min-height: 76vh;
  padding: 1.25rem clamp(1rem, 4vw, 4rem) 3rem;
  background:
    linear-gradient(90deg, rgba(9, 30, 35, 0.82), rgba(17, 61, 63, 0.56)),
    url("https://images.unsplash.com/photo-1560184897-ae75f418493e?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(2rem, 7vw, 6rem);
}

.brand {
  font-weight: 900;
  font-size: 1.3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2, h3, p { margin-top: 0; }

.lede {
  max-width: 760px;
  margin: 1.2rem 0;
  font-size: 1.18rem;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  font-size: 0.76rem;
  color: #cde2d9;
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0;
}

.outcomes span {
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255,255,255,0.12);
}

.why {
  max-width: 760px;
  color: #e8f2ef;
}

.setup-card, .panel, .billing article, .empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.setup-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem;
  background: #fff;
  color: var(--ink);
}

.micro, small {
  color: var(--muted);
  line-height: 1.4;
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--green);
  font-weight: 700;
  line-height: 1.35;
}

main {
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.walkthrough {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -2.5rem auto 2rem;
  max-width: 1120px;
  border: 1px solid var(--line);
  background: var(--line);
}

.walkthrough div {
  min-height: 118px;
  padding: 1rem;
  background: #fff;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

aside, .detail, .billing {
  min-width: 0;
}

.section-title h2 { margin-bottom: 0.7rem; }
.section-title .eyebrow, main .eyebrow { color: var(--green); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.stats div {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.stats strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.list {
  display: grid;
  gap: 0.7rem;
}

.event-row {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.event-row.active {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}

.event-row span {
  color: var(--muted);
  font-weight: 500;
}

.compact-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem;
}

.detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 640px;
  padding: 1rem;
}

.empty {
  padding: 1rem;
}

.detail-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.8rem;
}

.notice {
  margin: 0 0 1rem;
  border-left: 4px solid var(--gold);
  background: #fff7e8;
  padding: 0.8rem;
  color: #5a3d12;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tabs button {
  color: var(--ink);
  background: #edf2f0;
}

.tabs button.active {
  color: #fff;
  background: var(--green);
}

.message, .plan, .log {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

.message.sent {
  background: #f1f6f3;
}

.message p, .plan p, .log p {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.panel {
  padding: 1rem;
}

.installments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.billing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(240px, 320px));
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

.billing article {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.billing article span {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--green);
}

.sign-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sign-card {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1.2rem;
}

@media (max-width: 860px) {
  .hero-grid, .app-shell, .walkthrough, .billing {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .message, .plan, .log, .detail-head {
    grid-template-columns: 1fr;
  }

  .message button, .plan button, .detail-head button {
    width: 100%;
  }
}
