:root {
  --green: #0d4a3d;
  --green-dark: #093528;
  --green-soft: #eef6f1;
  --mint: #bfe3d2;
  --ink: #1c2724;
  --muted: #52655e;
  --bg: #f6faf8;
  --card: #ffffff;
  --border: #dbe7e1;
  --shadow: 0 16px 34px rgba(9, 53, 40, 0.08);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(13, 74, 61, 0.28);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 1.25rem;
  width: 100%;
}

header.site {
  background: var(--green);
  color: #fff;
}

header.site .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  padding-top: 0.75rem;
}

header.site img {
  border-radius: 8px;
  height: 36px;
  width: 36px;
}

header.site .brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: auto;
  text-decoration: none;
}

header.site nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

header.site nav a {
  color: #e3f1ea;
  font-size: 0.95rem;
  text-decoration: none;
}

header.site nav a:hover {
  color: #fff;
  text-decoration: underline;
}

header.site nav a.cta {
  background: #fff;
  border-radius: 999px;
  color: var(--green);
  font-weight: 600;
  padding: 0.35rem 0.9rem;
}

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

.hero h1 {
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1.25;
  max-width: 48rem;
}

.hero p,
.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.75rem;
  max-width: 46rem;
}

.page-pricing .hero {
  text-align: center;
}

.page-pricing .hero h1,
.page-pricing .hero p.lead {
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  padding: 1rem 0 3rem;
}

.card,
.guide-card,
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(9, 53, 40, 0.04);
}

.card {
  padding: 1.25rem;
}

.card h2,
.guide-card h2,
.plan h2,
.text h2,
.guide h2 {
  color: var(--green-dark);
}

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card ul {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.1rem;
}

.card li {
  margin: 0.2rem 0;
}

.guide-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1rem 0 3rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.guide-card h2 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.guide-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.guide-card a {
  font-weight: 700;
  margin-top: auto;
  text-decoration: none;
}

.guide-card a:hover {
  text-decoration: underline;
}

.plans {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 2rem 0;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.plan.featured {
  border: 2px solid var(--green);
  position: relative;
}

.plan.featured .badge {
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  left: 50%;
  padding: 0.15rem 0.9rem;
  position: absolute;
  top: -0.8rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.plan h2 {
  font-size: 1.2rem;
}

.plan .price {
  color: var(--green-dark);
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0.5rem 0 0;
}

.plan .price small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.plan p.tagline {
  color: var(--muted);
  margin: 0.25rem 0 1rem;
}

.plan ul {
  list-style: none;
  margin: 0 0 1.5rem;
}

.plan ul li {
  padding: 0.3rem 0 0.3rem 1.6rem;
  position: relative;
}

.plan ul li::before {
  color: var(--green);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.button,
.plan a.button,
.bottom-cta a.button,
.bottom-cta > a {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 1.4rem;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.plan a.button:hover,
.bottom-cta a.button:hover,
.bottom-cta > a:hover {
  background: var(--green-dark);
  color: #fff;
}

.plan.free a.button {
  background: var(--mint);
  color: var(--green-dark);
}

.plan.free a.button:hover {
  background: #a9d9c2;
}

.text {
  max-width: 50rem;
  padding: 0.75rem 0 2rem;
}

.text h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
}

.text h3 {
  color: var(--green-dark);
  font-size: 1.02rem;
  margin: 1rem 0 0.25rem;
}

.text p,
.text li {
  margin-bottom: 0.6rem;
}

.text ul,
.text ol {
  padding-left: 1.3rem;
}

.text table {
  background: var(--card);
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
  width: 100%;
}

.text th,
.text td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.text th {
  background: var(--green-soft);
  color: var(--green-dark);
}

.tool-section {
  padding: 0.75rem 0 1.25rem;
}

.tool-section > h2 {
  color: var(--green-dark);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.tool-section > p {
  color: var(--muted);
  max-width: 50rem;
}

.tool-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}

.tool-grid h3 {
  color: var(--green-dark);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.tool-list div {
  border-top: 1px solid var(--border);
  padding: 0.55rem 0;
}

.tool-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.tool-list dt {
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tool-list dd {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.12rem;
}

.prompt-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding-left: 0;
}

.prompt-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--green-dark);
  margin: 0;
  padding: 0.75rem 0.9rem;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

div.doc-meta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0.75rem 1.1rem;
}

.bottom-cta {
  background: var(--mint);
  border-radius: var(--radius);
  margin: 2rem 0 3rem;
  padding: 1.75rem;
  text-align: center;
}

.bottom-cta p {
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bottom-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.bottom-cta a.text-link {
  align-items: center;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 600;
  min-height: 40px;
  text-decoration: none;
}

.bottom-cta a.text-link:hover {
  text-decoration: underline;
}

.guide-shell {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 3rem;
}

.guide-sidebar {
  margin-top: 1.25rem;
}

.guide-sidebar nav {
  display: flex;
  gap: 0.55rem;
  margin: 0 -1.25rem;
  overflow-x: auto;
  padding: 0 1.25rem 0.35rem;
  scrollbar-width: thin;
}

.guide-sidebar h2 {
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.guide-sidebar a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--green-dark);
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.guide-sidebar a:hover {
  border-color: var(--green);
}

.guide-sidebar a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.guide-content {
  min-width: 0;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 0.45rem;
  margin: 2rem 0 0.25rem;
}

.breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

article.guide {
  line-height: 1.65;
  max-width: 70ch;
  padding: 0.25rem 0 1rem;
}

article.guide h2 {
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2rem 0 0.65rem;
  padding-top: 1.1rem;
}

article.guide h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

article.guide h3 {
  color: var(--green-dark);
  font-size: 1.05rem;
  margin: 1.1rem 0 0.35rem;
}

article.guide p {
  margin-bottom: 0.85rem;
}

article.guide ul,
article.guide ol {
  margin: 0 0 1rem 1.35rem;
}

article.guide li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
}

article.guide strong {
  color: var(--green-dark);
}

.info-box {
  background: #edf7f1;
  border: 1px solid #cde5d8;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
}

.info-box p {
  color: var(--green-dark);
  margin: 0;
}

.faq {
  margin-top: 2rem;
}

.faq article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0.75rem 0;
  padding: 1rem 1.1rem;
}

.faq h3 {
  margin-top: 0;
}

.faq p {
  margin-bottom: 0;
}

footer.site {
  background: var(--green-dark);
  color: #d8e7df;
  font-size: 0.92rem;
  margin-top: 1rem;
  padding: 2.25rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.35rem 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

footer.site h2 {
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
}

footer.site ul {
  list-style: none;
}

footer.site li + li {
  margin-top: 0.35rem;
}

footer.site a {
  color: #d8e7df;
  text-decoration: none;
}

footer.site a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(216, 231, 223, 0.18);
  color: #c3d6cd;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .guide-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .guide-sidebar {
    align-self: start;
    margin-top: 3rem;
    position: sticky;
    top: 1.25rem;
  }

  .guide-sidebar nav {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(9, 53, 40, 0.05);
    display: grid;
    gap: 0.2rem;
    margin: 0;
    overflow: visible;
    padding: 0.6rem;
  }

  .guide-sidebar a {
    border-color: transparent;
    border-radius: 8px;
    white-space: normal;
  }

  .breadcrumb {
    margin-top: 3rem;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header.site .wrap {
    align-items: flex-start;
  }

  header.site nav {
    width: 100%;
  }

  .hero {
    padding: 2.25rem 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p,
  .hero p.lead {
    font-size: 1.03rem;
  }

  .grid,
  .guide-list,
  .plans {
    grid-template-columns: 1fr;
  }

  .card,
  .guide-card,
  .plan,
  .bottom-cta {
    padding: 1.1rem;
  }

  .text table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 0.35rem;
  }
}

.embedded header.site,
.embedded footer.site,
.embedded .bottom-cta {
  display: none;
}

/* More breathing room when a guide is shown inside the app modal. */
.embedded .wrap {
  padding: 1.75rem 2.25rem;
}

.embedded .guide-shell {
  gap: 1.75rem;
  padding-bottom: 2.5rem;
}

.embedded .guide-sidebar {
  margin-top: 0;
}

.embedded .guide-content {
  padding-top: 0.25rem;
}
