/* Shared styles for the content pages (/ai-text-expander, /gmail-templates, …).
   The homepage keeps its own inline CSS — it is one big bespoke layout and is
   already live, so it is deliberately NOT refactored onto this file. What lives
   here is the subset those pages share: the design tokens, the nav/footer
   chrome, and the article typography the homepage has no use for.

   Served from /assets/, which _headers caches for 30 days. Bust it by bumping
   the ?v= on the <link> in each page when you edit this file. */

:root {
  --paper:   #f6f5f2;
  --card:    #ffffff;
  --ink:     #1b1d1b;
  --muted:   #5d6862;
  --faint:   #9aa39c;
  --line:    #e9e7e1;
  --hair:    #f1efea;
  --green:   #1f8a5b;
  --green-d: #176b47;
  --mint:    #e8f3ec;
  --mint-d:  #d3e9dc;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang TC', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shell:   1160px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:hover { color: var(--green-d); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.btn {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: none;
  text-decoration: none;
  border-radius: 11px;
  padding: 15px 26px;
  font-size: 15px;
  box-shadow: 0 6px 18px -6px rgba(31,138,91,.55);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(31,138,91,.6); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; border-radius: 9px; box-shadow: 0 4px 14px -3px rgba(31,138,91,.5); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green);
}
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 24px; padding: 0 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px;
}

/* ---- nav (mirrors the homepage) ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,245,242,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
.mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--display); font-size: 16px; flex-shrink: 0;
}
.wordmark { font-family: var(--display); font-weight: 700; font-size: 17px; }
.wordmark a { color: inherit; text-decoration: none; }
.nav__links { display: flex; gap: 28px; margin-left: 36px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--muted); text-decoration: none; }
.nav__links a:hover { color: var(--green-d); }
.nav .btn { margin-left: auto; }

/* ---- article ---- */
.crumb { font-size: 13px; color: var(--faint); padding-top: 28px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--green-d); }

.article { max-width: 760px; margin: 0 auto; padding: 8px 0 88px; }
.article h1 { font-size: 40px; line-height: 1.14; margin: 14px 0 20px; }
.article .lede { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; }
.article h2 { font-size: 26px; margin: 52px 0 16px; }
.article h3 { font-size: 19px; margin: 32px 0 10px; }
.article p { font-size: 16px; line-height: 1.75; color: #33403a; margin: 0 0 18px; }
.article ul, .article ol { font-size: 16px; line-height: 1.75; color: #33403a; padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 9px; }
.article strong { color: var(--ink); }
.article figure { margin: 28px 0; }
.article figure img { border: 1px solid var(--line); border-radius: 12px; }
.article figcaption { font-size: 13.5px; color: var(--faint); margin-top: 10px; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 48px 0; }

.meta { font-size: 13px; color: var(--faint); margin: 0 0 28px; }
.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { color: var(--green-d); }

/* ---- guide hub / trust pages ---- */
.page-intro { max-width: 760px; padding-top: 56px; padding-bottom: 30px; }
.page-intro h1 { font-size: 42px; line-height: 1.12; margin: 12px 0 18px; }
.page-intro p { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 88px; }
.guide-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.guide-card h2 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover { color: var(--green-d); }
.guide-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
.guide-card .topic { font-family: var(--mono); color: var(--green); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.trust-card { max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; margin-bottom: 88px; }
.trust-card h2 { font-size: 24px; margin: 32px 0 12px; }
.trust-card h2:first-child { margin-top: 0; }
.trust-card p, .trust-card li { color: #33403a; font-size: 16px; line-height: 1.75; }
.trust-card ul { padding-left: 22px; }

/* ---- comparison table ---- */
.tablewrap { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; background: var(--card); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
thead th { font-family: var(--display); font-size: 14px; background: var(--hair); border-bottom: 1px solid var(--line); }
tbody th { font-weight: 600; color: var(--ink); width: 30%; }
td { color: var(--muted); }

/* ---- callout ---- */
.note {
  background: var(--mint); border: 1px solid var(--mint-d); border-radius: 12px;
  padding: 18px 22px; margin: 0 0 24px;
}
.note p { margin: 0; font-size: 15px; color: #2b4a3a; }
.note p + p { margin-top: 10px; }

/* ---- steps ---- */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  position: relative; padding-left: 42px; margin-bottom: 16px;
  font-size: 16px; line-height: 1.7; color: #33403a;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--mint); color: var(--green-d);
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ---- faq ---- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-family: var(--mono); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 14px 0 0; }

/* ---- inline cta ---- */
.cta {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 32px; margin: 44px 0 0;
}
.cta h2 { font-size: 22px; margin: 0 0 10px; }
.cta p { font-size: 15px; color: var(--muted); margin: 0 0 20px; }

/* ---- related ---- */
.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 48px; }
.related h2 { font-size: 15px; font-family: var(--body); color: var(--faint); font-weight: 600; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.related li { margin-bottom: 8px; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); }
.foot__inner { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--faint); padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.foot__inner a { color: var(--muted); text-decoration: none; }
.foot__inner a:hover { color: var(--green-d); }
.mark--sm { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.foot__right { margin-left: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .nav__links { display: none; }
  .article h1 { font-size: 30px; }
  .article .lede { font-size: 16.5px; }
  .article h2 { font-size: 22px; margin-top: 40px; }
  .page-intro { padding-top: 40px; }
  .page-intro h1 { font-size: 32px; }
  .page-intro p { font-size: 16.5px; }
  .guide-grid { grid-template-columns: 1fr; padding-bottom: 64px; }
  .trust-card { padding: 24px 22px; margin-bottom: 64px; }
  .cta { padding: 24px 22px; }
  .foot__right { margin-left: 0; width: 100%; }
}
