/* ===== Krafty Design Studio — landing page styles ===== */
/* Visual DNA pulled from the tool: lavender canvas, purple primary,
   hot-pink + teal accents, pill buttons, rounded white cards, sparkles. */

:root {
  /* palette — light pastel backgrounds */
  --lav-bg: #F3ECFC;
  --lav-bg-2: #ECE0FB;
  --lav-soft: #F8F3FE;
  --aqua-soft: #EAFDFE;
  --white: #ffffff;

  /* brand colors */
  --purple: #A16AE8;       /* brand bright purple */
  --purple-bright: #B488EE;
  --purple-deep: #603F8B;  /* brand deep purple */
  --pink: #FD49A0;         /* brand hot pink */
  --pink-soft: #FFDCEE;
  --teal: #2BBFD0;         /* readable cyan derived from brand aqua */
  --teal-bright: #5FE0EC;
  --teal-soft: #D6FAFC;    /* brand aqua tint */
  --gray: #D9D9D9;         /* brand neutral */

  --ink: #34265A;          /* headings — deep purple-leaning */
  --ink-2: #6B6480;        /* body */
  --ink-3: #9A93AE;        /* muted */
  --border: #E8DCF8;
  --border-2: #D9C7F2;

  /* accent is tweakable — defaults to purple */
  --accent: var(--purple);
  --accent-bright: var(--purple-bright);
  --accent-soft: #EFE4FC;

  /* type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* radii */
  --r-card: 24px;
  --r-card-lg: 32px;
  --r-pill: 999px;
  --r-input: 12px;

  /* shadow */
  --shadow-sm: 0 2px 8px rgba(96, 63, 139, 0.07);
  --shadow-md: 0 10px 30px rgba(96, 63, 139, 0.11);
  --shadow-lg: 0 24px 60px rgba(96, 63, 139, 0.17);
  --shadow-pop: 0 16px 40px rgba(161, 106, 232, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--lav-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border);
}
.site-header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.site-header .logo img { height: 40px !important; }
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}
.mobile-menu-toggle {
  width: 46px;
  height: 46px;
  border: 2px solid var(--border-2);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.mobile-menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: var(--r-pill);
  font-weight: 900;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--border);
}
.mobile-menu-action {
  width: 100%;
  justify-content: center;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  line-height: 1;
  max-width: 100%;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-lg { font-size: 18px; padding: 17px 34px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 2px solid var(--border);
  color: var(--ink-2);
}
.pill-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill-pink   { background: var(--pink-soft);   border-color: transparent; color: var(--pink); }
.pill-teal   { background: var(--teal-soft);   border-color: transparent; color: var(--teal); }

/* eyebrow label like the tool's section headers */
.eyebrow {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* numbered step badge from the tool */
.step-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 19px;
  flex: none;
}

/* ---------- cards ---------- */
.card {
  background: #fff;
  border-radius: var(--r-card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); margin: 16px 0 14px; }
.section-head p { font-size: 19px; color: var(--ink-2); }

/* ---------- utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-3); }

/* ---------- pricing feature list ---------- */
.feat { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 2px solid var(--border); display: flex; flex-direction: column; gap: 13px; }
.feat li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }

.nav-links a:hover { color: var(--accent); }

/* tool card hover */
.tool-card { transition: transform .16s ease, box-shadow .16s ease; }
.tool-card:not(.cta-card):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* tutorial video card hover */
.vid-card { transition: transform .15s ease; }
.vid-card:hover { transform: translateY(-4px); }
.vid-card:hover h3 { color: var(--accent); }

/* tutorial embed gallery */
.tutorial-gallery-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px);
}
.tutorial-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 560px));
  justify-content: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.tutorial-video-card {
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.tutorial-video-frame {
  aspect-ratio: 16 / 9;
  background: #1f1833;
}
.tutorial-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.tutorial-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px;
  text-align: center;
  color: var(--ink-2);
  font-weight: 800;
}

/* ---------- animations ---------- */
@keyframes kfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kpop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kspin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: .85; cursor: default; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .wrap { padding: 0 20px; }
  .section-pad { padding: 70px 0; }
  .hero-copy { text-align: center; }
  header .wrap[style] { grid-template-columns: 1fr !important; }
  .tools-grid, .steps-grid, .quotes-grid { grid-template-columns: 1fr 1fr !important; }
  .tiers-grid, .vids-grid { grid-template-columns: 1fr !important; }
  .featured-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .site-header-inner { gap: 14px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { padding-left: 18px; padding-right: 18px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .tutorial-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-header .logo { min-width: 0; flex: 1 1 auto; }
  .site-header .logo img { height: 34px !important; max-width: min(220px, 58vw); object-fit: contain; }
  .nav-links,
  .nav-actions {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    justify-self: end;
  }
  .mobile-menu {
    flex: 0 0 100%;
    display: none;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 2px solid var(--border);
  }
  .mobile-menu.is-open {
    display: grid;
  }
  header .wrap[style] > * { min-width: 0; }
  .hero-copy { max-width: 100%; overflow: hidden; }
  .hero-copy h1 {
    font-size: clamp(34px, 10.5vw, 42px) !important;
    overflow-wrap: break-word;
  }
  .hero-copy p { font-size: 16px !important; line-height: 1.5 !important; max-width: 100% !important; }
  .hero-copy .btn-lg {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
  }
  .tools-grid, .steps-grid, .quotes-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .tutorial-video-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section-head h2 { font-size: 28px; overflow-wrap: break-word; }
  .section-head p { font-size: 17px; }
  footer .wrap { padding-left: 20px; padding-right: 20px; }
  .footer-grid { gap: 30px !important; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .site-header .logo img { height: 30px !important; max-width: 58vw; }
  .mobile-menu-toggle { width: 44px; height: 44px; }
}

/* scrollbar flavor */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-thumb { background: #cdb8ee; border-radius: 999px; border: 3px solid var(--lav-bg); }
::-webkit-scrollbar-track { background: transparent; }
