/*
Theme Name: Ingestics Child
Theme URI: https://autoapiwp.com/
Description: GeneratePress child theme for the Ingestics website. Design tokens and components from the approved homepage mockup (design/mockups/home.html). Marketing pages use PHP page templates; blog/docs content stays Classic Editor with styled typography.
Author: AutoAPIWP
Author URI: https://autoapiwp.com/about/
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ingestics-child
*/

/* ==========================================================================
   Design tokens — single source of truth (design/BRAND.md)
   ========================================================================== */
:root {
  --brand-700: #083f60;
  --brand-600: #0b5e8e;
  --brand-500: #1478b3;
  --brand-100: #e3f0f8;
  --accent-600: #e07600;
  --accent-500: #ff8a00;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --surface-0: #ffffff;
  --surface-1: #f8fafc;
  --dark-900: #0b1220;
  --ok-600: #15803d;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgb(15 23 42 / .08);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --content-max: 1200px;
  --prose-max: 720px;
}

/* Self-hosted fonts — files added at deploy: assets/fonts/inter-var.woff2, jetbrains-mono.woff2 */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

/* ==========================================================================
   Base typography (overrides GeneratePress defaults)
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface-0);
}
h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(33px, 5vw, 52px); }
h2 { font-size: clamp(27px, 3.5vw, 33px); }
h3 { font-size: 21px; font-weight: 650; }
a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }

/* ==========================================================================
   Shared layout primitives (used by page templates)
   ========================================================================== */
.ing-wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.ing-section { padding: 64px 0; }
.ing-section--alt { background: var(--surface-1); }
.ing-section--dark { background: var(--dark-900); color: #cbd5e1; }
.ing-section--dark h2, .ing-section--dark h3 { color: #f1f5f9; }
@media (max-width: 768px) { .ing-section { padding: 40px 0; } }

.ing-eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 12px;
}
.ing-section--dark .ing-eyebrow { color: #7dd3fc; }
.ing-sub { font-size: 19px; color: var(--ink-500); max-width: var(--prose-max); }
.ing-section--dark .ing-sub { color: #94a3b8; }

/* Buttons */
.ing-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  border: 1.5px solid transparent; cursor: pointer;
}
.ing-btn--primary { background: var(--brand-600); color: #fff; }
.ing-btn--primary:hover { background: var(--brand-700); color: #fff; }
.ing-btn--accent { background: var(--accent-500); color: var(--ink-900); }
.ing-btn--accent:hover { background: var(--accent-600); color: #fff; }
.ing-btn--ghost { border-color: #cbd5e1; color: var(--ink-900); background: transparent; }
.ing-btn--ghost:hover { border-color: var(--brand-600); color: var(--brand-600); }

/* Badges */
.ing-badge {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700);
}
.ing-badge--accent { background: #fff3e0; color: #9a4b00; }

/* Cards */
.ing-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
}
.ing-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ing-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 920px) { .ing-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ing-grid-3, .ing-grid-2 { grid-template-columns: 1fr; } }

/* CTA row */
.ing-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Classic Editor content typography (posts, docs — no shortcodes needed)
   ========================================================================== */
.single .entry-content,
.page .entry-content--prose {
  max-width: var(--prose-max);
  margin-left: auto; margin-right: auto;
}
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.15em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-content blockquote {
  border-left: 3px solid var(--accent-500);
  padding: 8px 20px; background: var(--surface-1);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-700); font-style: normal;
}
.entry-content code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--surface-1); border: 1px solid #e2e8f0;
  border-radius: 4px; padding: 1px 6px;
}
.entry-content pre {
  background: var(--dark-900); color: #e2e8f0;
  border-radius: var(--radius-lg); padding: 18px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  overflow-x: auto;
}
.entry-content pre code { background: none; border: 0; color: inherit; padding: 0; }
.entry-content table {
  width: 100%; border-collapse: collapse; font-size: 15.5px;
  display: block; overflow-x: auto;
}
.entry-content th {
  text-align: left; background: var(--surface-1);
  color: var(--ink-900); font-weight: 600;
}
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid #e2e8f0; }

/* ==========================================================================
   Shortcode components (Classic Editor building blocks — inc/shortcodes.php)
   ========================================================================== */
/* [ing_cta] */
.ing-sc-cta {
  background: linear-gradient(120deg, var(--brand-700), var(--brand-600));
  border-radius: 16px; padding: 40px 32px; text-align: center;
  color: #fff; margin: 2.5em 0;
}
.ing-sc-cta h2, .ing-sc-cta h3 { color: #fff; margin: 0 0 8px; }
.ing-sc-cta p { color: #d6e8f5; margin: 0 auto 22px; max-width: 560px; }

/* [ing_notice] */
.ing-sc-notice {
  display: flex; gap: 12px; padding: 16px 20px; margin: 1.5em 0;
  border-radius: var(--radius); border: 1px solid; font-size: 15.5px;
}
.ing-sc-notice--info { background: var(--brand-100); border-color: #b5d5ea; color: #083f60; }
.ing-sc-notice--tip { background: #f0fdf4; border-color: #bbe7c8; color: #14532d; }
.ing-sc-notice--warn { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }

/* [ing_faq] accordion */
.ing-sc-faq { max-width: var(--prose-max); margin: 1.5em auto; }
.ing-sc-faq details { border-bottom: 1px solid #e2e8f0; padding: 16px 0; }
.ing-sc-faq summary {
  font-weight: 600; color: var(--ink-900); cursor: pointer; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.ing-sc-faq summary::after { content: "+"; color: var(--brand-600); font-weight: 700; }
.ing-sc-faq details[open] summary::after { content: "\2013"; }
.ing-sc-faq details > div { margin-top: 10px; font-size: 16px; }

/* [ing_tier_badge] */
.ing-sc-tier { vertical-align: middle; }

/* ==========================================================================
   Page-template components (from approved mockup design/mockups/home.html)
   ========================================================================== */
/* Hero */
.ing-hero { background: linear-gradient(180deg, var(--surface-1), var(--surface-0)); padding: 80px 0 64px; }
.ing-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .ing-hero-grid { grid-template-columns: 1fr; } }
.ing-hero .ing-sub { margin: 20px 0 28px; }
.ing-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--ink-500); align-items: center; }
.ing-trust .ing-stars { color: var(--accent-500); letter-spacing: 2px; }
.ing-trust strong { color: var(--ink-900); }
.ing-trust-bar { font-size: 14.5px; color: var(--ink-500); }

/* Pipeline diagram */
.ing-pipeline { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; margin: 0; }
.ing-pipe-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.ing-pipe-sources, .ing-pipe-out { display: flex; flex-direction: column; gap: 10px; }
.ing-pipe-node { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13.5px; background: var(--surface-1); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 8px 12px; color: var(--ink-700); }
.ing-pipe-node .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); flex: none; }
.ing-pipe-core { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; }
.ing-pipe-core .ing-mark { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.ing-pipe-core .label { font-weight: 650; font-size: 14px; color: var(--ink-900); }
.ing-pipe-ops { font-size: 12px; color: var(--ink-500); }
.ing-post-card { background: var(--surface-1); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 8px 12px; font-size: 13.5px; }
.ing-post-card b { display: block; color: var(--ink-900); }
.ing-post-card span { color: var(--ok-600); font-size: 12.5px; font-weight: 600; }
.ing-flow { stroke: var(--accent-500); stroke-width: 2; fill: none; stroke-dasharray: 6 5; animation: ing-flow 1.4s linear infinite; }
@keyframes ing-flow { to { stroke-dashoffset: -11; } }
.ing-pipe-caption { text-align: center; font-size: 13.5px; color: var(--ink-500); margin-top: 16px; }

/* Feature cards */
.ing-card h3 { margin: 14px 0 8px; font-size: 18.5px; }
.ing-card p { font-size: 15.5px; }
.ing-card .tier { margin-top: 12px; }
.ing-card--tint { background: var(--surface-1); }
.ing-grid-3 { margin-top: 36px; }

/* Code cards (dark section) */
.ing-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; align-items: start; }
@media (max-width: 840px) { .ing-code-grid { grid-template-columns: 1fr; } }
.ing-code-card { background: #111a2e; border: 1px solid #24324d; border-radius: var(--radius-lg); overflow: hidden; }
.ing-code-head { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #24324d; font-family: var(--font-mono); font-size: 12.5px; color: #94a3b8; }
.ing-code-card pre { padding: 18px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; color: #e2e8f0; background: none; margin: 0; }

/* Steps */
.ing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 840px) { .ing-steps { grid-template-columns: 1fr; } }
.ing-step { padding: 24px; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); background: #fff; }
.ing-step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-500); color: var(--ink-900); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ing-step h3 { margin: 14px 0 6px; font-size: 18.5px; }
.ing-step p { font-size: 15.5px; }

/* Security section */
.ing-sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 840px) { .ing-sec-grid { grid-template-columns: 1fr; } }
.ing-sec-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; padding: 0; }
.ing-sec-list li { display: flex; gap: 12px; font-size: 16px; }
.ing-sec-list .chk { color: var(--ok-600); font-weight: 700; flex: none; }

/* Use-case chips */
.ing-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ing-chip { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 15px; color: var(--ink-700); text-decoration: none; }
.ing-chip:hover { border-color: var(--brand-600); color: var(--brand-600); }

/* Tier cards */
.ing-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
@media (max-width: 1000px) { .ing-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ing-tiers { grid-template-columns: 1fr; } }
.ing-tier-card { border: 1px solid #e2e8f0; border-radius: var(--radius-lg); padding: 26px 22px; background: #fff; display: flex; flex-direction: column; position: relative; }
.ing-tier-card--pop { border: 2px solid var(--brand-600); box-shadow: 0 4px 16px rgb(11 94 142 / .12); }
.ing-pop-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-600); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.ing-tier-card h3 { font-size: 19px; }
.ing-tier-card .for { font-size: 14px; color: var(--ink-500); margin: 4px 0 14px; min-height: 42px; }
.ing-tier-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; margin: 0 0 22px; padding: 0; }
.ing-tier-card li::before { content: "✓ "; color: var(--ok-600); font-weight: 700; }
.ing-tier-card .ing-btn { margin-top: auto; justify-content: center; }
.ing-guarantee { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 32px; font-size: 14.5px; color: var(--ink-500); }
.ing-guarantee b { color: var(--ink-900); }

/* Feature matrix */
.ing-matrix-group { margin-top: 40px; }
.ing-matrix-scroll { overflow-x: auto; margin-top: 14px; }
.ing-matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.ing-matrix th, .ing-matrix td { padding: 10px 14px; border: 1px solid #e2e8f0; text-align: center; }
.ing-matrix thead th { background: var(--surface-1); color: var(--ink-900); }
.ing-matrix tbody th { text-align: left; font-weight: 500; color: var(--ink-700); }
.ing-cell-yes { color: var(--ok-600); font-weight: 700; }
.ing-cell-no { color: #cbd5e1; }

/* Hub cards */
.ing-card--link { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.ing-card--link:hover { border-color: var(--brand-600); }
.ing-card--link h3 { color: var(--brand-600); margin-top: 0; }

/* Checkout embed container */
.ing-checkout-embed { max-width: 900px; margin: 32px auto 0; }

/* Nav CTA + footer */
.ing-nav-cta { display: inline-flex; gap: 10px; align-items: center; margin-left: 18px; }
.ing-nav-cta .ing-btn { padding: 8px 16px; font-size: 15px; }
@media (max-width: 920px) { .ing-nav-cta .ing-btn--ghost { display: none; } }
.ing-footer { background: var(--dark-900); color: #94a3b8; padding: 56px 0 32px; font-size: 15px; }
.ing-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 840px) { .ing-foot-grid { grid-template-columns: 1fr 1fr; } }
.ing-footer h4 { color: #f1f5f9; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.ing-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.ing-footer a { color: #94a3b8; text-decoration: none; }
.ing-footer a:hover { color: #e2e8f0; }
.ing-foot-logo { font-weight: 700; font-size: 20px; color: #f1f5f9; }
.ing-foot-brand p { margin-top: 12px; font-size: 14px; max-width: 280px; }
.ing-foot-base { border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
