/* Solution components shared by the homepage, /solutions and every solution page.
   The markup is generated by build_offers.py from offers/. */
.sol-roles, .sol-catalog, .sol-free-banner { font-family: 'Jetbrains Mono', monospace; }
.sol-tag { display: block; margin-bottom: 0.3rem; font-size: 0.64rem; letter-spacing: 2px; text-transform: uppercase; color: #a78bfa; }

/* Role finder: pick a role, see its problems */
.sol-roles { margin: 0 0 3.5rem; }
.sol-role-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1.5rem; }
.sol-role-tab, .sol-role-links a {
  padding: 0.55rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); font: inherit; font-size: 0.78rem; line-height: 1.2; color: rgba(255, 255, 255, 0.8);
  text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sol-role-tab:hover, .sol-role-links a:hover { border-color: rgba(167, 139, 250, 0.6); color: #fff; }
/* The homepage's roles: the same pills, each opening that role's problems on /solutions */
.sol-role-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 3.5rem; font-family: 'Jetbrains Mono', monospace; }
.sol-role-tab[aria-selected="true"] { background: #fff; border-color: #fff; color: #000; }
.sol-role-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.sol-role-panel[hidden] { display: none; }
.sol-problem {
  position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.25rem 1.3rem 1.3rem;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sol-problem:hover { border-color: rgba(167, 139, 250, 0.55); background: rgba(167, 139, 250, 0.07); transform: translateY(-2px); }
.sol-problem-text { padding-right: 2.4rem; font-size: 0.95rem; font-weight: 600; line-height: 1.5; }
.sol-problem-fix { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.76rem; line-height: 1.55; color: rgba(255, 255, 255, 0.65); }

/* Catalog: solutions by category, as cards with a thumbnail of the result */
.sol-catalog { display: grid; gap: 2.75rem; margin: 0 0 3.5rem; }
.sol-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin: 0 0 1rem; }
.sol-cat-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.sol-cat-tagline { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sol-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sol-card:hover { border-color: rgba(167, 139, 250, 0.55); background: rgba(167, 139, 250, 0.07); transform: translateY(-2px); }
.sol-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sol-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.sol-card:hover .sol-thumb img { transform: scale(1.04); }
.sol-body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.15rem 1.2rem; }
.sol-title { display: block; margin: 0 0 0.45rem; font-size: 0.9rem; font-weight: 700; line-height: 1.4; }
.sol-text { display: block; font-size: 0.78rem; line-height: 1.65; color: rgba(255, 255, 255, 0.65); }
.sol-free { display: block; margin-top: auto; padding-top: 0.85rem; font-size: 0.72rem; line-height: 1.5; color: rgba(134, 239, 172, 0.95); }

/* Homepage preview: one card per kind of work, linking into /solutions */
.sol-cat { scroll-margin-top: 1.5rem; }
.sol-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 0 0 1.75rem; font-family: 'Jetbrains Mono', monospace; }
.sol-kind {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sol-kind:hover { border-color: rgba(167, 139, 250, 0.55); background: rgba(167, 139, 250, 0.07); transform: translateY(-2px); }
.sol-kind:hover .sol-thumb img { transform: scale(1.04); }
.sol-kind-body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem 1.15rem; }
.sol-kind-title { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; }
.sol-kind-tagline { margin: 0 0 0.9rem; font-size: 0.76rem; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }
.sol-kind-list { margin-top: auto; font-size: 0.72rem; line-height: 1.7; color: #c4b5fd; }
.sol-see-all-wrap { margin: 0 0 3.5rem; text-align: center; }
.sol-see-all {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.4rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0.3rem;
  color: #fff; font-family: Neopixel, monospace; font-size: 1.1rem; line-height: 1; text-transform: uppercase; text-decoration: none; transition: background 0.2s ease;
}
.sol-see-all:hover { background: rgba(255, 255, 255, 0.08); }

/* The arrow that appears on hover: this opens a page. Always shown on touch screens. */
.sol-go {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #000; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translate(-4px, 4px) scale(0.9); transition: opacity 0.2s ease, transform 0.2s ease;
}
.sol-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sol-card:hover .sol-go, .sol-card:focus-visible .sol-go, .sol-problem:hover .sol-go, .sol-problem:focus-visible .sol-go,
.sol-kind:hover .sol-go, .sol-kind:focus-visible .sol-go { opacity: 1; transform: none; }
@media (hover: none) { .sol-go { opacity: 1; transform: none; } }

/* The free first deliverable */
.sol-free-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  margin: 0 0 3.5rem; padding: 1.75rem 2rem; border: 1px solid rgba(134, 239, 172, 0.35); border-radius: 18px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(255, 255, 255, 0.03));
}
.sol-free-copy { flex: 1 1 380px; }
.sol-free-banner .sol-tag { color: rgba(134, 239, 172, 0.95); }
.sol-free-title { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: #fff; }
.sol-free-text { margin: 0; font-size: 0.8rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
.sol-free-btn {
  flex: none; padding: 0.85rem 1.4rem; border-radius: 0.3rem; background: #fff; color: #000;
  font-family: Neopixel, monospace; font-size: 1.1rem; line-height: 1; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 30px rgba(134, 239, 172, 0.35); transition: box-shadow 0.2s ease;
}
.sol-free-btn:hover { box-shadow: 0 0 44px rgba(134, 239, 172, 0.6); }

/* Buyer questions and straight answers: on each solution page and /faq */
.sol-qas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; font-family: 'Jetbrains Mono', monospace; }
.sol-qa { padding: 1.25rem 1.3rem 1.35rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; }
.sol-qa h3 { margin: 0 0 0.6rem; font-size: 0.95rem; font-weight: 700; line-height: 1.45; letter-spacing: 0; color: #fff; }
.sol-qa p { margin: 0; font-size: 0.8rem; line-height: 1.7; letter-spacing: 0; color: rgba(255, 255, 255, 0.72); }

/* The homepage's questions: the question and its short answer, opening to the full answer and its page */
.home-faq { display: grid; gap: 0.6rem; margin: 0 0 1.75rem; font-family: 'Jetbrains Mono', monospace; text-align: left; }
.home-faq-item { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; transition: border-color 0.2s ease, background 0.2s ease; }
.home-faq-item:hover, .home-faq-item[open] { border-color: rgba(167, 139, 250, 0.55); }
.home-faq-item[open] { background: rgba(167, 139, 250, 0.07); }
.home-faq-item summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { content: '+'; flex: none; width: 1.5rem; text-align: center; font-size: 1.2rem; line-height: 1; color: #a78bfa; transition: transform 0.2s ease; }
.home-faq-item[open] summary::after { transform: rotate(45deg); }
.home-faq-q { flex: 1; font-size: 0.95rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; color: #fff; }
.home-faq-short { flex: none; font-size: 0.74rem; letter-spacing: 0; color: rgba(196, 181, 253, 0.9); }
.home-faq-a { padding: 0 1.25rem 1.2rem; }
.home-faq-a p { max-width: 70ch; margin: 0 0 0.8rem; font-size: 0.82rem; line-height: 1.7; letter-spacing: 0; color: rgba(255, 255, 255, 0.75); }
.home-faq-a a { font-size: 0.78rem; letter-spacing: 0; color: #c4b5fd; text-decoration: none; }
.home-faq-a a:hover { color: #fff; }

/* SyntrofAI against the alternatives: one card per option. Rows line up across cards (subgrid), so each
   question reads straight across; on narrow screens the cards stack and every row keeps its label. */
.vs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1.5rem; font-family: 'Jetbrains Mono', monospace; text-align: left; }
.vs-col {
  display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; padding: 0.35rem 1.1rem 0.9rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
}
.vs-col p { margin: 0; padding: 0.7rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; line-height: 1.5; letter-spacing: 0; color: rgba(255, 255, 255, 0.75); }
.vs-col p span { display: block; margin-bottom: 0.2rem; font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.vs-col .vs-name { padding-top: 0.85rem; border-top: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.vs-col .vs-name span { margin: 0.3rem 0 0; font-size: 0.7rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.55); }
.vs-us { background: rgba(167, 139, 250, 0.13); border-color: rgba(167, 139, 250, 0.85); box-shadow: 0 0 34px rgba(167, 139, 250, 0.22); }
.vs-us p { color: #fff; border-top-color: rgba(167, 139, 250, 0.25); }
.vs-us p span, .vs-us .vs-name span { color: #c4b5fd; }
.vs-punch { margin: 0 0 1rem; font-family: 'Jetbrains Mono', monospace; font-size: 1.05rem; font-weight: 700; line-height: 1.45; text-align: center; color: #fff; }
.vs-punch span { color: #a78bfa; }

@media screen and (max-width: 900px) {
  .vs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: reading sizes in px, so each component reads the same on every page whatever that page's rem
   (the homepage's is 14px on phones, every other page's 16px) */
@media screen and (max-width: 767px) {
  .sol-tag, .vs-col p span { font-size: 11px; }
  .sol-free, .sol-kind-list, .home-faq-short, .vs-col .vs-name span { font-size: 12px; }
  .sol-role-tab, .sol-role-links a, .sol-problem-fix, .sol-cat-tagline, .sol-text, .sol-kind-tagline, .home-faq-a a { font-size: 13px; }
  .sol-free-text, .sol-qa p, .home-faq-a p, .vs-col p { font-size: 14px; }
  .home-faq-q { font-size: 15px; }
  .sol-kind-title { font-size: 16px; }
}

@media screen and (max-width: 640px) {
  .sol-free-banner { padding: 1.4rem 1.25rem; }
  .sol-free-btn { width: 100%; text-align: center; }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .home-faq-item summary { flex-wrap: wrap; gap: 0.3rem 0.75rem; padding: 0.9rem 1rem; }
  .home-faq-q { flex-basis: calc(100% - 2.5rem); }
  .home-faq-short { order: 3; }
  .home-faq-a { padding: 0 1rem 1rem; }
}
