/* css/style.css */

@font-face {
    font-family: 'ApercuMono';
    src: url('../assets/fonts/ApercuMonoProRegular.otf') format('opentype');
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html,
  body {
    width: 100%;
    min-height: 100%;
  }
  
  body {
    background: #fff;
    font-family: 'ApercuMono', monospace;
    color: #111;
    position: relative;
  }
  
  .noise-bg {
    position: fixed;
    inset: 0;
    opacity: .03;
    pointer-events: none;
    background-image:
      radial-gradient(#000 0.5px, transparent 0.5px);
    background-size: 5px 5px;
  }

  .logo {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color:#444444;
  }
  
  .wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  
    gap: 24px;
  
    position: relative;
    z-index: 2;
  
    padding: 34px 20px 22px;
  }

  .gif-wrap {
    text-align: center;
  }
  
  .logo {
    width: 108px;
    max-width: 42vw;
  }
  
  .gif-wrap img {
    width: 300px;
    max-width: 80vw;
  }
  
  .walking-gif {
    width: 100%;
    display: block;
  }

  .confirm-gif {
    width: 100%;
    padding-top: 60px;
  }
  
  .ink-container {
    position: relative;
    width: 390px;
    max-width: 90vw;
    height: 54px;
    overflow: hidden;
  }
  
  .hidden-copy {
    position: absolute;
    inset: 0;
    z-index: 1;
  
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
  
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: .02em;
  
    color: #111;
    user-select: none;
  }
  
  #inkCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    touch-action: none;
  }
  
  .email-wrap {
    width: 320px;
    max-width: 90vw;
  }
  
  #emailForm {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 45px;
    border: 1px solid rgba(0,0,0,.16);
    background: #fff;
  }
  
  #emailForm input {
    border: none;
    background: #fff;
    outline: none;
  
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
  
    font-family: inherit;
    font-size: 12px;
    letter-spacing: .04em;
  
    text-transform: uppercase;
  }
  
  #emailForm input::placeholder {
    color: rgba(139, 139, 139, 0.28);
    font-size: 12px;
  }

  .bot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    flex: 0 0 1px;
    opacity: 0;
    pointer-events: none;
  }
  
  #emailForm button {
    border: none;
    background: #000;
    cursor: pointer;
  
    flex: 0 0 100px;
    width: 100px;
    min-width: 100px;
    height: 100%;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .12em;
    padding: 0 10px;
    text-align: center;
    text-transform: uppercase;
  }

  #emailForm button.is-loading span {
    visibility: hidden;
  }

  #emailForm button.is-loading::after {
    content: "...";
  }

  #emailForm button:disabled {
    cursor: wait;
  }

  .error-message {
    display: none;
    margin-top: 10px;
    text-align: center;
    color: rgba(0,0,0,.65);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .email-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(139,139,139,.9);
    padding: 36px;
  }

  .email-modal.is-open {
    display: flex;
    animation: emailModalOverlayFade .28s ease both;
  }

  .email-modal.is-open .email-modal__panel {
    animation: emailModalDesktopFade .32s ease both;
  }

  .email-modal__panel {
    width: min(740px, 100%);
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 74px;
    border: 2px solid rgba(0,0,0,.4);
    background: #fff;
    padding: 40px;
    text-align: center;
  }

  .email-modal__message,
  .email-modal__redirect {
    color: rgba(0,0,0,.62);
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
  }

  .email-modal__button {
    width: min(420px, 100%);
    height: 50px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .email-modal__redirect {
    color: rgba(0,0,0,.42);
    font-size: 14px;
  }

  #modalCountdown {
    color: red;
  }
  
  .deal-wrap {
    font-size: 12px;
    letter-spacing: .08em;
  }
  
  #countdown {
    margin-left: 8px;
    color: red;
  }
  
  .text-us {
    text-decoration: none;
    color: rgba(0,0,0,.45);
  
    font-size: 12px;
    letter-spacing: .08em;
  
    transition: .2s ease;
  }
  
  .text-us:hover {
    color: #000;
  }
  p {
    color: #555;
    font-size: 12px;
    text-align:center;
    line-height: 1.45;
  }
  @media (max-width: 768px) {
  
    .wrapper {
      gap: 20px;
      justify-content: flex-start;
      padding: 26px 16px 18px;
    }

    .logo {
      width: 96px;
    }
  
    .gif-wrap img {
      width: 235px;
    }
  
    .ink-container {
      width: 315px;
      height: 52px;
    }
  
    .hidden-copy {
      font-size: 11px;
      line-height: 1.45;
    }

    .email-wrap {
      width: 100%;
      max-width: 340px;
    }

    #emailForm input {
      padding: 0 16px;
      font-size: 12px;
      letter-spacing: .035em;
    }

    #emailForm input::placeholder {
      font-size: 12px;
    }

    #emailForm button {
      flex-basis: 100px;
      width: 100px;
      min-width: 100px;
      padding: 0 12px;
      font-size: 11px;
      letter-spacing: .08em;
    }

    .email-modal {
      align-items: flex-end;
      background: rgba(139,139,139,.9);
      padding: 0;
    }

    .email-modal.is-open .email-modal__panel {
      animation: emailModalMobileSlide .38s cubic-bezier(.2,.8,.2,1) both;
    }

    .email-modal__panel {
      width: 100%;
      min-height: 360px;
      gap: 44px;
      border: 1px solid rgba(0,0,0,.4);
      border-bottom: none;
      background: #fff;
    }

    .email-modal__message,
    .email-modal__redirect {
      font-size: 12px;
      line-height: 1.55;
      letter-spacing: .045em;
    }

    .email-modal__button {
      height: 48px;
      font-size: 12px;
    }

    .deal-wrap,
    .text-us {
      font-size: 11px;
    }
  
  }

  @keyframes emailModalOverlayFade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes emailModalDesktopFade {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes emailModalMobileSlide {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .email-modal.is-open,
    .email-modal.is-open .email-modal__panel {
      animation: none;
    }
  }

  @media (max-height: 760px) and (min-width: 769px) {

    .wrapper {
      gap: 18px;
      padding-top: 24px;
      padding-bottom: 16px;
    }

    .logo {
      width: 96px;
    }

    .gif-wrap img {
      width: 250px;
    }

    .ink-container {
      width: 360px;
      height: 50px;
    }

    .hidden-copy {
      font-size: 12px;
    }

  }
