/* Heyloo — product site styles (landing + builder). Mobile-first.
   Aesthetic: playful sticker-book — bright violet anchor with coral / yellow /
   teal confetti accents, chunky rounded Fredoka display, Nunito for clarity.
   Toy-like cushion shadows and bouncy micro-interactions. */

:root {
  /* Heyloo brand palette (from the heyloo.in logo) */
  --violet: #7c3aed;        /* the "loo" purple — primary */
  --violet-deep: #6321d0;   /* button cushion / pressed */
  --violet-bright: #9d5cff;
  --violet-soft: #efe6ff;
  --ink: #191636;           /* deep navy of "Hey" */
  --ink-soft: #6b6788;
  --coral: #ff5a72;         /* the accent "!" */
  --coral-deep: #e23a55;
  --yellow: #ffc531;        /* the accent burst */
  --teal: #14c8b4;          /* the smiley teal */
  --wa: #25d366;

  --paper: #faf7ff;
  --paper-2: #ffffff;
  --paper-3: #f3ecff;

  /* legacy aliases so existing rules keep resolving to the new palette */
  --forest: var(--violet);
  --forest-deep: var(--violet-deep);
  --gold: var(--coral);
  --gold-soft: rgba(255, 90, 114, 0.32);
  --blush: #ffd8dd;

  --font-display: 'Fredoka', 'Trebuchet MS', -apple-system, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-soft: 0 16px 40px -18px rgba(124, 58, 237, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* the hero's ghost ampersand bleeds past the edge by design;
     hidden is the fallback for browsers without clip support */
  overflow-x: hidden;
  overflow-x: clip;
}

html:has(body.site) {
  overflow-x: hidden;
  overflow-x: clip;
}

/* soft brand-color blooms for playful atmosphere (behind everything) */
body.site::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 32% at 8% 4%, rgba(124, 58, 237, 0.16) 0%, transparent 60%),
    radial-gradient(40% 30% at 96% 12%, rgba(20, 200, 180, 0.16) 0%, transparent 62%),
    radial-gradient(48% 36% at 92% 88%, rgba(255, 197, 49, 0.16) 0%, transparent 62%),
    radial-gradient(44% 34% at 4% 92%, rgba(255, 90, 114, 0.14) 0%, transparent 62%);
}

/* ---------- shared bits ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--gold); }
.wordmark small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: super;
  margin-left: 4px;
}

.topbar nav { display: flex; align-items: center; gap: 18px; }
.navlink {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.8;
}
.navlink:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: var(--forest);
  color: #f6f3e8;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-gold { background: var(--gold); color: #45101c; }
.btn-gold:hover { background: var(--coral-deep); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.6px solid rgba(30, 42, 34, 0.25);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--forest); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  text-align: center;
  overflow: visible;
}

/* enormous ghost ampersand — the one thing people remember */
.hero::before {
  content: '&';
  position: absolute;
  top: -60px;
  right: -30px;
  z-index: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(280px, 42vw, 560px);
  line-height: 1;
  color: rgba(124, 58, 237, 0.11);
  pointer-events: none;
  user-select: none;
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  margin: 18px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 14px auto 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2.5rem, 9.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--forest);
}

.lede {
  margin: 20px auto 0;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.hero-phone { margin-top: 56px; }
.phone-caption {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.phone-caption a { color: var(--forest); font-weight: 700; }

/* stagger the hero in */
.hero .eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .trust, .hero-phone {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.16s; }
.hero .cta-row { animation-delay: 0.24s; }
.hero .trust { animation-delay: 0.32s; }
.hero-phone { animation-delay: 0.4s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- the phone ---------- */

.phone {
  position: relative;
  width: min(330px, 86vw);
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  padding: 10px;
  background: #121210;
  border-radius: 48px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 60px 80px -40px rgba(30, 42, 34, 0.55),
    0 24px 48px -24px rgba(30, 42, 34, 0.4);
}
.phone-glow {
  position: absolute;
  inset: -10% -5%; /* must stay narrower than the phone's viewport margins — wider causes sideways scroll on small screens */
  z-index: -1;
  background: radial-gradient(58% 54% at 50% 55%, rgba(124, 58, 237, 0.34) 0%, rgba(124, 58, 237, 0) 72%);
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #121210;
  z-index: 6;
}
.phone-screen {
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0b0b0a;
  position: relative;
}
.phone-screen .inv-root { height: 100%; }
/* clear the notch */
.phone-screen .inv-header { padding-top: 34px; }
.phone-screen .inv-cover { padding-top: 48px; }

/* ---------- sections ---------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.7rem, 5.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--forest); }
.section-sub {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--ink-soft);
}

.steps {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}
.step-card {
  background: var(--paper-2);
  border: 1px solid var(--gold-soft);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.step-card h3 {
  margin: 12px 0 6px;
  font-size: 1.12rem;
}
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.chips {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid rgba(124, 58, 237, 0.3);
  color: var(--violet-deep);
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  background: #fff;
  transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { background: var(--violet); color: #fff; border-color: var(--violet); transform: translateY(-2px) rotate(-1.5deg); }

.features {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid rgba(30, 42, 34, 0.08);
  border-radius: 20px;
  padding: 20px;
}
.feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 14px;
  background: rgba(185, 139, 47, 0.14);
}
.feature h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(90% 120% at 88% -15%, rgba(255, 197, 49, 0.5) 0%, rgba(255, 197, 49, 0) 48%),
    radial-gradient(80% 120% at 6% 115%, rgba(20, 200, 180, 0.5) 0%, rgba(20, 200, 180, 0) 52%),
    linear-gradient(150deg, #8b47f5 0%, #6321d0 100%);
  color: #fff;
  text-align: center;
  padding: 60px 26px;
  box-shadow: 0 26px 60px -26px rgba(124, 58, 237, 0.7);
}
.cta-band::before {
  content: '🎉';
  position: absolute;
  top: 20px;
  left: 26px;
  font-size: 1.5rem;
  transform: rotate(-12deg);
}
.cta-band::after {
  content: '💌';
  position: absolute;
  bottom: 20px;
  right: 26px;
  font-size: 1.5rem;
  transform: rotate(10deg);
}
.cta-band h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.18;
  text-wrap: balance;
}
.cta-band .btn { margin-top: 28px; }

footer.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
footer.site-footer a { color: var(--forest); font-weight: 700; }
footer.site-footer p { margin: 6px 0; }

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 30px;
    text-align: left;
    padding-top: 30px;
  }
  .hero h1, .hero .lede { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .hero-phone { margin-top: 0; }
  .phone { transform: rotate(-2.2deg); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   BUILDER
   ========================================================= */

.builder-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 130px;
}

.builder-intro { margin: 6px 4px 22px; }
.builder-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
}
.builder-intro h1 em { font-style: italic; color: var(--forest); }
.builder-intro p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.builder-layout { display: block; }

.bcard {
  background: var(--paper-2);
  border: 1px solid rgba(30, 42, 34, 0.09);
  border-radius: 22px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 26px -18px rgba(30, 42, 34, 0.3);
}
.bcard > h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 520;
  font-size: 1.18rem;
}
.bcard > h2 .n {
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}
.bcard .hint { margin: -8px 0 14px; font-size: 0.83rem; color: var(--ink-soft); }

.field { display: block; margin-bottom: 14px; }
.field:last-child { margin-bottom: 2px; }
.lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="url"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.6px solid rgba(30, 42, 34, 0.15);
  border-radius: 13px;
  background: #fffef9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* theme swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1.6px solid rgba(30, 42, 34, 0.15);
  background: #fffef9;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dots { display: inline-flex; }
.swatch .dots i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}
.swatch .dots i + i { margin-left: -5px; }
.swatch:has(input:checked) {
  border-color: var(--forest);
  box-shadow: 0 0 0 1.4px var(--forest);
}

/* script editor */
.script-rows { display: flex; flex-direction: column; gap: 9px; }
.srow {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 16px;
  background: #f8f2e2;
  border: 1px solid rgba(30, 42, 34, 0.07);
}
.srow-who {
  flex-shrink: 0;
  width: 58px;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(30, 42, 34, 0.14);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
}
.srow-who.is-host { background: #ffffff; color: #14544a; }
.srow-who.is-guest { background: #dcf8c6; color: #1d4d2b; }
.srow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.srow-main textarea {
  width: 100%;
  resize: none;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  padding: 6px 2px;
}
.srow-main input {
  width: 100%;
  border: 1px dashed rgba(30, 42, 34, 0.25);
  border-radius: 9px;
  background: #fffef9;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.srow-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.srow-ops { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.srow-ops button {
  width: 30px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
}
.srow-ops button:hover { background: rgba(30, 42, 34, 0.08); color: var(--ink); }

.script-adds { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.add-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px dashed rgba(124, 58, 237, 0.5);
  background: transparent;
  color: var(--violet-deep);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
}
.add-btn:hover { background: rgba(124, 58, 237, 0.09); }

.rebuild-row { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rebuild-note { font-size: 0.8rem; color: var(--ink-soft); }

/* sticky action bar (mobile) */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247, 241, 229, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(30, 42, 34, 0.1);
}

/* desktop preview pane */
.builder-preview { display: none; }

@media (min-width: 1080px) {
  .builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 44px;
    align-items: start;
  }
  .builder-preview {
    display: block;
    position: sticky;
    top: 22px;
  }
  .builder-preview .phone { width: 340px; }
  .builder-preview .pv-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  .action-bar { display: none; }
}

/* mobile full-screen preview overlay */
.pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #17122b;
  display: none;
  flex-direction: column;
}
.pv-overlay.open { display: flex; }
.pv-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  color: #efe6d6;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.pv-overlay-bar button {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #efe6d6;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.pv-overlay-stage { flex: 1; min-height: 0; }
.pv-overlay-stage .inv-root { height: 100%; }
body.pv-locked { overflow: hidden; }

/* share dialog */
dialog.share-dialog {
  border: none;
  border-radius: 24px;
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
}
dialog.share-dialog::backdrop { background: rgba(20, 16, 12, 0.55); backdrop-filter: blur(3px); }
.share-box { padding: 26px 22px 22px; font-family: var(--font-body); }
.share-box h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 520;
  font-size: 1.45rem;
}
.share-box > p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.9rem; }
.share-url {
  width: 100%;
  height: 86px;
  resize: none;
  border: 1.6px solid rgba(30, 42, 34, 0.15);
  border-radius: 13px;
  background: #fffef9;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink-soft);
  word-break: break-all;
  outline: none;
}
.slug-row { display: flex; align-items: center; gap: 8px; }
.slug-prefix {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.slug-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1.6px solid rgba(30, 42, 34, 0.15);
  border-radius: 12px;
  background: #fffef9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.slug-row input:focus { border-color: var(--forest); }
.slug-status { text-align: left !important; margin: 10px 0 0 !important; }

.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.share-divider::before,
.share-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(30, 42, 34, 0.14);
}

.share-actions { display: grid; gap: 10px; margin-top: 14px; }
.btn-wa { background: var(--wa); color: #073a1e; }
.btn-wa:hover { background: #1fb958; }
.share-meta { margin-top: 12px; font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
.share-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

/* toast */
.toast {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  background: var(--forest-deep);
  color: #f3eeda;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .trust, .hero-phone { animation: none; }
  .cf { animation: none !important; }
}

/* =========================================================
   HEYLOO PLAYFUL LAYER
   Toy-like cushion shadows, confetti, bounce. Layered last so
   it re-skins the base rules above without touching their markup.
   ========================================================= */

/* --- wordmark: the Heyloo logo + a small beta badge --- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 0;
}
.wordmark-img {
  height: 38px;
  width: auto;
  display: block;
}
.wordmark small {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 800;
  font-size: 0.6rem;
  color: var(--violet-deep);
  background: var(--violet-soft);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  align-self: center;
}
.wordmark:hover { animation: hl-wiggle 0.45s ease; }
@keyframes hl-wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-3deg); }
  70% { transform: rotate(3deg); }
}

/* --- eyebrow: a little pill --- */
.eyebrow {
  display: inline-block;
  background: rgba(255, 90, 114, 0.14);
  color: var(--coral-deep);
  padding: 6px 15px;
  border-radius: 999px;
}

/* --- headings: chunky, colorful emphasis (no synthetic serif italic) --- */
.hero h1, .section-title, .builder-intro h1 { font-weight: 600; }
.hero h1 em,
.section-title em,
.builder-intro h1 em { font-style: normal; color: var(--violet); }
.section-title em { color: var(--teal); }
.cta-band h2 { font-style: normal; font-weight: 600; }

/* --- buttons: chunky sticker with a colored cushion + springy press --- */
.btn {
  font-weight: 800;
  box-shadow: 0 6px 0 0 var(--violet-deep), 0 16px 26px -14px rgba(124, 58, 237, 0.55);
  transition: transform 0.14s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.14s ease, background 0.2s ease;
}
.btn:hover {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 0 var(--violet-deep), 0 22px 32px -16px rgba(124, 58, 237, 0.6);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 0 var(--violet-deep), 0 8px 14px -10px rgba(124, 58, 237, 0.5);
}
.btn-gold {
  box-shadow: 0 6px 0 0 var(--coral-deep), 0 16px 26px -14px rgba(255, 90, 114, 0.5);
}
.btn-gold:hover {
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 0 var(--coral-deep), 0 22px 32px -16px rgba(255, 90, 114, 0.55);
}
.btn-gold:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 0 var(--coral-deep), 0 8px 14px -10px rgba(255, 90, 114, 0.5);
}
.btn-wa {
  box-shadow: 0 6px 0 0 #128c3e, 0 16px 26px -14px rgba(37, 211, 102, 0.5);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 0 #128c3e, 0 22px 32px -16px rgba(37, 211, 102, 0.55);
}
.btn-ghost {
  border-width: 2.4px;
  border-color: var(--violet);
  color: var(--violet-deep);
  font-weight: 800;
  transition: transform 0.14s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s ease;
}
.btn-ghost:hover { background: var(--violet-soft); transform: translateY(-2px); }

/* --- confetti in the hero --- */
.confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cf {
  position: absolute;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 6px -2px rgba(25, 22, 54, 0.3);
  animation: cf-float 6s ease-in-out infinite;
}
.cf-1 { width: 15px; height: 15px; background: var(--coral);  top: 10%; left: 4%;  animation-delay: 0s; }
.cf-2 { width: 11px; height: 11px; background: var(--yellow); top: 13%; left: 93%; animation-delay: 0.9s; }
.cf-3 { width: 17px; height: 17px; background: var(--teal);   top: 62%; left: 3%;  animation-delay: 1.7s; border-radius: 5px; }
.cf-4 { width: 13px; height: 13px; background: var(--violet); top: 76%; left: 94%; animation-delay: 0.4s; }
.cf-5 { width: 10px; height: 10px; background: var(--coral);  top: 46%; left: 85%; animation-delay: 2.2s; }
.cf-6 { width: 14px; height: 14px; background: var(--yellow); top: 3%;  left: 88%; animation-delay: 1.2s; border-radius: 5px; }
@keyframes cf-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(24deg); }
}

/* --- step cards: rounder, cushioned, colorful numbers, tilt on hover --- */
.step-card {
  border-radius: 26px;
  border: 2px solid var(--violet-soft);
  box-shadow: 0 10px 0 -4px rgba(124, 58, 237, 0.1), var(--shadow-soft);
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.step-card:hover { transform: translateY(-5px) rotate(-1.2deg); }
.step-num { font-style: normal; font-weight: 700; font-size: 2.4rem; }
.steps .step-card:nth-child(1) .step-num { color: var(--coral); }
.steps .step-card:nth-child(2) .step-num { color: var(--teal); }
.steps .step-card:nth-child(3) .step-num { color: var(--violet); }

/* --- feature cards + colorful tilted icons --- */
.feature {
  border-radius: 22px;
  border: 2px solid rgba(25, 22, 54, 0.06);
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-icon { border-radius: 16px; transform: rotate(-5deg); }
.features .feature:nth-child(1) .feature-icon { background: rgba(124, 58, 237, 0.14); }
.features .feature:nth-child(2) .feature-icon { background: rgba(255, 90, 114, 0.16); }
.features .feature:nth-child(3) .feature-icon { background: rgba(20, 200, 180, 0.16); }
.features .feature:nth-child(4) .feature-icon { background: rgba(255, 197, 49, 0.22); }

/* --- builder cards --- */
.bcard {
  border-radius: 26px;
  border: 2px solid var(--violet-soft);
  box-shadow: 0 12px 30px -22px rgba(124, 58, 237, 0.4);
}
.bcard > h2 .n { font-style: normal; color: var(--violet); }

@media (prefers-reduced-motion: reduce) {
  .wordmark:hover, .step-card:hover, .feature:hover, .chip:hover { animation: none; transform: none; }
}

/* --- form controls: crisp white fields, violet focus ring --- */
.lbl { color: var(--ink-soft); font-weight: 800; }
.field input[type="text"],
.field input[type="url"],
.field input[type="tel"],
.field select,
.field textarea {
  border: 2px solid var(--violet-soft);
  border-radius: 15px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* theme swatches */
.swatch {
  border: 2px solid var(--violet-soft);
  background: #fff;
  font-weight: 800;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.swatch:hover { border-color: rgba(124, 58, 237, 0.4); transform: translateY(-1px); }
.swatch:has(input:checked) {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

/* conversation editor rows */
.srow {
  border-radius: 18px;
  background: #f6f1ff;
  border: 1.5px solid var(--violet-soft);
}
.srow-who { border: 1.5px solid transparent; font-weight: 800; }
.srow-who.is-host  { background: var(--violet-soft); color: var(--violet-deep); }
.srow-who.is-guest { background: #d8f6c6; color: #2b6a34; }
.srow-tag { color: var(--coral-deep); }
.srow-main input {
  border: 1.6px dashed rgba(124, 58, 237, 0.35);
  border-radius: 11px;
  background: #fff;
}
.srow-main input:focus { outline: none; border-color: var(--violet); }

/* sticky action bar */
.action-bar {
  background: rgba(250, 247, 255, 0.92);
  border-top: 1.5px solid var(--violet-soft);
}

/* share dialog */
.share-box h3 { font-style: normal; }
.share-url,
.slug-row input {
  border: 2px solid var(--violet-soft);
  background: #fff;
}
.slug-row input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* --- occasion picker: tappable cards instead of a dropdown --- */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.occard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 84px;
  padding: 15px 8px;
  border: 2px solid var(--violet-soft);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.occard-ico {
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.occard-label { font-weight: 800; font-size: 0.9rem; line-height: 1.2; }
.occard:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}
.occard:hover .occard-ico { transform: scale(1.14) rotate(-7deg); }
.occard.is-selected {
  border-color: var(--violet);
  background: var(--violet-soft);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18), 0 12px 24px -16px rgba(124, 58, 237, 0.55);
}
.occard.is-selected .occard-label { color: var(--violet-deep); }
.occard.is-selected .occard-ico { transform: scale(1.08); }
.occard:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; }

@media (min-width: 480px) {
  .occasion-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .occard, .occard-ico { transition: none; }
  .occard:hover { transform: none; }
  .occard:hover .occard-ico { transform: none; }
}
