/* ibuildrigs v2: hardware + software. Loaded after site.css (and home.css where used).
   Uses the same tokens as site.css, so light and dark themes work unchanged. */

/* ---------- Header: six links fit from 1000px; below that the menu button takes over ---------- */
@media (max-width: 1000px) and (min-width: 901px) { .nav-links { gap: 20px; } }

/* ---------- Footer: five columns ---------- */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Small label above headings ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--text-dim); margin-bottom: 14px; }
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--text); transform: rotate(45deg); }

/* ---------- Shared bits kept from round 1 ---------- */
.pillar-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 420px) { .pillar-ctas .btn { flex: 1 1 auto; } }
.svc-note { color: var(--text-dim); font-size: 14px; margin-top: 18px; }

/* ---------- Software page ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--text-dim); padding-top: 28px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sw-hero { padding: 40px 0 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
@media (max-width: 900px) { .sw-hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 56px; } }
.sw-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); max-width: 700px; }
.sw-hero .hero-lede { margin-bottom: 30px; }
.sw-jump { border: 1px solid var(--line); }
.sw-jump p { font-size: 13px; color: var(--text-dim); padding: 14px 18px 0; }
.sw-jump ul { list-style: none; padding: 6px 0; }
.sw-jump a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-weight: 500; font-size: 15px; border-top: 1px solid var(--line-soft); }
.sw-jump li:first-child a { border-top: 0; }
.sw-jump a::after { content: "↓" / ""; color: var(--text-dim); transition: transform .15s ease; }
.sw-jump a:hover { background: var(--bg-panel); }
.sw-jump a:hover::after { transform: translateY(2px); }

.products { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }
.product { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.product + .product { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .product + .product { border-left: 0; border-top: 1px solid var(--line); } }
.product .tier-top { margin-bottom: 4px; }
.product .tier-badge { font-family: var(--font-mono); font-weight: 400; color: var(--text-dim); border-color: var(--line); }
.product p { color: var(--text-dim); font-size: 15px; margin: 6px 0 18px; }
.product .spec-list { flex: 1; }
.product .pillar-ctas { margin-top: 0; }

.sw-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
@media (max-width: 860px) { .sw-why { grid-template-columns: 1fr; } }
.sw-why > div { padding: 24px 26px 26px; min-width: 0; }
.sw-why > div + div { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .sw-why > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.sw-why h3 { font-size: 17px; margin-bottom: 8px; }
.sw-why p { color: var(--text-dim); font-size: 15px; }

/* "What do you need?" chips above the contact form on the software page */
.need { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.need legend { font-size: 13.5px; font-weight: 500; color: var(--text-dim); margin-bottom: 9px; padding: 0; }

/* ===== Round 2: professional pass ===== */

/* Hero: the builds link stays in the "Recent builds" section, so the hero keeps two buttons and never shifts. */
#heroBuildsCta { display: none !important; }

/* Two routes: PCs or software */
.routes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }
.route { display: flex; flex-direction: column; gap: 10px; padding: 34px 32px 30px; min-height: 250px; color: inherit; transition: background-color .2s ease; }
.route + .route { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .route + .route { border-left: 0; border-top: 1px solid var(--line); } .route { min-height: 0; padding: 26px 20px; } }
.route:hover { background: var(--bg-panel); }
.route .kicker { margin-bottom: 4px; }
.route-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.015em; line-height: 1.1; }
.route-text { color: var(--text-dim); font-size: 15.5px; max-width: 460px; flex: 1; }
.route-go { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.route-go::after { content: "→" / ""; transition: transform .15s ease; }
.route:hover .route-go::after { transform: translateX(4px); }

/* Software index list (home) */
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 200px minmax(0, 1fr) 112px; gap: 8px 32px; align-items: baseline; padding: 22px 0; color: inherit; transition: background-color .15s ease; }
.index-list a:hover { background: var(--bg-panel); }
.ix-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.index-list a:hover .ix-title, .index-list a:focus-visible .ix-title { transform: translateX(6px); }
.ix-text { color: var(--text-dim); font-size: 15px; }
.ix-tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); border: 1px solid var(--line); padding: 1px 8px; border-radius: var(--radius); white-space: nowrap; justify-self: end; }
@media (max-width: 760px) { .index-list a { grid-template-columns: 1fr auto; } .ix-text { grid-column: 1 / -1; order: 3; } }

/* Process as a bordered row */
.steps-boxed { border: 1px solid var(--line); }
.steps-boxed li { padding: 24px 24px 26px; }
.steps-boxed li + li { border-left: 1px solid var(--line); }
.steps-boxed .step-num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--line-strong); letter-spacing: -0.02em; margin-bottom: 12px; }
.steps-boxed .step-num::after { display: none; }
@media (max-width: 900px) { .steps-boxed { row-gap: 0; } .steps-boxed li + li { border-left: 0; } .steps-boxed li:nth-child(even) { border-left: 1px solid var(--line); } .steps-boxed li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps-boxed li:nth-child(even) { border-left: 0; } .steps-boxed li + li { border-top: 1px solid var(--line); } }

/* About: built in-house */
.inhouse { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.inhouse li { font-family: var(--font-mono); font-size: 12.5px; border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--radius); }

/* FAQ groups */
.faq-group { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--text-dim); padding: 26px 0 6px; border-bottom: 1px solid var(--line); }
.faq .faq-group:first-child { padding-top: 14px; }
.faq { border-top: 0; }

/* Software page: FireflakeERP */
.anchor { display: block; height: 0; }
.section-head.wide { max-width: 820px; }
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 44px; }
.spec-strip > div { padding: 18px 20px 20px; min-width: 0; }
.spec-strip > div + div { border-left: 1px solid var(--line); }
.spec-strip dt { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.spec-strip dd { font-size: 15px; font-weight: 500; }
@media (max-width: 900px) { .spec-strip { grid-template-columns: 1fr 1fr; } .spec-strip > div:nth-child(3) { border-left: 0; } .spec-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .spec-strip { grid-template-columns: 1fr; } .spec-strip > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.grid-title { font-size: 18px; margin-bottom: 14px; }
.modules, .trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 44px; }
.trust { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }
.modules li, .trust li { padding: 18px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.modules b, .trust b { font-weight: 600; font-size: 15px; }
.modules span, .trust span { color: var(--text-dim); font-size: 14px; }
@media (max-width: 1000px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .modules { grid-template-columns: 1fr; } }
.setup { font-size: 15px; max-width: 760px; margin-bottom: 10px; }
.later { font-size: 14px; color: var(--text-dim); margin-bottom: 22px; }

/* Software page: services as bordered cells, no grey panels */
.services { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.service { padding: 30px 30px 30px; display: flex; flex-direction: column; min-width: 0; }
.service + .service { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .service + .service { border-left: 0; border-top: 1px solid var(--line); } .service { padding: 24px 20px; } }
.service h3 { font-size: 21px; }
.service .lead { color: var(--text-dim); font-size: 15.5px; margin-top: 10px; }
.service .for { font-size: 14px; color: var(--text-dim); margin-top: 14px; }
.service .for strong { color: var(--text); font-weight: 600; }
.service .checks { list-style: none; margin: 18px 0 24px; flex: 1; }
.service .checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.service .checks svg { width: 16px; height: 16px; margin-top: 4px; }
.service .btn { align-self: flex-start; }

/* Configurator: static explainer under the tool (also gives search engines real text) */
.cfg-about { border-top: 1px solid var(--line); margin-top: 56px; padding: 40px 0 72px; }
.cfg-about h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 18px; }
.cfg-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .cfg-about-grid { grid-template-columns: 1fr; gap: 24px; } }
.cfg-about .prose { padding-bottom: 0; }
.cfg-faq { border-top: 1px solid var(--line); }
.cfg-faq details { border-bottom: 1px solid var(--line); }
.cfg-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.cfg-faq summary::-webkit-details-marker { display: none; }
.cfg-faq summary::after { content: "+"; color: var(--text-dim); font-family: var(--font-mono); }
.cfg-faq details[open] summary::after { content: "−"; }
.cfg-faq p { color: var(--text-dim); font-size: 15px; padding: 0 0 18px; }

/* Phones: hero and section buttons line up full width */
@media (max-width: 560px) { .hero-ctas .btn { flex: 1 1 100%; } }

/* ===== Round 3: critic fixes and motion pass ===== */

/* One label size everywhere (home.css styles every .section-head p at body size) */
.section-head .kicker, .about-copy .kicker { font-size: 12.5px; margin-top: 0; color: var(--text-dim); max-width: none; }

/* Tablet: the headline leads; the logo graphic only shows beside it on wide screens */
@media (max-width: 900px) { .hero-graphic { display: none; } }
.hero-facts dd { text-wrap: balance; }

/* Micro-interactions: transform and opacity only, never layout properties */
.route { transition: background-color .2s ease, transform .12s ease; }
.route:active { transform: translateY(1px); }
.route:hover .route-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.product, .service { transition: background-color .2s ease; }
.modules li { transition: background-color .2s ease; }
.modules li:hover { background: var(--bg-panel); }

/* Touch targets: 44px tall chips, jump links and FAQ rows */
.chip span { min-height: 44px; }
.faq summary { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .route, .route:active, .ix-title, .index-list a:hover .ix-title, .sw-jump a::after { transition: none; transform: none; }
}

/* ===== Overview home (17 Nov): hero + two paths + promises + one closing ask ===== */
.home-hero { min-height: min(72vh, 640px); align-items: center; }
.hero-cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.hero-cue span { transition: transform .2s ease; }
.hero-cue:hover { color: var(--text); }
.hero-cue:hover span { transform: translateY(3px); }

.paths-section { padding-top: 8px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }
.path { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); min-width: 0; position: relative; transition: background-color .25s ease; }
.path + .path { border-left: 1px solid var(--line); }
@media (max-width: 820px) { .path + .path { border-left: 0; border-top: 1px solid var(--line); } }
.path:hover { background: var(--bg-panel); }
.path-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin: 0 0 18px; }
.path h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 16px; }
.path-text { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 46ch; margin: 0 0 22px; }
.path-points { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line-soft); }
.path-points li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.path-points li::before { content: ""; width: 9px; height: 10px; flex-shrink: 0; background: var(--text); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.path-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
@media (max-width: 420px) { .path-ctas .btn { flex: 1 1 100%; } }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principles > div { padding: 24px 26px 26px; min-width: 0; }
.principles > div + div { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .principles > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.principles h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.principles p { color: var(--text-dim); font-size: 15px; margin: 0; }

.closing { padding-bottom: clamp(56px, 8vw, 96px); }
.closing-box { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; border: 1px solid var(--text); padding: clamp(24px, 4vw, 40px); }
.closing-box h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.closing-box p { color: var(--text-dim); margin: 0; }
@media (prefers-reduced-motion: reduce) { .hero-cue span { transition: none; } }
