/* ============================================================
   calder.tools — Direction B: studio dark, editorial
   ============================================================ */

:root {
  --bg-0: #141414;
  --bg-1: #1A1A1A;
  --bg-2: #161616;
  --panel: #252525;
  --border: #333333;
  --border-soft: #2A2A2A;
  --text: #FFFFFF;
  --text-2: #999999;
  --text-3: #808080; /* AA-safe muted text on #1A1A1A */
  --teal: #5AC8DC;
  --slate: #2D3E52;
  --magenta-wash: #94007B;
  --grad: linear-gradient(90deg, #00E0FF, #FF00FF);
  --radius: 12px;
  --radius-pill: 999px;
  --container: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography utilities ---------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.strip {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- pills / buttons ---------- */

.pill {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pill:hover { transform: translateY(-1px); }

.pill-primary {
  background: var(--text);
  color: #111111;
}

.pill-primary:hover { background: #E8E8E8; }

.pill-outline {
  border: 1px solid #444444;
  color: #BBBBBB;
}

.pill-outline:hover { border-color: #666666; color: var(--text); }

.pill-small {
  padding: 7px 16px;
  font-size: 0.85rem;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links .pill-outline { color: #BBBBBB; }

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 96px 0 0;
}

.hero .eyebrow { margin-bottom: 20px; }

.hero h1 { margin-bottom: 20px; }

.subhead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ---------- video placeholder frame ---------- */

.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 -12px 60px rgba(0, 224, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.video-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.play-button:hover { transform: translate(-50%, -50%) scale(1.06); }

.play-triangle {
  width: 0;
  height: 0;
  border-left: 22px solid #111111;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

.video-caption {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888;
}

.hero .strip {
  margin: 28px 0 0;
  padding-bottom: 80px;
}

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
}

/* ---------- split rows (flagship / sfz) ---------- */

.split-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-copy .eyebrow { margin-bottom: 14px; }
.split-copy h2 { margin-bottom: 18px; }

.body-copy {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
}

.check-list li {
  color: var(--text-2);
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- framed app window ---------- */

.window-frame {
  background: var(--panel);
  border: 1px solid #3A3A3A;
  border-radius: var(--radius);
  padding: 10px 10px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 224, 255, 0.05);
  overflow: hidden;
}

.window-dots {
  display: flex;
  gap: 6px;
  padding: 2px 4px 10px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444444;
}

.window-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px 6px 0 0;
}

/* ---------- feature grid ---------- */

.section-alt { background: var(--bg-2); }

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.mode-group { margin-bottom: 40px; }
.mode-group:last-child { margin-bottom: 0; }

.mode-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card h3 { margin-bottom: 8px; }

.feature-card p {
  color: var(--text-2);
  font-size: 0.92rem;
}

/* ---------- built-for strip ---------- */

.built-for {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 20px 0;
}

.built-for-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 0.9rem;
}

.built-for-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 6px;
}

.built-for .dot { color: var(--text-3); }

/* ---------- pricing ---------- */

.pricing-container { text-align: center; }

.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 60px rgba(0, 224, 255, 0.04);
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.price {
  font-size: 3.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-note { color: var(--text-2); font-size: 0.95rem; }

.pricing-list {
  display: inline-block;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-ctas .pill { text-align: center; }

.small-print {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #8F8F8F; /* AA at small sizes on #1A1A1A */
}

.sysreq {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ---------- faq ---------- */

.faq-container { max-width: 720px; }

.faq-container details {
  border-bottom: 1px solid var(--border-soft);
}

.faq-container summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq-container summary::-webkit-details-marker { display: none; }

.faq-container summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-weight: 400;
  font-size: 1.3rem;
  transition: transform 0.15s ease;
}

.faq-container details[open] summary::after {
  content: "–";
}

.faq-container details p {
  color: var(--text-2);
  font-size: 0.95rem;
  padding: 0 0 18px;
}

/* ---------- about ---------- */

.about-container {
  text-align: center;
  max-width: 640px;
}

.about-container .eyebrow { margin-bottom: 14px; }
.about-container h2 { margin-bottom: 18px; }
.about-copy { margin-bottom: 20px; }

.text-link {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.95rem;
}

.text-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-3);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-2); }

/* ---------- legal pages ---------- */

.legal-container { max-width: 680px; }
.legal-container h2 { margin-bottom: 12px; }
.legal-container h3 { margin: 28px 0 8px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split-row { grid-template-columns: 1fr; gap: 32px; }
  .split-row .split-visual { order: 2; }
  .split-row .split-copy { order: 1; }
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.pill) { display: none; }
  .hero { padding-top: 64px; }
  .cta-row { margin-bottom: 40px; }
  .play-button { width: 56px; height: 56px; }
  .play-triangle {
    border-left-width: 17px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }
  .section { padding: 64px 0; }
}
