/* Pipe IT — Pipedrive affiliate partner. Static site styles. */

:root {
  --plum: #342833;
  --plum-deep: #261c25;
  --green: #22863a;
  --green-hover: #1b6b2e;
  --green-deep: #145326;
  --green-soft: #f4f8f4;
  --green-pale: #e6f3e8;
  --ink: #1c1c1c;
  --text: #3d3d3d;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --white: #fff;
  --max: 1120px;
  --serif: "Bree Serif", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Work Sans", "Segoe UI", sans-serif;
  --ui: "Work Sans", "Karla", "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(36, 24, 32, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img,
video {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-hover);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100%);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
}

.topbar :focus-visible,
.power :focus-visible,
.quote-green :focus-visible,
.match :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* Header ---------------------------------------------------------------- */

.topbar {
  background: var(--plum);
  color: #fff;
  font-family: var(--ui);
  font-size: 0.84rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  min-height: 40px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

.topbar-contact a + a {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  justify-content: center;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
}

.brand {
  display: block;
  flex: 0 0 auto;
}

.brand img {
  height: 64px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.site-nav a {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1rem;
  color: #2a2a2a;
  text-decoration: none;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--green);
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}

.btn-on-dark {
  background: #fff;
  color: var(--green);
  border-color: #fff;
}

.btn-on-dark:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  max-width: 16ch;
}

.hero p {
  max-width: 46ch;
  font-size: 1.08rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: min(280px, 70%);
}

/* Power / bokeh band (original background video was not captured) ------ */

.power {
  position: relative;
  color: #fff;
  background-color: #1b6b2e;
  background-image:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.16) 0 70px, transparent 72px),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.1) 0 110px, transparent 112px),
    radial-gradient(circle at 70% 85%, rgba(190, 240, 190, 0.16) 0 90px, transparent 92px),
    radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.08) 0 50px, transparent 52px),
    linear-gradient(155deg, #176128 0%, #22863a 48%, #145326 100%);
  overflow: hidden;
  padding: 72px 0;
}

.power h2,
.power p,
.power li {
  color: #fff;
}

.power-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.power-photo {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.power-photo img {
  width: 100%;
  border-radius: 12px;
}

.power h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.power-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.power-points li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.4rem 0;
}

.power-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Turnover + integrations ---------------------------------------------- */

.turnover {
  padding: 80px 0;
}

.turnover h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: 0.01em;
}

.lead-strong {
  color: var(--green);
  font-weight: 700;
}

.integrations {
  background: var(--green);
  color: #fff;
  padding: 72px 0;
}

.integrations h2,
.integrations p {
  color: #fff;
}

.integrations-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.integrations h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.integrations-art {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 18px;
}

.integrations-art img {
  width: 100%;
  margin: 0 auto;
}

.band-image img {
  width: 100%;
}

/* Feature columns ------------------------------------------------------- */

.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  gap: 36px;
}

.feature h2 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.45rem 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Quotes ---------------------------------------------------------------- */

.quote {
  padding: 64px 0;
}

.quote-light {
  background: var(--green-pale);
}

.quote-green {
  background: var(--green);
  color: #fff;
}

.quote-green h2,
.quote-green p,
.quote-green a {
  color: #fff;
}

.quote-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.quote img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
}

.quote h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.quote-by {
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.link-more {
  font-family: var(--ui);
  font-weight: 700;
  text-decoration: none;
}

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

.quote-light .link-more {
  color: var(--green);
}

/* Perfect match --------------------------------------------------------- */

.match {
  background-color: #102418;
  background-image:
    linear-gradient(90deg, rgba(8, 22, 14, 0.86), rgba(8, 22, 14, 0.62)),
    url("../assets/pipedrive-panel.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 96px 0;
}

.match h2,
.match p {
  color: #fff;
}

.match h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.match-copy {
  max-width: 640px;
}

/* Trial ----------------------------------------------------------------- */

.trial {
  padding: 72px 0 80px;
  text-align: center;
}

.welcome-video {
  width: min(860px, 100%);
  margin: 0 auto 28px;
  background: #111;
  border-radius: 8px;
}

.trial h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: 0.02em;
}

.trial .fine {
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* Services -------------------------------------------------------------- */

.services-hero {
  padding: 56px 0 28px;
}

.services-hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.services-hero img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.services-hero-copy {
  text-align: center;
}

.services-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: 0.04em;
}

.service-board {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.service-board-bg {
  position: absolute;
  inset: -24px;
  background: url("../assets/Design-sem-nome-3.png") center/cover no-repeat;
  filter: blur(8px);
  transform: scale(1.04);
}

.service-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
}

.service-board .container {
  position: relative;
  z-index: 1;
}

.service-grid {
  display: grid;
  gap: 42px 32px;
}

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

.service-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
}

.service-card p {
  font-size: 0.98rem;
}

.service-card .stat {
  margin-top: 0.9rem;
  font-style: italic;
  color: #3e6244;
}

.accordion-wrap {
  padding: 20px 0 10px;
  background: var(--green-soft);
}

.accordion {
  border-top: 1px solid #d5d5d5;
  background: #fff;
}

.accordion details {
  border-bottom: 1px solid #d5d5d5;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}

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

.accordion summary::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  margin-top: -4px;
  flex: 0 0 auto;
}

.accordion details[open] summary::before {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion-body {
  padding: 0 12px 22px 36px;
}

.accordion-body h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.problem-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  columns: 1;
}

.problem-list li {
  margin: 0.35rem 0;
  break-inside: avoid;
}

.talk {
  padding: 64px 0 72px;
}

.talk-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.talk h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

/* About ----------------------------------------------------------------- */

.about {
  padding: 72px 0 88px;
}

.about-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

/* Contact --------------------------------------------------------------- */

.contact-form-section {
  padding: 64px 0 24px;
}

.contact-form-section h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.field input,
.field textarea,
.footer-form input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 11px 12px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note,
.form-status {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.form-status.is-error {
  color: #9b1c1c;
}

.honeypot {
  display: none;
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.contact-panel {
  padding: 28px 0 72px;
}

.contact-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.map-frame {
  position: relative;
  min-height: 280px;
  height: 420px;
  background: var(--green-soft);
  border-radius: 6px;
  overflow: hidden;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-details h2 {
  margin: 0;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 700;
}

.contact-details p {
  margin: 0.15rem 0 0;
}

.detail {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 12px;
  align-items: start;
  margin-bottom: 22px;
}

.detail svg {
  margin-top: 2px;
  color: var(--green);
}

.contact-details .btn {
  margin-top: 8px;
}

/* Testimonials ---------------------------------------------------------- */

.page-intro {
  padding: 56px 0 8px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.story {
  padding: 48px 0 64px;
  scroll-margin-top: 110px;
}

.story-alt {
  background: var(--green-soft);
}

.story h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  max-width: 22ch;
}

.story-grid {
  display: grid;
  gap: 28px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.person {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 1.1rem;
}

.person img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.person figcaption {
  font-style: italic;
  color: var(--muted);
}

.story-body p {
  max-width: 68ch;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--green);
  color: #fff;
  padding: 48px 0 0;
}

.site-footer h2,
.site-footer p,
.site-footer a {
  color: #fff;
}

.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.8rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 28px;
}

.footer-form input {
  margin-bottom: 10px;
  border-color: rgba(255, 255, 255, 0.8);
}

.footer-form input::placeholder {
  color: #777;
}

.btn-light {
  width: 100%;
  border-radius: 3px;
  border: 0;
  background: #fff;
  color: var(--green);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 16px;
  cursor: pointer;
}

.btn-light:hover {
  background: var(--green-pale);
}

.site-footer .form-status {
  color: #fff;
}

.site-footer .form-status.is-error {
  color: #ffe8e8;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: 16px 16px 22px;
  font-size: 0.95rem;
}

.footer-base a {
  text-decoration: underline;
}

.footer-base p {
  margin: 0;
}

/* Desktop --------------------------------------------------------------- */

@media (min-width: 720px) {
  .problem-list {
    columns: 2;
    column-gap: 2rem;
  }
}

@media (min-width: 800px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .quote-grid {
    grid-template-columns: 160px 1fr;
    justify-items: start;
    text-align: left;
  }

  .talk-inner {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

@media (min-width: 900px) {
  .hero-grid,
  .power-grid,
  .integrations-grid,
  .services-hero-grid,
  .about-grid,
  .story-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .services-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-art {
    justify-content: flex-end;
  }
}

@media (max-width: 959px) {
  .navbar-inner {
    flex-wrap: wrap;
    min-height: 76px;
    padding: 10px 0;
  }

  .brand img {
    height: 52px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding-bottom: 8px;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .js .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .topbar {
    font-size: 0.78rem;
  }

  .topbar-contact a + a {
    margin-left: 10px;
    padding-left: 10px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .power,
  .integrations,
  .turnover,
  .features,
  .about {
    padding: 48px 0;
  }

  .match {
    padding: 64px 0;
  }
}
