
/* CaribbeanSaaS canonical theme source */
/* This file is the Tailwind input and design source of truth. */

:root {
  --ink: #10243d;
  --ink-soft: #3a4f69;
  --sea: #0f8b8d;
  --reef: #25a18e;
  --sun: #f59f6b;
  --sand: #fff8ee;
  --foam: #f2fbf8;
  --paper: #ffffff;
  --line: #d9e8e6;
  --page-bg-image: url("/ui-prototypes/assets/caribsaas-background-1536-q84.webp");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  position: relative;
  background: #f8faf9;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(140deg, rgba(16, 36, 61, 0.28), rgba(16, 36, 61, 0.08)),
    linear-gradient(180deg, rgba(255, 248, 238, 0.44), rgba(242, 251, 248, 0.48)),
    var(--page-bg-image);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(0.55px);
  z-index: -1;
}

.wrap {
  width: min(1080px, 94vw);
  margin: 20px auto 44px;
}

.frame {
  border: 2px solid #111f37;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(12, 34, 56, 0.18);
}

.topbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 120;
  isolation: isolate;
  transition:
    padding 0.28s ease,
    align-items 0.28s ease;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  position: relative;
  left: 0;
  transform: translateX(0);
  transition:
    left 0.32s cubic-bezier(0.18, 0.82, 0.28, 1),
    transform 0.32s cubic-bezier(0.18, 0.82, 0.28, 1),
    gap 0.2s ease;
  will-change: left, transform;
}

.topbar.layout-mobile .brand {
  left: 50%;
  transform: translateX(-50%);
}

.brand-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.38rem, 2.7vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  background: linear-gradient(120deg, var(--sea), var(--reef) 45%, var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.45));
  transition: font-size 0.24s ease;
}

.brand-tag {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #3d4f61;
  transition:
    font-size 0.24s ease,
    letter-spacing 0.24s ease,
    gap 0.24s ease;
}

.brand-tag::before,
.brand-tag::after {
  content: "";
  width: 14px;
  height: 1px;
  background: #7d8b98;
}

.top-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 2px solid #132842;
  border-radius: 10px;
  background: #fff;
  padding: 9px 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transform: translateY(0);
  transition:
    transform 0.24s ease,
    opacity 0.2s ease;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #132842;
  transition:
    transform 0.24s ease,
    opacity 0.2s ease;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}

.btn {
  border: 2px solid #132842;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  color: #132842;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px -11px rgba(7, 31, 56, 0.66);
}

.btn:focus-visible {
  outline: 2px solid #0a5f6b;
  outline-offset: 2px;
}

.btn-login {
  min-width: 92px;
  border: 2px solid #111111;
  color: #111111;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.58);
}

.top-nav a.btn-login {
  color: #111111;
  border-color: #111111;
}

.btn-primary {
  background: linear-gradient(145deg, var(--sun), #f8ab77);
  border-color: #8d4e2b;
  color: #2b1e14;
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-danger {
  background: linear-gradient(145deg, #d74d4d, #a01616);
  border-color: #6f1212;
  color: #ffffff;
  min-width: 150px;
  box-shadow: inset 0 -2px 0 rgba(79, 7, 7, 0.45);
}

.btn-danger:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 18px -12px rgba(98, 16, 16, 0.72);
}

.btn-signout {
  padding: 11px 20px;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.hero {
  margin-top: 14px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}

.hero-main h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  line-height: 1.03;
}

.hero-main p {
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #cde0de;
  border-radius: 999px;
  font-weight: 700;
  color: #1e4a62;
  background: #f5fcfb;
  font-size: 0.86rem;
}

.hero-side {
  background: var(--paper);
  border: 2px solid #132842;
  border-radius: 14px;
  padding: 14px;
}

.hero-side h3 {
  margin: 0;
  font-size: 1rem;
}

.mini-stat {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-stat div {
  border: 1px solid #d6e7e5;
  border-radius: 10px;
  background: var(--foam);
  text-align: center;
  padding: 8px;
}

.mini-stat b {
  display: block;
  font-size: 1rem;
}

.search {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.search input {
  flex: 1;
  border: 2px solid #132842;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.search button {
  border: 2px solid #132842;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #132842;
}

.section {
  margin-top: 14px;
  padding: 16px;
}

.section h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card {
  border: 2px solid #132842;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px -11px rgba(7, 31, 56, 0.66);
}

.card-link:focus-visible {
  outline: 2px solid #0a5f6b;
  outline-offset: 2px;
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 12px;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d6f72;
  text-transform: uppercase;
}

.card h3 {
  margin: 8px 0 6px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analytics-card {
  border: 2px solid #132842;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.kpis {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.kpis div {
  border: 1px solid #d6e7e5;
  border-radius: 9px;
  background: var(--foam);
  text-align: center;
  padding: 8px 6px;
}

.kpis b {
  display: block;
  font-size: 0.95rem;
}

.kpis span {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #39596f;
  font-weight: 700;
}

.pipeline {
  --pipeline-gap: 18px;
  --pipeline-line-inset: 2px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pipeline-gap);
}

.step {
  position: relative;
  border: 2px solid #132842;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--pipeline-line-inset));
  width: calc(var(--pipeline-gap) - var(--pipeline-line-inset));
  height: 2px;
  background: #1d6f72;
  transform: translateY(-50%);
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--pipeline-gap) - 8px);
  width: 8px;
  height: 12px;
  background: #1d6f72;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
}

.step small {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d6f72;
  margin-bottom: 6px;
}

.ads {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.slot {
  border: 2px dashed #184d63;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(245, 159, 107, 0.15), rgba(37, 161, 142, 0.09));
  padding: 12px;
}

.slot h3 {
  margin: 0 0 8px;
}

.footer {
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #375266;
}

[data-show] {
  opacity: 0;
  transform: translateY(10px);
}

body.loaded [data-show] {
  animation: show 0.42s ease-out forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes show {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step::before,
  .step::after {
    display: none;
  }

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

@media (max-width: 860px) {
  .topbar {
    padding: 12px;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    border: 2px solid #132842;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(19, 40, 66, 0.18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 10px 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition:
      max-height 0.26s ease,
      opacity 0.22s ease,
      transform 0.22s ease;
    pointer-events: none;
    z-index: 220;
  }

  .top-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #dbe7e7;
    transform: translateY(-8px);
    opacity: 0;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .top-nav a:last-child {
    border-bottom: 0;
    margin: 8px 0 0;
  }

  .top-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
  }

  .topbar.menu-open .top-nav {
    max-height: 380px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .topbar.menu-open .top-nav a {
    transform: translateY(0);
    opacity: 1;
  }

  .topbar.menu-open .top-nav a:nth-child(1) {
    transition-delay: 35ms;
  }

  .topbar.menu-open .top-nav a:nth-child(2) {
    transition-delay: 70ms;
  }

  .topbar.menu-open .top-nav a:nth-child(3) {
    transition-delay: 105ms;
  }

  .topbar.menu-open .top-nav a:nth-child(4) {
    transition-delay: 140ms;
  }

  .topbar.menu-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.menu-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  .topbar.menu-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand-wordmark {
    font-size: clamp(1.2rem, 7vw, 1.62rem);
  }

  .brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    gap: 6px;
  }

  .brand-tag::before,
  .brand-tag::after {
    width: 10px;
  }

  .hero {
    padding: 16px;
  }

  .grid,
  .analytics-grid,
  .pipeline,
  .mini-stat {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 12px;
  }
}
