/* Shared stylesheet for OctoMail's static marketing pages (/for/*, /pricing).
   Mirrors the landing's design system: warm paper surface, Fraunces display
   type, Inter body, sky "brand" accent, dark slate footer. Pages that use this
   file are plain HTML in public/ so they ship fully prerendered. */

:root {
  --paper: #fbf8f2;
  --ink: #1c1917;
  --muted: #57534e;
  --faint: #78716c;
  --line: #ece4d6;
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --brand-ink: #0c4a6e;
  --slate9: #0f172a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------- Header ---------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.orb {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34d399, #059669);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}
.brand b { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { font-size: 14px; font-weight: 600; color: #44403c; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .signin { display: none; }
@media (min-width: 640px) { .nav .signin { display: inline; } }

/* ------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  gap: 8px; border-radius: 10px; padding: 10px 18px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.btn-brand:hover { background: var(--brand-dark); }
.btn-ghost { border: 1px solid #d6d3d1; background: rgba(255,255,255,0.7); color: #292524; }
.btn-ghost:hover { background: #fff; }
.btn-lg { min-height: 50px; padding: 12px 26px; font-size: 16px; }

/* -------------------------------- Type ------------------------------------ */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 12px;
}
h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.25rem); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.1;
  letter-spacing: -0.01em; margin: 0 0 14px;
}
h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
p { color: #292524; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--faint); }
a { color: var(--brand); }

/* ------------------------------- Layout ----------------------------------- */
.hero { padding: 72px 0 56px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
section.block { padding: 44px 0; }
section.block-tight { padding: 30px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* -------------------------------- Cards ----------------------------------- */
.card {
  background: #fff; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 2px 9px -3px rgba(28, 25, 23, 0.1), 0 0 0 1px var(--line) inset;
}
.grid-2 { display: grid; gap: 18px; }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Chat-style inbound/reply demo, matching the landing's Industries cards. */
.bubble-in {
  background: #f1eadc; border-radius: 16px 16px 16px 4px; padding: 12px 16px; margin: 0 0 10px;
}
.bubble-out {
  background: #f0f9ff; border: 1px solid #e0f2fe;
  border-radius: 16px 16px 4px 16px; padding: 12px 16px;
}
.bubble-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 3px;
}
.bubble-in .bubble-label { color: #a8a08c; }
.bubble-out .bubble-label { color: var(--brand); }
.bubble-in p, .bubble-out p { margin: 0; font-size: 15px; }
.bubble-out p { color: var(--brand-ink); }

/* -------------------------------- Steps ----------------------------------- */
.steps { display: grid; gap: 14px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li {
  counter-increment: step; background: #fff; border-radius: 14px; padding: 18px 20px 18px 56px;
  position: relative; box-shadow: 0 2px 9px -3px rgba(28,25,23,0.1), 0 0 0 1px var(--line) inset;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* ------------------------------ Checklist --------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: #d1fae5;
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid #059669; border-bottom: 2px solid #059669; transform: rotate(-45deg);
}

/* --------------------------------- FAQ ------------------------------------ */
.faq details {
  background: #fff; border-radius: 14px; margin-bottom: 10px;
  box-shadow: 0 2px 9px -3px rgba(28,25,23,0.1), 0 0 0 1px var(--line) inset;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #a8a29e; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 15.5px; }

/* ------------------------------ Pricing ----------------------------------- */
.plan { position: relative; display: flex; flex-direction: column; }
.plan .tag {
  position: absolute; top: -12px; right: 20px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 700; padding: 3px 12px;
}
.price { font-family: "Fraunces", Georgia, serif; font-size: 44px; font-weight: 600; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--faint); font-family: "Inter", sans-serif; }
.price-cad { font-size: 14px; color: var(--faint); margin: 2px 0 0; }

/* ------------------------------ CTA band ---------------------------------- */
.cta-band {
  background: #fff; border-radius: 20px; padding: 36px 28px; text-align: center;
  box-shadow: 0 2px 9px -3px rgba(28,25,23,0.1), 0 0 0 1px var(--line) inset;
}

/* ------------------------------- Footer ----------------------------------- */
footer.site {
  margin-top: 56px; background: var(--slate9); color: #cbd5e1;
  padding: 52px 0 28px; font-size: 14px;
}
footer.site .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { footer.site .cols { grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr 0.9fr; } }
footer.site .brand b { color: #fff; }
footer.site p { color: #94a3b8; }
footer.site h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: #94a3b8; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #94a3b8;
}
footer.site .socials { display: flex; gap: 10px; margin-top: 18px; }
footer.site .social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: color 0.15s ease, border-color 0.15s ease;
}
footer.site .social-btn:hover { color: #fff; border-color: rgba(255,255,255,0.55); }
footer.site .social-btn svg { width: 15px; height: 15px; }
