:root{
    /* Soft pink landing palette */
    --bg: #ffeef7;
    --card: rgba(255,255,255,.90);
    --card2: rgba(255,255,255,.94);
    --text: #3b1224;
    --muted: rgba(59,18,36,.72);
    --line: rgba(255,255,255,.65);
    --accent: #ff4fa3; /* bright pink */
    --accent2: #ff9bcf;
    --shadow: 0 30px 80px rgba(220,120,170,.45);
  }
  
  *{ box-sizing: border-box; }
  html, body{ height: 100%; }
  body{
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: #ffeef7;
  }
  
  .wrap{
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 18px 20px;
    min-height: 100vh;
    display:flex;
    flex-direction:column;
  }

  /* Reserve space for the JS-injected header to avoid layout shift */
  #site-header{
    min-height: 64px;
  }
  
  .top{
    display:flex;
    justify-content: space-between;
    align-items:center;
  }
  
  .brand{
    display:flex;
    gap: 14px;
    align-items:center;
  }
  
  .brand-logo{
    height: 80px;
    display:block;
  }
  
  .brand-logo img{
    height: 100%;
    object-fit: contain;
    display:block;
  }

  /* Tablet: gently shrink logo so header feels lighter */
  @media (max-width: 1024px){
    .brand-logo{
      height: 60px;
    }
  }

  /* Narrow / tablet headers: stack brand + nav, avoid squishing */
  @media (max-width: 900px){
    .top{
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .brand-logo{
      height: 52px;
    }
    .nav{
      font-size: 13px;
      gap: 12px;
    }
  }

  .nav{
    display:flex;
    gap: 18px;
    font-size: 14px;
  }

  .nav a{
    color: var(--muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
  }

  .nav a::after{
    content: "";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    border-radius:999px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 150ms ease-out;
  }

  .nav a:hover::after{
    width:100%;
  }
  
  .title{
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
  }
  
  .hero{
    position: relative;
    margin-top: 10px;
    border-radius: 32px;
    overflow: hidden;
    min-height: 520px;
    height: min(640px, calc(100vh - 120px));
    max-height: 680px;
    background-image: url("/assets/landing-cover.png");
    background-size: cover;
    background-position: left center;
    box-shadow: 0 30px 80px rgba(220,120,170,.45);
    display:flex;
    justify-content:flex-end; /* push content to the right on large screens */
    align-items:center;
  }

  /* Removed global white overlay so the cover image stays visible */
  
  .hero-inner{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    max-width: 460px;
    padding: 30px 32px 36px;
    margin-right: 7%;
  }
  
  .hero-inner h1{
    margin: 0 0 12px;
    font-family: "Pacifico", system-ui, -apple-system, Segoe UI, cursive;
    font-size: clamp(46px, 6vw, 68px);
    letter-spacing: .02em;
  }
  
  .hero-inner p{
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
  }

  .hero-steps{
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    justify-content:center;
    margin-bottom: 22px;
  }

  .hero-step{
    display:inline-flex;
    align-items:center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--muted);
    font-size: 13px;
    box-shadow: 0 10px 26px rgba(220,120,170,.30);
  }

  .hero-step-index{
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display:grid;
    place-items:center;
    font-size: 11px;
    font-weight: 700;
    color:#fff;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 8px 18px rgba(255,79,163,.35);
  }

  .hero-step-label{
    font-size: 13px;
    font-weight: 500;
  }
  
  .actions{
    display:flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    text-decoration:none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: .1px;
    min-height: 44px;
  }
  
  .btn.primary{
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #120811;
    box-shadow: 0 20px 50px rgba(255,79,163,.35);
    padding-inline: 42px;
    font-size: 16px;
    border-radius: 999px;
  }
  
  .badges{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .badge{
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--muted);
  }
  
  .cards{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
  }
  
  .card{
    border-radius: 18px;
    padding: 16px 16px 14px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 18px 40px rgba(220,120,170,.25);
  }
  
  .card h2{
    margin: 0 0 8px;
    font-size: 15px;
  }
  
  .card p{
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
  }
  
  .foot{
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display:flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  .fine{
    font-size: 13px;
    color: var(--muted);
  }
  
  .fine a{
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.25);
  }
  .fine a:hover{
    color: var(--text);
  }
  
  @media (max-width: 900px){
    .hero{
      height: auto;
      min-height: 480px;
      justify-content:center;
      align-items:flex-end;
    }
    .hero-inner{
      max-width: 420px;
      margin: 40px 16px 34px;
      padding: 24px 18px 30px;
      align-items:center;
      text-align:center;
      border-radius: 22px;
      position: relative;
    }
    .hero-inner::before{
      content:"";
      position:absolute;
      inset:-18px;
      border-radius: 32px;
      background: radial-gradient(circle at 50% 0, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 35%, rgba(255,255,255,0) 80%);
      box-shadow: 0 18px 40px rgba(220,120,170,.35);
      z-index:-1;
    }
    .hero-inner h1{
      font-size: 42px;
    }
    .hero-inner p{
      font-size: 15px;
    }
    .cards{ grid-template-columns: 1fr; }
  }
  
  /* Photobooth page (scoped under body.booth to avoid affecting landing page) */
  body.booth{
    --bg:#fbf7fb;
    --card:#ffffff;
    --text:#1b1b1f;
    --muted:#6b6b76;
    --line:rgba(20,20,25,.10);
    --shadow:0 20px 60px rgba(20,20,25,.10);
    --radius:22px;
    --pink:#ff4f93;
    --pink2:#ff77ad;
    --stageH: min(56vh, 520px);
    --rightH: calc(var(--stageH) + 360px);
  
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color:var(--text);
    background:
      radial-gradient(1000px 700px at 20% 20%, rgba(255,79,147,.12) 0%, rgba(255,79,147,0) 55%),
      radial-gradient(900px 700px at 70% 40%, rgba(255,180,210,.22) 0%, rgba(255,180,210,0) 55%),
      var(--bg);
    background-repeat: no-repeat;
  }
  
  body.booth .wrap{
    max-width:1180px;
    margin:0 auto;
    padding: 18px 14px 34px;
  }
  
  body.booth .topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 10px 6px 18px;
  }
  
  body.booth .topbar .brand h1{
    margin:0;
    font-size:20px;
    font-weight:800;
  }
  
  body.booth .topbar .brand p{
    margin:4px 0 0;
    font-size:13px;
    color:var(--muted);
  }
  
  body.booth .btn{
    border:1px solid var(--line);
    background: var(--card);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    cursor:pointer;
    box-shadow: 0 10px 25px rgba(20,20,25,.06);
    white-space: nowrap;
  }
  
  body.booth .btn:disabled{
    opacity:.45;
    cursor:not-allowed;
    box-shadow:none;
  }
  
  body.booth .btnPrimary{
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink2) 100%);
    border-color: rgba(255,79,147,.55);
    color:#fff;
    font-weight:800;
  }
  
  body.booth .layout{
    display:grid;
    grid-template-columns: 1fr 290px;
    gap: 16px;
    align-items:start;
  }
  
  @media (max-width: 980px){
    body.booth .layout{ grid-template-columns: 1fr; }
  }
  
  body.booth .cameraCard{
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
    padding: 14px;
    backdrop-filter: blur(10px);
  }
  
  body.booth .cameraStage{
    position:relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    height: var(--stageH);
    background:#000;
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(20,20,25,.10);
    cursor: pointer;
  }
  
  body.booth video,
  body.booth canvas,
  body.booth img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
  }
  
  body.booth .hud{
    position:absolute;
    top:10px;
    left:10px;
    right:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    pointer-events:none;
    z-index: 3;
  }
  
  body.booth .pill{
    font-size:12px;
    color: rgba(20,20,25,.75);
    background: rgba(255,255,255,.78);
    border:1px solid rgba(20,20,25,.12);
    padding: 8px 10px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  body.booth .startOverlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background: radial-gradient(800px 400px at 50% 50%, rgba(255,255,255,.14), rgba(0,0,0,.55));
    z-index: 2;
  }
  
  body.booth .startOverlay.hidden{
    display:none;
  }
  
  body.booth .startOverlay .cta{
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink2) 100%);
    border:1px solid rgba(255,79,147,.65);
    color:#fff;
    font-weight: 900;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 16px;
    cursor:pointer;
    box-shadow: 0 18px 40px rgba(255,79,147,.22);
  }
  
  body.booth .count{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 86px;
    font-weight: 900;
    color:#fff;
    text-shadow: 0 18px 60px rgba(0,0,0,.45);
    opacity:0;
    transition: opacity 120ms ease;
    pointer-events:none;
    z-index: 4;
  }
  
  body.booth .count.on{
    opacity:1;
  }
  
  body.booth .flash{
    position:absolute;
    inset:0;
    background:#fff;
    opacity:0;
    transition: opacity 120ms ease;
    pointer-events:none;
    z-index: 4;
  }
  
  body.booth .flash.on{
    opacity:.85;
  }
  
  body.booth .filtersWrap{
    max-width: 860px;
    margin: 14px auto 0;
    text-align:center;
  }
  
  body.booth .filtersTitle{
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 10px;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  
  body.booth .chips{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap: wrap;
  }
  
  body.booth .chip{
    border:1px solid rgba(20,20,25,.10);
    background: rgba(255,255,255,.80);
    color: rgba(20,20,25,.72);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    cursor:pointer;
    user-select:none;
  }
  
  body.booth .chip.active{
    border-color: rgba(255,79,147,.55);
    box-shadow: 0 12px 28px rgba(255,79,147,.14);
    color: rgba(255,79,147,1);
    font-weight: 800;
  }
  
  body.booth .actionBar{
    max-width: 860px;
    margin: 14px auto 0;
    display:flex;
    justify-content:center;
    gap: 10px;
    flex-wrap: wrap;
    align-items:center;
  }
  
  body.booth .select{
    border:1px solid rgba(20,20,25,.10);
    background: rgba(255,255,255,.80);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    color: rgba(20,20,25,.75);
    outline:none;
  }
  
  body.booth .sideCard{
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    position: sticky;
    top: 14px;
    backdrop-filter: blur(10px);
    max-height: calc(var(--rightH) - 20px);
    overflow: hidden;
  }
  
  @media (max-width: 980px){
    body.booth .sideCard{
      position: static;
      max-height:none;
      overflow: visible;
    }
  }
  
  body.booth .sideHead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 10px;
  }
  
  body.booth .sideHead .title{
    font-size: 12px;
    letter-spacing:.14em;
    text-transform:uppercase;
    color: rgba(20,20,25,.62);
    font-weight: 900;
  }
  
  body.booth .stripPreview{
    border:1px solid rgba(20,20,25,.12);
    border-radius: 18px;
    background:#fff;
    overflow:hidden;
  }
  
  body.booth .stripCanvasWrap{
    height: min(40vh, 360px);
    width: 100%;
    background: linear-gradient(180deg, rgba(250,250,252,1), rgba(246,246,250,1));
    display:flex;
    align-items:center;
    justify-content:center;
  }
  
  body.booth #stripPreviewImg{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display:block;
    background: transparent;
  }
  
  body.booth .controlsCompact{
    margin-top: 10px;
    display:flex;
    flex-direction: column;
    gap: 10px;
  }
  
  body.booth .labelSmall{
    font-size: 12px;
    font-weight: 800;
    color: rgba(20,20,25,.65);
  }
  
  body.booth .colors{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
  }
  
  body.booth .swatch{
    width:24px;
    height:24px;
    border-radius: 999px;
    border:1px solid rgba(20,20,25,.12);
    cursor:pointer;
    box-shadow: 0 8px 18px rgba(20,20,25,.08);
  }
  
  body.booth .swatch.active{
    outline: 3px solid rgba(255,79,147,.35);
    outline-offset: 2px;
  }
  
  body.booth .input{
    border:1px solid rgba(20,20,25,.10);
    background: rgba(255,255,255,.92);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    outline:none;
  }
  
  body.booth .status{
    font-size: 12px;
    color: rgba(20,20,25,.60);
    line-height: 1.4;
  }
  
  body.booth .qrBox{
    display:none;
    padding: 6px;
    border-radius: 18px;
    border:1px dashed rgba(20,20,25,.18);
    background: rgba(255,255,255,.9);
  }
  
  body.booth .qrBox.show{
    display:block;
  }
  
  body.booth .qrRow{
    display:flex;
    flex-direction: column;
    align-items:center;
    gap: 10px;
  }
  
  body.booth .qrImg{
    width: 200px;
    height: 200px;
    border-radius: 14px;
    border:1px solid rgba(20,20,25,.12);
    background:#fff;
    image-rendering: pixelated;
  }
  
  body.booth .qrMeta{
    min-width:0;
    width: 100%;
  }
  
  body.booth .qrShareBtn{
    width: 100%;
    justify-content:center;
    margin-bottom: 6px;
  }

  body.booth .shareLink{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  