/**
 * Performance.fyi design tokens + shared page shell.
 * Anchor: pages/core/product.html (Inter, #1a73e8, soft gray surfaces).
 */

:root {
  --pfy-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;

  --pfy-color-text: #333;
  --pfy-color-text-muted: #666;
  --pfy-color-text-subtle: #555;
  --pfy-color-heading: #1a1a1a;

  --pfy-color-primary: #1a73e8;
  --pfy-color-primary-hover: #1557b0;
  --pfy-color-primary-soft: rgba(26, 115, 232, 0.08);
  --pfy-color-primary-border: rgba(26, 115, 232, 0.2);

  --pfy-color-success: #34a853;
  --pfy-color-success-hover: #2d8e47;
  --pfy-color-danger: #dc3545;

  --pfy-color-bg: #f0f2f5;
  --pfy-color-surface: #ffffff;
  --pfy-color-border: #e5e5e7;
  --pfy-color-border-light: #eee;

  --pfy-radius-sm: 6px;
  --pfy-radius-md: 8px;
  --pfy-radius-lg: 12px;

  --pfy-shadow-header: 0 2px 4px rgba(0, 0, 0, 0.05);
  --pfy-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --pfy-shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1);

  --pfy-container-max: 1200px;
  --pfy-nav-height: 64px;
  --pfy-space-page-y: 40px;
  --pfy-space-page-x: 24px;
}

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

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--pfy-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pfy-color-text);
  background: var(--pfy-color-bg);
}

.container {
  max-width: var(--pfy-container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---- Site header (nav-template.js) ---- */

header {
  background-color: var(--pfy-color-surface);
  box-shadow: var(--pfy-shadow-header);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--pfy-color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--pfy-color-text-subtle);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #000;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-button {
  padding: 8px 16px;
  border-radius: var(--pfy-radius-sm);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sign-in {
  color: var(--pfy-color-primary);
  background: transparent;
  border: 1px solid var(--pfy-color-primary);
}

.sign-in:hover {
  background: var(--pfy-color-primary-soft);
}

.sign-up {
  color: #fff;
  background: var(--pfy-color-primary);
  border: 1px solid var(--pfy-color-primary);
}

.sign-up:hover {
  background: var(--pfy-color-primary-hover);
  border-color: var(--pfy-color-primary-hover);
}

.hamburger-menu {
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 36px !important;
  height: 36px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  margin-left: 16px !important;
  z-index: 101 !important;
  color: var(--pfy-color-text) !important;
  font-size: 24px !important;
}

/* ---- Page layout ---- */

.pfy-page {
  padding: var(--pfy-space-page-y) 0 64px;
}

.pfy-page__inner {
  padding-left: var(--pfy-space-page-x);
  padding-right: var(--pfy-space-page-x);
}

.page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--pfy-color-heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: 18px;
  color: var(--pfy-color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Callouts ---- */

.pfy-callout {
  background: var(--pfy-color-surface);
  border: 1px solid var(--pfy-color-border);
  border-radius: var(--pfy-radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: var(--pfy-shadow-header);
}

.pfy-callout h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--pfy-color-heading);
  margin-bottom: 8px;
}

.pfy-callout p {
  color: var(--pfy-color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.pfy-callout--info {
  background: linear-gradient(to bottom, #f8faff, var(--pfy-color-surface));
  border-color: var(--pfy-color-primary-border);
}

.pfy-callout--info h2 {
  color: var(--pfy-color-primary);
}

.pfy-callout--info p {
  color: var(--pfy-color-text-subtle);
}

/* ---- Buttons ---- */

.pfy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--pfy-radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pfy-btn--primary {
  background: var(--pfy-color-primary);
  color: #fff;
}

.pfy-btn--primary:hover {
  background: var(--pfy-color-primary-hover);
}

.pfy-btn--secondary {
  background: var(--pfy-color-surface);
  color: var(--pfy-color-primary);
  border: 1px solid var(--pfy-color-border);
}

.pfy-btn--secondary:hover {
  background: #f8f9fa;
  border-color: var(--pfy-color-primary);
}

.pfy-btn--success {
  background: var(--pfy-color-success);
  color: #fff;
}

.pfy-btn--success:hover {
  background: var(--pfy-color-success-hover);
}

/* ---- Cards ---- */

.pfy-card {
  background: var(--pfy-color-surface);
  border: 1px solid var(--pfy-color-border);
  border-radius: var(--pfy-radius-lg);
  padding: 24px;
  box-shadow: var(--pfy-shadow-header);
}

/* ---- Mobile nav (pairs with nav-template.js) ---- */

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex !important;
  }

  .nav-menu {
    position: fixed !important;
    left: -100% !important;
    top: 70px !important;
    flex-direction: column !important;
    background-color: #fff !important;
    width: 100% !important;
    text-align: center !important;
    transition: 0.3s !important;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05) !important;
    z-index: 9999 !important;
    padding: 20px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    display: flex !important;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  .nav-menu li {
    margin: 15px 0 !important;
    display: block !important;
  }

  .nav-menu li a {
    color: var(--pfy-color-text) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: block !important;
    padding: 10px !important;
  }

  .auth-buttons {
    display: none !important;
  }

  .pfy-page {
    padding-top: 24px;
  }

  .pfy-page__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
