/* =====================================================================
 * build-common.css — Allied BizTech /build/ shared design system
 * Distinct sub-brand: AMBER + KINETIC for founder/build motion
 * Loaded by all /build/* pages; cached across sessions.
 * ===================================================================== */

/* ===== Base scope ===== */
#abt { font-family: 'Inter', system-ui, sans-serif; color: #1c1917; background: #fefbf3; scroll-behavior: smooth; }
#abt * { box-sizing: border-box; }
#abt h1, #abt h2 { font-family: 'Fraunces', 'Inter Tight', serif; letter-spacing: -0.025em; }
#abt h3, #abt h4 { font-family: 'Inter', sans-serif; letter-spacing: -0.015em; }
#abt .font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
#abt .font-display { font-family: 'Fraunces', serif; }

/* Build accent palette: amber/orange instead of Upstream's blue */
#abt .accent-text { color: #ea580c; }
#abt .accent-bg { background: #ea580c; }
#abt .accent-deep { color: #c2410c; }
#abt .accent-light { color: #fb923c; }

#abt .ink { color: #1c1917; }
#abt .muted { color: #57534e; }
#abt .paper { background: #fefbf3; }
#abt .paper-cream { background: #fef3e2; }
#abt .paper-warm { background: #fff7ed; }

/* ===== Buttons — kinetic, slight rounded, amber-driven ===== */
#abt .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.4rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; transition: all 0.18s ease; text-decoration: none; }
#abt .btn-dark { background: #1c1917; color: white; }
#abt .btn-dark:hover { background: #292524; transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(28,25,23,0.4); }
#abt .btn-line { background: transparent; color: #1c1917; border: 2px solid #1c1917; }
#abt .btn-line:hover { background: #1c1917; color: white; transform: translateY(-2px); }
#abt .btn-accent { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; box-shadow: 0 4px 14px -4px rgba(234,88,12,0.4); }
#abt .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(234,88,12,0.5); }

/* ===== Eyebrow / bullet — square chip instead of round ===== */
#abt .eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #57534e; }
#abt .eyebrow .bullet { width: 7px; height: 7px; border-radius: 2px; background: #ea580c; transform: rotate(45deg); }

/* Twemoji */
#abt img.emoji { height: 1em; width: auto; display: inline-block; vertical-align: -0.12em; margin: 0 1px; }

/* ===== Brand / logo (same as upstream) ===== */
#abt .abt-brand-logo { height: 56px; width: auto; max-width: 280px; display: block; }
@media (max-width: 640px) { #abt .abt-brand-logo { height: 44px; max-width: 200px; } }
@media (max-width: 380px) { #abt .abt-brand-logo { height: 38px; max-width: 160px; } #abt .abt-header .btn { padding: 0.5rem 0.75rem; font-size: 0.78rem; } }

/* ===== Header ===== */
#abt .abt-header { position: sticky; top: 0; z-index: 40; background: rgba(254,251,243,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(28,25,23,0.06); }
#abt .abt-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
#abt .abt-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
#abt .abt-header .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* Service-line nav (cross-link to other Allied services) */
#abt .svc-nav { display: inline-flex; gap: 0.4rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700; }
#abt .svc-nav a { padding: 0.3rem 0.65rem; border-radius: 6px; color: #57534e; text-decoration: none; transition: all 0.15s; letter-spacing: 0.05em; text-transform: uppercase; }
#abt .svc-nav a:hover { background: rgba(234,88,12,0.08); color: #ea580c; }
#abt .svc-nav a.current { background: #1c1917; color: white; }

/* ===== Footer ===== */
#abt .abt-footer { background: #1c1917; color: #d6d3d1; }
#abt .abt-footer h4 { color: #fafaf9; }
#abt .abt-footer a { transition: color 0.15s ease; }
#abt .abt-footer a:hover { color: #fdba74; }
#abt .abt-footer .abt-brand-mark { background: white; color: #1c1917; }

/* ===== Hero — KINETIC: diagonal momentum bars instead of organic blobs ===== */
#abt .hero-momentum { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; opacity: 0.7; }
#abt .hero-momentum::before, #abt .hero-momentum::after { content: ''; position: absolute; }
/* Diagonal bar 1 */
#abt .hero-momentum::before {
  width: 200%; height: 60px; top: 8%; left: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(234,88,12,0.08) 30%, rgba(251,146,60,0.12) 50%, rgba(234,88,12,0.08) 70%, transparent 100%);
  transform: rotate(-12deg);
  animation: bar-drift1 18s ease-in-out infinite;
}
/* Diagonal bar 2 */
#abt .hero-momentum::after {
  width: 200%; height: 80px; bottom: 12%; right: -50%;
  background: linear-gradient(90deg, transparent 0%, rgba(194,65,12,0.06) 30%, rgba(234,88,12,0.1) 50%, rgba(194,65,12,0.06) 70%, transparent 100%);
  transform: rotate(-8deg);
  animation: bar-drift2 22s ease-in-out infinite;
}
@keyframes bar-drift1 { 0%, 100% { transform: rotate(-12deg) translateX(0); } 50% { transform: rotate(-12deg) translateX(60px); } }
@keyframes bar-drift2 { 0%, 100% { transform: rotate(-8deg) translateX(0); } 50% { transform: rotate(-8deg) translateX(-80px); } }

/* ===== Bundle cards (warmer than Upstream cards) ===== */
#abt .bundle-card { background: white; border: 1px solid rgba(28,25,23,0.1); border-radius: 16px; padding: 1.6rem 1.8rem; display: flex; flex-direction: column; height: 100%; transition: all 0.25s; position: relative; overflow: hidden; }
#abt .bundle-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ea580c 0%, #fb923c 50%, #ea580c 100%); opacity: 0; transition: opacity 0.25s; }
#abt .bundle-card:hover { border-color: rgba(234,88,12,0.4); transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(234,88,12,0.18); }
#abt .bundle-card:hover::before { opacity: 1; }
#abt .bundle-card-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ea580c; font-weight: 700; margin-bottom: 0.55rem; display: inline-flex; align-items: center; gap: 0.35rem; }
#abt .bundle-card-tag::before { content: ''; width: 6px; height: 6px; background: #ea580c; transform: rotate(45deg); display: inline-block; }
#abt .bundle-card-h { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: #1c1917; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
#abt .bundle-card-body { font-size: 0.88rem; color: #57534e; line-height: 1.55; margin-bottom: 1rem; flex-grow: 1; }
#abt .bundle-card-tools { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: #57534e; line-height: 1.5; margin-bottom: 0.85rem; padding: 0.6rem 0.85rem; background: rgba(234,88,12,0.04); border-radius: 8px; border-left: 3px solid #ea580c; }
#abt .bundle-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; padding: 0.85rem 0; border-top: 1px dashed rgba(28,25,23,0.12); border-bottom: 1px dashed rgba(28,25,23,0.12); margin-bottom: 1rem; }
#abt .bundle-card-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #78716c; font-weight: 700; margin-bottom: 0.2rem; }
#abt .bundle-card-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 800; color: #1c1917; }
#abt .bundle-card-stat-val.accent { color: #ea580c; }
#abt .bundle-card-link { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #ea580c; font-weight: 700; text-decoration: none; margin-top: auto; }
#abt .bundle-card-link:hover { text-decoration: underline; }

/* ===== Pricing tiers ===== */
#abt .tier-card { background: white; border: 1px solid rgba(28,25,23,0.1); border-radius: 16px; padding: 1.8rem 2rem; display: flex; flex-direction: column; height: 100%; transition: all 0.2s; }
#abt .tier-card.featured { border: 2px solid #ea580c; padding: calc(1.8rem - 1px) calc(2rem - 1px); box-shadow: 0 0 0 6px rgba(234,88,12,0.06), 0 16px 40px -12px rgba(234,88,12,0.2); position: relative; }
#abt .tier-card.featured::before { content: 'BEST FIT'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; padding: 0.25rem 0.7rem; border-radius: 4px; }
#abt .tier-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ea580c; font-weight: 700; margin-bottom: 0.5rem; }
#abt .tier-h { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: #1c1917; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
#abt .tier-amt { font-family: 'JetBrains Mono', monospace; font-size: 2.4rem; font-weight: 800; color: #1c1917; line-height: 1; margin: 0.6rem 0 0.3rem; }
#abt .tier-amt .small { font-size: 0.95rem; color: #57534e; font-weight: 600; }
#abt .tier-amt-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #78716c; margin-bottom: 1.2rem; }
#abt .tier-includes { font-size: 0.88rem; color: #57534e; line-height: 1.7; padding: 1rem 0; border-top: 1px dashed rgba(28,25,23,0.12); border-bottom: 1px dashed rgba(28,25,23,0.12); margin-bottom: 1.2rem; flex-grow: 1; }
#abt .tier-includes ul { list-style: none; padding: 0; margin: 0; }
#abt .tier-includes li { padding: 0.2rem 0; padding-left: 1.4rem; position: relative; }
#abt .tier-includes li::before { content: '→'; position: absolute; left: 0; color: #ea580c; font-family: 'JetBrains Mono', monospace; font-weight: 800; }

/* ===== Method / momentum steps ===== */
#abt .momentum-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 768px) { #abt .momentum-grid { grid-template-columns: repeat(4, 1fr); } }
#abt .momentum-step { background: white; border: 1px solid rgba(28,25,23,0.1); border-radius: 12px; padding: 1rem 1.1rem; position: relative; transition: all 0.2s; }
#abt .momentum-step:hover { transform: translateY(-2px); border-color: rgba(234,88,12,0.4); }
#abt .momentum-step-num { position: absolute; top: -12px; right: 14px; width: 28px; height: 28px; background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; border-radius: 6px; transform: rotate(45deg); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
#abt .momentum-step-num span { transform: rotate(-45deg); }
#abt .momentum-step-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: #ea580c; font-weight: 700; text-transform: uppercase; }
#abt .momentum-step-h { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: #1c1917; line-height: 1.2; margin: 0.3rem 0 0.4rem; letter-spacing: -0.01em; }
#abt .momentum-step-detail { font-size: 0.78rem; color: #57534e; line-height: 1.45; }

/* ===== Stat tile ===== */
#abt .stat-tile { background: white; border: 1px solid rgba(28,25,23,0.1); border-radius: 12px; padding: 1.2rem 1.3rem; text-align: center; }
#abt .stat-tile-num { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 800; color: #1c1917; line-height: 1; letter-spacing: -0.02em; }
#abt .stat-tile-num .accent { color: #ea580c; }
#abt .stat-tile-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #57534e; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.4rem; font-weight: 700; }

/* ===== Reveal animation ===== */
#abt .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
#abt .reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Reading progress (amber) ===== */
#abt-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, #c2410c, #fb923c); z-index: 100; pointer-events: none; transition: width 0.06s linear; box-shadow: 0 0 8px rgba(234,88,12,0.4); }

#abt [data-counter] { font-variant-numeric: tabular-nums; }

/* ===== Sticky CTA ===== */
#abt-sticky-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; opacity: 0; transform: translateY(20px) scale(0.96); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
#abt-sticky-cta.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#abt-sticky-cta a { box-shadow: 0 14px 36px -8px rgba(234,88,12,0.5), 0 4px 12px rgba(0,0,0,0.08); padding: 0.85rem 1.3rem; font-size: 0.88rem; }

/* ===== Details / FAQ ===== */
#abt details > summary { list-style: none; cursor: pointer; }
#abt details > summary::-webkit-details-marker { display: none; }
#abt details[open] summary .chev { transform: rotate(180deg); }
#abt .chev { transition: transform 0.2s ease; display: inline-block; }

/* ===== Cross-link strip ===== */
#abt .xlink-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
#abt .xlink-chip { padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: #1c1917; background: white; border: 1.5px solid rgba(28,25,23,0.1); transition: all 0.15s; text-decoration: none; }
#abt .xlink-chip:hover { border-color: #ea580c; color: #ea580c; transform: translateY(-1px); }

/* ===== Loss-line ===== */
.loss-line { font-size: 0.78rem; color: #fca5a5; margin-top: 0.6rem; line-height: 1.4; }
.loss-line strong { color: #fda4af; }

/* ===== Mobile responsive overrides (end-of-cascade) ===== */
@media (max-width: 640px) {
  #abt .abt-header-inner { padding: 0.65rem 0; }
  #abt .abt-header .btn { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
  #abt .abt-brand { gap: 0.5rem; }
  #abt .svc-nav { display: none; }
}
@media (max-width: 380px) {
  #abt .abt-header .btn { padding: 0.45rem 0.7rem; font-size: 0.75rem; letter-spacing: -0.01em; }
}
