:root {
  --bg: #f3f6ea;
  --surface: #ffffff;
  --ink: #1f2a21;
  --muted: #57645b;
  --brand: #1d6c4b;
  --brand-2: #d4a72c;
  --border: #d7dfd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #eef4db 0%, transparent 50%),
    radial-gradient(circle at 90% 100%, #e9f0ff 0%, transparent 42%),
    var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 246, 234, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: 3rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #e6f2c8;
  color: #35611e;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.lead {
  max-width: 55ch;
  color: var(--muted);
}

.button {
  display: inline-block;
  text-decoration: none;
  margin-top: 0.9rem;
  background: linear-gradient(125deg, var(--brand), #2f8d65);
  color: white;
  padding: 0.75rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 700;
}

.section {
  padding: 1.25rem 0 2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.section-head a {
  color: var(--brand);
  font-weight: 700;
}

.ryan-design {
  background: linear-gradient(135deg, #123529 0%, #1b5f4c 65%, #247258 100%);
  color: #f3fbf6;
  border-radius: 1rem;
  border: 1px solid #215f4a;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(15, 45, 33, 0.2);
}

.ryan-design h2 {
  margin: 0.35rem 0 0.4rem;
}

.ryan-design p {
  margin: 0;
  color: #d6efe2;
  max-width: 66ch;
}

.ryan-design .eyebrow {
  margin-bottom: 0.2rem;
  background: rgba(212, 167, 44, 0.24);
  color: #ffe7a7;
}

.ryan-design-cta {
  margin-top: 1rem;
  background: linear-gradient(125deg, #d4a72c, #e3bb4f);
  color: #21372d;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(34, 55, 43, 0.06);
  transition: transform 0.16s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
}

.tool-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.tool-card p {
  margin: 0.4rem 0 0.8rem;
  color: var(--muted);
}

.tool-tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6d4f02;
  background: #ffe9b2;
}

.tool-card a {
  color: var(--brand);
  font-weight: 700;
}

.ad-slot {
  background: #f7f9f2;
  border: 1px dashed #b7c2b2;
  border-radius: 0.9rem;
  padding: 0.8rem;
}

.ad-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.ad-box {
  min-height: 140px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  display: grid;
  place-content: center;
  text-align: center;
  color: #54665a;
}

.ad-slot-wide .ad-box {
  min-height: 110px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.filters label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.filters input,
.filters select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.prose {
  max-width: 72ch;
}

.notice {
  padding: 0.8rem 0.95rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: #ffffff;
}

.notice-error {
  border-color: #e5b8b8;
  background: #fff3f3;
  color: #8a1c1c;
}

.no-scroll {
  overflow: hidden;
}

.video-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(13, 20, 17, 0.72);
}

.video-ad-modal {
  width: min(760px, 96vw);
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #d0ddd4;
  box-shadow: 0 24px 55px rgba(6, 11, 9, 0.35);
  padding: 1rem;
}

.video-ad-close {
  margin-left: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: #fff;
  color: #2c3b31;
  padding: 0.35rem 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.video-ad-kicker {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.video-ad-title {
  margin: 0.35rem 0 0.3rem;
}

.video-ad-copy {
  margin-top: 0;
  color: var(--muted);
}

.video-ad-player {
  min-height: 250px;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: #f3f5f0;
  display: grid;
  place-items: center;
}

.video-ad-fallback {
  margin-top: 0.8rem;
  width: 100%;
  max-height: 360px;
  border-radius: 0.65rem;
}

.video-ad-placeholder {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.video-ad-cta {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.6rem 0.95rem;
  border-radius: 0.55rem;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

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

  nav {
    gap: 0.6rem;
    font-size: 0.95rem;
  }
}
