/* ProductivitySurge — shared design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --brand:       #0d9488;
  --brand-dark:  #0f766e;
  --brand-navy:  #1e3a8a;
  --accent:      #2563eb;

  --bg:          #f8fafc;
  --bg-elevated: #ffffff;
  --bg-muted:    #f1f5f9;
  --surface:     rgba(255, 255, 255, 0.72);

  --text:        #0f172a;
  --text-secondary: #475569;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.06);

  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:   0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md:   0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 24px 64px rgba(15, 23, 42, 0.12);

  --nav-height:  72px;
  --container:   1140px;
  --transition:  180ms cubic-bezier(0.4, 0, 0.2, 1);

  --gradient-hero: linear-gradient(135deg, #22d3ee 0%, #3b82f6 45%, #1d4ed8 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(45, 212, 191, 0.25), transparent 55%),
                   radial-gradient(ellipse 60% 50% at 90% 10%, rgba(96, 165, 250, 0.2), transparent 50%);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav .nav-inner,
nav .nav-inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }

.nav-brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--bg-muted);
  text-decoration: none;
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform var(--transition);
}
.nav-dropdown[open] > summary,
.nav-dropdown > summary:hover {
  color: var(--text);
  background: var(--bg-muted);
}
.nav-dropdown[open] > summary::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--bg-muted);
  text-decoration: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  color: var(--brand-dark);
  border-color: rgba(13, 148, 136, 0.35);
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-muted); }

.btn-lg { padding: 14px 28px; font-size: 0.9375rem; }
.btn-sm { padding: 9px 18px; font-size: 0.8125rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer,
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  color: #94a3b8;
  font-weight: 500;
}
.footer-links a:hover { color: #f8fafc; text-decoration: none; }

/* ── Typography helpers ───────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.65;
}

.section-lead.center { margin-inline: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(13, 148, 136, 0.1);
  color: var(--brand-dark);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.meta-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── Legal / support pages ────────────────────────────────────── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-hero-compact {
  padding: 48px 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero-compact h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-hero-compact .meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-content {
  flex: 1;
  padding: 48px 0 80px;
}

.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
  color: var(--text);
}
.content-card h2:first-of-type { margin-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* About Us — subtle major-section dividers */
.content-card.about-page {
  display: flex;
  flex-direction: column;
}

.content-card.about-page .about-section + .about-section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 8%,
    var(--border) 92%,
    transparent 100%
  ) 1;
}

.content-card.about-page .about-section > h2:first-child {
  margin-top: 0;
}

.content-card.about-page .about-subsection {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.content-card.about-page .about-subsection > h2 {
  margin-top: 0;
}

.content-card.about-page .about-pullquote {
  margin: 0 0 8px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--bg-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.content-card.about-page .about-pullquote p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-card.about-page .about-section-close .cta-row {
  margin-top: 20px;
}

.content-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}

.content-card p,
.content-card li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.7;
}

.content-card ul { margin: 8px 0 16px 1.25rem; }
.content-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.875rem;
}
.content-card th,
.content-card td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}
.content-card th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 32px;
}

.support-card {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.support-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.support-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.support-card p { font-size: 0.875rem; margin-bottom: 8px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ── Become a Tester — multi-app sections ─────────────────────── */
.tester-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 8px;
}
.tester-jump a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.tester-jump a:hover {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
  text-decoration: none;
}

.tester-app {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.tester-app > h2,
.tester-app-header h2 {
  margin-top: 0;
}
.tester-app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
}
.tester-app-header h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tester-app h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}

.tester-hero {
  margin: 0 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  aspect-ratio: 16 / 9;
}
.tester-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tester-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(37, 99, 235, 0.16)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(148, 163, 184, 0.08) 10px,
      rgba(148, 163, 184, 0.08) 20px
    );
}
.tester-hero-placeholder-inner {
  text-align: center;
  padding: 28px 20px;
  max-width: 28rem;
}
.tester-hero-placeholder-inner img {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.tester-hero-placeholder-inner p {
  margin: 0 0 6px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.tester-hero-placeholder-inner .meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.tester-hero-placeholder-inner code {
  font-size: 0.75rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-height: 64px; }
  .nav-links a:not(.btn) { padding: 6px 10px; font-size: 0.8125rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
