/* ==========================================================================
   BulkiApps design system v2
   Aesthetic: fresh, bright, modern app. White + soft mint washes, vivid
   green, clean General Sans, big rounding, soft diffuse shadows. Airy.
   ========================================================================== */

:root {
  /* Palette bright & fresh */
  --paper: #ffffff;
  --paper-2: #f1f7f4;          /* soft mint section wash */
  --paper-3: #e9f3ee;
  --card: #ffffff;
  --ink: #0d1a15;              /* cool near-black */
  --ink-soft: #46524c;
  --ink-mute: #64726b;
  --emerald: #10b981;          /* fresh brand green */
  --emerald-deep: #0b8f63;
  --emerald-bg: #0a7a55;       /* CTA / dark-green band */
  --lime: #c7ed4f;             /* energetic accent */
  --clay: #f15a3c;             /* coral pop / critical */
  --gold: #f0a830;
  --sky: #5ec5ff;
  --line: rgba(13, 26, 21, 0.10);
  --line-soft: rgba(13, 26, 21, 0.06);

  /* Type clean modern sans */
  --display: "General Sans", system-ui, sans-serif;
  --body: "General Sans", system-ui, sans-serif;

  /* Shape + depth friendly, soft */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 3px rgba(13, 26, 21, 0.04), 0 6px 16px rgba(13, 26, 21, 0.05);
  --shadow: 0 2px 8px rgba(13, 26, 21, 0.05), 0 24px 50px -22px rgba(13, 26, 21, 0.18);
  --shadow-lift: 0 6px 16px rgba(13, 26, 21, 0.06), 0 44px 80px -32px rgba(16, 185, 129, 0.32);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* soft fresh wash at the top */
  background-image: radial-gradient(1100px 520px at 78% -8%, rgba(16, 185, 129, 0.10), transparent 60%),
                    radial-gradient(820px 420px at 8% 2%, rgba(199, 237, 79, 0.10), transparent 55%);
  background-repeat: no-repeat;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 650; }
h2 { font-size: clamp(1.95rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -0.025em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-mute);
  font-weight: 450;
  letter-spacing: -0.012em;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--emerald-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--paper-2);
  padding: 0.45em 0.95em;
  border-radius: 100px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); display: inline-block; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.08em; height: 0.34em; background: var(--lime); border-radius: 100px; z-index: -1; }
.ink-mute { color: var(--ink-mute); }
.serif { font-family: var(--display); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: clamp(84px, 12vw, 160px) 0; }
.section-tight { padding: clamp(56px, 8vw, 104px) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 0.6rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: var(--emerald-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-deep); }
.btn-lg { padding: 1.02em 1.85em; font-size: 1.05rem; }
.shopify-btn { background: var(--emerald); color: #fff; }
/* Primary "Install" CTA: solid emerald, flat. */
.btn-install { background: var(--emerald); color: #fff; }
.btn-install:hover { background: var(--emerald-deep); }
.btn-install.on-dark { background: var(--lime); color: var(--ink); }
.btn-install.on-dark:hover { background: #b9e23d; }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-head.scrolled { border-color: var(--line-soft); background: rgba(255, 255, 255, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.035em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.site-foot .brand-logo { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: var(--ink); opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 0.9rem; }

/* dropdown */
.has-menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 330px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity 0.22s, transform 0.22s;
}
/* Invisible bridge over the gap so moving from the trigger to the panel
   doesn't drop :hover and close the menu. Only active while the panel is
   visible (it inherits the panel's visibility). */
.menu-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 18px;
}
/* Keep the menu open while hovering the trigger OR the panel itself. */
.has-menu:hover .menu-panel,
.menu-panel:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.menu-item { display: flex; gap: 0.85rem; padding: 13px; border-radius: var(--radius-sm); transition: background 0.18s; }
.menu-item:hover { background: var(--paper-2); }
.menu-item .mi-icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.menu-item h4 { font-family: var(--body); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.02em; }
.menu-item p { font-size: 0.82rem; color: var(--ink-mute); margin: 2px 0 0; line-height: 1.4; }
.menu-soon { font-size: 0.68rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: 0.3s; }
.mobile-menu { display: none; }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(44px, 7vw, 92px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 32ch; margin-bottom: 2.1rem; }
.hero-cta { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-mute); display: flex; align-items: center; gap: 0.5em; }
.hero-centered { max-width: 880px; margin-inline: auto; text-align: center; }
.hero-centered .lead { max-width: 60ch; margin-inline: auto; }
.hero-centered .hero-cta { justify-content: center; }
.hero-centered .hero-note { justify-content: center; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.6; z-index: -1; }
.blob-1 { width: 440px; height: 440px; background: radial-gradient(circle, rgba(16, 185, 129, 0.5), transparent 70%); top: -150px; right: -110px; }
.blob-2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(199, 237, 79, 0.45), transparent 70%); bottom: -130px; left: -110px; }

/* ---- Score gauge (brand motif) ---- */
.gauge { position: relative; display: inline-grid; place-items: center; }
.gauge svg { transform: rotate(-90deg); }
.gauge .gauge-track { fill: none; stroke: var(--paper-3); }
.gauge .gauge-fill { fill: none; stroke: var(--emerald); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gauge .gauge-num { position: absolute; font-family: var(--display); font-weight: 650; line-height: 1; letter-spacing: -0.04em; }
.gauge .gauge-lbl { position: absolute; bottom: 18%; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- Product UI mockup ---- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden;
  transform: perspective(1800px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mock:hover { transform: perspective(1800px) rotateY(-1deg) rotateX(0.5deg) translateY(-4px); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--ink-mute); font-weight: 500; }
.mock-body { padding: 20px; }
.mock-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.metric { background: var(--paper-2); border-radius: var(--radius-sm); padding: 13px; }
.metric .m-num { font-family: var(--display); font-size: 1.7rem; font-weight: 650; line-height: 1; letter-spacing: -0.04em; }
.metric .m-lbl { font-size: 0.7rem; color: var(--ink-mute); margin-top: 5px; font-weight: 500; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line-soft); }
.mock-thumb { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); flex: none; display: grid; place-items: center; color: var(--ink-mute); }
.mock-row .r-title { font-weight: 600; font-size: 0.9rem; letter-spacing: -0.02em; }
.mock-row .r-sub { font-size: 0.76rem; color: var(--ink-mute); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.74rem; font-weight: 600; padding: 0.3em 0.72em;
  border-radius: 100px; letter-spacing: -0.01em; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-critical { background: #ffe4dd; color: #d23f17; }
.badge-warning { background: #fff0d4; color: #b1740c; }
.badge-caution { background: #fbf6c9; color: #877619; }
.badge-good { background: #d3f5e5; color: #0b8f5a; }
.badge-score { font-family: var(--body); border: 1.5px solid currentColor; background: transparent; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .c-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-mute); font-size: 0.97rem; margin: 0; }

/* App showcase card */
.app-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column;
  overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.app-card.soon { opacity: 0.82; }
.app-card-cta { margin-top: 18px; font-weight: 600; color: var(--emerald-deep); font-size: 0.95rem; }
.app-icon { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; }
.app-card h3 { margin: 18px 0 6px; font-size: 1.45rem; }
.app-tagline { color: var(--ink-mute); font-size: 0.96rem; margin-bottom: 18px; flex: 1; }
.app-meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 16px; font-size: 0.85rem; color: var(--ink-mute); }
.pill { font-size: 0.72rem; font-weight: 600; padding: 0.32em 0.78em; border-radius: 100px; background: var(--paper-2); letter-spacing: 0.01em; }
.pill-free { background: #d3f5e5; color: var(--emerald-deep); }
.pill-soon { background: #fff0d4; color: #b1740c; }
.ribbon { position: absolute; top: 20px; right: -34px; transform: rotate(45deg); background: var(--lime); color: var(--ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; padding: 5px 44px; text-transform: uppercase; }

/* check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 0.8em; align-items: flex-start; font-size: 1rem; }
.check-list .ck { width: 23px; height: 23px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; flex: none; margin-top: 2px; font-size: 0.72rem; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip .split-media { order: -1; }

/* SERP preview */
.serp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); font-family: Arial, sans-serif; max-width: 520px; }
.serp .s-url { color: #202124; font-size: 0.78rem; }
.serp .s-title { color: #1a0dab; font-size: 1.18rem; line-height: 1.3; margin: 3px 0; }
.serp .s-desc { color: #4d5156; font-size: 0.86rem; line-height: 1.45; }
.serp.weak .s-title { color: #9aa0a6; }
.serp.weak .s-desc { color: #9aa0a6; font-style: italic; }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; background: var(--paper-2); border-radius: var(--radius); padding: 30px 18px; }
.stat .s-num { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 650; line-height: 1; color: var(--emerald-deep); letter-spacing: -0.04em; }
.stat .s-lbl { color: var(--ink-mute); font-size: 0.9rem; margin-top: 8px; }

/* CTA band */
.cta-band {
  background: linear-gradient(140deg, var(--emerald-bg), var(--emerald-deep));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 86px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, 0.82); }
.cta-band .eyebrow { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cta-band .eyebrow::before { background: var(--lime); }
.cta-band::after { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(199, 237, 79, 0.25), transparent 70%); bottom: -270px; right: -130px; }

/* ---- Footer ---- */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: clamp(56px, 8vw, 86px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.site-foot .brand { color: #fff; margin-bottom: 16px; }
.site-foot h5 { font-family: var(--body); font-weight: 600; color: #fff; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
.foot-links { display: grid; gap: 11px; }
.foot-links a { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--lime); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.13); font-size: 0.85rem; flex-wrap: wrap; gap: 14px; }

/* ---- Legal ---- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
.legal .updated { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 3rem; }
.legal h2 { font-size: 1.45rem; margin: 2.6rem 0 0.8rem; letter-spacing: -0.025em; }
.legal h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; font-family: var(--body); font-weight: 600; }
.legal p, .legal li { color: #46524c; font-size: 1rem; line-height: 1.7; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--emerald-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal code { background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }

/* ---- Cookie consent ---- */
.cookie-bar {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 9000;
  max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.4);
  transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin-bottom: 6px; color: #fff; letter-spacing: -0.02em; }
.cookie-bar p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.74); margin-bottom: 16px; line-height: 1.5; }
.cookie-bar a { color: var(--lime); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6em 1.2em; font-size: 0.9rem; }
.btn-cookie-accept { background: var(--lime); color: var(--ink); }
.btn-cookie-decline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }

.hero-anim { opacity: 0; transform: translateY(18px); animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero-anim.d1 { animation-delay: 0.08s; }
.hero-anim.d2 { animation-delay: 0.18s; }
.hero-anim.d3 { animation-delay: 0.28s; }
.hero-anim.d4 { animation-delay: 0.38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .mock { transform: none; }
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .mock-metrics { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
.mobile-menu.open { display: block; position: fixed; inset: 96px 0 0; background: var(--paper); z-index: 99; padding: 30px 26px; }
.mobile-menu a { display: block; font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
body.menu-locked { overflow: hidden; }
