/* virecut.com home page. Only shown on "/" (html.vx-home); every other
   route is the React app in #root. Black, white and VireCut gold, like
   the mobile apps. */

#lp { display: none; }
html.vx-home #lp { display: block; }
html.vx-home #root { display: none !important; }

html.vx-home,
html.vx-home body {
  margin: 0;
  background: #000;
  scroll-behavior: smooth;
}

#lp {
  --gold: #d4af37;
  --gold-dark: #b08d22;
  --ink: #000;
  --paper: #f2f2f7;
  --card: #fff;
  --line: #e5e5ea;
  --muted: #6e6e73;
  --muted-dark: #a1a1a6;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui,
    "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
/* Resets use :where() so they never outweigh the component rules below. */
:where(#lp) *, :where(#lp) *::before, :where(#lp) *::after { box-sizing: border-box; }
:where(#lp) img { display: block; max-width: 100%; }
:where(#lp) a { color: inherit; text-decoration: none; }
:where(#lp) :is(h1, h2, h3, p) { margin: 0; }
#lp :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.lp-wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

/* Header */
.lp-header {
  position: sticky; top: 0; z-index: 20; color: #fff;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.lp-header .lp-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.lp-brand img { width: 30px; height: 30px; border-radius: 8px; }
.lp-nav { display: flex; gap: 26px; margin-left: 12px; }
.lp-nav a { color: var(--muted-dark); font-size: 14px; font-weight: 500; }
.lp-nav a:hover { color: #fff; }
.lp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lp-lang {
  min-width: 40px; height: 32px; padding: 0 10px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent;
  color: #fff; font: 600 13px/1 inherit; letter-spacing: .5px; cursor: pointer;
}
.lp-lang:hover { border-color: #fff; }
.lp-link { color: #fff; font-size: 14px; font-weight: 500; }
.lp-link:hover { color: var(--gold); }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lp-btn-gold { background: var(--gold); color: #000 !important; }
.lp-btn-gold:hover { background: #c9a52f; }
.lp-btn-dark { background: #000; color: #fff !important; }
.lp-btn-dark:hover { background: #1c1c1e; }
.lp-btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff !important; }
.lp-btn-ghost:hover { border-color: #fff; }
.lp-btn-line { border-color: var(--line); background: #fff; color: #000 !important; }
.lp-btn-line:hover { border-color: #000; }
.lp-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }

/* Hero */
.lp-hero { background: #000; color: #fff; overflow: hidden; }
.lp-hero .lp-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 40px; padding: 84px 0 0;
}
.lp-eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.lp-hero h1 {
  margin-top: 18px; font-size: clamp(44px, 6.4vw, 82px);
  line-height: 1.02; letter-spacing: -2.4px; font-weight: 700;
}
.lp-hero h1 em { font-style: normal; color: var(--gold); }
.lp-hero p.lp-lead { margin-top: 22px; max-width: 520px; color: var(--muted-dark); font-size: 19px; }
.lp-hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-meta { margin-top: 38px; display: flex; gap: 36px; padding-bottom: 72px; }
.lp-hero-meta strong { display: block; font-size: 24px; font-weight: 700; }
.lp-hero-meta span { color: var(--muted-dark); font-size: 13px; }

.lp-phones { position: relative; height: 640px; align-self: end; }
.lp-phone {
  position: absolute; width: 290px; border-radius: 46px; padding: 10px;
  background: #1c1c1e; border: 1px solid #3a3a3c;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
}
.lp-phone img { border-radius: 37px; width: 100%; height: auto; }
.lp-phone-a { right: 150px; bottom: -70px; z-index: 2; }
.lp-phone-b { right: -10px; bottom: -150px; transform: scale(.88); transform-origin: bottom right; opacity: .9; }

/* Light sections */
.lp-light { background: var(--paper); }
.lp-section { padding: 110px 0; }
.lp-head { max-width: 680px; }
.lp-head h2 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -1.6px; font-weight: 700; }
.lp-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.lp-eyebrow-dark { color: var(--gold-dark); }

/* Black story cards, like App Store screenshots */
.lp-cards { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card {
  background: #000; color: #fff; border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 560px;
}
.lp-card-copy { padding: 34px 30px 0; }
.lp-card h3 { font-size: 27px; line-height: 1.12; letter-spacing: -.6px; font-weight: 600; }
.lp-card p { margin-top: 10px; color: var(--muted-dark); font-size: 15px; }
.lp-card-shot { margin-top: auto; padding: 30px 34px 0; }
.lp-card-shot img {
  border-radius: 30px 30px 0 0; border: 8px solid #1c1c1e; border-bottom: 0;
  height: 360px; width: 100%; object-fit: cover; object-position: top;
}

.lp-features { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-card-shot img.lp-shot-bottom { object-position: bottom; }

.lp-feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.lp-feature b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #000; color: var(--gold); font-size: 18px; }
.lp-feature h3 { margin-top: 16px; font-size: 17px; font-weight: 600; }
.lp-feature p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Barbers */
.lp-white { background: #fff; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.lp-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 16px; }
.lp-list li::before {
  content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #000; font-size: 14px; font-weight: 700;
}
.lp-list strong { display: block; font-weight: 600; }
.lp-list span { color: var(--muted); font-size: 14px; }
.lp-split-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-showcase {
  background: #000; border-radius: 34px; padding: 48px 0 0; display: flex; justify-content: center;
  overflow: hidden; height: 600px;
}
.lp-showcase .lp-phone { position: static; width: 300px; box-shadow: none; }

/* Photo band */
.lp-band { position: relative; min-height: 460px; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; background: #000; }
.lp-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lp-band div { position: relative; padding: 0 20px; }
.lp-band h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -1.8px; font-weight: 700; }
.lp-band h2 em { font-style: normal; color: var(--gold); }
.lp-band p { margin-top: 14px; color: #e5e5ea; font-size: 18px; }

/* Download */
.lp-dark { background: #000; color: #fff; }
.lp-dark .lp-head p { color: var(--muted-dark); }
.lp-apps { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-app { border: 1px solid #2c2c2e; background: #111; border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.lp-app span { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.lp-app h3 { font-size: 30px; letter-spacing: -.6px; font-weight: 700; }
.lp-app p { color: var(--muted-dark); }
.lp-store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* Footer */
.lp-footer { background: #000; color: var(--muted-dark); border-top: 1px solid #1c1c1e; }
.lp-footer .lp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 34px 0 44px; font-size: 13px; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lp-footer a:hover { color: #fff; }

/* Tablet */
@media (max-width: 980px) {
  .lp-nav { display: none; }
  .lp-hero .lp-wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .lp-hero-meta { padding-bottom: 0; }
  .lp-phones { height: 560px; margin-top: 10px; }
  .lp-phone-a { right: auto; left: calc(50% - 230px); bottom: -120px; }
  .lp-phone-b { right: calc(50% - 250px); bottom: -190px; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-card { min-height: 0; }
  .lp-card-shot img { height: 420px; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-split { grid-template-columns: 1fr; gap: 40px; }
  .lp-apps { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 600px) {
  .lp-wrap { width: calc(100% - 32px); }
  .lp-header .lp-link { display: none; }
  .lp-hero h1 { letter-spacing: -1.6px; }
  .lp-hero p.lp-lead { font-size: 17px; }
  .lp-hero-ctas .lp-btn { flex: 1 1 100%; }
  .lp-hero-meta { gap: 24px; }
  .lp-phones { height: 480px; }
  .lp-phone { width: 240px; border-radius: 40px; padding: 8px; }
  .lp-phone img { border-radius: 32px; }
  .lp-phone-a { left: calc(50% - 190px); bottom: -110px; }
  .lp-phone-b { right: calc(50% - 200px); bottom: -170px; }
  .lp-section { padding: 76px 0; }
  .lp-card-copy { padding: 28px 24px 0; }
  .lp-card-shot { padding: 24px 24px 0; }
  .lp-card-shot img { height: 380px; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-showcase { height: 520px; padding-top: 36px; }
  .lp-showcase .lp-phone { width: 260px; }
  .lp-split-ctas .lp-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html.vx-home { scroll-behavior: auto; }
}

/* ---------- Motion ----------
   Only active when the script below adds html.lp-anim (JS available and
   the visitor has not asked for reduced motion); otherwise the page is
   fully visible and static. */
@keyframes lpUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lpPhones { from { opacity: 0; transform: translateY(140px); } to { opacity: 1; transform: none; } }
@keyframes lpFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes lpUnderline { to { background-size: 100% 6px; } }
@keyframes lpGlow { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }

html.lp-anim .lp-hero .lp-eyebrow,
html.lp-anim .lp-hero h1,
html.lp-anim .lp-hero .lp-lead,
html.lp-anim .lp-hero .lp-hero-ctas,
html.lp-anim .lp-hero .lp-hero-meta > div {
  opacity: 0;
  animation: lpUp .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
html.lp-anim .lp-hero h1 { animation-delay: .08s; }
html.lp-anim .lp-hero .lp-lead { animation-delay: .22s; }
html.lp-anim .lp-hero .lp-hero-ctas { animation-delay: .34s; }
html.lp-anim .lp-hero .lp-hero-meta > div:nth-child(1) { animation-delay: .46s; }
html.lp-anim .lp-hero .lp-hero-meta > div:nth-child(2) { animation-delay: .54s; }
html.lp-anim .lp-hero .lp-hero-meta > div:nth-child(3) { animation-delay: .62s; }

/* Gold underline draws itself under "in seconds" */
html.lp-anim .lp-hero h1 em {
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 96% / 0 6px;
  animation: lpUnderline 1s .9s cubic-bezier(.2, .7, .2, 1) forwards;
}

html.lp-anim .lp-phones {
  opacity: 0;
  animation: lpPhones 1.2s .3s cubic-bezier(.16, .84, .24, 1) forwards;
}
html.lp-anim .lp-phone-a { animation: lpFloat 7s 1.6s ease-in-out infinite; }
.lp-hero { position: relative; }
html.lp-anim .lp-hero::after {
  content: ""; position: absolute; right: 8%; bottom: -30%; width: 620px; height: 620px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212, 175, 55, .28), transparent 65%);
  animation: lpGlow 8s ease-in-out infinite;
}
.lp-hero .lp-wrap { position: relative; z-index: 1; }

/* Scroll reveal: the script tags blocks with .lp-reveal and a stagger. */
html.lp-anim .lp-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
html.lp-anim .lp-reveal.is-in { opacity: 1; transform: none; }

/* Story cards: screenshot slides up into place on hover */
.lp-card { transition: transform .35s ease; }
.lp-card-shot img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  html.lp-anim .lp-card:hover { transform: translateY(-6px); }
  html.lp-anim .lp-card-shot img { transform: translateY(18px); }
  html.lp-anim .lp-card:hover .lp-card-shot img { transform: translateY(0); }
  html.lp-anim .lp-feature { transition: transform .3s ease, border-color .3s ease; }
  html.lp-anim .lp-feature:hover { transform: translateY(-4px); border-color: var(--gold); }
  html.lp-anim .lp-btn-gold:hover { transform: translateY(-1px); }
}

/* Header gets solid once the page scrolls */
.lp-header { transition: background .3s ease, border-color .3s ease; }
html.lp-anim .lp-header.is-scrolled { background: rgba(0, 0, 0, .94); border-bottom-color: rgba(255, 255, 255, .14); }

/* Photo band drifts slower than the page */
html.lp-anim .lp-band img { transform: translateY(var(--py, 0px)) scale(1.15); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html.lp-anim *, html.lp-anim *::after { animation: none !important; transition: none !important; }
  html.lp-anim .lp-reveal, html.lp-anim .lp-phones, html.lp-anim .lp-hero * { opacity: 1 !important; transform: none !important; }
}
