/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: var(--color-accent); }
img { max-width: 100%; }

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

.section { padding-block: 64px; }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 12px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; }
.wordmark-mark { width: 28px; height: 28px; flex: none; }
.wordmark-text { height: 20px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}
.btn.primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn.secondary:hover { border-color: var(--color-metal); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 64px; text-align: center; }
.hero > * { position: relative; z-index: 1; }
.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 160vw;
  max-height: 160vw;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; margin: 0 auto 20px; }
.hero p.lede { max-width: 56ch; margin: 0 auto 32px; font-size: 1.1rem; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Feature frames (Why Veshtera / How We Work) ---------- */
.feature-frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  /* The illuminated edge: an amber-to-transparent diagonal, applied as the
     card's own background so only the 1.5px padding "ring" shows through
     around the solid inner surface — a lit border, not a flat outline. */
  background: linear-gradient(135deg, rgba(242, 169, 59, 0.9), rgba(242, 169, 59, 0.08) 55%, transparent 80%);
}
.feature-frame > .section-eyebrow,
.feature-frame > h2,
.feature-frame > p {
  position: relative;
  z-index: 2;
  margin-left: 30px;
  margin-right: 30px;
}
.feature-frame > .section-eyebrow { margin-top: 30px; }
.feature-frame > p:last-child { margin-bottom: 30px; }
.feature-frame::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: calc(var(--radius-lg) - 1.5px);
  background: var(--color-surface);
  z-index: 0;
}
.feature-frame-glow {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Cursor tilt (js/tilt.js) ---------- */
.tilt-target {
  transform-style: preserve-3d;
  /* Fast default so the tilt tracks the cursor with as little lag as
     possible; tilt.js briefly lengthens just this duration on pointer
     leave (via the transitionDuration longhand) for a smooth return to
     flat, then restores it here on the next move. */
  transition: transform 0.06s linear;
  will-change: transform;
}
/* .service-card and .price-card already declare their own `transition`
   shorthand below (for border-color/box-shadow/background feedback); a
   same-specificity single-class rule earlier in the file loses that fight
   entirely rather than merging, so these compound selectors add `transform`
   back in explicitly instead of silently losing the tilt transition. */
.service-card.tilt-target { transition: transform 0.06s linear, border-color 0.15s ease, box-shadow 0.15s ease; }
.price-card.tilt-target { transition: transform 0.06s linear, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
}

/* ---------- Service cards & carousel ---------- */
.services-carousel-wrap { position: relative; padding: 32px 0; }
.services-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px 8px 40px;
  perspective: 1200px;
  scrollbar-width: none;
}
.services-carousel::-webkit-scrollbar { display: none; }
.services-carousel.is-jumping { scroll-snap-type: none; scroll-behavior: auto; }

.service-card {
  display: block;
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.05s linear, border-color 0.15s ease, box-shadow 0.15s ease;
  will-change: transform, opacity;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 12px; }
.service-card .price { font-family: var(--font-display); color: var(--color-accent); font-weight: 600; font-size: 0.95rem; }

/* Hover feedback shared by every clickable service/price frame. No
   `transform` here — carousel cards already get an inline transform from
   the coverflow scroll effect, and a CSS transform on :hover would either
   be masked by that inline style or fight it; border/shadow/background
   read clearly as "hoverable" without touching the property JS owns. */
.service-card:hover,
.price-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 28px rgba(242, 169, 59, 0.25);
  background: var(--color-surface-raised);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.carousel-controls button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.carousel-progress {
  height: 3px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  max-width: 240px;
  margin: 16px auto 0;
  overflow: hidden;
}
#carouselProgressFill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.15s linear;
}

/* ---------- Services hub grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.services-grid .service-card { flex: none; }

/* ---------- Service detail page ---------- */
.service-detail .value-props { list-style: none; padding: 0; margin: 24px 0; }
.service-detail .value-props li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.service-detail .value-props li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.service-detail .price-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin: 8px 0 24px;
}

/* ---------- Pricing tiers ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.price-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.price-card.is-static { cursor: default; }
.price-card.is-static:hover { border-color: var(--color-border); box-shadow: none; background: var(--color-surface); }
.price-card h3 { font-size: 1.05rem; }
.price-card .amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-accent); margin: 8px 0; }
.price-card .price-note { font-size: 12.5px; color: var(--color-text-muted); margin: -4px 0 8px; }
.badge-pill {
  display: inline-block;
  background: rgba(242, 169, 59, 0.12);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* ---------- Guarantee / trust line ---------- */
.guarantee-line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin: 20px 0 28px;
}
.guarantee-line .guarantee-icon { color: var(--color-success); font-weight: 700; flex: none; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .faq-toggle-icon { color: var(--color-accent); flex: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question { list-style: none; }
.faq-item[open] .faq-toggle-icon { transform: rotate(45deg); }
.faq-answer {
  margin: 0 4px 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ---------- Comparison chart ---------- */
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.compare-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--color-surface);
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 14px;
}
.compare-table th.icon, .compare-table td.icon { text-align: center; }
.compare-table thead th {
  font-family: var(--font-display);
  color: var(--color-text-muted);
  font-weight: 600;
}
.compare-table .col-us { background: rgba(242, 169, 59, 0.08); }
.compare-table th.col-us { color: var(--color-accent); }
.icon-yes { color: var(--color-success); font-weight: 700; }
.icon-no { color: var(--color-text-muted); opacity: 0.6; }
.icon-soon { color: var(--color-metal); font-size: 12px; }
.compare-note { font-size: 13px; color: var(--color-text-muted); margin-top: 12px; }

/* ---------- Wizard ---------- */
.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .wizard-layout { grid-template-columns: 1fr; }
}

.wizard-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}
.wizard-progress li {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-border);
  cursor: default;
}
.wizard-progress li.current { color: var(--color-text); border-color: var(--color-accent); }
.wizard-progress li.reached { cursor: pointer; }
.wizard-progress li.reached:hover { color: var(--color-text); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .opt { font-weight: 400; color: var(--color-text-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
}
.field textarea { resize: vertical; min-height: 90px; }
.char-count { font-size: 12px; color: var(--color-text-muted); text-align: right; margin-top: 4px; }

.service-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.service-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
}
.service-check input { margin-top: 3px; flex: none; }
.service-check.checked { border-color: var(--color-accent); background: rgba(242, 169, 59, 0.08); }
.service-check-body { display: flex; flex-direction: column; gap: 6px; }
.service-check-name { font-size: 14px; font-weight: 500; }
.service-check-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12.5px; }
.service-check-price .price-current { font-family: var(--font-display); color: var(--color-text-muted); font-weight: 600; }
.service-check.checked .service-check-price .price-current { color: var(--color-accent); }
.service-check-price .price-original { color: var(--color-text-muted); text-decoration: line-through; opacity: 0.65; }
.service-check-price .price-savings { color: var(--color-success); font-weight: 600; }
.service-check-other { border-style: dashed; }
.service-check-hint { font-size: 12.5px; color: var(--color-text-muted); }

.field-error { color: var(--color-danger); font-size: 13px; margin-top: 6px; }
.field input[aria-invalid="true"] { border-color: var(--color-danger); }

/* ---------- Branding step: colors + voice axes ---------- */
.color-field-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .color-field-group { grid-template-columns: 1fr; } }

.color-field label { margin-bottom: 6px; }
.swatch-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}
.swatch-input-row input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: none;
}
.swatch-input-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-input-row input[type="color"]::-webkit-color-swatch { border: 1.5px solid var(--color-border); border-radius: 4px; }
.swatch-input-row input.hex {
  border: none;
  background: none;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-size: 13px;
  width: 100%;
  color: var(--color-text);
}
.color-field input.color-name { margin-top: 8px; }

.axis { margin-bottom: 16px; }
.axis-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.axis-toggle button {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 10px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: center;
}
.axis-toggle button:first-child { border-right: 1.5px solid var(--color-border); }
.axis-toggle button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-on-accent); }
.axis-toggle button:hover:not([aria-pressed="true"]) { color: var(--color-text); background: var(--color-surface-raised); }
.wizard-toast { font-size: 13px; color: var(--color-danger); margin-top: 8px; min-height: 18px; }

.wizard-actions { display: flex; justify-content: space-between; margin-top: 32px; }

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.summary-card dt { font-size: 12px; color: var(--color-text-muted); margin-top: 12px; }
.summary-card dd { margin: 2px 0 0; font-size: 14px; }
.summary-card dd.summary-savings { color: var(--color-success); font-weight: 600; }

.wizard-confirmation { text-align: center; padding: 64px 0; }
.wizard-confirmation[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.site-footer a { color: var(--color-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-text); }
.service-detail .process-steps { display: grid; gap: 12px; padding-left: 1.2em; }

/* ---------- Chips (home SaaS industries) ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 8px 0 24px; }
.chip-list li {
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* ---------- Work teaser (home) ---------- */
.work-teaser { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.work-card img,
.case-study-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.work-card img { margin-bottom: 20px; }
.work-card p:last-child { margin-bottom: 0; }

/* ---------- Case studies (work page) ---------- */
.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}
.case-study-solo { grid-template-columns: minmax(0, 1fr); }
.case-study-tag { font-family: var(--font-display); font-size: 0.9rem; color: var(--color-accent); }
.case-study-media { display: grid; gap: 16px; }

@media (max-width: 760px) {
  .work-teaser,
  .case-study { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Closing call to action (home) ---------- */
.closing-cta { text-align: center; }
