/**
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@font-face {
  font-family: "Product Sans";
  font-style: normal;
  font-weight: 400;
  src: local("Product Sans"), local("Google Sans"), local("Open Sans"),
    url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2)
      format("woff2");
}

:root {
  --surface-page: #f4f6f8;
  --surface-card: #ffffff;
  --surface-subtle: #f8f9fa;
  --ink-primary: #202124;
  --ink-secondary: #4d5156;
  --ink-muted: #5f6368;
  --border-hairline: #dadce0;
  --border-hover: #bdc1c6;
  --brand-blue: #1a73e8;
  --brand-blue-hover: #1557b0;
  --brand-blue-tint: #e8f0fe;
  --brand-green: #137333;
  --brand-green-tint: #e6f4ea;
  --shadow-card: 0 1px 2px rgba(60, 64, 67, 0.16),
    0 2px 6px rgba(60, 64, 67, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(60, 64, 67, 0.14),
    0 1px 3px rgba(60, 64, 67, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--surface-page);
  color: var(--ink-primary);
  font: 400 15px/1.6 "Roboto", "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  font-family: "Product Sans", "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  text-decoration: none;
}

.brand-link:hover,
.brand-link:focus-visible {
  color: var(--brand-blue-hover);
  text-decoration: none;
}

.env-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background-color: var(--surface-subtle);
  color: var(--ink-muted);
  font: 500 12px/1.4 "Roboto Mono", monospace;
}

/* Main container */
.page-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 28px 56px;
}

.hero {
  max-width: 760px;
  margin-bottom: 36px;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: "Product Sans", "Roboto", sans-serif;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.hero-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Protocol bridge bar */
.ecosystem-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 12px 16px;
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.flow-node {
  font-weight: 500;
  color: var(--ink-primary);
}

.flow-protocol {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
}

/* Two-card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.card-eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-producer {
  background-color: var(--brand-blue-tint);
  color: var(--brand-blue);
}

.eyebrow-consumer {
  background-color: var(--brand-green-tint);
  color: var(--brand-green);
}

.card-title {
  margin: 0 0 6px;
  font-family: "Product Sans", "Roboto", sans-serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

.card-subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.host-chip {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 16px;
  padding: 3px 9px;
  border-radius: 4px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  font: 400 12px/1.5 "Roboto Mono", monospace;
  color: var(--ink-secondary);
}

.section-label {
  margin: 8px 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card-description {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}

.role-list {
  margin: 0 0 26px;
  padding-left: 18px;
  color: var(--ink-secondary);
}

.role-list li {
  margin-bottom: 8px;
}

.role-list li:last-child {
  margin-bottom: 0;
}

code {
  font-family: "Roboto Mono", monospace;
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background-color: var(--surface-subtle);
  border: 1px solid #e8eaed;
  color: var(--ink-primary);
}

.card-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #edf0f2;
  display: flex;
  align-items: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease;
}

.cta-primary {
  background-color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  color: #ffffff;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background-color: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  color: #ffffff;
}

.cta-outline {
  background-color: var(--surface-card);
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}

.cta-outline:hover,
.cta-outline:focus-visible {
  background-color: var(--brand-blue-tint);
  color: var(--brand-blue-hover);
}

.cta-disabled {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--ink-muted);
  cursor: not-allowed;
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--border-hairline);
  background-color: var(--surface-card);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 28px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

@media screen and (max-width: 800px) {
  .page-main {
    padding: 32px 18px 40px;
  }

  .topbar-inner,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    padding: 24px;
  }
}
