/**
 * CutDog public marketing styles (cut.dog)
 * Flat, no gradients — scoped to guest/public pages.
 */

:root {
  --cd-ink: #0f0f10;
  --cd-muted: #6b7280;
  --cd-surface: #fafafa;
  --cd-border: rgba(15, 15, 16, 0.1);
  --cd-pink: #ff0052;
  --cd-yellow: #ffd400;
  --cd-teal: #00c68d;
  --cd-blue: #0055da;
  --cd-primary: var(--cd-blue);
  --cd-primary-hover: #0044b0;
  --cd-accent: var(--cd-blue);
  --cd-accent-hover: var(--cd-primary-hover);
  --cd-radius: 14px;
  --cd-radius-pill: 999px;
}

html.dark {
  --cd-ink: #f4f4f5;
  --cd-muted: #a1a1aa;
  --cd-surface: #111113;
  --cd-border: rgba(255, 255, 255, 0.1);
  --cd-primary: #3d7fff;
  --cd-primary-hover: #5c93ff;
  --cd-accent: var(--cd-primary);
  --cd-accent-hover: var(--cd-primary-hover);
}

/* §1 Public scope */
.d-flex.flex-column.flex-fill:not(.content) {
  --cd-active: 1;
}

/* §2 Hero */
.d-flex.flex-column.flex-fill:not(.content) .cd-section-hero,
.d-flex.flex-column.flex-fill:not(.content) > .flex-fill > .bg-base-0.position-relative:first-child {
  background: #fafafa !important;
  overflow: hidden;
  position: relative;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-hero .col-2.d-none.d-lg-flex,
.d-flex.flex-column.flex-fill:not(.content) > .flex-fill > .bg-base-0.position-relative:first-child .col-2.d-none.d-lg-flex {
  opacity: 0;
  pointer-events: none;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-hero::before,
.d-flex.flex-column.flex-fill:not(.content) > .flex-fill > .bg-base-0.position-relative:first-child::before {
  display: none;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-hero,
html.dark .d-flex.flex-column.flex-fill:not(.content) > .flex-fill > .bg-base-0.position-relative:first-child {
  background: #0a0a0b !important;
}

.d-flex.flex-column.flex-fill:not(.content) .fs-5xl.fw-bold.tracking-tight {
  letter-spacing: -0.04em !important;
  font-weight: 700 !important;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--cd-ink) !important;
  -webkit-text-fill-color: currentColor;
}

.d-flex.flex-column.flex-fill:not(.content) .fs-xl.text-muted {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--cd-muted) !important;
  line-height: 1.6;
}

/* §3 Shortener form */
.d-flex.flex-column.flex-fill:not(.content) #short-form-container {
  max-width: 640px;
  margin: 0 auto;
}

.d-flex.flex-column.flex-fill:not(.content) #short-form .row.mx-n1 {
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-pill);
  padding: 6px;
  box-shadow: 0 1px 3px rgba(15, 15, 16, 0.06);
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) #short-form .row.mx-n1 {
  background: #18181b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.d-flex.flex-column.flex-fill:not(.content) #short-form .form-control-lg {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 1.25rem;
}

.d-flex.flex-column.flex-fill:not(.content) #short-form .btn-primary {
  border-radius: var(--cd-radius-pill) !important;
  background: var(--cd-primary) !important;
  border-color: var(--cd-primary) !important;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  font-weight: 600;
  color: #fff !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.d-flex.flex-column.flex-fill:not(.content) #short-form .btn-primary:hover {
  background: var(--cd-primary-hover) !important;
  border-color: var(--cd-primary-hover) !important;
  transform: translateY(-1px);
}

html.dark .d-flex.flex-column.flex-fill:not(.content) #short-form .btn-primary {
  background: var(--cd-primary) !important;
  border-color: var(--cd-primary) !important;
  color: #fff !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) #short-form .btn-primary:hover {
  background: var(--cd-primary-hover) !important;
  border-color: var(--cd-primary-hover) !important;
}

/* §4 Trust pills */
.cd-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cd-trust-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cd-muted);
  background: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-pill);
  padding: 0.35rem 0.85rem;
}

html.dark .cd-trust-pill {
  background: #18181b;
}

.cd-hero-microcopy {
  text-align: center;
  font-size: 0.875rem;
  color: var(--cd-muted);
  margin-top: 0.75rem;
}

.cd-hero-microcopy .cd-accent-word {
  font-weight: 600;
  color: var(--cd-pink);
}

/* §4c Section chips — ColorHunt palette on white/off-white bands */
.cd-chip-row {
  margin-bottom: 0;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-chip.badge-success {
  border: 0 !important;
  text-transform: none;
  font-weight: 600;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-hero .cd-section-chip,
.d-flex.flex-column.flex-fill:not(.content) .cd-section-cta .cd-section-chip {
  background: var(--cd-pink) !important;
  color: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-features .cd-section-chip,
.d-flex.flex-column.flex-fill:not(.content) .cd-section-pricing .cd-section-chip {
  background: var(--cd-blue) !important;
  color: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-links .cd-section-chip {
  background: var(--cd-teal) !important;
  color: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-stats .cd-section-chip {
  background: var(--cd-pink) !important;
  color: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .cd-section-chip {
  background: var(--cd-yellow) !important;
  color: var(--cd-ink) !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .cd-section-chip {
  color: #0f0f10 !important;
}

@media (min-width: 992px) {
  .d-flex.flex-column.flex-fill:not(.content) .text-center.text-lg-start > .cd-section-chip {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* Chip → heading → subline rhythm */
.d-flex.flex-column.flex-fill:not(.content) .text-center > .cd-section-chip + h2.fs-3xl,
.d-flex.flex-column.flex-fill:not(.content) .text-center.text-lg-start > .cd-section-chip + h2.fs-3xl {
  margin-top: 0 !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-chip-row + h1.fs-5xl {
  margin-top: 0 !important;
}

/* §4d Section color theming — tint vendor primary accents per band */
.d-flex.flex-column.flex-fill:not(.content) .cd-section-hero {
  --cd-section-color: var(--cd-pink);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-features {
  --cd-section-color: var(--cd-blue);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-links {
  --cd-section-color: var(--cd-teal);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-stats {
  --cd-section-color: var(--cd-pink);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations {
  --cd-section-color: var(--cd-yellow);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-pricing {
  --cd-section-color: var(--cd-blue);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-cta {
  --cd-section-color: var(--cd-pink);
}

/* Chips = full section color; everything else = softer tints */
.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] {
  --cd-section-tint-icon: color-mix(in srgb, var(--cd-section-color) 9%, transparent);
  --cd-section-tint-glow: color-mix(in srgb, var(--cd-section-color) 3.5%, transparent);
  --cd-section-accent: color-mix(in srgb, var(--cd-section-color) 62%, var(--cd-muted));
  --cd-section-bar: color-mix(in srgb, var(--cd-section-color) 48%, transparent);
}

/* Large card glows behind mock UI */
.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] .position-relative > .position-absolute.bg-primary.opacity-10 {
  background-color: var(--cd-section-tint-glow) !important;
  opacity: 1 !important;
}

/* Small icon tile backgrounds */
.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] .w-12 .bg-primary.opacity-10,
.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] .w-8 .bg-primary.opacity-10,
.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] .d-flex.position-relative.text-primary .bg-primary.opacity-10 {
  background-color: var(--cd-section-tint-icon) !important;
  opacity: 1 !important;
}

.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] .text-primary {
  color: var(--cd-section-accent) !important;
}

.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] .progress-bar {
  background-color: var(--cd-section-bar) !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations {
  --cd-section-accent: color-mix(in srgb, var(--cd-yellow) 70%, #9a8b4a);
  --cd-section-tint-glow: color-mix(in srgb, var(--cd-yellow) 3%, transparent);
  --cd-section-tint-icon: color-mix(in srgb, var(--cd-yellow) 8%, transparent);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .text-primary {
  color: var(--cd-section-accent) !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .bg-primary {
  background-color: var(--cd-section-tint-icon) !important;
  opacity: 1 !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .rounded-3xl.bg-base-1:hover {
  border-color: color-mix(in srgb, var(--cd-yellow) 35%, var(--cd-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cd-yellow) 10%, transparent);
}

/* §4b Homepage sections — flat bands */
.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] {
  position: relative;
}

.d-flex.flex-column.flex-fill:not(.content) [class*="cd-section-"] > .container {
  position: relative;
  z-index: 1;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-features {
  background: #f0f0f2 !important;
  border-top: 1px solid var(--cd-border);
  border-bottom: 1px solid var(--cd-border);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-features::before {
  display: none;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-features .card.border-0.shadow-sm {
  background: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-links {
  background: #ffffff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-links::after {
  display: none;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-stats {
  background: #f5f5f7 !important;
  border-top: 1px solid var(--cd-border);
  border-bottom: 1px solid var(--cd-border);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-stats .card.border-0.shadow-sm {
  background: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations {
  background: #fafafa !important;
  border-top: 1px solid var(--cd-border);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .rounded-3xl.bg-base-1 {
  background: #fff !important;
  border: 1px solid var(--cd-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-pricing,
.d-flex.flex-column.flex-fill:not(.content) .cd-section-cta {
  background: #ececee !important;
  border-top: 1px solid var(--cd-border);
}

.d-flex.flex-column.flex-fill:not(.content) .cd-section-pricing::before,
.d-flex.flex-column.flex-fill:not(.content) .cd-section-cta::before {
  display: none;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-features .card.border-0.shadow-sm {
  background: #1c1c1f !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-links {
  background: #0f0f11 !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-stats {
  background: #131316 !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-stats .card.border-0.shadow-sm {
  background: #1c1c1f !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations {
  background: #111113 !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-integrations .rounded-3xl.bg-base-1 {
  background: #1a1a1d !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-pricing,
html.dark .d-flex.flex-column.flex-fill:not(.content) .cd-section-cta {
  background: #161618 !important;
}

/* §5 Header */
#header.cd-public-chrome.header {
  box-shadow: none !important;
  border-bottom: 1px solid var(--cd-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#header.cd-public-chrome.cd-header-shrunk.header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(15, 15, 16, 0.08);
}

html.dark #header.cd-public-chrome.header {
  background: rgba(10, 10, 11, 0.9) !important;
}

html.dark #header.cd-public-chrome.cd-header-shrunk.header {
  background: rgba(10, 10, 11, 0.97) !important;
}

#header.cd-public-chrome .navbar {
  transition: padding 0.2s ease;
}

#header.cd-public-chrome.cd-header-shrunk .navbar {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

#header.cd-public-chrome .navbar-brand img {
  transition: transform 0.2s ease;
}

#header.cd-public-chrome.cd-header-shrunk .navbar-brand img {
  transform: scale(0.92);
}

#header.cd-public-chrome .nav-link {
  color: var(--cd-muted) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  transition: color 0.15s ease;
}

#header.cd-public-chrome .nav-link:hover {
  color: var(--cd-ink) !important;
}

#header.cd-public-chrome .nav-link.cd-nav-active {
  font-weight: 600;
  color: var(--cd-primary) !important;
}

#header.cd-public-chrome .btn-outline-primary {
  border-radius: var(--cd-radius-pill) !important;
  border: 1px solid var(--cd-primary) !important;
  background: var(--cd-primary) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.45rem 1.15rem !important;
  margin-left: 0.35rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#header.cd-public-chrome .btn-outline-primary:hover {
  background: var(--cd-primary-hover) !important;
  border-color: var(--cd-primary-hover) !important;
  transform: translateY(-1px);
}

#header.cd-public-chrome .navbar-toggler {
  color: var(--cd-ink) !important;
}

@media (max-width: 991.98px) {
  #header.cd-public-chrome .navbar-collapse {
    border-top: 1px solid var(--cd-border);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
  }

  #header.cd-public-chrome .navbar-nav .nav-item {
    margin-bottom: 0.15rem;
  }

  #header.cd-public-chrome .btn-outline-primary {
    margin-left: 0;
    margin-top: 0.35rem;
    width: 100%;
    justify-content: center;
  }
}

/* §6 Cards */
.d-flex.flex-column.flex-fill:not(.content) .card.border-0.shadow-sm {
  border: 1px solid var(--cd-border) !important;
  box-shadow: none !important;
  border-radius: var(--cd-radius) !important;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.d-flex.flex-column.flex-fill:not(.content) .card.border-0.shadow-sm:hover {
  border-color: rgba(15, 15, 16, 0.2) !important;
  transform: translateY(-2px);
}

.d-flex.flex-column.flex-fill:not(.content) .fs-3xl.fw-bold.tracking-tight {
  letter-spacing: -0.03em !important;
}

/* §7 Integration logos */
.d-flex.flex-column.flex-fill:not(.content) .rounded-3xl.bg-base-1 {
  border: 1px solid var(--cd-border);
  box-shadow: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.d-flex.flex-column.flex-fill:not(.content) .rounded-3xl.bg-base-1:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

/* §8 Pricing */
.btn-group-toggle .btn-outline-inverse {
  border-radius: var(--cd-radius-pill) !important;
}

.d-flex.flex-column.flex-fill:not(.content) .row.justify-content-center > .col-xl-4:nth-child(2) .card.plan {
  border-color: var(--cd-blue) !important;
  position: relative;
}

.d-flex.flex-column.flex-fill:not(.content) .row.justify-content-center > .col-xl-4:nth-child(2) .card.plan::before {
  content: "Popular";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cd-pink);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--cd-radius-pill);
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .row.justify-content-center > .col-xl-4:nth-child(2) .card.plan::before {
  background: var(--cd-pink);
  color: #fff;
}

/* §9 Footer */
.d-flex.flex-column.flex-fill:not(.content) #footer.footer {
  background: #fafafa !important;
  border-top: 1px solid var(--cd-border);
}

html.dark .d-flex.flex-column.flex-fill:not(.content) #footer.footer {
  background: #0a0a0b !important;
}

.d-flex.flex-column.flex-fill:not(.content) #footer.footer .container {
  padding-top: 2.75rem !important;
  padding-bottom: 2rem !important;
}

.d-flex.flex-column.flex-fill:not(.content) #footer.footer hr {
  border-color: var(--cd-border);
  opacity: 1;
  margin: 1.25rem 0 1.5rem;
}

.cd-footer-brand {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cd-border);
}

.cd-footer-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.cd-footer-brand strong {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--cd-ink);
}

.cd-footer-domain {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cd-pink);
  border-radius: var(--cd-radius-pill);
  padding: 0.2rem 0.55rem;
  line-height: 1.4;
}

.cd-footer-tagline {
  display: block;
  font-size: 0.875rem;
  color: var(--cd-muted);
  max-width: 36ch;
  line-height: 1.5;
}

.d-flex.flex-column.flex-fill:not(.content) #footer .nav-link {
  color: var(--cd-muted) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.d-flex.flex-column.flex-fill:not(.content) #footer .nav-link:hover {
  color: var(--cd-primary) !important;
}

.d-flex.flex-column.flex-fill:not(.content) #footer .nav-link.text-secondary:hover {
  color: var(--cd-primary) !important;
}

.d-flex.flex-column.flex-fill:not(.content) #footer .nav-link.text-secondary:hover svg {
  color: var(--cd-primary);
}

.d-flex.flex-column.flex-fill:not(.content) #footer .text-muted {
  color: var(--cd-muted) !important;
  font-size: 0.875rem;
}

.d-flex.flex-column.flex-fill:not(.content) #footer #dark-mode,
.d-flex.flex-column.flex-fill:not(.content) #footer [data-target="#change-language-modal"] {
  border-radius: var(--cd-radius-pill);
  padding-left: 0.65rem !important;
  padding-right: 0.85rem !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.d-flex.flex-column.flex-fill:not(.content) #footer #dark-mode:hover,
.d-flex.flex-column.flex-fill:not(.content) #footer [data-target="#change-language-modal"]:hover {
  background: color-mix(in srgb, var(--cd-blue) 7%, transparent);
  color: var(--cd-ink) !important;
}

/* §10 Scroll reveal */
.cd-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--cd-reveal-delay, 0ms);
}

.cd-reveal.cd-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* §11 CTA buttons */
.d-flex.flex-column.flex-fill:not(.content) .btn-primary:not(#short-form .btn-primary) {
  border-radius: var(--cd-radius-pill) !important;
  background: var(--cd-primary) !important;
  border-color: var(--cd-primary) !important;
  font-weight: 600;
  color: #fff !important;
}

.d-flex.flex-column.flex-fill:not(.content) .btn-primary:not(#short-form .btn-primary):hover {
  background: var(--cd-primary-hover) !important;
  border-color: var(--cd-primary-hover) !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .btn-primary:not(#short-form .btn-primary) {
  background: var(--cd-primary) !important;
  border-color: var(--cd-primary) !important;
  color: #fff !important;
}

html.dark .d-flex.flex-column.flex-fill:not(.content) .btn-primary:not(#short-form .btn-primary):hover {
  background: var(--cd-primary-hover) !important;
  border-color: var(--cd-primary-hover) !important;
}

/* §99 Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cd-reveal,
  .d-flex.flex-column.flex-fill:not(.content) .card,
  .d-flex.flex-column.flex-fill:not(.content) #short-form .btn-primary,
  #header.cd-public-chrome.cd-header-shrunk .navbar-brand img {
    transition: none !important;
    transform: none !important;
  }

  .cd-reveal {
    opacity: 1;
  }
}
