/* ======================================================================
   Store Craft Studio — design tokens + base styles
   Clean & premium SaaS, purple-forward (brand #6E35D1)
   ====================================================================== */

:root {
  /* Brand (overridable via Tweaks) */
  --brand: #6E35D1;
  --brand-600: #5b25bd;
  --brand-700: #4a1ca0;
  --brand-tint: #f4effd;
  --brand-tint-2: #ece2fb;
  --brand-glow: rgba(110, 53, 209, 0.18);

  /* Neutrals */
  --ink: #14101f;          /* headings */
  --body: #423b52;         /* body text */
  --muted: #786f88;        /* secondary text */
  --faint: #a39bb2;
  --bg: #ffffff;
  --bg-soft: #faf8fe;
  --bg-soft-2: #f6f3fc;
  --line: #ebe6f3;
  --line-strong: #ddd5ec;
  --dark: #120c20;         /* dark sections */
  --dark-2: #1b1330;
  --on-dark: #f4f1fb;
  --on-dark-muted: #b7aecb;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Spacing rhythm */
  --section-y: clamp(72px, 9vw, 132px);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 16, 31, 0.04), 0 2px 8px rgba(20, 16, 31, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 16, 31, 0.06), 0 12px 40px rgba(20, 16, 31, 0.08);
  --shadow-lg: 0 18px 50px rgba(40, 18, 90, 0.14), 0 6px 18px rgba(20, 16, 31, 0.06);
  --shadow-brand: 0 16px 40px var(--brand-glow);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--on-dark-muted); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

[id] { scroll-margin-top: 96px; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section--dark .eyebrow { color: #b69bf2; }
.section--dark .eyebrow::before { background: #b69bf2; }

.section-head { max-width: 680px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-top: 16px;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.section--dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 20px 46px var(--brand-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.section--dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.22); }
.section--dark .btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc shared ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-700);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

#tweaks-root { position: fixed; z-index: 9000; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}
.about__img-wrap {
  position: relative;
}
.about-slot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 320px;
}
.about__img-bg {
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--brand-tint-2);
  border-radius: 24px;
  z-index: -1;
}
.about__copy h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 16px; }
.about__copy > p { margin-top: 18px; font-size: 17px; color: var(--muted); line-height: 1.7; }
.about__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about__actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__img-wrap { max-width: 360px; }
  .about__img-bg { display: none; }
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  align-items: start;
}
.pricing-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .22s ease, box-shadow .25s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--highlight { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.pricing-card--highlight:hover { box-shadow: 0 20px 56px var(--brand-glow); transform: translateY(-5px); }
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-card__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pricing-card__timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}
.pricing-card__timeline svg { color: var(--brand); }
.pricing-card__desc {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.6;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pricing-card__features {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.4;
}
.pricing-card__features li svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.pricing-card__cta { margin-top: 28px; width: 100%; justify-content: center; }
.pricing__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.pricing__note svg { color: var(--brand); flex-shrink: 0; }
@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Work card result badge ---------- */
.work-card__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  margin-top: 12px;
}
.work-card__result svg { flex-shrink: 0; }

/* ---------- Contact Calendly button ---------- */
.contact__calendly {
  margin-top: 24px;
  display: inline-flex;
  width: fit-content;
}

/* ---------- Footer social links ---------- */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-muted);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.footer__social-link:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
