/* 7 Cloud Engineering — homepage
   Same palette as the septic and storm desks: paper, teal, cedar. */

:root {
  --paper: #f5f2ea;
  --sheet: #fffdf7;
  --ink: #1e2528;
  --muted: #657073;
  --line: #d9ded6;
  --line-strong: #c7d0c8;
  --pine: #0f766e;
  --pine-ink: #104f4a;
  --pine-soft: #eef6f3;
  --sand: #f6ebe3;
  --cedar: #8a4b2c;
  --max: 1080px;
  --nav: 64px;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--pine-ink); text-underline-offset: 3px; }
a:hover { color: var(--cedar); }
:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 20;
  border-radius: 7px;
}
.skip:focus { top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(230, 236, 231, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--pine);
  border-radius: 7px;
  background: white;
  color: var(--pine-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}
.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
}
.brand-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}
.nav a:hover { color: var(--pine-ink); }
.nav a.nav-start {
  border: 1px solid var(--pine);
  border-radius: 7px;
  background: var(--pine);
  color: white;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
}
.nav a.nav-start:hover { background: var(--pine-ink); border-color: var(--pine-ink); color: white; }

.hero {
  padding: 4.2rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}
.eyebrow,
.section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cedar);
  margin: 0 0 0.55rem;
}
h1, h2, .card h3, .site-footer h2 { font-weight: 800; letter-spacing: 0; }
h1 {
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  max-width: 18ch;
}
.subhead {
  max-width: 40rem;
  font-size: 1.12rem;
  margin: 0 0 1.6rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.8rem; }
.button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--pine);
  border-radius: 7px;
  background: var(--pine);
  color: white;
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.button:hover { background: var(--pine-ink); border-color: var(--pine-ink); color: white; }
.button.secondary {
  background: white;
  color: var(--pine-ink);
  border-color: #b9c8c3;
}
.button.secondary:hover { background: var(--pine-soft); color: var(--pine-ink); }
.button.small { padding: 0.45rem 0.7rem; font-size: 0.9rem; }

.trust {
  max-width: 44rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.trust p { margin: 0 0 0.55rem; }
.fill {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cedar);
  background: var(--sand);
  border-radius: 4px;
  padding: 0 0.2rem;
}

section { padding: 3.4rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.lede { max-width: 42rem; margin: 0 0 1.6rem; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card,
.empty,
.status-table,
.callout,
.form-result {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(39, 48, 44, 0.08);
}
.card {
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card h3 { font-size: 1.25rem; margin: 0; }
.card p { margin: 0; }
.status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pine-ink);
  background: var(--pine-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  align-self: flex-start;
}
.card .receives { color: var(--muted); font-size: 0.98rem; }
.card-foot { margin-top: auto; padding-top: 0.4rem; }
.pair-note { margin: 1.1rem 0 0.8rem; color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem; }
.link-row a { font-size: 0.98rem; font-weight: 700; }

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  overflow: hidden;
}
.status-table th,
.status-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.status-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  background: #f6f3ec;
}
.status-table tr:last-child td { border-bottom: 0; }
.next-line { margin: 1rem 0 0; max-width: 44rem; color: var(--muted); }

.empty { padding: 1.3rem 1.35rem; max-width: 46rem; }
.empty p { margin: 0; }
.rule { margin: 1.1rem 0 0; max-width: 44rem; font-size: 0.98rem; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 42rem; }
.steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pine);
  padding-top: 0.2rem;
}
.steps strong { font-weight: 750; }
.fit { max-width: 42rem; margin: 1rem 0 0; }
.callout {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--pine);
  box-shadow: none;
  background: #f3faf8;
}
.callout p { margin: 0; }

.receive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.receive ul { margin: 0; padding-left: 1.1rem; }
.receive li { margin: 0.35rem 0; }
.aside-note {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: var(--muted);
}
.aside-note p { margin: 0 0 0.6rem; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  max-width: 46rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 750; }
.hint { font-weight: 500; color: var(--muted); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  border-color: var(--pine);
}
textarea { min-height: 7rem; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; font-weight: 500; }
.choices label { font-weight: 500; display: flex; gap: 0.4rem; align-items: center; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0; }
.form-result {
  grid-column: 1 / -1;
  display: none;
  padding: 0.8rem 0.9rem;
  box-shadow: none;
  background: var(--pine-soft);
}
.form-result.show { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  background: #e6ece7;
}
.site-footer h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.footer-line { margin: 0 0 0.8rem; }
.small-print { max-width: 46rem; color: var(--muted); font-size: 0.88rem; margin: 0; }

.menu-btn {
  display: none;
  background: white;
  border: 1px solid #b9c8c3;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    background: #e6ece7;
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1rem;
    gap: 0.7rem;
  }
  .menu-btn { display: inline-block; }
  .cards, .receive, form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
