/* ── Insights pages ───────────────────────────────────────────────────── */

main.insights-page-card,
main.insight-article-card {
  width: min(860px, calc(100% - 28px));
  margin-top: 28px;
}

.insights-list {
  margin-bottom: 26px;
}

.insight-card {
  border: 1px solid #d9e6dc;
  background: #f8fcf9;
  border-radius: 12px;
  padding: 20px 22px;
}

.featured-insight {
  border-left: 5px solid var(--accent);
}

.insight-meta {
  font-size: 0.82rem;
  color: #4f5f55;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.insight-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.insight-card h2 a {
  color: var(--accent);
  text-decoration: none;
}

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

.insight-cta,
.inline-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.insight-cta:hover,
.inline-button:hover {
  background: #226c31;
  color: #ffffff;
}

.editorial-note {
  border-top: 1px solid #e2e8ee;
  padding-top: 22px;
}

.article-header {
  border-bottom: 1px solid #e2e8ee;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.detail-section {
  border-top: 1px solid #e2e8ee;
  padding-top: 20px;
  margin-top: 22px;
}

.detail-section h2 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--accent);
}

.detail-section ol,
.detail-section ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.related-cta {
  margin-top: 30px;
  border-top: 2px solid #dbe8de;
  padding-top: 20px;
  background: #f9fbfa;
  border-radius: 10px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
}

.home-insights {
  border-top: 1px solid #e2e8ee;
  padding-top: 24px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.home-insights h2 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-insight-card {
  border: 1px solid #d5e6d8;
  background: #f7fcf8;
  border-radius: 11px;
  padding: 16px 18px;
}

.home-insight-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.home-insight-card h3 a {
  color: var(--accent);
  text-decoration: none;
}

.home-insight-card h3 a:hover {
  text-decoration: underline;
}

.home-insight-card p {
  margin: 0 0 10px;
  color: #45504a;
}

.tool-inline-card {
  margin: 22px 0 18px;
  border: 1px solid #d9e6dc;
  border-radius: 10px;
  background: #f7fcf8;
  padding: 14px 16px;
}

.tool-inline-card h3 {
  margin: 0 0 7px;
  font-size: 0.98rem;
  color: var(--accent);
}

.tool-inline-card p {
  margin: 0 0 8px;
}
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --text: #17212b;
  --card: #ffffff;
  --accent: #2b8a3e;
  --dark-bg: #222222;
  --light-text: #cccccc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, serif;
  color: var(--text);
  background: linear-gradient(170deg, #ffffff 0%, var(--bg) 70%);
  min-height: 100vh;
  padding: 88px 0 0;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--dark-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
}

.header-inner {
  width: min(1000px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: #f5f5f5;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-wordmark picture {
  display: block;
}

.brand-wordmark img {
  display: block;
  width: auto;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: #ffffff;
}

main,
.content-card {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto 24px;
  background: var(--card);
  border: 1px solid #e2e8ee;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

h1 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent);
}

p {
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.fine-print {
  margin-top: 26px;
  font-size: 0.95rem;
}

.legal-page .content-card {
  width: min(920px, calc(100% - 28px));
}

.legal-page h2 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page ul {
  line-height: 1.6;
}

.page-logo-wrap {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8ee;
}

.page-logo {
  display: inline-flex;
  background: #111111;
  border-radius: 12px;
  padding: 10px 12px;
}

.page-logo img {
  height: 36px;
  width: auto;
}

.site-footer {
  margin-top: auto;
  background: var(--dark-bg);
  color: var(--light-text);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ── Homepage ─────────────────────────────────────────────────────────── */

main.home-card {
  width: min(860px, calc(100% - 28px));
  margin-top: 28px;
}

.home-hero {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8ee;
  margin-bottom: 28px;
}

.home-hero h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.home-h1-secondary {
  display: block;
  font-size: 0.82em;
  margin-top: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.tools-section {
  margin-bottom: 30px;
}

.tools-section h2,
.home-about h2 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.tool-card-link {
  display: block;
  background: #f6fbf7;
  border: 1px solid #c9e8d0;
  border-radius: 11px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.tool-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.tc-icon {
  font-size: 1.7rem;
  margin-bottom: 8px;
  line-height: 1;
}

.tool-card-link h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--accent);
}

.tool-card-link p {
  margin: 0 0 12px;
  font-size: 0.87rem;
  color: #555;
  line-height: 1.5;
}

.tc-try {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.home-about {
  border-top: 1px solid #e2e8ee;
  padding-top: 24px;
}

.home-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #444;
}

/* ── Tool page ────────────────────────────────────────────────────────── */

main.tool-page-card {
  width: min(780px, calc(100% - 28px));
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
}

.tool-hero-section {
  background: linear-gradient(135deg, var(--accent) 0%, #1e6b2e 100%);
  color: #fff;
  padding: 30px 32px 28px;
  position: relative;
  overflow: hidden;
}

.tool-hero-section::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
}

.tool-hero-section h1 {
  color: #fff;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.tool-hero-section .tool-desc {
  color: rgba(255,255,255,0.88);
  margin: 0 0 22px;
  font-size: 0.96rem;
  line-height: 1.6;
}

.tool-form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.tool-form-row .input-wrap {
  flex: 1;
}

.tool-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.tool-form-row input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.96);
  color: #1a1a1a;
}

.tool-form-row input[type="text"]::placeholder {
  color: rgba(0,0,0,0.38);
}

.tool-form-row input[type="text"]:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
}

.tool-btn {
  white-space: nowrap;
  background: #fff;
  color: var(--accent);
  border: none;
  padding: 10px 18px;
  font-size: 0.93rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  font-family: inherit;
}

.tool-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.tool-body {
  padding: 26px 32px 30px;
}

.tool-body h2 {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-body ol {
  margin: 0 0 28px;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: #444;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 10px 0 28px;
}

.benefit-item {
  background: #f4fbf5;
  border: 1px solid #c9e8d0;
  border-radius: 8px;
  padding: 14px 16px;
}

.benefit-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 5px;
}

.benefit-item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

.back-link {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ── Prompt modal ─────────────────────────────────────────────────────── */

.sc-prompt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.sc-prompt-modal[hidden] {
  display: none;
}

.sc-prompt-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 36px 38px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
}

.sc-prompt-modal h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: var(--accent);
}

.sc-prompt-modal .close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--dark-bg);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.sc-prompt-modal .close:hover {
  opacity: 0.75;
}

.sc-prompt-preview {
  background: #f5faf6;
  border: 1px solid #cde0d2;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-family: Georgia, serif;
  font-size: 0.87rem;
  line-height: 1.75;
  color: #222;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 46vh;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-btn {
  background: #f0f7f2;
  color: var(--accent);
  border: 1px solid #c9e8d0;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.copy-btn:hover {
  background: #ddf0e3;
}

.sc-chatgpt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.1s;
}

.sc-chatgpt-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.sc-chatgpt-link svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 740px) {
  .brand-wordmark img {
    height: 32px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    gap: 8px;
  }

  .tool-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-btn {
    justify-content: center;
  }

  .tool-hero-section,
  .tool-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sc-prompt-modal-content {
    padding: 28px 22px 22px;
  }
}
