:root {
  --color-ink: #16302A;
  --color-paper: #F5F1E6;
  --color-paper-muted: #EDE8DC;
  --color-brass: #C99A3D;
  --color-brass-strong: #7A5F1F;
  --color-brass-strong-hover: #5C4718;
  --color-graphite: #2A2924;
  --color-graphite-muted: #6B6455;
  --color-cream: #F1ECE0;
  --color-sage-muted: #B9C4BC;
  --color-border: #D8D0BC;
  --color-border-dark: #6B7D6E;
  --color-error: #E38070;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 4px;
  --container-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-graphite);
  background: var(--color-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-brass-strong);
}

a:hover {
  color: var(--color-brass-strong-hover);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-brass-strong);
  margin-bottom: 8px;
}

.eyebrow--on-dark {
  color: var(--color-brass);
}

.button {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}

/* Signature hover mascots: peek out from the top-right corner, always
   behind — never over — the logo/button surface. */
.button--primary::before,
.logo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: -2;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

/* Buttons: the same launching rocket as the logo, scaled up. */
.button--primary::before {
  width: 48px;
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120'%3E%3Cpath d='M40,4 C51,4 60,20 60,34 L60,74 C60,80 56,86 50,89 L30,89 C24,86 20,80 20,74 L20,34 C20,20 29,4 40,4 Z' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M20,60 L4,92 L20,82 Z' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M60,60 L76,92 L60,82 Z' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4' stroke-linejoin='round'/%3E%3Ccircle cx='40' cy='38' r='9' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4'/%3E%3Cpath d='M31,89 L40,112 L49,89 Z' fill='%23C99A3D'/%3E%3C/svg%3E");
  transform: translate(20%, -20%) scale(0.3) rotate(45deg);
}

.button--primary:hover::before {
  opacity: 1;
  transform: translate(35%, -75%) scale(1) rotate(45deg);
}

/* Logo (header + footer, shared markup/class): a rocket launching at 45°. */
.logo::before {
  width: 32px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 120'%3E%3Cpath d='M40,4 C51,4 60,20 60,34 L60,74 C60,80 56,86 50,89 L30,89 C24,86 20,80 20,74 L20,34 C20,20 29,4 40,4 Z' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M20,60 L4,92 L20,82 Z' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M60,60 L76,92 L60,82 Z' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4' stroke-linejoin='round'/%3E%3Ccircle cx='40' cy='38' r='9' fill='%23F1ECE0' stroke='%23C99A3D' stroke-width='4'/%3E%3Cpath d='M31,89 L40,112 L49,89 Z' fill='%23C99A3D'/%3E%3C/svg%3E");
  transform: translate(20%, -20%) scale(0.3) rotate(45deg);
}

.logo:hover::before {
  opacity: 1;
  transform: translate(35%, -75%) scale(1) rotate(45deg);
}

/* Opaque fill layer sits between the cloud (-2) and the button's own
   in-flow text/background, so the cloud is truly hidden underneath —
   a plain background-color on .button--primary would paint below its
   own negative-z-index pseudo-elements and never hide them. */
.button--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--color-brass);
  z-index: -1;
  transition: background-color 0.15s ease;
}

.button--primary:hover::after {
  background: #B8892E;
}

.button--primary {
  background: transparent;
  color: var(--color-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 48, 42, 0.2);
}

.button--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.button--secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button--secondary:hover {
  background: rgba(241, 236, 224, 0.12);
  color: inherit;
  transform: translateY(-2px);
}

.button--secondary:active {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.logo {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-graphite);
  text-decoration: none;
}

.logo__mark {
  width: 10px;
  height: 10px;
  background: var(--color-brass);
  display: inline-block;
}

@keyframes logo-mark-cycle {
  0% { background-color: var(--color-brass); }
  25% { background-color: var(--color-ink); }
  50% { background-color: var(--color-error); }
  75% { background-color: var(--color-brass-strong); }
  100% { background-color: var(--color-brass); }
}

.logo:hover .logo__mark {
  animation: logo-mark-cycle 1.6s linear infinite;
}

.logo__b {
  display: inline-block;
  transition: transform 0.6s ease;
}

.logo:hover .logo__b {
  transform: rotate(360deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
}

/* Keep anchor-scrolled sections clear of the sticky header (~93px tall). */
#top,
main > section[id] {
  scroll-margin-top: 110px;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: var(--color-graphite);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: var(--color-brass-strong);
}

.nav-menu__cta {
  color: var(--color-ink);
}

.nav-menu__cta:hover {
  color: var(--color-ink);
}

.site-header__admin-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-graphite-muted);
  transition: color 0.15s ease;
}

.site-header__admin-link:hover {
  color: var(--color-brass-strong);
}

.site-header__admin-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Film-grain texture, layered over dark sections for depth. */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__glow {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 61, 0.3) 0%, rgba(201, 154, 61, 0) 70%);
  pointer-events: none;
}

.hero__cloud {
  position: absolute;
  right: 60px;
  top: 30px;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 32px rgba(201, 154, 61, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.hero__cloud:hover {
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 40px rgba(201, 154, 61, 0.3));
}

/* Liftoff on hover, echoing the logo's launch — same easing curve. */
.hero__cloud:hover {
  transform: translateY(-18px) rotate(4deg);
}

.hero__rocket-window {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__cloud:hover .hero__rocket-window {
  animation: rocket-window-blink 0.5s ease-in-out;
}

@keyframes rocket-window-blink {
  0% { transform: scaleY(1); }
  45% { transform: scaleY(0.08); }
  100% { transform: scaleY(1); }
}

/* Reusable "measured corner" frame — the site's one signature flourish. */
.corner-frame {
  position: relative;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-brass);
  border-style: solid;
  border-width: 0;
}

.corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.hero {
  position: relative;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 88px 0;
  overflow: hidden;
}

.hero__panel {
  padding: 28px 32px;
  max-width: 620px;
}

.hero__inner {
  position: relative;
}

.hero h1 {
  font-size: 2.75rem;
}

.hero__subtitle {
  color: var(--color-sage-muted);
  font-size: 1.25rem;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero__actions .button--secondary {
  color: var(--color-cream);
}

.dores,
.como-funciona {
  padding: 80px 0;
}

.dores {
  background: var(--color-paper-muted);
}

/* Faint millimeter-grid texture — echoes "sob medida" precision. */
.section--grid-texture {
  background-color: var(--color-paper-muted);
  background-image:
    linear-gradient(rgba(42, 41, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 41, 36, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(42, 41, 36, 0.1);
  border-color: var(--color-brass);
}

.card p {
  color: var(--color-graphite-muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-paper);
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .site-header__bar {
    position: relative;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__cloud {
    display: none;
  }
}

.section-subtitle {
  color: var(--color-graphite-muted);
  margin-top: -8px;
}

.section-subtitle--on-dark {
  color: var(--color-sage-muted);
}

.prova-social {
  padding: 80px 0;
}

.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0 40px;
  font-weight: 600;
  color: var(--color-graphite-muted);
}

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

.testimonial-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(42, 41, 36, 0.1);
  border-color: var(--color-brass);
}

.testimonial-card__quote {
  font-size: 1.125rem;
  font-family: var(--font-display);
}

.testimonial-card__author span {
  display: block;
  color: var(--color-graphite-muted);
  font-size: 0.875rem;
}

.testimonials__empty {
  color: var(--color-graphite-muted);
  font-style: italic;
}

.sites {
  position: relative;
  padding: 80px 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(201, 154, 61, 0.16) 0%, rgba(201, 154, 61, 0) 60%),
    var(--color-paper);
  border-top: 1px solid var(--color-brass);
  border-bottom: 1px solid var(--color-brass);
}

.sites .card {
  background: var(--color-paper-muted);
}

.sites__cta {
  margin-top: 40px;
  text-align: center;
}

.software {
  position: relative;
  padding: 80px 0;
  background: var(--color-ink);
  color: var(--color-cream);
  overflow: hidden;
}

.card-grid--on-dark {
  position: relative;
}

.card--on-dark {
  background: rgba(241, 236, 224, 0.04);
  border: 1px solid rgba(241, 236, 224, 0.16);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.card--on-dark:hover {
  transform: translateY(-4px);
  background: rgba(241, 236, 224, 0.07);
  border-color: var(--color-brass);
}

.card--on-dark p {
  color: var(--color-sage-muted);
}

.software__cta {
  position: relative;
  margin-top: 40px;
  text-align: center;
}

.faq {
  padding: 80px 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-item summary:hover {
  color: var(--color-brass-strong);
}

.faq-item p {
  color: var(--color-graphite-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

.cta-final {
  position: relative;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 80px 0;
  overflow: hidden;
}

.cta-final__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-dark);
  background: rgba(241, 236, 224, 0.08);
  color: var(--color-cream);
  transition: border-color 0.15s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--color-sage-muted);
}

.form-error {
  color: var(--color-error);
  font-size: 0.8125rem;
  min-height: 1em;
}

/* Projects: home grid section and individual project pages. */
.projetos {
  padding: 80px 0;
  background: var(--color-paper-muted);
}

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

.project-card {
  display: block;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(42, 41, 36, 0.1);
  border-color: var(--color-brass);
}

.project-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-paper-muted);
}

.project-card__content {
  padding: 20px;
}

.project-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-brass-strong);
  background: rgba(201, 154, 61, 0.1);
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.project-card__description {
  margin: 0;
  color: var(--color-graphite-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stack-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(201, 154, 61, 0.08);
  color: var(--color-brass-strong);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid rgba(201, 154, 61, 0.2);
}

/* Project detail page styles. */
.project-hero {
  position: relative;
  padding: 60px 0;
  background: var(--color-ink);
  color: var(--color-cream);
  border-bottom: 1px solid var(--color-brass);
}

.project-hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.project-hero__title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.project-hero__client-logo {
  display: block;
  flex-shrink: 0;
  height: 72px;
  width: 72px;
  object-fit: contain;
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 10px;
}

.project-hero__title-row h1 {
  margin-bottom: 0;
}

.project-hero h1 {
  font-size: 2.5rem;
}

@media (max-width: 640px) {
  .project-hero__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.project-hero__hook {
  color: var(--color-sage-muted);
  font-size: 1.25rem;
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9375rem;
  color: var(--color-sage-muted);
  margin-bottom: 24px;
}

.project-hero__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-hero .stack-tag {
  background: rgba(241, 236, 224, 0.1);
  border-color: rgba(241, 236, 224, 0.2);
  color: var(--color-brass);
}

.project-content {
  padding: 80px 0;
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.project-section {
  margin-bottom: 3em;
}

.project-section--story {
  padding-bottom: 2em;
  border-bottom: 1px solid var(--color-border);
}

.project-section h2 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.project-section h3 {
  margin-top: 1em;
}

.project-section p {
  margin-bottom: 1em;
}

.project-section ul,
.project-section ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.project-section li {
  margin-bottom: 0.5em;
}

.project-section img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.project-section blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 3px solid var(--color-brass);
  color: var(--color-graphite-muted);
  font-style: italic;
  margin-bottom: 1em;
}

.project-section a {
  text-decoration: underline;
}

.project-section__cta {
  margin-top: 1.5em !important;
}

.project-section__cta a {
  font-weight: 600;
  color: var(--color-brass-strong);
  text-decoration: none;
}

.project-section__cta a:hover {
  text-decoration: underline;
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.project-cta {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.project-cta h3 {
  margin-bottom: 0.5em;
}

.project-cta p {
  color: var(--color-graphite-muted);
  margin-bottom: 1.5em;
}

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

  .project-hero h1 {
    font-size: 1.75rem;
  }

  .project-hero__meta {
    flex-direction: column;
    gap: 12px;
  }

  .project-content {
    padding: 60px 0;
  }
}

.site-footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-paper-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer__tagline {
  color: var(--color-graphite-muted);
  font-size: 0.9375rem;
  max-width: 320px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.site-footer__legal {
  font-family: var(--font-mono);
  color: var(--color-graphite-muted);
  font-size: 0.8125rem;
  margin: 0;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-brass-strong);
  margin: 0 0 12px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  display: inline-block;
  color: var(--color-graphite-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--color-brass-strong);
  transform: translateX(4px);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-graphite-muted);
  font-size: 0.875rem;
}

.site-footer__made-with {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heart-icon {
  width: 14px;
  height: 14px;
  fill: var(--color-error);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.heart-icon:hover {
  fill: var(--color-brass-strong);
  transform: scale(1.25);
}

/* Blog: home teaser section, listing page, and post page. */
.blog-teaser {
  padding: 80px 0;
  background: var(--color-ink);
  color: var(--color-cream);
}

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

.blog-teaser .button--secondary {
  display: table;
  margin: 40px auto 0;
}

.blog-teaser-card,
.blog-list-card {
  display: block;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.blog-teaser-card:hover,
.blog-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(42, 41, 36, 0.1);
  border-color: var(--color-brass);
}

.blog-teaser-card img,
.blog-list-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-teaser-card h3,
.blog-teaser-card p,
.blog-list-card h2,
.blog-list-card p {
  margin: 0;
  padding: 0 20px;
}

.blog-teaser-card h3,
.blog-list-card h2 {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--color-graphite);
}

.blog-teaser-card p,
.blog-list-card p {
  margin-top: 8px;
  padding-bottom: 20px;
  color: var(--color-graphite-muted);
  font-size: 0.9375rem;
}

.blog-listing {
  padding: 80px 0;
}

.blog-listing h1 {
  margin-bottom: 0;
}

.blog-post {
  padding: 80px 0;
  max-width: 720px;
}

.blog-post__cover {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 24px 0;
}

.blog-post__content {
  margin-top: 32px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.blog-post__content h2,
.blog-post__content h3 {
  margin-top: 1.5em;
}

.blog-post__content p,
.blog-post__content ul,
.blog-post__content ol,
.blog-post__content blockquote {
  margin: 0 0 1.25em;
}

.blog-post__content ul,
.blog-post__content ol {
  padding-left: 1.5em;
}

.blog-post__content blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 3px solid var(--color-brass);
  color: var(--color-graphite-muted);
  font-style: italic;
}

.blog-post__cta-wrap {
  margin-top: 40px;
  text-align: center;
}

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

.blog-post__related h2 {
  margin-bottom: 0;
}

.blog-post__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .blog-post__related-grid {
    grid-template-columns: 1fr;
  }
}

.blog-post__content img {
  max-width: 100%;
  border-radius: var(--radius);
}

.blog-post__content a {
  text-decoration: underline;
}

.step-diagram {
  margin: 2em 0;
}

.step-diagram__list {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-diagram__step {
  flex: 1;
  background: var(--color-paper-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.step-diagram__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--color-brass);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.9375rem;
}

.step-diagram__body {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step-diagram__body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
}

.step-diagram__connector {
  flex-shrink: 0;
  margin-top: 26px;
  color: var(--color-brass);
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .testimonial-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .cta-final__inner {
    grid-template-columns: 1fr;
  }

  .blog-teaser__grid,
  .blog-list__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .step-diagram__list {
    flex-direction: column;
  }

  .step-diagram__connector {
    transform: rotate(90deg);
    margin: -8px auto;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-brass-strong);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.site-chat__panel {
  display: none;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(360px, calc(100vw - 2rem));
  height: min(480px, calc(100vh - 4rem));
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
}
.site-chat__panel--open { display: flex; }
.site-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #111827;
  color: #fff;
  font-weight: 600;
}
.site-chat__header a { color: #9ae6b4; font-size: 0.8rem; }
.site-chat__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 0.5rem;
}
.site-chat__messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.site-chat__bubble { max-width: 80%; padding: 0.5rem 0.75rem; border-radius: 10px; font-size: 0.9rem; }
.site-chat__bubble--visitor { align-self: flex-end; background: #22c55e; color: #fff; }
.site-chat__bubble--assistant { align-self: flex-start; background: #f3f4f6; color: #111827; }
.site-chat__form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid #e5e7eb; }
.site-chat__form input { flex: 1; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 8px; }
.site-chat__bubble--typing { display: flex; gap: 0.25rem; padding: 0.65rem 0.75rem; }
.site-chat__bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: site-chat-typing 1.2s infinite ease-in-out;
}
.site-chat__bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.site-chat__bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes site-chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
