/* Project ATLAS — product site styles
   Direction: Option 1 "Tool-page Classic"
   Background matches the ATLAS app default theme: #1a1d23 */

:root {
  --bg: #1a1d23;
  --surface: #232830;
  --surface-raised: #2c333d;
  --border: #3a414d;
  --text: #e4e7ec;
  --text-muted: #8a93a3;
  --text-subtle: #6a7382;

  --accent: #ffb84d;          /* ATLAS app default accent */
  --accent-hover: #ffc870;
  --accent-dim: rgba(255,184,77,0.15);
  --accent-on: #1a1d23;       /* text color for on-accent surfaces */
  --accent-2: #4dc4ff;        /* secondary accent */
  --good: #6cc77a;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);

  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;

  /* Cross-site bar tokens (shared/styles/crosssite.css) */
  --cs-bg: var(--surface);
  --cs-fg: var(--text-muted);
  --cs-fg-strong: var(--text);
  --cs-rule: var(--border);
  --cs-accent: var(--accent);
  --cs-hover: rgba(228, 231, 236, 0.06);
}

/* Universal reset (box-sizing, html/body margin-zero, antialiasing, line-height)
   lives in shared/styles/base.css. Only ATLAS-specific body typography below. */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26,29,35,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0.1px; }
.brand-name .accent { color: var(--accent); }

nav.primary { margin-left: 40px; }
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
nav.primary a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
nav.primary a:hover { color: var(--text); text-decoration: none; }
nav.primary a.active { color: var(--text); }

.spacer { flex: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero .kicker {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 {
  font-size: 64px; line-height: 1.1;
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 auto 24px;
  max-width: 820px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: 20px; line-height: 1.5;
  color: var(--text-muted); max-width: 620px; margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: var(--accent-on);
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--accent); line-height: 1;
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }

.btn-ghost {
  padding: 12px 26px; border-radius: var(--radius);
  font-weight: 500; font-size: 15px;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--border); line-height: 1;
}
.btn-ghost:hover { border-color: var(--text-muted); text-decoration: none; }

/* ---------- Screenshot placeholder ---------- */
.screenshot {
  margin: 56px auto 96px; max-width: 1040px;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a3340 0%, #1e2430 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02) inset;
}

/* ---------- Section blocks ---------- */
section { padding: 88px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
.section-label {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.section-title {
  font-size: 40px; font-weight: 700; letter-spacing: -0.01em;
  margin: 12px 0 16px; max-width: 720px;
}
.section-sub {
  font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0 0 48px;
}
section p { max-width: 680px; }
section p.lead { font-size: 18px; color: var(--text-muted); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-card .icon {
  width: 32px; height: 32px;
  background: var(--accent-dim); border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 18px; font-size: 18px;
}
.feature-card h3 {
  font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55;
}

/* ---------- Feature detail (features page) ---------- */
.feature-detail {
  display: grid; grid-template-columns: 200px 1fr; gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.feature-detail:first-of-type { border-top: none; }
.feature-detail .label {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.feature-detail h3 {
  font-size: 26px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em;
}
.feature-detail p { font-size: 15px; color: var(--text); margin: 0 0 12px; max-width: 640px; }
.feature-detail ul {
  list-style: none; padding: 0; margin: 12px 0 0;
  font-size: 14px; color: var(--text-muted);
}
.feature-detail ul li {
  padding: 6px 0 6px 20px; position: relative;
}
.feature-detail ul li::before {
  content: '+'; color: var(--accent); position: absolute; left: 0; font-weight: 700;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -10px; left: 20px;
  background: var(--accent); color: var(--accent-on);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 999px;
}
.price-card .name {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.price-card .price {
  font-size: 36px; font-weight: 700; margin: 16px 0 4px; letter-spacing: -0.02em;
}
.price-card .price .unit {
  font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 2px;
}
.price-card .term { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 13px; color: var(--text); flex: 1;
}
.price-card ul li { padding: 6px 0; border-top: 1px solid var(--border); }
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before {
  content: '+'; color: var(--accent); margin-right: 8px; font-weight: 700;
}
.price-card .buy {
  display: block; text-align: center;
  padding: 10px; border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-weight: 500; font-size: 14px;
}
.price-card.featured .buy {
  background: var(--accent); color: var(--accent-on); border-color: var(--accent);
  font-weight: 600;
}
.price-card .buy:hover { border-color: var(--text-muted); text-decoration: none; }
.price-card.featured .buy:hover { background: var(--accent-hover); }

/* ---------- Download / Support page blocks ---------- */
.stub-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.stub-box h3 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.stub-box p { color: var(--text-muted); margin: 0 0 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Support: contact block (mirrors ATLAS app About pattern) */
.contact-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 10px; margin: 12px 0 0;
  justify-content: center;
}
.copied {
  color: var(--good);
  font-size: 14px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.copied.show { opacity: 1; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 30px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-nav-line { font-size: 13px; }
.uw-credit { font-size: 12px; color: var(--text-subtle); }

/* Centered UW marker. [data-bouncy-marker] is picked up by
   shared/scripts/footer-marker.js — hard scrolls give it a
   velocity kick and it falls back under gravity. */
.footer-marker-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  will-change: transform;
}
.footer-marker {
  height: 36px;
  width: auto;
  display: block;
  transform-origin: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.85;
}
.footer-marker:hover { opacity: 1; }

/* ---------- Small viewports ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header-row { gap: 12px; flex-wrap: wrap; }
  nav.primary { margin-left: 0; width: 100%; order: 3; }
  nav.primary ul { gap: 18px; flex-wrap: wrap; }
  .hero { padding: 64px 0 32px; }
  .hero h1 { font-size: 44px; }
  .hero p.lede { font-size: 17px; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .feature-detail { grid-template-columns: 1fr; gap: 16px; }
}
