/* Fully Automated Things - site-level additions.
   Loaded AFTER /autotipmap/style.css, which supplies the shared design system (tokens, navbar,
   hero, buttons, cards, article layout, footer). Keeping one source of truth is what makes the
   site uniform; this file only adds components the app pages never needed.
   Light mode only, matching the rest of the site. */

/* ---------- brand mark ---------- */
.site-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.site-mark svg, .site-mark img { width: 100%; height: 100%; display: block; }

.footer-brand .site-mark { width: 40px; height: 40px; }

/* ---------- nav ---------- */
.nav-links a.active { color: var(--primary); }

/* ---------- hub hero (shorter than the app hero) ---------- */
.hub-hero {
  padding: 140px 0 64px;
  background: linear-gradient(160deg, #FAFAF9 0%, #EEF2FF 50%, #E0E7FF 100%);
}
.hub-hero h1 { font-size: 44px; margin-bottom: 16px; max-width: 760px; }
.hub-hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}
.hub-hero .hero-actions { margin-top: 28px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ---------- card sections ---------- */
.hub-section { padding: 72px 0; }
.hub-section + .hub-section { padding-top: 0; }
.hub-section .section-title { text-align: left; }
.hub-section .section-subtitle { text-align: left; margin-left: 0; margin-bottom: 32px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.tool-card .card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-secondary);
}
.pill-paid { background: #EEF2FF; color: var(--primary); }
.pill-free { background: #ECFDF5; color: #047857; }
.tool-card h3 { margin-bottom: 8px; }
.tool-card p { color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }
.tool-card:hover { border-color: var(--secondary); box-shadow: 0 6px 24px rgba(79, 70, 229, 0.08); transform: translateY(-2px); }
.card-icon-img { width: 48px; height: 48px; border-radius: 11px; margin-bottom: 16px; }

/* ---------- about block ---------- */
.about-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 820px;
}
.about-block p { color: var(--text-secondary); font-size: 17px; line-height: 1.7; margin-bottom: 14px; }
.about-block p:last-child { margin-bottom: 0; }

/* ---------- guide article extras (inside .blog-post-body) ---------- */
.guide-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.blog-post-body h3 { font-size: 17px; margin: 24px 0 10px; }
.blog-post-body code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-word;
}
.blog-post-body pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
}
.blog-post-body pre code { background: none; padding: 0; color: inherit; }
.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}
.blog-post-body th, .blog-post-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.blog-post-body th { background: var(--surface-alt); font-weight: 600; }

.callout {
  border-left: 4px solid var(--primary);
  background: #EEF2FF;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--warning); background: #FFFBEB; }

.toc {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: 2px;
}

.deploy-box {
  text-align: center;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 20px;
}
.deploy-box img { height: 32px; }
/* About five lines of the bridge code; scroll to read the rest. */
.blog-post-body pre.code-peek {
  text-align: left;
  height: calc(5 * 1.55em + 24px + 14px); /* + room for the horizontal scrollbar */
  overflow: auto;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  white-space: pre;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

@media (max-width: 640px) {
  .hub-hero { padding: 112px 0 48px; }
  .hub-hero h1 { font-size: 32px; }
  .hub-hero p.lead { font-size: 17px; }
  .hub-section { padding: 48px 0; }
  .about-block { padding: 24px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- site chrome: slim top bar + left flyout drawer ----------
   Site-level pages only. /autotipmap/ keeps its own navbar and footer because it serves the
   app's customers, who have no interest in the rest of the site. */
.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-topbar-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.site-menu-btn {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0;
}
.site-menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.site-menu-btn:hover { border-color: var(--secondary); }
.site-menu-btn:focus-visible, .site-close:focus-visible, .drawer-link:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

.site-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.2s;
}
.site-backdrop.open { opacity: 1; }

.site-drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 300px; max-width: 86vw;
  background: var(--surface);
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  padding: 18px 16px 28px;
  overflow-y: auto;
  visibility: hidden;
}
.site-drawer.open { transform: translateX(0); visibility: visible; }
.site-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.site-close {
  width: 38px; height: 38px;
  border: none; border-radius: 9px;
  background: var(--surface-alt);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--text);
}
.drawer-group { margin: 14px 0 6px; }
.drawer-label {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0 12px; margin-bottom: 4px;
}
.drawer-link {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.drawer-link:hover { background: var(--surface-alt); }
.drawer-link.drawer-sub { font-weight: 400; padding-left: 24px; color: var(--text-secondary); }
.drawer-link[aria-current="page"] { background: #EEF2FF; color: var(--primary); }
body.drawer-open { overflow: hidden; }

.blog-post-page { padding-top: 104px; }
@media (prefers-reduced-motion: reduce) {
  .site-drawer, .site-backdrop { transition: none; }
}

/* download / copy box on the guide */
.deploy-box .btn { margin: 4px 6px; }
.deploy-note { font-size: 14px; color: var(--text-secondary); margin: 12px 0 0 !important; }
