:root {
  --layout-width : 530px;
  --layout-inset : min(25 / 375 * 100vw, 70px);

  --gutters : calc(100vw - min(var(--layout-width), 100vw - var(--layout-inset) * 2));
  --gutter  : calc(var(--gutters) / 2);

  --color-gray  : #5E738B;
  --color-blue  : #0094FA;
  --color-green : #4ADE9C;

  --device-w: 328;
  --device-h: 628;
  --device-edge: 14;
  --shadow-w: 640;
  --shadow-h: 920;
  --shadow-x: -70;
  --shadow-y: -70;
}

@font-face {
  font-family: 'Founders Grotesk';
  font-weight: 700;
  font-style: normal;
  font-display: block;
  src: url('/font.woff2') format('woff2');
}

* {
  box-sizing: border-box;
  border: none;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

img, video {
  display: block;
  width: 100%;
  height: auto;
}

button, input {
  background: transparent;
  color: inherit;
  font: inherit;
}

body {
  display: grid;
  font-size: 1.125em;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-gray);
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: min(70vh, 700px);
  background-image: linear-gradient(180deg, #D5EDFC 0%, #FFFFFF 100%);
}

.hide-visually {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.splash {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: clamp(2.5rem, 1.0632rem + 6.1303vw, 7.5rem);
  padding-bottom: 3.125rem;
  overflow: hidden;
}

.container {
  position: relative;
  width: min(var(--layout-width), 100vw - (var(--layout-inset) * 2));
  margin-left: auto;
  margin-right: auto;
}

.logo {
  font-size: clamp(7.5rem, 6.7816rem + 3.0651vw, 10rem);
  width: 1em;
  margin: 0 auto 0.3em auto;
}

.device {
  width: min(100%, var(--device-w) * 1px);
  margin-top: min(15vw, 70px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.device:before {
  content: '';
  display: block;
  width: 100%;
  padding-top: calc(var(--device-h) / var(--device-w) * 100%);
}
.device:after {
  content: '';
  position: absolute;
  z-index: 2;
  top: calc(var(--shadow-y) / var(--device-h) * 100%);
  left: calc(var(--shadow-x) / var(--device-w) * 100%);
  width: calc(var(--shadow-w) / var(--device-w) * 100%);
  height: calc(var(--shadow-h) / var(--device-h) * 100%);
  background: url('/device.png') 0 0 / cover no-repeat;
}
.device img {
  position: absolute;
  top: calc(var(--device-edge) / var(--device-h) * 100%);
  left: calc(var(--device-edge) / var(--device-w) * 100%);
  width: calc(100% - (var(--device-edge) * 2 / var(--device-w) * 100%));
  border-radius: calc(var(--device-w) / var(--device-edge) * 1.25px);
  z-index: 1;
}

.content {
  z-index: 2;
}
.content header {
  margin-bottom: clamp(2.5rem, 2.3204rem + 0.7663vw, 3.125rem);
}
.content .arrow {
  display: none;
}
.content p {
  margin-bottom: 1.625em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem 0;
}

input {
  flex: 1;
  min-height: 60px;
  padding: 0.5em 1em;
  background-color: transparent;
  border: rgb(94 115 139 / 0.5) 1px solid;
  border-radius: 5px;
}
input::placeholder {
  color: #A7B6C5;
}

button {
  min-height: 60px;
  padding: 1.125em 1.5em;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #FFF;
  background-color: var(--color-gray);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: background-color 0.25s;
}
button:where(:hover, :focus-visible) {
  background-color: var(--color-blue);
}

@media (min-width: 1000px) {

  :root {
    --layout-width : 1050px;
  }

  .container {
    display: flex;
    align-items: center;
    gap: calc(120 / 1050 * 100%);
  }

  .logo {
    position: absolute;
    z-index: 0;
    margin: 0;
    top: 0;
    left: 0;
    opacity: 0.5;
    transform: translate(290px, -80px) rotate(-28deg)
  }

  .device {
    flex: none;
    order: -1;
    margin: 0;
  }

  .content {
    width: calc(600 / 1050 * 100%);
  }
  .content header {
    max-width: 550px;
    position: relative;
  }
  .content .arrow {
    display: block;
    position: absolute;
    width: 33%;
    left: 0;
    top: 100%;
    transform: translateX(-115%);
  }
  .content h1 ~ * {
    max-width: 530px;
  }

  form {
    flex-direction: row;
  }
  form button {
    margin-left: -1px;
  }
  form input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}
