/* ============================================================
   TempMail — Main Stylesheet
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colours */
  --bg-page:    #0d1117;
  --bg-card:    #161b22;
  --bg-card2:   #1c2128;
  --bg-input:   #0d1117;
  --border:     #30363d;
  --border-hi:  #58a6ff;

  --text-1:     #e6edf3;
  --text-2:     #8b949e;
  --text-3:     #6e7681;

  --accent:     #7c3aed;   /* violet */
  --accent-hi:  #9f5ff7;
  --accent-glow:rgba(124,58,237,.25);

  --green:      #3fb950;
  --teal:       #0acf97;
  --red:        #f85149;
  --yellow:     #d29922;

  /* Spacing */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;

  /* Typography */
  --font-body:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow:     0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; display: block; }

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--wide { max-width: 1100px; }
.site-main { flex: 1; }

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-1);
  text-decoration: none;
}
.logo-text { background: linear-gradient(135deg,#7c3aed,#0acf97); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: var(--text-2); font-size: .9rem; font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: var(--text-1); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: .3s;
}

/* ─── Hero / Email Block ────────────────────────────────────── */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--text-1);
}

.hero p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* Email Address Box */
.email-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 620px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

.email-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .75rem;
}

.email-display-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  transition: border-color .2s;
}
.email-display-row:focus-within { border-color: var(--border-hi); }

.email-address {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--teal);
  word-break: break-all;
  min-width: 0;
}

.email-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Expiry Timer */
.expiry-bar-wrap {
  margin-top: 1rem;
  text-align: left;
}
.expiry-label {
  font-size: .78rem;
  color: var(--text-3);
  margin-bottom: .35rem;
  display: flex;
  justify-content: space-between;
}
.expiry-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.expiry-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  border-radius: 2px;
  transition: width 1s linear;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.15rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 0 4px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card2);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); text-decoration: none; color: var(--text-1); }

.btn-ghost {
  background: rgba(124,58,237,.08);
  color: var(--text-1);
  border: 1px solid rgba(124,58,237,.45);
}
.btn-ghost:hover { color: #fff; background: var(--accent); border-color: var(--accent); text-decoration: none; }

.btn-danger { background: rgba(248,81,73,.15); color: var(--red); border: 1px solid rgba(248,81,73,.3); }
.btn-danger:hover { background: rgba(248,81,73,.25); text-decoration: none; color: var(--red); }

.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn-icon { padding: .55rem; }

.btn-copy { padding: .45rem .9rem; }

/* ─── Inbox Section ─────────────────────────────────────────── */
.inbox-section { padding: 0 0 4rem; }

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.inbox-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.inbox-badge {
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

.inbox-meta {
  font-size: .8rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.refresh-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* Inbox Table */
.inbox-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.inbox-table {
  width: 100%;
  border-collapse: collapse;
}

.inbox-table th {
  padding: .75rem 1.25rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}

.inbox-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.inbox-table tr:last-child td { border-bottom: none; }

.inbox-row {
  cursor: pointer;
  transition: background .15s;
}
.inbox-row:hover { background: var(--bg-card2); }
.inbox-row.unread td { font-weight: 600; }
.inbox-row.unread .msg-sender::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: .5rem;
  vertical-align: middle;
}

.msg-sender { color: var(--text-1); font-size: .9rem; white-space: nowrap; }
.msg-subject { color: var(--text-2); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.msg-time { color: var(--text-3); font-size: .8rem; white-space: nowrap; text-align: right; }

/* Empty & Loading states */
.inbox-empty, .inbox-loading {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-3);
}
.inbox-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.inbox-empty h3 { color: var(--text-2); font-size: 1rem; margin-bottom: .4rem; }
.inbox-empty p  { font-size: .88rem; }

.spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Message Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.modal-subject {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: .2rem;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--text-1); }

.modal-meta {
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
  font-size: .85rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.modal-meta span { display: flex; gap: .5rem; }
.modal-meta strong { color: var(--text-1); min-width: 50px; }

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: .93rem;
  color: var(--text-1);
  line-height: 1.75;
}
.modal-body iframe {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 300px;
}
.modal-body pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: .85rem;
  background: var(--bg-card2);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
}

/* ─── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 500;
  transform: translateY(1rem);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }

/* ─── Page Content (static pages) ───────────────────────────── */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.page-hero .sub { color: var(--text-2); font-size: 1rem; }

.prose {
  max-width: 720px;
  padding-bottom: 4rem;
}
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--text-1); }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: var(--text-1); }
.prose p  { margin-bottom: 1rem; color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-2); }
.prose li { margin-bottom: .35rem; }
.prose a  { color: var(--accent-hi); }
.prose strong { color: var(--text-1); }

/* Contact Form */
.contact-form { max-width: 560px; padding-bottom: 4rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .45rem; color: var(--text-2); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.footer-brand p { font-size: .85rem; color: var(--text-3); margin: 0; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-3); font-size: .85rem; }
.footer-nav a:hover { color: var(--text-2); }
.footer-copy { font-size: .8rem; color: var(--text-3); }

/* ─── Feather Icons ──────────────────────────────────────────── */
/* Global size — feather.replace() outputs <svg class="feather feather-*"> */
.feather {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Logo icon */
.logo-icon { font-size: 0; }           /* hide fallback text if any */
.logo-icon.feather, .logo .feather { width: 20px; height: 20px; vertical-align: middle; }
.footer-brand .feather { width: 18px; height: 18px; vertical-align: middle; }

/* Button icons */
.btn .feather { width: 14px; height: 14px; }

/* Modal close */
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
}
.modal-close .feather { width: 18px; height: 18px; }

/* Spinning refresh icon */
#btnRefresh.spinning .feather { animation: spin .7s linear infinite; }

/* Inbox title icon */
.inbox-title .feather { width: 18px; height: 18px; }

/* Empty inbox icon */
.inbox-empty .feather {
  width: 48px;
  height: 48px;
  opacity: .35;
  margin-bottom: 1rem;
  display: block;
  margin-inline: auto;
}

/* ─── Features Section ───────────────────────────────────────── */
.features-section {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-hi);
  margin-bottom: .85rem;
  display: block;
  margin-inline: auto;
}

.feature-title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .35rem;
  color: var(--text-1);
}

.feature-desc {
  font-size: .83rem;
  color: var(--text-2);
}

/* ─── Inbox footer note ──────────────────────────────────────── */
.inbox-footer-note {
  font-size: .82rem;
  color: var(--text-3);
  margin-top: .9rem;
  text-align: center;
}
.inbox-footer-note a { color: var(--accent-hi); }

/* ─── Utilities ──────────────────────────────────────────────── */
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-1 { gap: .5rem; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 650px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; gap: 1rem; }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .nav-toggle { display: flex; }

  .inbox-table th:nth-child(3),
  .inbox-table td:nth-child(3) { display: none; }

  .msg-subject { max-width: 140px; }

  .modal { max-height: 95vh; }
  .modal-meta span { flex-direction: column; gap: .1rem; }

  .email-display-row { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   SEO Platform Pages
   ============================================================= */

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
  font-size: .82rem;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb-list a { color: var(--text-3); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--accent-hi); }
.breadcrumb-list li:last-child { color: var(--text-2); font-weight: 500; }
.breadcrumb-list li[aria-hidden] { color: var(--text-3); }

/* ─── Platform Hero ──────────────────────────────────────────── */
.platform-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.platform-intro { max-width: 720px; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-hi);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.platform-badge .feather { width: 13px; height: 13px; }
.platform-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--text-1), var(--accent-hi));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.platform-hero p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 680px;
}

/* ─── Compact hero for platform pages ───────────────────────── */
.hero--platform { padding: 2rem 0; }
.hero--platform .email-box { margin-inline: 0; max-width: 100%; }

/* ─── Section headings ───────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}
.section-heading .feather { width: 18px; height: 18px; color: var(--accent-hi); }
.section-heading.center { justify-content: center; text-align: center; }
.section-sub {
  color: var(--text-2);
  font-size: .95rem;
  margin-top: -.75rem;
  margin-bottom: 2rem;
}
.section-sub.center { text-align: center; }

/* ─── Content grid ───────────────────────────────────────────── */
.content-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.content-section--alt { background: var(--bg-card2); }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.content-block { display: flex; flex-direction: column; }

/* ─── Steps list ─────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-text {
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.6;
  padding-top: .2rem;
}

/* ─── Use cases list ─────────────────────────────────────────── */
.use-cases-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.use-cases-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.55;
}
.use-cases-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: .45rem;
}

/* ─── FAQ section ────────────────────────────────────────────── */
.faq-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: .93rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.faq-question:hover { background: var(--bg-card2); }
.faq-question[aria-expanded="true"] { color: var(--accent-hi); }
.faq-chevron {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-answer {
  padding: 0 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
}
.faq-answer p {
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.75;
  padding-top: .9rem;
  margin: 0;
}

/* ─── Platform grid ──────────────────────────────────────────── */
.platforms-section, .related-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-1);
  transition: border-color .2s, transform .2s, background .2s;
  text-align: center;
  position: relative;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--bg-card2);
  text-decoration: none;
}
.platform-card-icon {
  width: 28px; height: 28px;
  color: var(--accent-hi);
}
.platform-card-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-1);
}
.platform-card-label {
  font-size: .75rem;
  color: var(--text-3);
}
.platform-card-arrow {
  width: 14px; height: 14px;
  color: var(--text-3);
  position: absolute;
  top: .75rem;
  right: .75rem;
}
.platform-card:hover .platform-card-arrow { color: var(--accent-hi); }

/* ─── Homepage "Why" grid ────────────────────────────────────── */
.use-cases-grid.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.reason-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.reason-icon {
  width: 22px; height: 22px;
  min-width: 22px;
  color: var(--teal);
  margin-top: .1rem;
}
.reason-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .25rem;
  color: var(--text-1);
}
.reason-desc {
  font-size: .83rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ─── Prose block (description paragraphs) ──────────────────── */
.prose-block p {
  color: var(--text-2);
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: .85rem;
}

/* ─── Responsive: SEO pages ─────────────────────────────────── */
@media (max-width: 700px) {
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .platforms-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .platform-hero h1 { font-size: 1.5rem; }
  .faq-question { font-size: .88rem; padding: .9rem 1rem; }
  .faq-answer { padding: 0 1rem .9rem; }
  .use-cases-grid.home-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Blog System
   ============================================================= */

/* ─── Container narrow (blog articles) ───────────────────────── */
.container--narrow { max-width: 760px; }

/* ─── Blog listing hero ──────────────────────────────────────── */
.blog-listing-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.blog-listing-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: .5rem; }
.blog-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.blog-hero-breadcrumb a { color: var(--text-3); }
.blog-hero-breadcrumb a:hover { color: var(--accent-hi); }
.blog-hero-breadcrumb span:last-child { color: var(--text-2); font-weight: 500; }

/* ─── Blog listing section ──────────────────────────────────── */
.blog-listing-section { padding: 3rem 0 4rem; }

/* ─── Blog grid ─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-grid--related { grid-template-columns: repeat(3, 1fr); }

/* ─── Blog card ─────────────────────────────────────────────── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card-img-wrap {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.blog-card-date,
.blog-card-read-time {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-3);
}
.blog-card-date .feather,
.blog-card-read-time .feather { width: 12px; height: 12px; }

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.blog-card-title a { color: var(--text-1); text-decoration: none; }
.blog-card-title a:hover { color: var(--accent-hi); }

.blog-card-excerpt {
  font-size: .86rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  font-weight: 600;
  color: var(--accent-hi);
  text-decoration: none;
  margin-top: auto;
}
.blog-card-link .feather { width: 13px; height: 13px; transition: transform .2s; }
.blog-card-link:hover .feather { transform: translateX(3px); }
.blog-card-link:hover { text-decoration: none; color: var(--accent-hi); }

/* ─── Blog CTA strip ─────────────────────────────────────────── */
.blog-cta-strip {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(10,207,151,.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.blog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.blog-cta-inner h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .3rem; }
.blog-cta-inner p  { color: var(--text-2); font-size: .93rem; margin: 0; }

/* ─── Blog post hero ─────────────────────────────────────────── */
.blog-post-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.blog-post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.blog-post-read-time {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-3);
}
.blog-post-read-time .feather { width: 13px; height: 13px; }
.blog-post-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .85rem;
}
.blog-post-excerpt {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-post-author-row { padding-top: 1rem; border-top: 1px solid var(--border); }
.blog-post-author {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.blog-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-author-avatar .feather { width: 18px; height: 18px; color: var(--accent-hi); }
.blog-author-name { font-weight: 600; font-size: .9rem; color: var(--text-1); }
.blog-author-date {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-3);
  margin-top: .15rem;
}
.blog-author-date .feather { width: 12px; height: 12px; }

/* ─── Featured image ─────────────────────────────────────────── */
.blog-featured-img-wrap { padding: 2rem 0; }
.blog-featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 440px;
  border: 1px solid var(--border);
  display: block;
}

/* ─── Blog article content ───────────────────────────────────── */
.blog-article { padding-bottom: 4rem; }
.blog-content { line-height: 1.85; }
.blog-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 .85rem; color: var(--text-1); border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.blog-content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 .6rem; color: var(--text-1); }
.blog-content p  { color: var(--text-2); margin-bottom: 1.1rem; font-size: .95rem; }
.blog-content ul,
.blog-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; color: var(--text-2); font-size: .95rem; }
.blog-content li { margin-bottom: .45rem; line-height: 1.7; }
.blog-content strong { color: var(--text-1); }
.blog-content a { color: var(--accent-hi); }

/* Callout / tip boxes */
.blog-callout,
.blog-tip {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: .92rem;
  line-height: 1.65;
}
.blog-callout {
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--text-2);
}
.blog-tip {
  background: rgba(10,207,151,.1);
  border: 1px solid rgba(10,207,151,.3);
  color: var(--text-2);
}
.blog-callout .feather { width: 18px; height: 18px; color: var(--accent-hi); flex-shrink: 0; margin-top: .1rem; }
.blog-tip .feather     { width: 18px; height: 18px; color: var(--teal);       flex-shrink: 0; margin-top: .1rem; }
.blog-callout p,
.blog-tip p { margin: 0; font-size: inherit; color: inherit; }

/* ─── Blog tool widget ───────────────────────────────────────── */
.blog-tool-widget {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.blog-tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.blog-tool-header .feather { width: 22px; height: 22px; color: var(--accent-hi); flex-shrink: 0; margin-top: .15rem; }
.blog-tool-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; color: var(--text-1); }
.blog-tool-header p  { font-size: .83rem; color: var(--text-3); margin: 0; }
.blog-tool-box { max-width: 100%; margin-inline: 0; }
.blog-inbox-card { border-radius: var(--radius); }

/* ─── Blog FAQ ───────────────────────────────────────────────── */
.faq-section--blog { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.faq-section--blog .section-heading { margin-bottom: 1.25rem; }

/* ─── Blog tags ─────────────────────────────────────────────── */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.blog-tag {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: .75rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-weight: 500;
}

/* ─── Related posts section ──────────────────────────────────── */
.related-posts-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card2);
}
.blog-card--small .blog-card-title { font-size: .93rem; }
.blog-card--small .blog-card-excerpt { -webkit-line-clamp: 2; }

/* ─── Blog empty ─────────────────────────────────────────────── */
.blog-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-3);
}

/* ─── Responsive: Blog ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid--related { grid-template-columns: 1fr; }
  .blog-cta-inner { flex-direction: column; text-align: center; }
  .blog-post-hero h1 { font-size: 1.5rem; }
  .blog-featured-img { max-height: 220px; }
  .blog-content h2 { font-size: 1.2rem; }
}

