/* SGraph Send — Site Styles
   Clean, professional, trust-first design.
   No frameworks. No dependencies. */

/* ── Reset & Base ─────────────────────────────── */

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-accent: #0f4c75;
  --color-accent-light: #3282b8;
  --color-border: #e0e0e0;
  --color-surface: #f7f9fc;
  --color-success: #2d6a4f;
  --color-warning: #e07c24;
  --color-code-bg: #f4f4f8;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  --max-width: 720px;
  --max-width-wide: 960px;
}

html {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ───────────────────────────────── */

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: 2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

strong { font-weight: 600; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.5em 1em;
  margin: 1.5em 0;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: var(--color-code-bg);
  padding: 1em 1.2em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

li { margin-bottom: 0.3em; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

th, td {
  text-align: left;
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  background: var(--color-surface);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1em 0;
}

/* ── Header ───────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1em 2em;
  background: var(--color-bg);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo-icon { font-size: 1.3em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5em;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.4em 1em;
  border-radius: 5px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-accent-light);
  text-decoration: none !important;
}

/* ── Content ──────────────────────────────────── */

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5em 1.5em;
  flex: 1;
}

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

.hero {
  text-align: center;
  padding: 3em 0 2em;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2em;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.7em 2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.hero .cta-button:hover {
  background: var(--color-accent-light);
  text-decoration: none;
}

.key-messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5em;
  margin: 2.5em 0;
}

.key-message {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.5em;
  border-left: 3px solid var(--color-accent);
}

.key-message h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--color-accent);
}

.key-message p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ── Blog listing ─────────────────────────────── */

.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-link {
  font-size: 1.25rem;
  font-weight: 600;
}

.post-list .post-date {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.2em;
}

.post-list .post-excerpt {
  margin-top: 0.5em;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ── Post ─────────────────────────────────────── */

.post-header {
  margin-bottom: 2em;
}

.post-title {
  font-size: 2rem;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.3em;
}

.post-footer {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
}

/* ── Page ─────────────────────────────────────── */

.page-header {
  margin-bottom: 2em;
}

.page-title {
  font-size: 2rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 0.3em;
}

/* ── Steps (for How It Works) ─────────────────── */

.step {
  margin: 2em 0;
  padding: 1.5em;
  background: var(--color-surface);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.step-number {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

.step h3 {
  margin-top: 0.3em;
}

/* ── Stored / Not Stored (for Transparency) ──── */

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 2em 0;
}

.data-card {
  padding: 1.5em;
  border-radius: 8px;
}

.data-card.stored {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.data-card.not-stored {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.data-card h3 {
  margin-top: 0;
}

.data-card ul {
  margin-bottom: 0;
}

/* ── Footer ───────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2em;
  background: var(--color-surface);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.footer-tagline p {
  margin-bottom: 0.3em;
}

.footer-links {
  display: flex;
  gap: 1.5em;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-legal {
  font-size: 0.85rem;
}

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

@media (max-width: 640px) {
  html { font-size: 16px; }

  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; gap: 1em; }

  .hero h1 { font-size: 1.8rem; }
  .key-messages { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }

  .content { padding: 1.5em 1em; }
}
