/* pukucloud.dev — design system
   All brand colors live in :root. Fonts are self-hosted (no third-party requests). */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #03060f;
  --bg-2: #060b1d;
  --surface: #081026;
  --surface-2: #0c1733;
  --line: rgba(120, 165, 255, 0.14);
  --line-strong: rgba(92, 170, 255, 0.35);
  --text: #eaf2ff;
  --muted: #9aabcc;
  --dim: #6b7c9e;
  --cyan: #2cc6f5;
  --blue: #2f7cf6;
  --blue-deep: #1a4fd0;
  --cream: #f4e3c1;
  --good: #62e7ad;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue));
  --glow: 0 0 40px rgba(47, 124, 246, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -5%, rgba(41, 112, 235, 0.16), transparent 35%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cream { color: var(--cream); }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; mix-blend-mode: screen; }
.logo .word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--muted); font-size: 0.98rem; padding: 6px 0; position: relative; }
.site-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--cyan); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: rgba(3, 6, 15, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: rgba(47, 124, 246, 0.1); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px rgba(32, 110, 255, 0.35); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 12px 36px rgba(32, 140, 255, 0.5); }
.btn-block { width: 100%; justify-content: center; }
.btn-plan { background: rgba(26, 79, 208, 0.35); border-color: rgba(92, 170, 255, 0.25); }
.btn svg { width: 18px; height: 18px; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  color: #9fd4ff; background: rgba(47, 124, 246, 0.12); border: 1px solid rgba(92, 170, 255, 0.25);
}
.chip-sm { font-size: 0.72rem; padding: 3px 10px; vertical-align: middle; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 180px; }
/* Note: the mascot art uses mix-blend-mode: screen so its black background disappears.
   Don't add z-index/isolation/opacity to its ancestors, or the black square comes back. */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 32px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero .chip { margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; justify-self: center; width: min(380px, 80vw); }
.hero-art img { position: relative; mix-blend-mode: screen; animation: float 6s ease-in-out infinite; }
.hero-art::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 124, 246, 0.35), transparent 70%); filter: blur(20px); }
.clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: -1; pointer-events: none; background: url("/assets/img/clouds.svg") center bottom / cover no-repeat; }
.hero-sm { padding: 56px 0 150px; }
.hero-sm .clouds { height: 200px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 820px) {
  .hero { padding: 40px 0 150px; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { width: min(260px, 70vw); order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { text-align: center; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px;
  color: var(--cyan); background: rgba(47, 124, 246, 0.1); border: 1px solid rgba(92, 170, 255, 0.22);
  box-shadow: 0 0 24px rgba(44, 198, 245, 0.12);
}
.icon svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(44, 198, 245, 0.6)); }
.icon-fill { background: var(--grad); color: #fff; border-color: transparent; margin: 0 0 18px; }
.icon-fill svg { filter: none; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(12, 23, 51, 0.85), rgba(6, 11, 29, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card .icon { margin: 0 0 16px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card ul { color: var(--muted); font-size: 0.95rem; padding-left: 1.1em; margin: 12px 0 0; }

@media (max-width: 980px) { .features, .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features, .cards { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; font-weight: 700; font-size: 0.9rem;
  color: var(--cyan); letter-spacing: 0.1em; margin-bottom: 10px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.plans-4 { grid-template-columns: repeat(4, 1fr); max-width: none; }
@media (max-width: 1080px) { .plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans, .plans-4 { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--line-strong); box-shadow: var(--glow); }
.plan h3 { margin-bottom: 6px; }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 8px; }
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.checks { list-style: none; padding: 0 !important; margin: 18px 0 24px !important; flex: 1; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--text); font-size: 0.95rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 8px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}
.fine { font-size: 0.85rem; color: var(--dim); }
.banner-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; padding: 22px 26px;
}
.banner-row .icon { margin: 0; }
.banner-row > div { display: flex; align-items: center; gap: 16px; }
.banner-row h3 { margin: 0 0 2px; color: var(--cyan); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; background: rgba(12, 23, 51, 0.6); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background: rgba(8, 16, 38, 0.6); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.member { text-align: center; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.4rem; color: #fff; background: var(--grad); box-shadow: 0 0 26px rgba(47, 124, 246, 0.35);
}
.member .role { color: var(--cyan); font-size: 0.9rem; margin-bottom: 10px; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: 96px 0 190px; }
.cta p { color: var(--muted); }
.cta .hero-actions { justify-content: center; }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 0 88px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.4em; }
.legal p, .legal li { color: #c3cfe6; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 24px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.legal .note { border-left: 3px solid var(--cyan); background: rgba(47, 124, 246, 0.08); padding: 14px 18px; border-radius: 0 10px 10px 0; }

/* ---------- 404 ---------- */
.nf { position: relative; overflow: hidden; min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 40px 0 200px; }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.nf-code { display: flex; align-items: center; font-size: clamp(6rem, 15vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.nf-code span { background: linear-gradient(180deg, #6cc8ff, #2f7cf6); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #1a4fd0) drop-shadow(0 0 24px rgba(47, 124, 246, 0.5)); }
.nf-code img { width: 0.95em; height: 0.95em; margin: 0 -0.06em; mix-blend-mode: screen; }
.nf h1 { font-size: clamp(2rem, 4vw, 3rem); }
.nf p { color: var(--muted); max-width: 420px; }
.nf-art { position: relative; justify-self: center; width: min(420px, 90%); }
.nf-art .peek { position: relative; mix-blend-mode: screen; animation: float 6s ease-in-out infinite; }
.nf-art .q { position: absolute; top: 4%; right: 2%; font-size: 4rem; font-weight: 800; color: var(--cyan); text-shadow: 0 0 20px rgba(44, 198, 245, 0.7); transform: rotate(12deg); }
.spark { position: absolute; width: 22px; height: 22px; filter: drop-shadow(0 0 8px #2cc6f5); animation: twinkle 3s ease-in-out infinite; }
.spark.s1 { top: 8%; left: 2%; }
.spark.s2 { top: 50%; left: -6%; width: 16px; animation-delay: 1s; }
.spark.s3 { top: 44%; right: -4%; width: 16px; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
@media (max-width: 820px) {
  .nf-grid { grid-template-columns: 1fr; }
  .nf-art { width: min(240px, 60vw); order: -1; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; background: var(--bg); position: relative; z-index: 3; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a, .foot-links button { color: var(--muted); font-size: 0.92rem; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot-links a:hover, .foot-links button:hover { color: var(--text); }
.copyright { text-align: center; color: var(--dim); font-size: 0.85rem; margin: 22px 0 0; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  background: rgba(8, 16, 38, 0.97); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.consent h2 { font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.consent p { font-size: 0.92rem; color: var(--muted); margin: 0 0 14px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { padding: 9px 16px; font-size: 0.9rem; flex: 1 1 auto; justify-content: center; }
dialog.consent-dialog {
  max-width: 520px; width: calc(100% - 32px); color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px;
}
dialog.consent-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.consent-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.consent-row p { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.consent-row input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.cards-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; }
a.card { display: block; color: var(--text); }
a.card:hover { text-decoration: none; transform: translateY(-2px); }

/* Cloud band: scales with viewport width; sections reserve the same space so text never overlaps. */
:root { --cloud-h: clamp(120px, 17vw, 260px); }
.clouds, .hero-sm .clouds { height: var(--cloud-h); background-size: 100% 100%; }
.hero { padding-bottom: calc(var(--cloud-h) + 24px); }
.hero-sm { padding-bottom: calc(var(--cloud-h) + 16px); }
.cta { padding-bottom: calc(var(--cloud-h) + 32px); }
.nf { padding-bottom: calc(var(--cloud-h) + 24px); }

/* Plan accents (from the brand mockups): Upkeep/Analytics blue, Build purple, Ecommerce green */
.accent-blue   { --accent: #2f7cf6; --accent-2: #2cc6f5; }
.accent-purple { --accent: #7c5cf6; --accent-2: #a78bfa; }
.accent-green  { --accent: #16b87a; --accent-2: #3ee6a8; }
.plan[class*="accent-"] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan[class*="accent-"] .icon-fill { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.plan[class*="accent-"] .checks li::before { border-color: var(--accent-2); }
.plan[class*="accent-"] .price { color: var(--text); }
.accent-purple .price, .accent-green .price { background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip-green { color: #7ff0c4; background: rgba(22, 184, 122, 0.14); border-color: rgba(62, 230, 168, 0.35); }
.plans-4 + .fine { margin-top: 24px; }

/* Motion streaks behind the hero mascot ("running Puku").
   To use a real running-Puku PNG instead, swap the <img> src and delete .streaks. */
.hero-run .streaks {
  position: absolute; top: 38%; right: 62%; width: 70%; height: 34%;
  background:
    linear-gradient(90deg, transparent, rgba(44, 198, 245, 0.9)) 0 12% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.8)) 25% 40% / 80% 4px no-repeat,
    linear-gradient(90deg, transparent, rgba(92, 170, 255, 0.7)) 10% 68% / 90% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(44, 198, 245, 0.6)) 40% 92% / 60% 3px no-repeat;
  filter: blur(0.6px) drop-shadow(0 0 6px rgba(44, 198, 245, 0.8));
  transform: rotate(-12deg);
  animation: streak 1.6s ease-in-out infinite;
}
@keyframes streak { 0%, 100% { opacity: 0.55; translate: 0 0; } 50% { opacity: 1; translate: -12px 0; } }
.benefits .feature h3 { color: var(--cyan); }
.cta-puku { width: 120px; margin: 0 auto 8px; mix-blend-mode: screen; animation: float 6s ease-in-out infinite; }
