/* ===================================
   RESET & BASE STYLES
   =================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Roboto', sans-serif;
    background: radial-gradient(ellipse at top, rgba(255,0,0,0.08), transparent 50%), #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  body {
    background: radial-gradient(ellipse at top, rgba(255,0,0,0.08), transparent 50%),
                #000;
  }

  .milestone-banner {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    overflow: hidden;
  }

  /* Red left-edge accent line */
  .milestone-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FF0000;
  }

  /* Very subtle shimmer */
  .milestone-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 70%
    );
    background-size: 200% 100%;
    animation: ms-shimmer 4s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes ms-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .milestone-banner .ms-count {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .milestone-banner .ms-dot {
    color: #FF0000;
    font-size: 8px;
    opacity: 0.8;
  }

  @media (prefers-reduced-motion: reduce) {
    .milestone-banner::after {
      animation: none;
    }
  }
  
  /* ===================================
     ACCESSIBILITY
     =================================== */
  
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  .skip-link {
    position: absolute;
    left: -999px;
    top: 0;
  }
  
  .skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 9999;
  }
  
  :focus-visible,
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  summary:focus-visible,
  [role="button"]:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }
  
  /* ===================================
     LAYOUT
     =================================== */
  
  .container {
    width: 100%;
    max-width: 640px;
    padding: 20px;
  }
  
  .screen {
    display: none;
    text-align: center;
  }
  
  .screen.active {
    display: block;
  }
  
  /* ===================================
     TYPOGRAPHY (ENHANCED)
     =================================== */
  
  h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.04em;
  }
  
  h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
  }
  
  h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
  }
  
  p,
  .tagline,
  .faq-item p {
    line-height: 1.6;
  }
  
  p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #999;
  }
  
  .tagline {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.01em;
    font-weight: 500;
    opacity: 0.85;
  }
  
  /* ===================================
     BUTTONS (ENHANCED WITH DEPTH)
     =================================== */
  
  .btn-primary,
  .btn-secondary,
  .btn {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .btn-primary {
    background: #FF0000;
    color: #fff;
    box-shadow: 
      0 1px 2px rgba(255, 0, 0, 0.4),
      0 4px 12px rgba(255, 0, 0, 0.3),
      0 8px 24px rgba(255, 0, 0, 0.2);
  }
  
  .btn-primary:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 
      0 2px 4px rgba(255, 0, 0, 0.5),
      0 8px 16px rgba(255, 0, 0, 0.4),
      0 12px 32px rgba(255, 0, 0, 0.3);
  }
  
  .btn-primary:active {
    transform: translateY(0);
  }
  
  .btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  
  .btn-secondary {
    background: #333;
    color: #fff;
    width: 100%;
    max-width: 300px;
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .btn-secondary:hover {
    background: #444;
  }
  
  .btn-secondary:active {
    background: #555;
  }
  
  .btn-new-round {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    display: block;
  }
  
  .btn {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
  }
  
  /* ===================================
     LANDING PAGE
     =================================== */
  
  .logo-container {
    margin-bottom: 2rem;
  }
  
  .logo {
    max-width: 300px;
    width: 80%;
    height: auto;
  }
  
  .landing-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    min-height: 60vh;
    justify-content: center;
    padding: 40px 0 80px;
  }
  
  .landing-footer {
    margin-top: 80px;
    padding: 40px 20px 20px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02));
    border-radius: 20px 20px 0 0;
  }
  
  /* ===================================
     FAQ
     =================================== */

  .faq-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-align: center;
  }
  
  .faq-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .faq-item:first-child {
    padding-top: 0;
  }
  
  .faq-item:last-of-type {
    border-bottom: none;
    padding-bottom: 24px;
  }
  
  .faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    list-style: none;
    padding: 8px 0;
    padding-left: 24px;
    transition: color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .faq-item summary::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FF0000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .faq-item[open] summary::before {
    transform: rotate(90deg);
  }
  
  .faq-item summary:hover {
    color: #FF0000;
  }
  
  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  
  .faq-item summary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 8px;
  }
  
  .faq-item p {
    margin: 14px 0 0 24px;
    opacity: 0.75;
    font-size: 0.95rem;
  }
  
  .landing-help,
  .help-row {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.85;
    font-size: 0.95rem;
    text-align: center;
  }
  
  .help-row {
    margin-top: 24px;
    padding-top: 20px;
  }
  
  .ig-link {
    color: #FF0000;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .ig-link:hover,
  .ig-link:focus-visible {
    opacity: 1;
  }
  
  .ig-link:visited {
    opacity: 0.9;
  }
  
  /* ===================================
     VIDEO & OVERLAY
     =================================== */
  
  #camera-feed {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    pointer-events: none;
  }
  
  .overlay button {
    pointer-events: auto;
  }
  
  .center-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: auto 0;
  }
  
  /* ===================================
     ROUND ACTIVE UI
     =================================== */
  
  #end-round {
    order: 1;
    background: #FF0000;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 
      0 2px 8px rgba(255, 0, 0, 0.4),
      0 4px 16px rgba(255, 0, 0, 0.3);
    margin-bottom: auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  #end-round:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 4px 12px rgba(255, 0, 0, 0.5),
      0 8px 24px rgba(255, 0, 0, 0.4);
  }
  
  .timer-display {
    order: 2;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin: auto 0;
  }
  
  .punch-display {
    order: 3;
    font-size: 6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
    line-height: 1;
    margin: 0;
    font-variant-numeric: tabular-nums;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  @keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-2deg); }
    100% { transform: scale(1.08); }
  }
  
  #punch-count.hit-target {
    color: #22c55e;
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
    animation: celebrate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* ===================================
     GOAL UI (ENHANCED GLASSMORPHISM)
     =================================== */
  
  .goal-wrap {
    order: 4;
    margin-top: auto;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  
  .goal-pill {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    padding: 1.25rem 2.5rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  .goal-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
    font-weight: 600;
  }
  
  .goal-value {
    display: block;
    font-size: 2.4rem;     /* was 1rem */
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  
  .goal-status {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9);
  }
  
  .goal-wrap.goal-hit .goal-pill {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
    animation: pulse 2s ease-in-out infinite;
  }
  
  .goal-wrap.goal-hit .goal-status {
    color: rgba(34, 197, 94, 0.95);
    opacity: 1;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  /* ===================================
     SUMMARY STATS
     =================================== */
  
  .stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .stat {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF0000;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  #summary-speed {
    color: #FFD700;
    font-weight: 800;
  }
  
  .streak {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    text-align: center;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4), 
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .streak p {
    font-size: 1.1rem;
    color: #999;
    margin: 0;
  }
  
  .streak strong {
    color: #FF0000;
    font-size: 1.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  
  /* ===================================
     LOADING & PROCESSING
     =================================== */
  
  #loading,
  #processing {
    text-align: center;
  }
  
  .spinner {
    border: 4px solid #333;
    border-top: 4px solid #FF0000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* ===================================
     SHARE SECTION
     =================================== */
  
  #share-section {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4), 
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .share-preview {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
    border: 2px solid #FF0000;
  }
  
  .share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }
  
  .share-buttons a,
  .share-buttons button {
    flex: 1;
    max-width: 200px;
    min-width: 150px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
  }
  
  /* ===================================
     CARDS & FORMS (ENHANCED GLASSMORPHISM)
     =================================== */
  
  .card {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4), 
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .card-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
  }
  
  .card-subtitle {
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 10px;
  }
  
  .email-row {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  .input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    outline: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .input:focus,
  .input:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  }
  
  .msg {
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
    opacity: 0.9;
  }
  
  .msg.success {
    color: rgba(34, 197, 94, 0.95);
  }
  
  .msg.error {
    color: rgba(239, 68, 68, 0.95);
  }
  
  /* ===================================
     MOBILE RESPONSIVE
     =================================== */
  
  @media (max-width: 480px) {
    h1 {
      font-size: 2.5rem;
    }
  
    .logo {
      max-width: 250px;
    }
  
    .tagline {
      font-size: 1.05rem;
      margin-bottom: 2rem;
    }
  
    .landing-main {
      min-height: 50vh;
      padding: 30px 0 60px;
      gap: 16px;
    }
  
    .landing-footer {
      margin-top: 60px;
      padding: 30px 16px 16px;
    }
  
    .faq-item {
      padding: 14px 0;
    }
  
    .faq-item summary {
      font-size: 0.95rem;
      padding-left: 20px;
    }
  
    .faq-item p {
      margin-left: 20px;
      font-size: 0.9rem;
    }
  
    .timer-display {
      font-size: 2.5rem;
    }
  
    .punch-display {
      font-size: 5rem;
    }
  
    #end-round {
      padding: 0.9rem 2rem;
      font-size: 1rem;
    }
  
    .overlay {
      padding: 1.5rem 1rem;
    }
  
    .goal-pill {
      padding: 0.6rem 1.2rem;
    }
  
    .stats {
      gap: 1.5rem;
    }
  
    .stat {
      min-width: 45%;
    }
  
    .stat-value {
      font-size: 2rem;
    }
  
    .share-buttons {
      flex-direction: column;
    }
  
    .share-buttons a,
    .share-buttons button {
      max-width: 100%;
    }
  }
  
  /* ===================================
     ACCESSIBILITY: REDUCED MOTION
     =================================== */
  
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  
    .spinner {
      animation: none !important;
    }
  
    .btn-primary:hover {
      transform: none !important;
    }
  }
  
  /* ===================================
     ACCESSIBILITY: HIGH CONTRAST MODE
     =================================== */
  
  @media (forced-colors: active) {
    .btn-primary,
    .btn-secondary,
    .btn {
      forced-color-adjust: auto;
      border: 1px solid ButtonText;
      background: ButtonFace;
      color: ButtonText;
    }
  
    .punch-display {
      text-shadow: none !important;
    }
  
    .goal-pill,
    .card,
    .streak {
      border: 1px solid CanvasText;
    }
  }

  /* Loading */
  .progress{
    width: 100%;
    max-width: 360px;
    margin: 14px auto 10px;
    height: 10px;
    background: rgba(255,255,255,.15);
    border-radius: 999px;
    overflow: hidden;
  }
  .progress .bar{
    height: 100%;
    width: 0%;
    background: currentColor;
    transition: width .2s ease;
  }
  .muted{
    opacity: .8;
    font-size: .95rem;
  }

  /* Landing Page Goal */
  .landing-goal {
    margin-top: 0.75rem;
    opacity: 0.9;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
  }

  .welcome-back{
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    font-weight: 600;
  }

  .recover-card {
    margin-top: 28px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4), 
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .recover-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }
  
  .recover-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
  }
  
  .recover-input-group {
    display: flex;
    gap: 10px;
  }
  
  .recover-input-group input {
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .recover-input-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  }
  
  .recover-input-group input::placeholder {
    color: rgba(255,255,255,0.45);
  }
  
  .recover-input-group button {
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .recover-input-group button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  
  .recover-input-group button:active {
    transform: scale(0.97);
  }  

  .demo-wrap {
    margin: 28px auto 32px;
    width: min(360px, 92%);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }
  
  .demo-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
  }

  .recover-how-it-works {
    margin: 16px 0 20px;
  }

  .recover-how-it-works p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
  }

  .recover-how-it-works ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .recover-how-it-works li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
  }

  .recover-how-it-works li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FF0000;
    font-weight: 700;
  }

  .recover-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
  }

  .recover-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0;
  }

  .recover-divider span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
  }

  .cta-after-demo {
    margin: 40px auto 60px;
    text-align: center;
  }

  .privacy-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
  }
  
  .privacy-note svg {
    flex-shrink: 0;
    opacity: 0.8;
  }

  /* ===================================
   HERO SECTION
   =================================== */

.hero-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 260px); /* Slightly more room since no privacy note below */
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Non-clickable gradient overlay */
.hero-cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.98) 30%,
    rgba(0, 0, 0, 0.92) 50%,
    rgba(0, 0, 0, 0.75) 70%,
    transparent 100%
  );
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 2;
}

.hero-tagline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.cta-content button {
  pointer-events: auto;
}

/* Add a solid overlay just for the button area */
.hero-cta-overlay::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.98) 25%,
    rgba(0, 0, 0, 0.9) 45%,
    rgba(0, 0, 0, 0.6) 70%,
    transparent 100%
  );
  z-index: -1;
}

/* Only the button is clickable */
.hero-cta-overlay button {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

/* The START button */
.btn-hero {
  padding: 1.2rem 5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-radius: 8px;
  box-shadow: 
    0 0 40px rgba(255, 0, 0, 0.5),
    0 0 80px rgba(255, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 60px rgba(255, 0, 0, 0.7),
    0 0 120px rgba(255, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.9);
}

.btn-hero:active {
  transform: translateY(0) scale(0.98);
}

/* Privacy note INSIDE video overlay */
.hero-cta-overlay .privacy-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.hero-cta-overlay .privacy-note svg {
  flex-shrink: 0;
  opacity: 0.8;
  margin-top: -1px;
}

/* Today's Goal */
.landing-goal {
  margin: 1.5rem auto 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  display: inline-block;
  font-size: 1rem;
  opacity: 1;
  font-variant-numeric: tabular-nums;
}

.landing-goal strong {
  color: #FF0000;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Adjust landing main */
.landing-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  justify-content: flex-start;
  padding: 30px 0 80px;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

/* Mobile adjustments */
@media (max-width: 480px) {
  .landing-main {
    padding: 20px 0 60px;
  }

  .hero-header {
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-tagline-overlay {
    padding: 1.5rem 1rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-video-container {
    max-width: 340px;
    max-height: calc(100vh - 200px);
    margin-bottom: 1.25rem;
  }

  .hero-cta-overlay {
    padding: 1.5rem 1rem; /* Reduced from 2rem - shows more video */
  }

  .cta-content {
    gap: 0.6rem; /* Tighter gap between button and privacy note */
  }

  .btn-hero {
    padding: 1rem 3.5rem; /* Slightly smaller button */
    font-size: 1.1rem;
  }

  .hero-cta-overlay .privacy-note {
    font-size: 0.7rem; /* Smaller text */
    gap: 5px;
    flex-wrap: wrap;
  }

  .landing-goal {
    margin-top: 1rem;
  }
}

/* For very short screens */
@media (max-height: 700px) {
  .landing-main {
    padding: 15px 0 40px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-header {
    margin-bottom: 1rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .hero-tagline-overlay {
    padding: 1.25rem 1rem;
  }

  .hero-video-container {
    max-height: calc(100vh - 180px);
    margin-bottom: 1rem;
  }

  .hero-cta-overlay {
    padding: 1.25rem 1rem; /* Reduced from 1.75rem - more compact */
  }

  .cta-content {
    gap: 0.5rem; /* Tight spacing for short screens */
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .hero-video-container {
    max-width: 420px;
  }
}

/* Desktop Layout - Side by Side */
@media (min-width: 768px) {
  .container {
    max-width: 1200px;
  }

  .landing-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 30px 40px 80px; /* Reduced from 40px to 30px */
  }

  /* Title spans full width and is centered */
  .hero-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem; /* Reduced from 2rem to 1rem */
  }

  h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
  }

  .hero-video-container {
    grid-column: 1;
    grid-row: 2;
    max-width: 100%;
    max-height: 80vh;
    margin: 0;
  }

  /* Right column - Content stack, vertically centered */
  .landing-content-stack {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    min-height: 100%;
  }

  .landing-goal {
    margin: 0;
    width: 100%;
    max-width: none;
  }

  #landing-history {
    width: 100%;
  }

  .recover-card {
    margin-top: 0;
  }

  #welcome-back {
    margin-top: 0;
  }
}

/* Even larger screens */ 
@media (min-width: 1024px) {
  .landing-main {
    gap: 4rem;
    padding: 40px 60px 100px; /* Reduced from 50px to 40px */
  }

  .hero-header {
    margin-bottom: 1.5rem; /* Reduced from 2.5rem to 1.5rem */
  }

  h1 {
    font-size: 4rem;
  }

  .hero-video-container {
    max-width: 500px;
  }
}

.site-logo {
  width: auto;
  max-width: 420px;   /* adjust to taste */
  height: auto;
  display: block;
  margin: 0 auto;
}

.site-footer {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin-top: 40px;
  padding-bottom: 20px;
}

.library-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.library-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.library-desc {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.library-btn {
  display: inline-block;
}