/* TecAv Software — shared site styles */

:root {
  --navy: #1a3b5d;
  --navy-dark: #122a42;
  --blue: #4a8fd4;
  --orange: #f58220;
  --orange-light: #fff4eb;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5c6778;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 59, 93, 0.08);
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--orange); }

/* —— Layout —— */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover { color: var(--orange); }

.footer-brand img {
  height: 56px;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-meta {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 1.5rem;
}

.footer-links h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin: 0 0 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

/* —— Hero —— */

.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 0.85rem;
}

.hero .lead:last-child {
  margin-bottom: 0;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin: -0.25rem 0 1.25rem;
}

.hero--product {
  text-align: left;
  padding: 1.5rem 0 2rem;
}

.hero--product h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.badge {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* —— Product cards —— */

.product-grid,
.edition-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edition-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.product-grid--two {
  margin-top: 1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.product-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.product-card--featured {
  border-color: var(--navy);
  background: linear-gradient(160deg, var(--surface) 0%, #eef4fb 100%);
}

.badge--soon {
  background: #eef2f6;
  color: var(--text-muted);
}

.product-card--soon {
  background: #f8fafc;
}

.product-card--soon:hover {
  border-color: var(--border);
  transform: none;
}

.product-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.product-card p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.975rem;
}

.product-card .card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.product-card .card-links a {
  font-weight: 600;
}

/* —— Buttons —— */

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--navy-dark);
  color: #fff;
}

.btn-accent {
  background: var(--orange);
  color: #fff;
}

.btn-accent:hover {
  background: #e07010;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Content sections —— */

.section {
  margin-top: 2.5rem;
}

.section h2 {
  font-size: 1.375rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* —— Steps (quickstart) —— */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.25rem;
}

.step-detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tips {
  background: var(--orange-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.tips h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}

.tips ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* —— Tables —— */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: #eef4fb;
  color: var(--navy);
  font-weight: 600;
}

tr:last-child td { border-bottom: none; }

/* —— Subpages nav —— */

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.subnav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.subnav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.coming-soon {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.coming-soon h2 {
  color: var(--navy);
  margin-top: 0;
}

.page-title {
  font-size: 1.75rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose ul {
  color: var(--text-muted);
}

.prose ul { padding-left: 1.25rem; }

/* —— Watch screenshots —— */

.screenshot-gallery {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .screenshot-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screenshot-card {
  margin: 0;
  text-align: center;
}

.screenshot-card img {
  width: min(220px, 100%);
  height: auto;
  border-radius: 28px;
  border: 3px solid #1a1a1a;
  box-shadow: var(--shadow);
  background: #000;
}

.screenshot-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.screenshot-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Taller phone shots (Mail Alert iPhone) stay readable in a 2-up row. */
@media (min-width: 640px) {
  .screenshot-gallery--phone {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .screenshot-gallery--phone {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screenshot-gallery--phone .screenshot-card img {
  width: min(240px, 100%);
}

.print-preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.print-preview-grid .photo-card {
  flex: 0 1 auto;
  max-width: 240px;
}

.print-preview-grid .photo-card img {
  width: auto;
  max-width: 240px;
  max-height: 200px;
  height: auto;
}

/* —— Product photo gallery (hardware, e.g. Flux Drive) —— */

.photo-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hero shot beside a compact side-by-side pair of product photos. */
.photo-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.photo-hero { flex: 0 1 280px; }

.photo-pair {
  flex: 1 1 300px;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.photo-card { margin: 0; text-align: center; }

.photo-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.photo-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}
