@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

/* ============================================================
   CNC Vector Lab — marketing site
   Single stylesheet, no build step, no framework.
   Matches the app's warm-charcoal aesthetic.
   ============================================================ */

:root {
  --bg: #1c1a16;
  --bg-elev: #25221d;
  --bg-card: #2c2823;
  --line: #3a342c;
  --line-soft: #2f2a24;
  --text: #f1ebde;
  --muted: #a89e8a;
  --dim: #6e6857;
  --accent: #f4a85a;
  --accent-soft: rgba(244, 168, 90, 0.16);
  --accent-strong: #ffbf78;
  --success: #95d29c;
  --code-bg: #1a1814;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-strong); }

code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  font-size: 0.9em;
  color: var(--accent-strong);
}

kbd {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============= TOPBAR ============= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 26, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.brand:hover { color: var(--text); }

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.brand-logo.small { width: 22px; height: 22px; display: inline-block; vertical-align: middle; margin-right: 6px; }

.nav {
  display: flex;
  gap: 24px;
  margin-left: 32px;
  flex: 1;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.cta-button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);
  color: #1c1a16;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
}
.cta-button:hover {
  background: var(--accent-strong);
  color: #1c1a16;
  transform: translateY(-1px);
}

.cta-button.big {
  padding: 14px 24px;
  font-size: 15px;
}

.cta-button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta-button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.cta-button.block { display: block; width: 100%; }

/* ============= HERO ============= */

.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(244, 168, 90, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-elev));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--text);
}

.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 560px;
  line-height: 1.55;
}

.lede strong { color: var(--text); }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 38px; }
  .nav { display: none; }
}

/* ============= BANDS ============= */

.band {
  padding: 90px 0;
  border-top: 1px solid var(--line-soft);
}

.band-dark { background: var(--bg-elev); }
.band-muted { background: var(--bg); }
.band-accent {
  background:
    radial-gradient(ellipse at center, rgba(244, 168, 90, 0.12), transparent 60%),
    var(--bg-elev);
}

.section-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-title.left { text-align: left; }

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

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

/* ============= 3-COL POSITIONING ============= */

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}

.three-col .col h3 {
  font-size: 19px;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.three-col .col p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

@media (max-width: 800px) {
  .three-col { grid-template-columns: 1fr; gap: 28px; }
}

/* ============= HOW IT WORKS ============= */

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.how-steps li {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.how-steps li.reverse {
  grid-template-columns: 1.3fr 1fr;
}

.how-steps li.reverse .how-text {
  order: 2;
}

.how-text {
  max-width: 460px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #1c1a16;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.how-text h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.how-text p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.how-steps li img {
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 800px) {
  .how-steps li,
  .how-steps li.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .how-steps li.reverse .how-text { order: 0; }
}

/* ============= TOUR GRID ============= */

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tour-grid figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.tour-grid figure:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.tour-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--line);
}

.tour-grid figcaption {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}

.tour-grid figcaption strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tour-grid { grid-template-columns: 1fr; }
}

/* ============= FEATURES GRID ============= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.15s;
}

.feat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feat h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.feat p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============= PRICING ============= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(244, 168, 90, 0.06), transparent),
    var(--bg-card);
  box-shadow: 0 20px 60px rgba(244, 168, 90, 0.08);
  transform: scale(1.02);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1c1a16;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--accent-strong);
}

.price-tag {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
  color: var(--text);
}

.price-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 24px;
  min-height: 36px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  font-size: 14.5px;
  color: var(--text);
}

.price-features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.price-features li:last-child { border-bottom: none; }
.price-features li.dim { color: var(--dim); }

.pricing-fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 36px;
}

.pricing-fineprint strong { color: var(--text); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card.featured { transform: none; }
}

/* ============= DEMO ART ============= */

.demo-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.demo-art img {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 24px;
  max-width: 380px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .demo-art { grid-template-columns: 1fr; }
}

/* ============= FAQ ============= */

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-grid details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.faq-grid details[open] {
  border-color: var(--accent);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

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

.faq-grid summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.15s;
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid details p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ============= DOWNLOAD ============= */

.download-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}

.download-note {
  color: var(--muted);
  font-size: 13.5px;
  margin: 12px auto 0;
  max-width: 540px;
}

/* ============= CONTACT ============= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-detail {
  color: var(--muted);
  font-size: 15px;
}

/* ── Masterclasses / Slideshow ─────────────────────────────────────── */
.slideshow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.slideshow-deck {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.slideshow-label {
  padding: 1rem 1.25rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.slideshow-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.slideshow-label h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
}
.masterclass-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(244,168,90,.12);
  border: 1px solid rgba(244,168,90,.25);
  border-radius: 4px;
  padding: .2rem .55rem;
  width: fit-content;
}
.slideshow-stage {
  background: #000;
  line-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .15s ease;
}
.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--line);
}
.slide-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.slide-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1a16;
}
.slide-counter {
  font-size: .85rem;
  color: var(--text-muted);
  min-width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* Coming Soon stamp */
.masterclass-header {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 0.5rem;
}
.coming-soon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}
.coming-soon-stamp {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(45, 28, 8, 0.9);
  background: rgba(252, 246, 232, 0.78);
  border: 3px solid rgba(45, 28, 8, 0.65);
  border-radius: 3px;
  padding: 0.35rem 2.4rem 0.45rem;
  transform: rotate(-8deg);
  display: block;
  letter-spacing: 0.04em;
  filter: url(#pencil-sketch);
  box-shadow: 2px 3px 0 rgba(45,28,8,0.12), -1px -1px 0 rgba(45,28,8,0.07);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .slideshow-grid { grid-template-columns: 1fr; }
}

.contact-detail strong { color: var(--text); display: inline-block; min-width: 130px; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea { resize: vertical; min-height: 80px; }

.contact-form button { align-self: flex-start; margin-top: 4px; }

.platform-fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .75rem .65rem;
  display: flex;
  gap: 1.5rem;
}
.platform-fieldset legend {
  font-size: .75rem;
  color: var(--text-muted);
  padding: 0 .25rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  cursor: pointer;
  flex-direction: row;
  margin: 0;
}
.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============= FOOTER ============= */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 48px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 36px;
  align-items: center;
}

.footer-tagline {
  color: var(--muted);
  font-size: 13.5px;
  margin: 6px 0 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
}

.footer-legal {
  color: var(--dim);
  font-size: 13px;
  text-align: right;
  margin: 0;
}

.footer-legal a {
  color: var(--muted);
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-legal { text-align: center; }
  .footer-nav { justify-content: center; }
}

/* ============================================================
   Slide Modal — click-to-enlarge overlay
   ============================================================ */

.slide-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-modal[hidden] { display: none; }

.slide-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.slide-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 96vw;
  max-height: 96vh;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.slide-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.slide-modal-close:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.slide-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-align: center;
  padding-right: 28px; /* avoid overlap with close btn */
}

.slide-modal-stage {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-modal-nav {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.slide-modal-nav:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.slide-modal-img {
  display: block;
  max-height: 84vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.slide-modal-footer {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Enlarge hint — sits in the label row, always visible */
.slideshow-stage {
  position: relative;
  cursor: pointer;
}

.enlarge-hint {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.enlarge-hint:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .slide-modal-inner { padding: 14px 8px 12px; gap: 8px; }
  .slide-modal-img { max-height: 70vh; max-width: 94vw; }
  .slide-modal-nav { font-size: 18px; padding: 8px 10px; }
}
