:root {
  color-scheme: light;
  --ink: #151816;
  --muted: #53605b;
  --paper: #f7f3ea;
  --paper-strong: #fffdf7;
  --line: #d8cfbf;
  --teal: #246b66;
  --teal-dark: #153f3c;
  --brick: #a94032;
  --gold: #c9962f;
  --plum: #4b344f;
  --blue: #2f5f8f;
  --shadow: 0 18px 55px rgba(21, 24, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
  background: var(--ink);
  color: white;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.1rem 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--teal-dark);
  border-radius: 7px;
  color: white;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(82vh - 74px);
  padding: 2rem 1.25rem 4rem;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

.eyebrow {
  color: var(--brick);
  font-size: 0.8rem;
  font-weight: 900;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.lead {
  color: #38423e;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.76rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--teal-dark);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-visual {
  align-self: center;
}

.hero-visual img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.caption {
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 1rem;
  justify-content: space-between;
  margin: 0.85rem 0 0;
}

.signal-strip {
  background: var(--ink);
  color: white;
  padding: 1.1rem 1.25rem;
}

.signal-inner {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.signal {
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}

.signal strong {
  display: block;
  font-size: 1.05rem;
}

.signal span {
  color: #d9e4df;
  font-size: 0.92rem;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 4.5rem 1.25rem;
}

.section.band {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.band-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 1.25rem;
}

.section.dark {
  background: var(--teal-dark);
  color: white;
}

.section.gold {
  background: #e7ca7b;
}

.section-heading {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.dark .section-heading p,
.dark .text-muted {
  color: #d7e4df;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 1.3rem;
  text-decoration: none;
}

.feature-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(21, 24, 22, 0.1);
  transform: translateY(-2px);
}

.card-tag,
.pill {
  align-self: flex-start;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.55rem;
}

.card-tag {
  background: #e1efec;
  color: var(--teal-dark);
}

.feature-card p {
  color: var(--muted);
}

.feature-card .benefit {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  margin: auto 0 0;
  padding-top: 1rem;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
}

.note-panel,
.contact-panel,
.learn-panel {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
}

.note-panel pre {
  background: #18201e;
  border-radius: 6px;
  color: #e8efe9;
  font-size: 0.9rem;
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
}

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

.timeline-item {
  border-left: 3px solid var(--brick);
  padding-left: 1rem;
}

.timeline-item strong {
  display: block;
  font-size: 1.08rem;
}

.timeline-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.learn-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learn-panel {
  min-height: 220px;
}

.learn-panel .pill {
  background: #faefd3;
  color: #5c3c08;
}

.learn-panel p {
  color: var(--muted);
}

.install-steps {
  counter-reset: install-step;
  display: grid;
  gap: 1rem;
}

.install-step {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.install-step h3 {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.install-step h3::before {
  align-items: center;
  background: var(--teal-dark);
  border-radius: 999px;
  color: white;
  content: counter(install-step);
  counter-increment: install-step;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.install-step p,
.install-step li {
  color: var(--muted);
}

.install-step code,
.detail-copy code {
  background: #efe7d6;
  border-radius: 4px;
  color: #1e2925;
  font-size: 0.92em;
  padding: 0.08rem 0.28rem;
}

.callout {
  background: #eef5f3;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  margin: 1.25rem 0;
  padding: 1rem;
}

.callout p {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.78fr);
}

.contact-form {
  background: #20302d;
  border: 1px solid #44615c;
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: #f6fbf6;
  font-size: 0.92rem;
  font-weight: 900;
}

.field input,
.field textarea {
  background: #111816;
  border: 1px solid #5a746e;
  border-radius: 6px;
  color: white;
  font: inherit;
  min-height: 2.65rem;
  padding: 0.7rem 0.75rem;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.honeypot {
  display: none;
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  color: #d7e4df;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 1.5rem;
}

.form-status[data-kind="error"] {
  color: #ffb7aa;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.5rem 1.25rem 2rem;
}

.feature-hero {
  background: var(--teal-dark);
  color: white;
  padding: 4rem 1.25rem;
}

.feature-hero-inner {
  margin: 0 auto;
  max-width: 920px;
}

.feature-hero h1 {
  margin-bottom: 1rem;
}

.feature-hero p {
  color: #d7e4df;
  font-size: 1.24rem;
}

.detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  margin: 0 auto;
  max-width: 1050px;
  padding: 4rem 1.25rem;
}

.detail-copy p,
.detail-copy li {
  color: #3b4742;
  font-size: 1.05rem;
}

.detail-copy ul {
  padding-left: 1.15rem;
}

.aside-box {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
}

.aside-box p {
  color: var(--muted);
  margin-bottom: 0;
}

.not-found {
  margin: 0 auto;
  max-width: 720px;
  padding: 6rem 1.25rem;
}

@media (max-width: 920px) {
  .hero,
  .section-heading,
  .split,
  .contact-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .signal-inner,
  .learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    padding-top: 1rem;
  }

  .feature-grid,
  .signal-inner,
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .caption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .feature-card:hover {
    transform: none;
  }
}
