:root {
  color-scheme: light;
  --ink: #18322f;
  --muted: #60716d;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef3ed;
  --line: #dfe6df;
  --line-strong: #cbd9ce;
  --sage: #cfe2d1;
  --green: #2d6658;
  --green-hover: #214e43;
  --green-soft: #dcecdf;
  --green-text: #21634f;
  --orange: #df8058;
  --orange-soft: #fae9dd;
  --danger: #b44c43;
  --danger-soft: #fff0ed;
  --shadow: 0 24px 60px rgba(35, 65, 55, 0.12);
  --shadow-sm: 0 4px 14px rgba(35, 65, 55, 0.06);
  --shadow-md: 0 12px 32px rgba(35, 65, 55, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(840px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Site Header & Navigation ─────────────────────────────────── */
.site-header {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  color: var(--ink);
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-header nav a {
  transition: color 0.15s ease;
}

.site-header nav a:hover, .text-link:hover {
  color: var(--green);
}

.site-header nav a.active {
  color: var(--green);
  font-weight: 600;
}

.nav-login {
  color: var(--ink);
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #ffffff !important;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.94rem;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(24, 50, 47, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.button:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(24, 50, 47, 0.18);
}

.button:active {
  transform: translateY(0);
}

.button-small, .btn-sm {
  padding: 8px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 7px;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--green);
}

/* ── Hero & Text Elements ─────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  align-items: center;
  gap: 70px;
  padding: 86px 0 104px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(3.3rem, 6vw, 5.5rem);
  line-height: 0.99;
  letter-spacing: -0.075em;
  margin: 0 0 26px;
  max-width: 620px;
  color: var(--ink);
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--green);
  font-style: italic;
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.text-link:hover {
  transform: translateX(2px);
}

.quiet-note {
  color: #82908b;
  font-size: 0.82rem;
  margin-top: 18px;
}

/* ── Product Window (Landing Hero Mockup) ─────────────────────── */
.product-window {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.window-bar {
  height: 42px;
  background: #eff3ed;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  color: #6b7a73;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d5cb;
}

.window-bar strong {
  margin-left: 12px;
  font-weight: 600;
  color: var(--ink);
}

.window-body {
  display: grid;
  grid-template-columns: 125px 1fr;
  min-height: 350px;
}

.window-body aside {
  background: #f5f7f3;
  padding: 23px 14px;
  color: #84918a;
  font-size: 0.66rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.window-body aside b {
  color: var(--ink);
  font-size: 0.9rem;
  margin-bottom: 11px;
}

.window-body aside small {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: #adb7ae;
}

.side-active {
  background: #dcebdc;
  color: var(--green);
  padding: 8px;
  border-radius: 5px;
  margin: -7px;
  font-weight: 600;
}

.mock-content {
  padding: 24px 22px;
  background: #ffffff;
}

.mock-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mock-heading small, .mock-card small, .file-list small {
  display: block;
  color: #98a49e;
  font-size: 0.6rem;
}

.mock-heading h3 {
  margin: 2px 0 18px;
  font-size: 1.1rem;
  color: var(--ink);
}

.mock-heading button {
  background: var(--ink);
  color: #ffffff;
  border: 0;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 0.62rem;
  font-weight: 600;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-card {
  padding: 12px 10px;
  border-radius: 7px;
  min-height: 96px;
}

.mock-card span {
  font-size: 0.58rem;
  color: #5f786f;
  font-weight: 600;
}

.mock-card strong {
  display: block;
  font-size: 0.66rem;
  line-height: 1.25;
  margin: 7px 0;
  color: var(--ink);
}

.blue { background: #e5eff2; }
.peach { background: #fae9dd; }
.green { background: #e6f0e3; }

.file-list {
  margin-top: 16px;
  border-top: 1px solid #edf0ec;
}

.file-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0ec;
}

.file-icon {
  background: #f3d8ce;
  color: #aa604b;
  font-size: 0.52rem;
  padding: 7px 4px;
  border-radius: 4px;
  font-weight: 700;
}

.file-icon.doc {
  background: #d8e8ef;
  color: #4c7183;
}

.file-list p {
  margin: 0;
  font-size: 0.65rem;
  flex: 1;
}

.file-list i {
  font-style: normal;
  color: #a9b4ad;
}

/* ── Trust Strip ──────────────────────────────────────────────── */
.trust-strip {
  border-block: 1px solid var(--line);
  background: #f1f4ee;
}

.trust-items {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: #7b8983;
  font-size: 0.79rem;
}

.trust-items span:not(:first-child) {
  color: var(--green);
  font-weight: 700;
}

/* ── Section Blocks ───────────────────────────────────────────── */
.section {
  padding: 95px 0;
}

.section-intro {
  max-width: 620px;
  margin-bottom: 48px;
}

.section h2, .feature-section h2, .callout h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
  color: var(--ink);
}

.section-intro p:last-child, .feature-layout > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps article {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.steps span {
  color: var(--orange);
  font-weight: 800;
  font-size: 0.8rem;
}

.steps h3 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  color: var(--ink);
}

.steps p, .feature-list span {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ── Feature Section ──────────────────────────────────────────── */
.feature-section {
  background: var(--sage);
  padding: 95px 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.feature-layout > div > p:not(.eyebrow) {
  max-width: 470px;
  margin-bottom: 28px;
}

.feature-list {
  display: grid;
  gap: 0;
}

.feature-list div {
  border-top: 1px solid rgba(24, 50, 47, 0.2);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

.feature-list b {
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-list span {
  font-size: 0.92rem;
}

/* ── Callout Banner ───────────────────────────────────────────── */
.callout {
  background: var(--ink);
  color: #ffffff;
  border-radius: 18px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow);
}

.callout .eyebrow {
  color: #e7a181;
}

.callout h2 {
  max-width: 620px;
  color: #ffffff;
}

.callout .button {
  background: #e7c4a8;
  color: var(--ink) !important;
  box-shadow: none;
}

.callout .button:hover {
  background: #f0d5c0;
  transform: translateY(-2px);
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq {
  max-width: 800px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  list-style-position: outside;
}

.faq details p {
  color: var(--muted);
  max-width: 650px;
  margin-top: 10px;
  line-height: 1.6;
}

/* ── Site Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 55px 0 24px;
  background: #eef2ec;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 12px;
  max-width: 320px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-grid > div:not(:first-child) a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-grid > div:not(:first-child) a:hover {
  color: var(--green);
}

.footer-grid b {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #81908a;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--ink);
  transition: color 0.15s ease;
}

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

/* ── Content & Prose Pages ────────────────────────────────────── */
.page-hero {
  padding: 70px 0 50px;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
  margin: 0 0 20px;
  color: var(--ink);
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 90px;
}

.resource-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.resource-card .tag {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-card h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 18px 0 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.resource-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
  line-height: 1.55;
}

.resource-card a {
  color: var(--green);
  font-weight: 750;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.15s ease;
}

.resource-card:hover a {
  transform: translateX(3px);
}

.prose {
  max-width: 760px;
  padding-bottom: 90px;
}

.prose h2 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.prose p, .prose li {
  color: #3b504b;
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose li {
  margin: 8px 0;
}

.meta {
  color: #7c8b84;
  font-size: 0.85rem;
}

/* ── Contact Card ─────────────────────────────────────────────── */
.contact-card {
  max-width: 680px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px;
  margin-bottom: 90px;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.contact-card a {
  color: var(--green);
  font-weight: 750;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.contact-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── Breadcrumb Navigation ────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
  margin: 1.5rem 0 1rem 0;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.breadcrumb span[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ── Tools & Docs Pages ───────────────────────────────────────── */
.tools-page, .docs-page, .article-page {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tool-card, .doc-row {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.tool-card h2, .doc-row h2 {
  margin: 0.35rem 0 0.75rem;
  color: var(--ink);
}

.checklist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.checklist-form label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
  cursor: pointer;
}

.checklist-form input {
  accent-color: var(--green);
  margin-top: 0.25rem;
  cursor: pointer;
}

.tool-status {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 1rem;
}

.example {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.8rem;
}

.example.good {
  background: #e7f5ee;
  border: 1px solid #bcdcc7;
  color: #1e5944;
}

.example.bad {
  background: #fff0e8;
  border: 1px solid #f6cfbe;
  color: #8c4228;
}

.example strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.example code, .folder-tree code {
  font-size: 0.82rem;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.folder-tree {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  background: var(--ink);
  color: #eef5ef;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-top: 1.25rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
}

.doc-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.doc-row:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.doc-row > span {
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
}

.doc-row p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Full Article Styling (Guides) ────────────────────────────── */
.article-page article {
  max-width: 820px;
}

.article-page article h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 0.5rem 0 1rem;
  color: var(--ink);
}

.article-page article h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.article-page article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.article-page article p, .article-page article li {
  color: #3b504b;
  line-height: 1.75;
  font-size: 1rem;
}

.article-page article ul {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

.article-page article li {
  margin: 6px 0;
}

.article-page article code {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
}

.article-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-text);
  background: var(--green-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border: 1px solid #bcdcc7;
}

/* ── Subject Grid for Guides ──────────────────────────────────── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin: 1.8rem 0;
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.subject-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.subject-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.subject-card p {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* ── FAQ Section in Articles ──────────────────────────────────── */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.faq-section h2 {
  margin-top: 0 !important;
  font-size: 1.45rem !important;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

.faq-answer {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ── CTA Banner in Articles ───────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #e7f1e6 0%, #dcecdf 100%);
  border: 1px solid #bcdcc7;
  border-radius: 16px;
  padding: 2.2rem 2rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.cta-banner h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: var(--muted) !important;
  max-width: 540px;
  margin: 0 auto 1.4rem !important;
  font-size: 0.96rem !important;
}

.cta-banner .button {
  background: var(--green);
}

.cta-banner .button:hover {
  background: var(--green-hover);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.25rem;
}

.related-links strong {
  width: 100%;
  color: var(--ink);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-links a {
  color: var(--green);
  font-weight: 600;
  font-size: 0.94rem;
}

.related-links a:hover {
  text-decoration: underline;
}

/* ── Responsive Queries ───────────────────────────────────────── */
@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .site-header nav a:not(.button):not(.nav-login) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 55px 0 70px;
  }
  .product-window {
    transform: none;
  }
  .trust-items {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .trust-items span:first-child {
    width: 100%;
    margin-bottom: 5px;
  }
  .steps, .feature-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-layout {
    gap: 45px;
  }
  .callout {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 28px;
  }
  .section {
    padding: 75px 0;
  }
}

@media (max-width: 700px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding-top: 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tools-page, .docs-page, .article-page {
    padding-top: 2.5rem;
  }
}

@media (max-width: 500px) {
  .wrap, .site-header {
    width: min(100% - 28px, 1120px);
  }
  .site-header {
    padding: 18px 0;
  }
  .site-header nav {
    gap: 12px;
  }
  .nav-login {
    font-size: 0.85rem;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .window-body {
    grid-template-columns: 1fr;
  }
  .window-body aside {
    display: none;
  }
  .mock-content {
    padding: 18px 14px;
  }
  .mock-card {
    min-height: 88px;
  }
  .section-grid {
    gap: 5px;
  }
  .mock-card strong {
    font-size: 0.58rem;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Academic Integrity & Anti-Cheating Warning Poster ────────── */
.integrity-poster {
  position: relative;
  background: linear-gradient(135deg, #fffdfa 0%, #fef7ee 100%);
  border: 1.5px solid #f0d5be;
  border-left: 6px solid #d97736;
  border-radius: 18px;
  padding: 32px 36px;
  margin: 48px auto;
  box-shadow: 0 12px 32px rgba(217, 119, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.integrity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #fae4d0;
  color: #a74812;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid #f3cfb0;
}

.integrity-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.integrity-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fae4d0;
  color: #c45b1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integrity-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.integrity-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2b1f14;
}

.integrity-lead {
  margin: 6px 0 0 0;
  font-size: 0.96rem;
  color: #635043;
  line-height: 1.55;
}

.integrity-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed #e6cfb7;
}

.integrity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.integrity-item-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f7dfc8;
  color: #a74812;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.integrity-item div {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4a3c33;
}

.integrity-item strong {
  display: block;
  color: #1e150e;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.integrity-footer {
  font-size: 0.82rem;
  color: #7b695c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(230, 207, 183, 0.45);
}

.integrity-footer a {
  color: #a74812;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.integrity-footer a:hover {
  color: #6d2f09;
}

@media (max-width: 720px) {
  .integrity-poster {
    padding: 22px 18px;
    margin: 32px auto;
  }
  .integrity-header {
    flex-direction: column;
    gap: 12px;
  }
  .integrity-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── Horizontal Scrolling Warning Ticker ─────────────────────── */
.integrity-ticker {
  background: #18110b !important;
  color: #fed7aa !important;
  border-bottom: 2px solid #d97736 !important;
  height: 38px !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  user-select: none;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  position: relative;
  z-index: 50;
  width: 100% !important;
  box-sizing: border-box !important;
}

.integrity-ticker:hover .integrity-ticker-track {
  animation-play-state: paused !important;
}

.integrity-ticker-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  white-space: nowrap !important;
  will-change: transform;
  animation: ticker-scroll 26s linear infinite !important;
}

.integrity-ticker-content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.ticker-alert {
  color: #ff9147 !important;
  font-weight: 900 !important;
  margin-right: 6px;
}

.ticker-dot {
  color: #d97736 !important;
  margin: 0 18px !important;
  font-weight: 900 !important;
  opacity: 0.85;
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ── Academic Integrity Entry Modal ───────────────────────────── */
.integrity-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.integrity-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.integrity-modal-card {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf6 100%);
  border-radius: 22px;
  border: 1.5px solid #ecd8c2;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(223, 128, 88, 0.15);
  padding: 32px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.integrity-modal-overlay.active .integrity-modal-card {
  transform: translateY(0) scale(1);
}

.integrity-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.integrity-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fae4d0;
  color: #a74812;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid #f3cfb0;
}

.integrity-modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #8c786a;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.integrity-modal-close:hover {
  background: #f4e8dc;
  color: #1e150e;
}

.integrity-modal-icon-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.integrity-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fae4d0;
  color: #c45b1e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.integrity-modal-icon svg {
  width: 26px;
  height: 26px;
}

.integrity-modal-icon-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #241910;
  line-height: 1.3;
}

.integrity-modal-lead {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #5c4b3f;
}

.integrity-modal-box {
  background: #fdf6ec;
  border: 1px solid #ebd4bc;
  border-left: 4px solid #d97736;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integrity-modal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.integrity-icon-danger {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fde8e5;
  color: #b44c43;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.integrity-icon-success {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3f2e6;
  color: #21634f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.integrity-icon-warning {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fae4d0;
  color: #a74812;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.integrity-modal-row div {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #4a3a30;
}

.integrity-modal-row strong {
  display: block;
  font-size: 0.88rem;
  color: #1e150e;
  margin-bottom: 2px;
}

.integrity-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.button-agree {
  width: 100%;
  justify-content: center;
  background: #2d6658;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 102, 88, 0.28);
  transition: all 0.15s ease;
}

.button-agree:hover {
  background: #214e43;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 102, 88, 0.35);
}

.integrity-modal-terms-link {
  text-align: center;
  font-size: 0.84rem;
  color: #7b695c;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.integrity-modal-terms-link:hover {
  color: #2d6658;
}

body.integrity-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .integrity-modal-card {
    padding: 22px 18px;
    gap: 14px;
  }
  .integrity-modal-icon-header h2 {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
