/* Vclip site styles. Brand decisions live in docs/SITE-DESIGN.md. */

:root {
  --bg: #FBF9FF;        /* lavender-white page */
  --ink: #1B1530;       /* text and dark sections */
  --violet: #5B2BE0;    /* electric violet: the brand */
  --violet-hover: #4A1FC9;
  --lilac: #EDE7FF;     /* soft accent */
  --line: #E4DDF7;
  --muted: #6B6585;
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --body: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --pill-gap: clamp(32px, 3.6vw, 44px); /* same space above and below the "Works on" pill */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- floating menu ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(960px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.2px; }
.logo img { width: 32px; height: 32px; margin: -3px -2px -3px -4px; } /* big enough to see the three slices */
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; color: #3E3858; }
.links a:hover { color: var(--violet); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font: 600 16px/1.2 var(--body);
  text-decoration: none;
  position: relative;
  overflow: hidden; /* keeps the hover's sweep of light inside the button */
  isolation: isolate;
  transition: background 0.15s, transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.25s;
}
.btn:hover { background: var(--violet-hover); }
.btn:active { transform: scale(0.98); }
/* When the pointer touches a button, it reacts: it lifts, glows, and a sweep of light
   passes across it (computers only: phones have no pointer to hover). */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.32) 50%, transparent 75%);
  transform: translateX(-110%);
  pointer-events: none;
}
.btn.soft::after { background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.75) 50%, transparent 75%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(91, 43, 224, 0.75); }
  .btn:hover::after { transform: translateX(110%); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
}
button.btn { border: 0; cursor: pointer; } /* a real button styled as one: no browser border */
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.btn.soft { background: var(--lilac); color: var(--violet-hover); }
.btn.soft:hover { background: #E2D9FF; }

/* ---------- hero ---------- */
.hero {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--pill-gap) 0 40px;
  text-align: center;
}
/* "Works on YouTube" pill: the site name rolls through the list. */
.works-on {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* The first thing you see below the pill is the top of the handles around "moment",
     which reach 0.1em above the headline's box: add that here, so the space below the
     pill matches the space above it. (0.1 × the headline's size, clamp(44px, 7.6vw, 92px).) */
  margin: 0 0 calc(var(--pill-gap) + clamp(4.4px, 0.76vw, 9.2px));
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: #3E3858;
}
.works-on .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 0 rgba(91, 43, 224, 0.5);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(91, 43, 224, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(91, 43, 224, 0); }
}
.site-wheel {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.4em;
  vertical-align: bottom;
  color: var(--violet);
  font-weight: 600;
  transition: width 0.35s ease;
}
.site-wheel span { display: block; white-space: nowrap; line-height: 1.4em; }
/* While two names swap, both sit in the same spot so nothing shifts. */
.site-wheel span.in, .site-wheel span.out { position: absolute; left: 0; top: 0; }
.site-wheel span.out { animation: wheel-out 0.35s ease forwards; }
.site-wheel span.in { animation: wheel-in 0.35s ease forwards; }
@keyframes wheel-out { to { transform: translateY(-100%); opacity: 0; } }
@keyframes wheel-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .works-on .dot { animation: none; }
}
.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.headline .l1 {
  display: block;
  font-size: clamp(44px, 7.6vw, 92px);
}
/* Line 2 in violet, upright (the slanted serif half was retired 31 Oct: it read as "AI-made") */
.headline .l2 {
  display: block;
  margin-top: 6px;
  font-size: clamp(36px, 6.2vw, 76px);
  color: var(--violet);
}
/* A word "clipped": between two of Vclip's timeline handles (the home page's "moment") */
.clip { position: relative; display: inline-block; padding: 0 0.17em 0 0.12em; margin: 0 0.1em; color: var(--violet); background: rgba(91, 43, 224, 0.1); border-top: 0.045em solid var(--violet); border-bottom: 0.045em solid var(--violet); line-height: 1.05; }
.clip::before, .clip::after { content: ''; position: absolute; top: -0.1em; bottom: -0.1em; width: 0.13em; border-radius: 0.05em; background: #fff; border: 0.04em solid var(--violet); }
.clip::before { left: -0.07em; }
.clip::after { right: -0.07em; }
/* The small uppercase label above a section's headline ("FAQ", "Legal"…) */
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
/* The same two-line headline, sized for a section, light on dark */
.headline.section .l1 { font-size: clamp(36px, 5.6vw, 72px); }
.headline.section .l2 { font-size: clamp(30px, 4.8vw, 60px); color: #A88BFF; }
.lede {
  max-width: 520px;
  margin: 24px auto 30px;
  font-size: clamp(17px, 2vw, 20px);
  color: #3E3858;
}
.get { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.get .note { margin: 0; font-size: 14px; color: var(--muted); }
.get .extra { font-size: 14px; color: var(--violet); font-weight: 500; }


/* ---------- phones ---------- */
@media (max-width: 760px) {
  .links { display: none; } /* phones: just the logo and the button for now */
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { top: 10px; padding-left: 12px; }
  .btn { width: 100%; max-width: 360px; }
  .nav .btn { width: auto; }
  .demo { border-radius: 16px; margin-top: 36px; }
}
