/* ---------------------------------------------
   Design tokens
--------------------------------------------- */
:root {
  --bg: #fafafa;
  --ink: #111111;
  --muted: #5a5a5a;
  --accent: #69b3a2;
  --accent-dark: #4f9483;
  --border: #e2e2e2;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --content-width: 760px;
  --carousel-width: calc(var(--content-width) * 1.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  padding: 1.5em 1.5em 4em;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}

a {
  color: inherit;
}

/* ---------------------------------------------
   Top nav
--------------------------------------------- */
.navbar {
  display: flex;
  justify-content: flex-end;
  gap: 1.6em;
  padding: 0.5em 0 3em;
  border-bottom: 1px solid var(--accent);
}

.navbar a {
  font-size: 0.85em;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.navbar a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  text-align: center;
  padding: 2em 0 4em;
}

.hero .wordmark {
  font-size: 1.15em;
  color: var(--muted);
  margin: 0;
}

.hero .tagline {
  font-size: 2.4em;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 30em;
  margin: 0.6em auto 0;
}

/* ---------------------------------------------
   Carousel
--------------------------------------------- */
.carousel-section {
  padding: 3em 0;
  border-top: 1px solid var(--border);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 3.5em;
}

/* Widen the carousel 50% beyond the text column, centered on the page —
   only where the viewport has room, so it can't overflow on narrow screens */
@media screen and (min-width: 1200px) {
  .carousel-section {
    width: var(--carousel-width);
    margin-left: calc((var(--content-width) - var(--carousel-width)) / 2);
  }

  .carousel-slide {
    padding: 0 5.25em;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.2em;
  height: 2.2em;
  margin-top: -1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1.3em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.carousel-arrow:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.carousel-arrow--prev {
  left: 0;
}

.carousel-arrow--next {
  right: 0;
}

.carousel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.6em;
}

.carousel-dots {
  display: flex;
  gap: 0.5em;
}

.carousel-dot {
  width: 0.6em;
  height: 0.6em;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #cfcfcf;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.carousel-dot.is-active {
  background-color: var(--accent);
}

.carousel-counter {
  margin: 0;
  font-size: 0.85em;
  color: var(--muted);
}

.tool-eyebrow {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  text-align: center;
}

.tool-description {
  color: var(--muted);
  text-align: center;
  max-width: 36em;
  margin: 0 auto 1.8em;
}

.tool-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease;
}

.tool-frame-wrap:hover {
  border-color: var(--accent);
}

.tool-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tool-open-link {
  display: none;
  text-align: center;
}

.tool-open-link a {
  display: inline-block;
  padding: 0.7em 1.6em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tool-open-link a:hover {
  background-color: var(--accent);
  color: #fff;
}

/* Mobile fallback: hide the live iframe, show a simple "Open tool" link */
@media screen and (max-width: 640px) {
  .tool-frame-wrap {
    display: none;
  }

  .tool-open-link {
    display: block;
  }
}

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact-section {
  padding: 4em 0 2em;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-section h2 {
  font-size: 1.6em;
  margin: 0 0 0.5em;
}

.contact-section p {
  color: var(--muted);
  max-width: 32em;
  margin: 0 auto 1.6em;
}

.mailto-button {
  display: inline-block;
  padding: 0.8em 2em;
  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95em;
  transition: background-color 0.15s ease;
}

.mailto-button:hover {
  background-color: var(--accent-dark);
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85em;
  padding-top: 3em;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media screen and (max-width: 600px) {
  body {
    padding: 1.25em 1.1em 3em;
  }

  .hero .wordmark {
    font-size: 2em;
  }

  .navbar {
    gap: 1em;
  }

  .carousel-slide {
    padding: 0 2.4em;
  }

  .carousel-arrow {
    width: 1.8em;
    height: 1.8em;
    margin-top: -0.9em;
    font-size: 1.1em;
  }
}
