/* ==========================================================================
   Cuckoo Camp site styles
   ========================================================================== */


/* --------------------------------------------------------------------------
   01. Design tokens
   -------------------------------------------------------------------------- */

:root {
  --bg: #0b1220;
  --bg-soft: #111a2b;
  --panel: #13203a;
  --panel-2: #172742;
  --text: #edf2fb;
  --muted: #b8c4d9;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --accent-3: #86efac;
  --warning: #fde68a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
}


/* --------------------------------------------------------------------------
   02. Base / reset
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(192, 132, 252, 0.12), transparent 32%),
    linear-gradient(180deg, #0a1120 0%, #0d1526 55%, #0b1220 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.content-narrow {
  max-width: 760px;
}

.content-narrow p {
  color: var(--muted);
  margin: 1rem 0 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}


/* --------------------------------------------------------------------------
   03. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(11, 18, 32, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-logo {
  min-width: 0;
}

.site-logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1;
}

.brand-the {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: var(--text);
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   04. Buttons / small UI elements
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warning);
  margin-bottom: 0.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.28);
  color: #d7f9e2;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.24);
  color: #d9f6ff;
  font-size: 0.82rem;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   05. Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid,
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

/* This overrides the global h1 specifically for hero headings. */
.hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 1.3rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 39, 66, 0.95), rgba(19, 32, 58, 0.95));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 70%);
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}


/* --------------------------------------------------------------------------
   06. Hero stack-flow card
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
}

.stack-flow {
  display: grid;
  gap: 0.85rem;
}

.flow-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.flow-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.24);
  font-weight: 700;
  color: var(--accent);
}

.flow-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.flow-item span {
  color: var(--muted);
  font-size: 0.96rem;
}

.flow-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}


/* --------------------------------------------------------------------------
   07. Sections / layouts / grids
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.highlight {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlight-band {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(192, 132, 252, 0.1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-3,
.grid-2,
.pricing-grid,
.module-grid,
.path-grid,
.addon-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

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

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

/* Flexible grid for add-ons and any section with an unknown number of cards. */
.addon-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.top-gap {
  margin-top: 1.25rem;
}


/* --------------------------------------------------------------------------
   08. Cards
   -------------------------------------------------------------------------- */

.card {
  background: linear-gradient(180deg, rgba(23, 39, 66, 0.8), rgba(17, 26, 43, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.22rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 1.15rem;
  margin: 1rem 0 0;
}

/* Homepage/service cards with bottom-aligned buttons. */
.action-card {
  display: flex;
  flex-direction: column;
}

.action-card p {
  margin-bottom: 1.2rem;
}

.card-btn {
  width: fit-content;
  margin-top: auto;
}


/* --------------------------------------------------------------------------
   09. Pricing cards
   -------------------------------------------------------------------------- */

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0.95rem;
}

.pricing-card.featured {
  outline: 2px solid rgba(125, 211, 252, 0.35);
  transform: translateY(-4px);
}

.pricing-card .pill {
  margin-bottom: 0.1rem;
}

.pricing-card h3 {
  margin-top: 0.15rem;
}

.price {
  margin: 1rem 0 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.price-stack {
  display: grid;
  gap: 0.7rem;
  margin: 0.35rem 0 0.75rem;
}

.price-line {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.price-line:first-child {
  padding-top: 0;
  border-top: 0;
}

.price-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-stack .price {
  margin: 0;
}

.pricing-card .price {
  font-size: 1.85rem;
}

.pricing-card > p {
  margin: 0.25rem 0 0;
}

.pricing-card ul {
  margin: 0.7rem 0 1.2rem;
}

.pricing-card .muted.small {
  margin-top: 1rem;
}

/* Bottom-aligned enquiry buttons. Handles one-line and two-line button text. */
.pricing-card .btn {
  margin-top: auto;
  min-height: 56px;
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  padding-inline: 1rem;
}

/* Add-on cards use the same partial, but their prices should not dominate. */
.addon-grid .pricing-card .price,
.addon-grid .price {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}


/* --------------------------------------------------------------------------
   10. Tables / comparison blocks
   -------------------------------------------------------------------------- */

.comparison {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 0.92rem;
}

td {
  color: var(--muted);
  font-size: 0.95rem;
}


/* --------------------------------------------------------------------------
   11. CTA blocks
   -------------------------------------------------------------------------- */

.quote {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 52ch;
}

.cta-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(19, 32, 58, 0.95), rgba(23, 39, 66, 0.95));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}


/* --------------------------------------------------------------------------
   12. About / prose pages
   -------------------------------------------------------------------------- */

.about-copy {
  max-width: 820px;
}

.about-copy p {
  color: var(--muted);
  margin: 1rem 0 0;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.prose ul {
  padding-left: 1.15rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose .lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 62ch;
}

.philosophy-hero {
  padding-bottom: 2rem;
}


/* --------------------------------------------------------------------------
   13. Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}


/* --------------------------------------------------------------------------
   14. CloudyForms headless embed
   -------------------------------------------------------------------------- */

[data-cloudyforms] form,
[data-cf-form] {
  display: grid;
  gap: 1.25rem;
}

.cf-field {
  display: grid;
  gap: 0.45rem;
}

.cf-field label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
}

.cf-field small[data-cf-desc] {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: -0.2rem;
}

[data-cloudyforms] input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']),
[data-cloudyforms] textarea,
[data-cloudyforms] select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

[data-cloudyforms] textarea {
  min-height: 120px;
  resize: vertical;
}

[data-cloudyforms] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8c4d9' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

[data-cloudyforms] input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']):focus,
[data-cloudyforms] textarea:focus,
[data-cloudyforms] select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.06);
}

[data-cloudyforms] input::placeholder,
[data-cloudyforms] textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* Radio and checkbox groups */
[data-cloudyforms] [data-cf-field] > label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  margin-right: 1rem;
}

[data-cloudyforms] input[type='radio'],
[data-cloudyforms] input[type='checkbox'] {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Range / scale */
[data-cloudyforms] input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}

/* Submit button — matches .btn.btn-primary */
[data-cloudyforms] button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
  margin-top: 0.25rem;
}

[data-cloudyforms] button[type='submit']:hover,
[data-cloudyforms] button[type='submit']:focus-visible {
  transform: translateY(-1px);
}

[data-cloudyforms] button[type='submit']:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Field-level and form-level error messages */
[data-cf-err],
[data-cf-error] {
  font-size: 0.83rem;
  color: var(--warning);
}

/* Success message */
[data-cf-success] {
  padding: 1.25rem 1.5rem;
  background: rgba(134, 239, 172, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.28);
  border-radius: 12px;
  color: #d7f9e2;
  font-size: 0.97rem;
}

/* Loading state placeholder */
[data-cf-loading] {
  min-height: 200px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: cf-pulse 1.5s ease-in-out infinite;
}

@keyframes cf-pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}


/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 3.5rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(5, 10, 20, 0.28);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}

.footer-brand-block {
  max-width: 420px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 280px;
  object-fit: contain;
}

.footer-brand-block p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.footer-copy {
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warning);
  margin-bottom: 0.85rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}


/* --------------------------------------------------------------------------
   16. Responsive styles
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid,
  .hero .hero-grid,
  .cta-box,
  .grid-3,
  .pricing-grid,
  .module-grid,
  .path-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.9rem 0;
  }

  .nav-links {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .site-logo-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .card,
  .hero-card,
  .cta-box {
    padding: 1.1rem;
  }

  .pricing-card .btn {
    min-height: 52px;
  }
}

@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    height: 46px;
  }
}